|
1 | | -; ModuleID = 'test14.ll' |
2 | | -source_filename = "test14.c" |
3 | | -target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" |
4 | | -target triple = "arm64-apple-macosx14.0.0" |
| 1 | +; ModuleID = 'test5.ll' |
| 2 | +source_filename = "test5.c" |
| 3 | +target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" |
| 4 | +target triple = "aarch64-unknown-linux-gnu" |
5 | 5 |
|
6 | | -; Function Attrs: noinline nounwind ssp uwtable(sync) |
7 | | -define i32 @main() #0 { |
| 6 | +; Function Attrs: noinline nounwind uwtable |
| 7 | +define dso_local void @foo(ptr noundef %p) #0 { |
8 | 8 | entry: |
9 | | - %call = call i32 @nd() |
10 | | - %tobool = icmp ne i32 %call, 0 |
11 | | - br i1 %tobool, label %if.then, label %if.end |
12 | | - |
13 | | -if.then: ; preds = %entry |
14 | | - %inc = add nsw i32 1, 1 |
15 | | - %inc1 = add nsw i32 1, 1 |
16 | | - br label %if.end |
| 9 | + store i32 1, ptr %p, align 4 |
| 10 | + ret void |
| 11 | +} |
17 | 12 |
|
18 | | -if.end: ; preds = %if.then, %entry |
19 | | - %x.0 = phi i32 [ %inc, %if.then ], [ 1, %entry ] |
20 | | - %y.0 = phi i32 [ %inc1, %if.then ], [ 1, %entry ] |
21 | | - %cmp = icmp eq i32 %x.0, %y.0 |
22 | | - call void @svf_assert(i1 noundef zeroext %cmp) |
| 13 | +; Function Attrs: noinline nounwind uwtable |
| 14 | +define dso_local i32 @main() #0 { |
| 15 | +entry: |
| 16 | + %a = alloca i32, align 4 |
| 17 | + store i32 0, ptr %a, align 4 |
| 18 | + call void @foo(ptr noundef %a) |
| 19 | + %0 = load i32, ptr %a, align 4 |
| 20 | + %cmp = icmp eq i32 %0, 1 |
| 21 | + call void @svf_assert(i1 noundef %cmp) |
23 | 22 | ret i32 0 |
24 | 23 | } |
25 | 24 |
|
26 | | -declare i32 @nd() #1 |
27 | | - |
28 | | -declare void @svf_assert(i1 noundef zeroext) #1 |
| 25 | +declare void @svf_assert(i1 noundef) #1 |
29 | 26 |
|
30 | | -attributes #0 = { noinline nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+crc,+crypto,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+lse,+neon,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" } |
31 | | -attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+crc,+crypto,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+lse,+neon,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" } |
| 27 | +attributes #0 = { noinline nounwind uwtable "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+fp-armv8,+neon,+outline-atomics,+v8a,-fmv" } |
| 28 | +attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+fp-armv8,+neon,+outline-atomics,+v8a,-fmv" } |
32 | 29 |
|
33 | | -!llvm.module.flags = !{!0, !1, !2, !3} |
34 | | -!llvm.ident = !{!4} |
| 30 | +!llvm.module.flags = !{!0, !1, !2, !3, !4} |
| 31 | +!llvm.ident = !{!5} |
35 | 32 |
|
36 | 33 | !0 = !{i32 1, !"wchar_size", i32 4} |
37 | 34 | !1 = !{i32 8, !"PIC Level", i32 2} |
38 | | -!2 = !{i32 7, !"uwtable", i32 1} |
39 | | -!3 = !{i32 7, !"frame-pointer", i32 1} |
40 | | -!4 = !{!"Homebrew clang version 16.0.6"} |
| 35 | +!2 = !{i32 7, !"PIE Level", i32 2} |
| 36 | +!3 = !{i32 7, !"uwtable", i32 2} |
| 37 | +!4 = !{i32 7, !"frame-pointer", i32 1} |
| 38 | +!5 = !{!"clang version 16.0.4 (https://github.com/bjjwwang/LLVM-compile aed81d25b4818ed2645b53ffaed7664c1437b458)"} |
0 commit comments