1
- ; ModuleID = './test14 .ll'
2
- source_filename = "test14 .c"
1
+ ; ModuleID = './test6 .ll'
2
+ source_filename = "test6 .c"
3
3
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
4
4
target triple = "arm64-apple-macosx14.0.0"
5
5
@@ -13,37 +13,27 @@ entry:
13
13
call void @llvm.memset.p0.i64 (ptr align 1 %buffer , i8 0 , i64 10 , i1 false ), !dbg !25
14
14
%arraydecay = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 0 , !dbg !26
15
15
call void @mem_insert (ptr noundef %arraydecay , ptr noundef @.str , i32 noundef 3 , i32 noundef 5 ), !dbg !27
16
- %arrayidx = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 3 , !dbg !28
16
+ %arrayidx = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 5 , !dbg !28
17
17
%0 = load i8 , ptr %arrayidx , align 1 , !dbg !28
18
18
%conv = sext i8 %0 to i32 , !dbg !28
19
19
%cmp = icmp eq i32 %conv , 97 , !dbg !29
20
20
call void @svf_assert (i1 noundef zeroext %cmp ), !dbg !30
21
- %arrayidx2 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 4 , !dbg !31
21
+ %arrayidx2 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 6 , !dbg !31
22
22
%1 = load i8 , ptr %arrayidx2 , align 1 , !dbg !31
23
23
%conv3 = sext i8 %1 to i32 , !dbg !31
24
24
%cmp4 = icmp eq i32 %conv3 , 98 , !dbg !32
25
25
call void @svf_assert (i1 noundef zeroext %cmp4 ), !dbg !33
26
- %arrayidx6 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 5 , !dbg !34
26
+ %arrayidx6 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 7 , !dbg !34
27
27
%2 = load i8 , ptr %arrayidx6 , align 1 , !dbg !34
28
28
%conv7 = sext i8 %2 to i32 , !dbg !34
29
29
%cmp8 = icmp eq i32 %conv7 , 99 , !dbg !35
30
30
call void @svf_assert (i1 noundef zeroext %cmp8 ), !dbg !36
31
- %arrayidx10 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 6 , !dbg !37
31
+ %arrayidx10 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 8 , !dbg !37
32
32
%3 = load i8 , ptr %arrayidx10 , align 1 , !dbg !37
33
33
%conv11 = sext i8 %3 to i32 , !dbg !37
34
- %cmp12 = icmp eq i32 %conv11 , 100 , !dbg !38
34
+ %cmp12 = icmp ne i32 %conv11 , 100 , !dbg !38
35
35
call void @svf_assert (i1 noundef zeroext %cmp12 ), !dbg !39
36
- %arrayidx14 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 7 , !dbg !40
37
- %4 = load i8 , ptr %arrayidx14 , align 1 , !dbg !40
38
- %conv15 = sext i8 %4 to i32 , !dbg !40
39
- %cmp16 = icmp eq i32 %conv15 , 101 , !dbg !41
40
- call void @svf_assert (i1 noundef zeroext %cmp16 ), !dbg !42
41
- %arrayidx18 = getelementptr inbounds [10 x i8 ], ptr %buffer , i64 0 , i64 8 , !dbg !43
42
- %5 = load i8 , ptr %arrayidx18 , align 1 , !dbg !43
43
- %conv19 = sext i8 %5 to i32 , !dbg !43
44
- %cmp20 = icmp ne i32 %conv19 , 102 , !dbg !44
45
- call void @svf_assert (i1 noundef zeroext %cmp20 ), !dbg !45
46
- ret i32 0 , !dbg !46
36
+ ret i32 0 , !dbg !40
47
37
}
48
38
49
39
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
@@ -67,7 +57,7 @@ attributes #3 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-pr
67
57
68
58
!0 = !DIGlobalVariableExpression (var: !1 , expr: !DIExpression ())
69
59
!1 = distinct !DIGlobalVariable (scope: null , file: !2 , line: 7 , type: !3 , isLocal: true , isDefinition: true )
70
- !2 = !DIFile (filename: "test14 .c" , directory: "/Users/z5489735/2023/0718/Software-Security-Analysis/Assignment-3/Tests/buf" )
60
+ !2 = !DIFile (filename: "test6 .c" , directory: "/Users/z5489735/2023/0718/Software-Security-Analysis/teaching /Assignment-3/Tests/buf" )
71
61
!3 = !DICompositeType (tag: DW_TAG_array_type, baseType: !4 , size: 56 , elements: !5 )
72
62
!4 = !DIBasicType (name: "char" , size: 8 , encoding: DW_ATE_signed_char)
73
63
!5 = !{!6 }
@@ -105,10 +95,4 @@ attributes #3 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-pr
105
95
!37 = !DILocation (line: 11 , column: 16 , scope: !16 )
106
96
!38 = !DILocation (line: 11 , column: 26 , scope: !16 )
107
97
!39 = !DILocation (line: 11 , column: 5 , scope: !16 )
108
- !40 = !DILocation (line: 12 , column: 16 , scope: !16 )
109
- !41 = !DILocation (line: 12 , column: 26 , scope: !16 )
110
- !42 = !DILocation (line: 12 , column: 5 , scope: !16 )
111
- !43 = !DILocation (line: 13 , column: 16 , scope: !16 )
112
- !44 = !DILocation (line: 13 , column: 26 , scope: !16 )
113
- !45 = !DILocation (line: 13 , column: 5 , scope: !16 )
114
- !46 = !DILocation (line: 14 , column: 5 , scope: !16 )
98
+ !40 = !DILocation (line: 12 , column: 5 , scope: !16 )
0 commit comments