-
Notifications
You must be signed in to change notification settings - Fork 0
/
02740366ADA0B2AC.ll
70 lines (58 loc) · 2.85 KB
/
02740366ADA0B2AC.ll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
; ModuleID = '/usr/local/google/home/aeubanks/repos/test-suite/SingleSource/Regression/C/gcc-c-torture/execute/20050119-2.c'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/SingleSource/Regression/C/gcc-c-torture/execute/20050119-2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.S = type { i8, i8, i8, i8 }
; Function Attrs: nounwind uwtable
define dso_local i32 @foo(ptr nocapture noundef readonly %s) local_unnamed_addr #0 {
entry:
%0 = load i8, ptr %s, align 1, !tbaa !5
%b = getelementptr inbounds %struct.S, ptr %s, i64 0, i32 1
%1 = load i8, ptr %b, align 1, !tbaa !9
%cmp.not = icmp eq i8 %0, %1
br i1 %cmp.not, label %if.end, label %if.then
if.then: ; preds = %entry
tail call void @abort() #3
unreachable
if.end: ; preds = %entry
%c = getelementptr inbounds %struct.S, ptr %s, i64 0, i32 2
%2 = load i8, ptr %c, align 1, !tbaa !10
%cmp4.not = icmp eq i8 %2, 2
br i1 %cmp4.not, label %if.end7, label %if.then6
if.then6: ; preds = %if.end
tail call void @abort() #3
unreachable
if.end7: ; preds = %if.end
%d = getelementptr inbounds %struct.S, ptr %s, i64 0, i32 3
%3 = load i8, ptr %d, align 1, !tbaa !11
%conv8 = zext i8 %3 to i32
ret i32 %conv8
}
; Function Attrs: noreturn
declare void @abort() local_unnamed_addr #1
; Function Attrs: noreturn nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #2 {
entry:
tail call void @exit(i32 noundef 0) #3
unreachable
}
; Function Attrs: noreturn
declare void @exit(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 17.0.0"}
!5 = !{!6, !7, i64 0}
!6 = !{!"S", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!6, !7, i64 1}
!10 = !{!6, !7, i64 2}
!11 = !{!6, !7, i64 3}