llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp47hrbyln.c'
source_filename = "/tmp/tmp47hrbyln.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-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47hrbyln.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-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqez2frad.c'
source_filename = "/tmp/tmpqez2frad.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-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"Found it! Smallest num that can be divided by 1-20 with 0 remainder is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2520, ptr %2, align 4
br label %4
4: ; preds = %16, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 990000000
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 @findRem(i32 noundef %8)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
br label %19
15: ; preds = %7
br label %16
16: ; preds = %15
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %2, align 4
br label %4, !llvm.loop !6
19: ; preds = %12, %4
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i32 @findRem(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqez2frad.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-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"Found it! Smallest num that can be divided by 1-20 with 0 remainder is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2520, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 990000000
br i1 %5, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %15
%7 = load i32, ptr %2, align 4
%8 = call i32 @findRem(i32 noundef %7)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i32, ptr %2, align 4
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %12)
br label %20
14: ; preds = %6
br label %15
15: ; preds = %14
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %18, 990000000
br i1 %19, label %6, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %15
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %20
20: ; preds = %.loopexit, %11
%21 = load i32, ptr %1, align 4
ret i32 %21
}
declare i32 @findRem(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2i474x08.c'
source_filename = "/tmp/tmp2i474x08.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-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"_start\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"_end\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"\7FELF\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"lseek\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [36 x i8] c"Not ELF nor a.out. Don't blame me.\0A\00", align 1
@.str.6 = private unnamed_addr constant [48 x i8] c"Couldn't find headers signature in the kernel.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"close\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca %struct.stat, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 3
%22 = load ptr, ptr %21, align 8
%23 = call i64 @stat(ptr noundef %22, ptr noundef %16)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 3
%28 = load ptr, ptr %27, align 8
%29 = call i32 @die(ptr noundef %28)
br label %30
30: ; preds = %25, %2
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call ptr @fopen(ptr noundef %33, ptr noundef @.str)
store ptr %34, ptr %15, align 8
%35 = load ptr, ptr %15, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %42, label %37
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @die(ptr noundef %40)
br label %42
42: ; preds = %37, %30
br label %43
43: ; preds = %67, %42
%44 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%45 = load ptr, ptr %15, align 8
%46 = call i64 @fgets(ptr noundef %44, i32 noundef 1024, ptr noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %68
48: ; preds = %43
%49 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%50 = getelementptr inbounds i8, ptr %49, i64 19
%51 = call i32 @strcmp(ptr noundef %50, ptr noundef @.str.1)
%52 = icmp ne i32 %51, 0
br i1 %52, label %57, label %53
53: ; preds = %48
%54 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%55 = getelementptr inbounds i8, ptr %54, i64 8
%56 = call i32 @strtoul(ptr noundef %55, ptr noundef null, i32 noundef 16)
store i32 %56, ptr %12, align 4
br label %67
57: ; preds = %48
%58 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%59 = getelementptr inbounds i8, ptr %58, i64 19
%60 = call i32 @strcmp(ptr noundef %59, ptr noundef @.str.2)
%61 = icmp ne i32 %60, 0
br i1 %61, label %66, label %62
62: ; preds = %57
%63 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%64 = getelementptr inbounds i8, ptr %63, i64 8
%65 = call i32 @strtoul(ptr noundef %64, ptr noundef null, i32 noundef 16)
store i32 %65, ptr %13, align 4
br label %66
66: ; preds = %62, %57
br label %67
67: ; preds = %66, %53
br label %43, !llvm.loop !6
68: ; preds = %43
%69 = load ptr, ptr %15, align 8
%70 = call i32 @fclose(ptr noundef %69)
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 1
%73 = load ptr, ptr %72, align 8
%74 = load i32, ptr @O_RDWR, align 4
%75 = call i32 @open(ptr noundef %73, i32 noundef %74)
store i32 %75, ptr %17, align 4
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %82
77: ; preds = %68
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = call i32 @die(ptr noundef %80)
br label %82
82: ; preds = %77, %68
%83 = load i32, ptr %17, align 4
%84 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%85 = call i32 @read(i32 noundef %83, ptr noundef %84, i32 noundef 512)
%86 = icmp ne i32 %85, 512
br i1 %86, label %87, label %92
87: ; preds = %82
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 1
%90 = load ptr, ptr %89, align 8
%91 = call i32 @die(ptr noundef %90)
br label %92
92: ; preds = %87, %82
%93 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%94 = call i32 @memcmp(ptr noundef %93, ptr noundef @.str.3, i32 noundef 4)
%95 = icmp ne i32 %94, 0
br i1 %95, label %131, label %96
96: ; preds = %92
%97 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%98 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%99 = getelementptr inbounds i8, ptr %98, i64 28
%100 = load i32, ptr %99, align 4
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %97, i64 %101
store ptr %102, ptr %19, align 8
%103 = load ptr, ptr %19, align 8
%104 = getelementptr inbounds i32, ptr %103, i64 1
%105 = load i32, ptr %104, align 4
%106 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%107 = getelementptr inbounds i8, ptr %106, i64 24
%108 = load i32, ptr %107, align 4
%109 = add i32 %105, %108
%110 = load ptr, ptr %19, align 8
%111 = getelementptr inbounds i32, ptr %110, i64 2
%112 = load i32, ptr %111, align 4
%113 = sub i32 %109, %112
store i32 %113, ptr %9, align 4
%114 = load i32, ptr %17, align 4
%115 = load i32, ptr %9, align 4
%116 = call i64 @lseek(i32 noundef %114, i32 noundef %115, i32 noundef 0)
%117 = icmp slt i64 %116, 0
br i1 %117, label %118, label %120
118: ; preds = %96
%119 = call i32 @die(ptr noundef @.str.4)
br label %120
120: ; preds = %118, %96
%121 = load i32, ptr %17, align 4
%122 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%123 = call i32 @read(i32 noundef %121, ptr noundef %122, i32 noundef 512)
%124 = icmp ne i32 %123, 512
br i1 %124, label %125, label %130
125: ; preds = %120
%126 = load ptr, ptr %5, align 8
%127 = getelementptr inbounds ptr, ptr %126, i64 1
%128 = load ptr, ptr %127, align 8
%129 = call i32 @die(ptr noundef %128)
br label %130
130: ; preds = %125, %120
store i32 0, ptr %10, align 4
br label %141
131: ; preds = %92
%132 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%133 = load i32, ptr %132, align 16
%134 = icmp eq i32 %133, 16974087
br i1 %134, label %135, label %136
135: ; preds = %131
store i32 32, ptr %10, align 4
store i32 32, ptr %9, align 4
br label %140
136: ; preds = %131
%137 = load i32, ptr @stderr, align 4
%138 = call i32 @fprintf(i32 noundef %137, ptr noundef @.str.5)
%139 = call i32 @exit(i32 noundef 1) #3
unreachable
140: ; preds = %135
br label %141
141: ; preds = %140, %130
%142 = load i32, ptr %9, align 4
store i32 %142, ptr %11, align 4
%143 = load i32, ptr %10, align 4
%144 = icmp eq i32 %143, 32
br i1 %144, label %145, label %166
145: ; preds = %141
%146 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 40
%147 = load i8, ptr %146, align 8
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 72
br i1 %149, label %150, label %166
150: ; preds = %145
%151 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 41
%152 = load i8, ptr %151, align 1
%153 = sext i8 %152 to i32
%154 = icmp eq i32 %153, 100
br i1 %154, label %155, label %166
155: ; preds = %150
%156 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 42
%157 = load i8, ptr %156, align 2
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 114
br i1 %159, label %160, label %166
160: ; preds = %155
%161 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 43
%162 = load i8, ptr %161, align 1
%163 = sext i8 %162 to i32
%164 = icmp eq i32 %163, 83
br i1 %164, label %165, label %166
165: ; preds = %160
store i32 50, ptr %14, align 4
br label %249
166: ; preds = %160, %155, %150, %145, %141
%167 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%168 = load i32, ptr %10, align 4
%169 = zext i32 %168 to i64
%170 = getelementptr inbounds i8, ptr %167, i64 %169
%171 = getelementptr inbounds i8, ptr %170, i64 2
%172 = load i16, ptr %171, align 2
%173 = zext i16 %172 to i32
%174 = shl i32 %173, 2
%175 = sub nsw i32 %174, 512
%176 = load i32, ptr %9, align 4
%177 = add i32 %176, %175
store i32 %177, ptr %9, align 4
%178 = load i32, ptr %17, align 4
%179 = load i32, ptr %9, align 4
%180 = call i64 @lseek(i32 noundef %178, i32 noundef %179, i32 noundef 0)
%181 = icmp slt i64 %180, 0
br i1 %181, label %182, label %184
182: ; preds = %166
%183 = call i32 @die(ptr noundef @.str.4)
br label %184
184: ; preds = %182, %166
%185 = load i32, ptr %17, align 4
%186 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%187 = call i32 @read(i32 noundef %185, ptr noundef %186, i32 noundef 1024)
%188 = icmp ne i32 %187, 1024
br i1 %188, label %189, label %194
189: ; preds = %184
%190 = load ptr, ptr %5, align 8
%191 = getelementptr inbounds ptr, ptr %190, i64 1
%192 = load ptr, ptr %191, align 8
%193 = call i32 @die(ptr noundef %192)
br label %194
194: ; preds = %189, %184
%195 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store ptr %195, ptr %7, align 8
%196 = load ptr, ptr %7, align 8
%197 = getelementptr inbounds i8, ptr %196, i64 512
store ptr %197, ptr %8, align 8
br label %198
198: ; preds = %227, %194
%199 = load ptr, ptr %7, align 8
%200 = load ptr, ptr %8, align 8
%201 = icmp ult ptr %199, %200
br i1 %201, label %202, label %230
202: ; preds = %198
%203 = load ptr, ptr %7, align 8
%204 = load i8, ptr %203, align 1
%205 = sext i8 %204 to i32
%206 = icmp eq i32 %205, 72
br i1 %206, label %207, label %226
207: ; preds = %202
%208 = load ptr, ptr %7, align 8
%209 = getelementptr inbounds i8, ptr %208, i64 1
%210 = load i8, ptr %209, align 1
%211 = sext i8 %210 to i32
%212 = icmp eq i32 %211, 100
br i1 %212, label %213, label %226
213: ; preds = %207
%214 = load ptr, ptr %7, align 8
%215 = getelementptr inbounds i8, ptr %214, i64 2
%216 = load i8, ptr %215, align 1
%217 = sext i8 %216 to i32
%218 = icmp eq i32 %217, 114
br i1 %218, label %219, label %226
219: ; preds = %213
%220 = load ptr, ptr %7, align 8
%221 = getelementptr inbounds i8, ptr %220, i64 3
%222 = load i8, ptr %221, align 1
%223 = sext i8 %222 to i32
%224 = icmp eq i32 %223, 83
br i1 %224, label %225, label %226
225: ; preds = %219
br label %230
226: ; preds = %219, %213, %207, %202
br label %227
227: ; preds = %226
%228 = load ptr, ptr %7, align 8
%229 = getelementptr inbounds i8, ptr %228, i64 4
store ptr %229, ptr %7, align 8
br label %198, !llvm.loop !8
230: ; preds = %225, %198
%231 = load ptr, ptr %7, align 8
%232 = load ptr, ptr %8, align 8
%233 = icmp eq ptr %231, %232
br i1 %233, label %234, label %238
234: ; preds = %230
%235 = load i32, ptr @stderr, align 4
%236 = call i32 @fprintf(i32 noundef %235, ptr noundef @.str.6)
%237 = call i32 @exit(i32 noundef 1) #3
unreachable
238: ; preds = %230
%239 = load i32, ptr %9, align 4
%240 = zext i32 %239 to i64
%241 = load ptr, ptr %7, align 8
%242 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%243 = ptrtoint ptr %241 to i64
%244 = ptrtoint ptr %242 to i64
%245 = sub i64 %243, %244
%246 = add nsw i64 %240, %245
%247 = add nsw i64 %246, 10
%248 = trunc i64 %247 to i32
store i32 %248, ptr %14, align 4
br label %249
249: ; preds = %238, %165
%250 = load i32, ptr %17, align 4
%251 = load i32, ptr %14, align 4
%252 = call i64 @lseek(i32 noundef %250, i32 noundef %251, i32 noundef 0)
%253 = icmp slt i64 %252, 0
br i1 %253, label %254, label %256
254: ; preds = %249
%255 = call i32 @die(ptr noundef @.str.4)
br label %256
256: ; preds = %254, %249
%257 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store i32 0, ptr %257, align 16
%258 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%259 = getelementptr inbounds i8, ptr %258, i64 4
store i32 16777216, ptr %259, align 4
%260 = load i32, ptr %13, align 4
%261 = add i32 %260, 32
%262 = add i32 %261, 8191
%263 = and i32 %262, -8192
%264 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%265 = getelementptr inbounds i8, ptr %264, i64 8
store i32 %263, ptr %265, align 4
%266 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%267 = load i32, ptr %266, align 4
%268 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%269 = getelementptr inbounds i8, ptr %268, i64 12
store i32 %267, ptr %269, align 4
%270 = load i32, ptr %17, align 4
%271 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%272 = getelementptr inbounds i8, ptr %271, i64 2
%273 = call i32 @write(i32 noundef %270, ptr noundef %272, i32 noundef 14)
%274 = icmp ne i32 %273, 14
br i1 %274, label %275, label %280
275: ; preds = %256
%276 = load ptr, ptr %5, align 8
%277 = getelementptr inbounds ptr, ptr %276, i64 1
%278 = load ptr, ptr %277, align 8
%279 = call i32 @die(ptr noundef %278)
br label %280
280: ; preds = %275, %256
%281 = load i32, ptr %17, align 4
%282 = call i64 @lseek(i32 noundef %281, i32 noundef 4, i32 noundef 0)
%283 = icmp slt i64 %282, 0
br i1 %283, label %284, label %286
284: ; preds = %280
%285 = call i32 @die(ptr noundef @.str.4)
br label %286
286: ; preds = %284, %280
%287 = load i32, ptr %13, align 4
%288 = add i32 %287, 32
%289 = add i32 %288, 8191
%290 = and i32 %289, -8192
%291 = zext i32 %290 to i64
%292 = load i32, ptr %12, align 4
%293 = zext i32 %292 to i64
%294 = and i64 %293, -4194304
%295 = sub i64 %291, %294
%296 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%297 = load i32, ptr %296, align 4
%298 = zext i32 %297 to i64
%299 = add i64 %295, %298
%300 = trunc i64 %299 to i32
%301 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store i32 %300, ptr %301, align 16
%302 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%303 = getelementptr inbounds i8, ptr %302, i64 4
store i32 0, ptr %303, align 4
%304 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%305 = getelementptr inbounds i8, ptr %304, i64 8
store i32 0, ptr %305, align 4
%306 = load i32, ptr %17, align 4
%307 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%308 = call i32 @write(i32 noundef %306, ptr noundef %307, i32 noundef 12)
%309 = icmp ne i32 %308, 12
br i1 %309, label %310, label %315
310: ; preds = %286
%311 = load ptr, ptr %5, align 8
%312 = getelementptr inbounds ptr, ptr %311, i64 1
%313 = load ptr, ptr %312, align 8
%314 = call i32 @die(ptr noundef %313)
br label %315
315: ; preds = %310, %286
%316 = load i32, ptr %17, align 4
%317 = load i32, ptr %11, align 4
%318 = load i32, ptr %12, align 4
%319 = sub i32 %317, %318
%320 = load i32, ptr %13, align 4
%321 = add i32 %320, 32
%322 = add i32 %321, 8191
%323 = and i32 %322, -8192
%324 = add i32 %319, %323
%325 = call i64 @lseek(i32 noundef %316, i32 noundef %324, i32 noundef 0)
%326 = icmp slt i64 %325, 0
br i1 %326, label %327, label %329
327: ; preds = %315
%328 = call i32 @die(ptr noundef @.str.4)
br label %329
329: ; preds = %327, %315
%330 = load ptr, ptr %5, align 8
%331 = getelementptr inbounds ptr, ptr %330, i64 3
%332 = load ptr, ptr %331, align 8
%333 = load i32, ptr @O_RDONLY, align 4
%334 = call i32 @open(ptr noundef %332, i32 noundef %333)
store i32 %334, ptr %18, align 4
%335 = icmp slt i32 %334, 0
br i1 %335, label %336, label %341
336: ; preds = %329
%337 = load ptr, ptr %5, align 8
%338 = getelementptr inbounds ptr, ptr %337, i64 3
%339 = load ptr, ptr %338, align 8
%340 = call i32 @die(ptr noundef %339)
br label %341
341: ; preds = %336, %329
br label %342
342: ; preds = %359, %341
%343 = load i32, ptr %18, align 4
%344 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%345 = call i32 @read(i32 noundef %343, ptr noundef %344, i32 noundef 1024)
store i32 %345, ptr %9, align 4
%346 = icmp ugt i32 %345, 0
br i1 %346, label %347, label %360
347: ; preds = %342
%348 = load i32, ptr %17, align 4
%349 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%350 = load i32, ptr %9, align 4
%351 = call i32 @write(i32 noundef %348, ptr noundef %349, i32 noundef %350)
%352 = load i32, ptr %9, align 4
%353 = icmp ne i32 %351, %352
br i1 %353, label %354, label %359
354: ; preds = %347
%355 = load ptr, ptr %5, align 8
%356 = getelementptr inbounds ptr, ptr %355, i64 1
%357 = load ptr, ptr %356, align 8
%358 = call i32 @die(ptr noundef %357)
br label %359
359: ; preds = %354, %347
br label %342, !llvm.loop !9
360: ; preds = %342
%361 = load i32, ptr %17, align 4
%362 = call i64 @close(i32 noundef %361)
%363 = icmp slt i64 %362, 0
br i1 %363, label %364, label %366
364: ; preds = %360
%365 = call i32 @die(ptr noundef @.str.7)
br label %366
366: ; preds = %364, %360
%367 = load i32, ptr %18, align 4
%368 = call i64 @close(i32 noundef %367)
%369 = icmp slt i64 %368, 0
br i1 %369, label %370, label %372
370: ; preds = %366
%371 = call i32 @die(ptr noundef @.str.7)
br label %372
372: ; preds = %370, %366
ret i32 0
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2i474x08.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-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"_start\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"_end\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"\7FELF\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"lseek\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [36 x i8] c"Not ELF nor a.out. Don't blame me.\0A\00", align 1
@.str.6 = private unnamed_addr constant [48 x i8] c"Couldn't find headers signature in the kernel.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"close\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca %struct.stat, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 3
%22 = load ptr, ptr %21, align 8
%23 = call i64 @stat(ptr noundef %22, ptr noundef %16)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 3
%28 = load ptr, ptr %27, align 8
%29 = call i32 @die(ptr noundef %28)
br label %30
30: ; preds = %25, %2
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call ptr @fopen(ptr noundef %33, ptr noundef @.str)
store ptr %34, ptr %15, align 8
%35 = load ptr, ptr %15, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %42, label %37
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @die(ptr noundef %40)
br label %42
42: ; preds = %37, %30
%43 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%44 = load ptr, ptr %15, align 8
%45 = call i64 @fgets(ptr noundef %43, i32 noundef 1024, ptr noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %.lr.ph, label %70
.lr.ph: ; preds = %42
br label %47
47: ; preds = %.lr.ph, %66
%48 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%49 = getelementptr inbounds i8, ptr %48, i64 19
%50 = call i32 @strcmp(ptr noundef %49, ptr noundef @.str.1)
%51 = icmp ne i32 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %47
%53 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%54 = getelementptr inbounds i8, ptr %53, i64 8
%55 = call i32 @strtoul(ptr noundef %54, ptr noundef null, i32 noundef 16)
store i32 %55, ptr %12, align 4
br label %66
56: ; preds = %47
%57 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%58 = getelementptr inbounds i8, ptr %57, i64 19
%59 = call i32 @strcmp(ptr noundef %58, ptr noundef @.str.2)
%60 = icmp ne i32 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %56
%62 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%63 = getelementptr inbounds i8, ptr %62, i64 8
%64 = call i32 @strtoul(ptr noundef %63, ptr noundef null, i32 noundef 16)
store i32 %64, ptr %13, align 4
br label %65
65: ; preds = %61, %56
br label %66
66: ; preds = %65, %52
%67 = load ptr, ptr %15, align 8
%68 = call i64 @fgets(ptr noundef %43, i32 noundef 1024, ptr noundef %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %47, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %70
70: ; preds = %._crit_edge, %42
%71 = load ptr, ptr %15, align 8
%72 = call i32 @fclose(ptr noundef %71)
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds ptr, ptr %73, i64 1
%75 = load ptr, ptr %74, align 8
%76 = load i32, ptr @O_RDWR, align 4
%77 = call i32 @open(ptr noundef %75, i32 noundef %76)
store i32 %77, ptr %17, align 4
%78 = icmp slt i32 %77, 0
br i1 %78, label %79, label %84
79: ; preds = %70
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds ptr, ptr %80, i64 1
%82 = load ptr, ptr %81, align 8
%83 = call i32 @die(ptr noundef %82)
br label %84
84: ; preds = %79, %70
%85 = load i32, ptr %17, align 4
%86 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%87 = call i32 @read(i32 noundef %85, ptr noundef %86, i32 noundef 512)
%88 = icmp ne i32 %87, 512
br i1 %88, label %89, label %94
89: ; preds = %84
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds ptr, ptr %90, i64 1
%92 = load ptr, ptr %91, align 8
%93 = call i32 @die(ptr noundef %92)
br label %94
94: ; preds = %89, %84
%95 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%96 = call i32 @memcmp(ptr noundef %95, ptr noundef @.str.3, i32 noundef 4)
%97 = icmp ne i32 %96, 0
br i1 %97, label %133, label %98
98: ; preds = %94
%99 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%100 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%101 = getelementptr inbounds i8, ptr %100, i64 28
%102 = load i32, ptr %101, align 4
%103 = zext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %99, i64 %103
store ptr %104, ptr %19, align 8
%105 = load ptr, ptr %19, align 8
%106 = getelementptr inbounds i32, ptr %105, i64 1
%107 = load i32, ptr %106, align 4
%108 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%109 = getelementptr inbounds i8, ptr %108, i64 24
%110 = load i32, ptr %109, align 4
%111 = add i32 %107, %110
%112 = load ptr, ptr %19, align 8
%113 = getelementptr inbounds i32, ptr %112, i64 2
%114 = load i32, ptr %113, align 4
%115 = sub i32 %111, %114
store i32 %115, ptr %9, align 4
%116 = load i32, ptr %17, align 4
%117 = load i32, ptr %9, align 4
%118 = call i64 @lseek(i32 noundef %116, i32 noundef %117, i32 noundef 0)
%119 = icmp slt i64 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %98
%121 = call i32 @die(ptr noundef @.str.4)
br label %122
122: ; preds = %120, %98
%123 = load i32, ptr %17, align 4
%124 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%125 = call i32 @read(i32 noundef %123, ptr noundef %124, i32 noundef 512)
%126 = icmp ne i32 %125, 512
br i1 %126, label %127, label %132
127: ; preds = %122
%128 = load ptr, ptr %5, align 8
%129 = getelementptr inbounds ptr, ptr %128, i64 1
%130 = load ptr, ptr %129, align 8
%131 = call i32 @die(ptr noundef %130)
br label %132
132: ; preds = %127, %122
store i32 0, ptr %10, align 4
br label %143
133: ; preds = %94
%134 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%135 = load i32, ptr %134, align 16
%136 = icmp eq i32 %135, 16974087
br i1 %136, label %137, label %138
137: ; preds = %133
store i32 32, ptr %10, align 4
store i32 32, ptr %9, align 4
br label %142
138: ; preds = %133
%139 = load i32, ptr @stderr, align 4
%140 = call i32 @fprintf(i32 noundef %139, ptr noundef @.str.5)
%141 = call i32 @exit(i32 noundef 1) #3
unreachable
142: ; preds = %137
br label %143
143: ; preds = %142, %132
%144 = load i32, ptr %9, align 4
store i32 %144, ptr %11, align 4
%145 = load i32, ptr %10, align 4
%146 = icmp eq i32 %145, 32
br i1 %146, label %147, label %168
147: ; preds = %143
%148 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 40
%149 = load i8, ptr %148, align 8
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 72
br i1 %151, label %152, label %168
152: ; preds = %147
%153 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 41
%154 = load i8, ptr %153, align 1
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 100
br i1 %156, label %157, label %168
157: ; preds = %152
%158 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 42
%159 = load i8, ptr %158, align 2
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 114
br i1 %161, label %162, label %168
162: ; preds = %157
%163 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 43
%164 = load i8, ptr %163, align 1
%165 = sext i8 %164 to i32
%166 = icmp eq i32 %165, 83
br i1 %166, label %167, label %168
167: ; preds = %162
store i32 50, ptr %14, align 4
br label %253
168: ; preds = %162, %157, %152, %147, %143
%169 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%170 = load i32, ptr %10, align 4
%171 = zext i32 %170 to i64
%172 = getelementptr inbounds i8, ptr %169, i64 %171
%173 = getelementptr inbounds i8, ptr %172, i64 2
%174 = load i16, ptr %173, align 2
%175 = zext i16 %174 to i32
%176 = shl i32 %175, 2
%177 = sub nsw i32 %176, 512
%178 = load i32, ptr %9, align 4
%179 = add i32 %178, %177
store i32 %179, ptr %9, align 4
%180 = load i32, ptr %17, align 4
%181 = load i32, ptr %9, align 4
%182 = call i64 @lseek(i32 noundef %180, i32 noundef %181, i32 noundef 0)
%183 = icmp slt i64 %182, 0
br i1 %183, label %184, label %186
184: ; preds = %168
%185 = call i32 @die(ptr noundef @.str.4)
br label %186
186: ; preds = %184, %168
%187 = load i32, ptr %17, align 4
%188 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%189 = call i32 @read(i32 noundef %187, ptr noundef %188, i32 noundef 1024)
%190 = icmp ne i32 %189, 1024
br i1 %190, label %191, label %196
191: ; preds = %186
%192 = load ptr, ptr %5, align 8
%193 = getelementptr inbounds ptr, ptr %192, i64 1
%194 = load ptr, ptr %193, align 8
%195 = call i32 @die(ptr noundef %194)
br label %196
196: ; preds = %191, %186
%197 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store ptr %197, ptr %7, align 8
%198 = load ptr, ptr %7, align 8
%199 = getelementptr inbounds i8, ptr %198, i64 512
store ptr %199, ptr %8, align 8
%200 = load ptr, ptr %7, align 8
%201 = load ptr, ptr %8, align 8
%202 = icmp ult ptr %200, %201
br i1 %202, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %196
br label %203
203: ; preds = %.lr.ph2, %228
%204 = load ptr, ptr %7, align 8
%205 = load i8, ptr %204, align 1
%206 = sext i8 %205 to i32
%207 = icmp eq i32 %206, 72
br i1 %207, label %208, label %227
208: ; preds = %203
%209 = load ptr, ptr %7, align 8
%210 = getelementptr inbounds i8, ptr %209, i64 1
%211 = load i8, ptr %210, align 1
%212 = sext i8 %211 to i32
%213 = icmp eq i32 %212, 100
br i1 %213, label %214, label %227
214: ; preds = %208
%215 = load ptr, ptr %7, align 8
%216 = getelementptr inbounds i8, ptr %215, i64 2
%217 = load i8, ptr %216, align 1
%218 = sext i8 %217 to i32
%219 = icmp eq i32 %218, 114
br i1 %219, label %220, label %227
220: ; preds = %214
%221 = load ptr, ptr %7, align 8
%222 = getelementptr inbounds i8, ptr %221, i64 3
%223 = load i8, ptr %222, align 1
%224 = sext i8 %223 to i32
%225 = icmp eq i32 %224, 83
br i1 %225, label %226, label %227
226: ; preds = %220
br label %234
227: ; preds = %220, %214, %208, %203
br label %228
228: ; preds = %227
%229 = load ptr, ptr %7, align 8
%230 = getelementptr inbounds i8, ptr %229, i64 4
store ptr %230, ptr %7, align 8
%231 = load ptr, ptr %7, align 8
%232 = load ptr, ptr %8, align 8
%233 = icmp ult ptr %231, %232
br i1 %233, label %203, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %228
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %196
br label %234
234: ; preds = %.loopexit, %226
%235 = load ptr, ptr %7, align 8
%236 = load ptr, ptr %8, align 8
%237 = icmp eq ptr %235, %236
br i1 %237, label %238, label %242
238: ; preds = %234
%239 = load i32, ptr @stderr, align 4
%240 = call i32 @fprintf(i32 noundef %239, ptr noundef @.str.6)
%241 = call i32 @exit(i32 noundef 1) #3
unreachable
242: ; preds = %234
%243 = load i32, ptr %9, align 4
%244 = zext i32 %243 to i64
%245 = load ptr, ptr %7, align 8
%246 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%247 = ptrtoint ptr %245 to i64
%248 = ptrtoint ptr %246 to i64
%249 = sub i64 %247, %248
%250 = add nsw i64 %244, %249
%251 = add nsw i64 %250, 10
%252 = trunc i64 %251 to i32
store i32 %252, ptr %14, align 4
br label %253
253: ; preds = %242, %167
%254 = load i32, ptr %17, align 4
%255 = load i32, ptr %14, align 4
%256 = call i64 @lseek(i32 noundef %254, i32 noundef %255, i32 noundef 0)
%257 = icmp slt i64 %256, 0
br i1 %257, label %258, label %260
258: ; preds = %253
%259 = call i32 @die(ptr noundef @.str.4)
br label %260
260: ; preds = %258, %253
%261 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store i32 0, ptr %261, align 16
%262 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%263 = getelementptr inbounds i8, ptr %262, i64 4
store i32 16777216, ptr %263, align 4
%264 = load i32, ptr %13, align 4
%265 = add i32 %264, 32
%266 = add i32 %265, 8191
%267 = and i32 %266, -8192
%268 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%269 = getelementptr inbounds i8, ptr %268, i64 8
store i32 %267, ptr %269, align 4
%270 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%271 = load i32, ptr %270, align 4
%272 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%273 = getelementptr inbounds i8, ptr %272, i64 12
store i32 %271, ptr %273, align 4
%274 = load i32, ptr %17, align 4
%275 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%276 = getelementptr inbounds i8, ptr %275, i64 2
%277 = call i32 @write(i32 noundef %274, ptr noundef %276, i32 noundef 14)
%278 = icmp ne i32 %277, 14
br i1 %278, label %279, label %284
279: ; preds = %260
%280 = load ptr, ptr %5, align 8
%281 = getelementptr inbounds ptr, ptr %280, i64 1
%282 = load ptr, ptr %281, align 8
%283 = call i32 @die(ptr noundef %282)
br label %284
284: ; preds = %279, %260
%285 = load i32, ptr %17, align 4
%286 = call i64 @lseek(i32 noundef %285, i32 noundef 4, i32 noundef 0)
%287 = icmp slt i64 %286, 0
br i1 %287, label %288, label %290
288: ; preds = %284
%289 = call i32 @die(ptr noundef @.str.4)
br label %290
290: ; preds = %288, %284
%291 = load i32, ptr %13, align 4
%292 = add i32 %291, 32
%293 = add i32 %292, 8191
%294 = and i32 %293, -8192
%295 = zext i32 %294 to i64
%296 = load i32, ptr %12, align 4
%297 = zext i32 %296 to i64
%298 = and i64 %297, -4194304
%299 = sub i64 %295, %298
%300 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%301 = load i32, ptr %300, align 4
%302 = zext i32 %301 to i64
%303 = add i64 %299, %302
%304 = trunc i64 %303 to i32
%305 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store i32 %304, ptr %305, align 16
%306 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%307 = getelementptr inbounds i8, ptr %306, i64 4
store i32 0, ptr %307, align 4
%308 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%309 = getelementptr inbounds i8, ptr %308, i64 8
store i32 0, ptr %309, align 4
%310 = load i32, ptr %17, align 4
%311 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%312 = call i32 @write(i32 noundef %310, ptr noundef %311, i32 noundef 12)
%313 = icmp ne i32 %312, 12
br i1 %313, label %314, label %319
314: ; preds = %290
%315 = load ptr, ptr %5, align 8
%316 = getelementptr inbounds ptr, ptr %315, i64 1
%317 = load ptr, ptr %316, align 8
%318 = call i32 @die(ptr noundef %317)
br label %319
319: ; preds = %314, %290
%320 = load i32, ptr %17, align 4
%321 = load i32, ptr %11, align 4
%322 = load i32, ptr %12, align 4
%323 = sub i32 %321, %322
%324 = load i32, ptr %13, align 4
%325 = add i32 %324, 32
%326 = add i32 %325, 8191
%327 = and i32 %326, -8192
%328 = add i32 %323, %327
%329 = call i64 @lseek(i32 noundef %320, i32 noundef %328, i32 noundef 0)
%330 = icmp slt i64 %329, 0
br i1 %330, label %331, label %333
331: ; preds = %319
%332 = call i32 @die(ptr noundef @.str.4)
br label %333
333: ; preds = %331, %319
%334 = load ptr, ptr %5, align 8
%335 = getelementptr inbounds ptr, ptr %334, i64 3
%336 = load ptr, ptr %335, align 8
%337 = load i32, ptr @O_RDONLY, align 4
%338 = call i32 @open(ptr noundef %336, i32 noundef %337)
store i32 %338, ptr %18, align 4
%339 = icmp slt i32 %338, 0
br i1 %339, label %340, label %345
340: ; preds = %333
%341 = load ptr, ptr %5, align 8
%342 = getelementptr inbounds ptr, ptr %341, i64 3
%343 = load ptr, ptr %342, align 8
%344 = call i32 @die(ptr noundef %343)
br label %345
345: ; preds = %340, %333
%346 = load i32, ptr %18, align 4
%347 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%348 = call i32 @read(i32 noundef %346, ptr noundef %347, i32 noundef 1024)
store i32 %348, ptr %9, align 4
%349 = icmp ugt i32 %348, 0
br i1 %349, label %.lr.ph4, label %366
.lr.ph4: ; preds = %345
br label %350
350: ; preds = %.lr.ph4, %362
%351 = load i32, ptr %17, align 4
%352 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%353 = load i32, ptr %9, align 4
%354 = call i32 @write(i32 noundef %351, ptr noundef %352, i32 noundef %353)
%355 = load i32, ptr %9, align 4
%356 = icmp ne i32 %354, %355
br i1 %356, label %357, label %362
357: ; preds = %350
%358 = load ptr, ptr %5, align 8
%359 = getelementptr inbounds ptr, ptr %358, i64 1
%360 = load ptr, ptr %359, align 8
%361 = call i32 @die(ptr noundef %360)
br label %362
362: ; preds = %357, %350
%363 = load i32, ptr %18, align 4
%364 = call i32 @read(i32 noundef %363, ptr noundef %347, i32 noundef 1024)
store i32 %364, ptr %9, align 4
%365 = icmp ugt i32 %364, 0
br i1 %365, label %350, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %362
br label %366
366: ; preds = %._crit_edge5, %345
%367 = load i32, ptr %17, align 4
%368 = call i64 @close(i32 noundef %367)
%369 = icmp slt i64 %368, 0
br i1 %369, label %370, label %372
370: ; preds = %366
%371 = call i32 @die(ptr noundef @.str.7)
br label %372
372: ; preds = %370, %366
%373 = load i32, ptr %18, align 4
%374 = call i64 @close(i32 noundef %373)
%375 = icmp slt i64 %374, 0
br i1 %375, label %376, label %378
376: ; preds = %372
%377 = call i32 @die(ptr noundef @.str.7)
br label %378
378: ; preds = %376, %372
ret i32 0
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpz0loy5w6.c'
source_filename = "/tmp/tmpz0loy5w6.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_scale_1() #0 {
%1 = call i32 @set_scale(double noundef 1.000000e+00)
ret void
}
declare i32 @set_scale(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz0loy5w6.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_scale_1() #0 {
%1 = call i32 @set_scale(double noundef 1.000000e+00)
ret void
}
declare i32 @set_scale(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj7u7yaa8.c'
source_filename = "/tmp/tmpj7u7yaa8.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @singlerandomvaluegenerator() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 256
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj7u7yaa8.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @singlerandomvaluegenerator() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 256
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl0n1ncxd.c'
source_filename = "/tmp/tmpl0n1ncxd.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-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"\0ADigite um n\C3\BAmero inteiro e positivo: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"\0AO n\C3\BAmero %f \C3\A9 inteiro e positivo!\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"\0AFim do programa\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
br label %3
3: ; preds = %12, %0
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %3
%7 = load float, ptr %2, align 4
%8 = fcmp olt float %7, 0.000000e+00
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = load float, ptr %2, align 4
%11 = fcmp oeq float %10, 0.000000e+00
br label %12
12: ; preds = %9, %6
%13 = phi i1 [ true, %6 ], [ %11, %9 ]
br i1 %13, label %3, label %14, !llvm.loop !6
14: ; preds = %12
%15 = load float, ptr %2, align 4
%16 = fpext float %15 to double
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%19 = call i32 @system(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl0n1ncxd.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-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"\0ADigite um n\C3\BAmero inteiro e positivo: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"\0AO n\C3\BAmero %f \C3\A9 inteiro e positivo!\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"\0AFim do programa\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
br label %3
3: ; preds = %12, %0
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %3
%7 = load float, ptr %2, align 4
%8 = fcmp olt float %7, 0.000000e+00
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = load float, ptr %2, align 4
%11 = fcmp oeq float %10, 0.000000e+00
br label %12
12: ; preds = %9, %6
%13 = phi i1 [ true, %6 ], [ %11, %9 ]
br i1 %13, label %3, label %14, !llvm.loop !6
14: ; preds = %12
%15 = load float, ptr %2, align 4
%16 = fpext float %15 to double
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%19 = call i32 @system(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpy3hr636q.c'
source_filename = "/tmp/tmpy3hr636q.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy3hr636q.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmswlkjp6.c'
source_filename = "/tmp/tmpmswlkjp6.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__wrap_dlopen(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call ptr @dlopen(ptr noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmswlkjp6.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__wrap_dlopen(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call ptr @dlopen(ptr noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6mlw7cpn.c'
source_filename = "/tmp/tmp6mlw7cpn.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6mlw7cpn.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpma9lplhn.c'
source_filename = "/tmp/tmpma9lplhn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @analogReadX(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @ino(i32 noundef %5)
%7 = load i32, ptr %4, align 4
%8 = call i32 @analogRead(i32 noundef %7)
ret i32 %8
}
declare i32 @ino(i32 noundef) #1
declare i32 @analogRead(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpma9lplhn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @analogReadX(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @ino(i32 noundef %5)
%7 = load i32, ptr %4, align 4
%8 = call i32 @analogRead(i32 noundef %7)
ret i32 %8
}
declare i32 @ino(i32 noundef) #1
declare i32 @analogRead(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi1ybr7qt.c'
source_filename = "/tmp/tmpi1ybr7qt.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @elliptic_complete_second(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
%5 = load double, ptr %3, align 8
%6 = fsub double 1.000000e+00, %5
%7 = load double, ptr %3, align 8
%8 = fadd double 1.000000e+00, %7
%9 = fmul double %6, %8
store double %9, ptr %4, align 8
%10 = load double, ptr %4, align 8
%11 = fcmp ogt double %10, 0.000000e+00
br i1 %11, label %12, label %23
12: ; preds = %1
%13 = load double, ptr %4, align 8
%14 = call double @carlson_elliptic_rf(double noundef 0.000000e+00, double noundef %13, double noundef 1.000000e+00)
%15 = load double, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = fmul double %15, %16
%18 = load double, ptr %4, align 8
%19 = call double @carlson_elliptic_rd(double noundef 0.000000e+00, double noundef %18, double noundef 1.000000e+00)
%20 = fmul double %17, %19
%21 = fdiv double %20, 3.000000e+00
%22 = fsub double %14, %21
store double %22, ptr %2, align 8
br label %28
23: ; preds = %1
%24 = load double, ptr %4, align 8
%25 = fcmp olt double %24, 0.000000e+00
br i1 %25, label %26, label %27
26: ; preds = %23
store double -1.000000e+00, ptr %2, align 8
br label %28
27: ; preds = %23
store double 1.000000e+00, ptr %2, align 8
br label %28
28: ; preds = %27, %26, %12
%29 = load double, ptr %2, align 8
ret double %29
}
declare double @carlson_elliptic_rf(double noundef, double noundef, double noundef) #1
declare double @carlson_elliptic_rd(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi1ybr7qt.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @elliptic_complete_second(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
%5 = load double, ptr %3, align 8
%6 = fsub double 1.000000e+00, %5
%7 = load double, ptr %3, align 8
%8 = fadd double 1.000000e+00, %7
%9 = fmul double %6, %8
store double %9, ptr %4, align 8
%10 = load double, ptr %4, align 8
%11 = fcmp ogt double %10, 0.000000e+00
br i1 %11, label %12, label %23
12: ; preds = %1
%13 = load double, ptr %4, align 8
%14 = call double @carlson_elliptic_rf(double noundef 0.000000e+00, double noundef %13, double noundef 1.000000e+00)
%15 = load double, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = fmul double %15, %16
%18 = load double, ptr %4, align 8
%19 = call double @carlson_elliptic_rd(double noundef 0.000000e+00, double noundef %18, double noundef 1.000000e+00)
%20 = fmul double %17, %19
%21 = fdiv double %20, 3.000000e+00
%22 = fsub double %14, %21
store double %22, ptr %2, align 8
br label %28
23: ; preds = %1
%24 = load double, ptr %4, align 8
%25 = fcmp olt double %24, 0.000000e+00
br i1 %25, label %26, label %27
26: ; preds = %23
store double -1.000000e+00, ptr %2, align 8
br label %28
27: ; preds = %23
store double 1.000000e+00, ptr %2, align 8
br label %28
28: ; preds = %27, %26, %12
%29 = load double, ptr %2, align 8
ret double %29
}
declare double @carlson_elliptic_rf(double noundef, double noundef, double noundef) #1
declare double @carlson_elliptic_rd(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplikv4wtb.c'
source_filename = "/tmp/tmplikv4wtb.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @entree()
%3 = call i32 (...) @sombrero1()
%4 = call i32 (...) @sombrero2()
%5 = call i32 (...) @sombrero4()
%6 = call i32 (...) @sombrero3()
br label %7
7: ; preds = %0, %7
%8 = call i32 (...) @sombrero4()
br label %7
}
declare i32 @entree(...) #1
declare i32 @sombrero1(...) #1
declare i32 @sombrero2(...) #1
declare i32 @sombrero4(...) #1
declare i32 @sombrero3(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplikv4wtb.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @entree()
%3 = call i32 (...) @sombrero1()
%4 = call i32 (...) @sombrero2()
%5 = call i32 (...) @sombrero4()
%6 = call i32 (...) @sombrero3()
br label %7
7: ; preds = %7, %0
%8 = call i32 (...) @sombrero4()
br label %7
}
declare i32 @entree(...) #1
declare i32 @sombrero1(...) #1
declare i32 @sombrero2(...) #1
declare i32 @sombrero4(...) #1
declare i32 @sombrero3(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk83h159s.c'
source_filename = "/tmp/tmpk83h159s.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %62, %0
%4 = load i32, ptr %1, align 4
%5 = icmp slt i32 %4, 4
br i1 %5, label %6, label %65
6: ; preds = %3
%7 = load i32, ptr %1, align 4
%8 = call i64 @bla(i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = add nsw i64 %10, %8
%12 = trunc i64 %11 to i32
store i32 %12, ptr %2, align 4
%13 = load i32, ptr %1, align 4
%14 = mul nsw i32 2, %13
%15 = call i64 @bla(i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = sext i32 %16 to i64
%18 = add nsw i64 %17, %15
%19 = trunc i64 %18 to i32
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %1, align 4
%21 = mul nsw i32 3, %20
%22 = call i64 @bla(i32 noundef %21)
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = add nsw i64 %24, %22
%26 = trunc i64 %25 to i32
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %1, align 4
%28 = mul nsw i32 4, %27
%29 = call i64 @bla(i32 noundef %28)
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = add nsw i64 %31, %29
%33 = trunc i64 %32 to i32
store i32 %33, ptr %2, align 4
%34 = load i32, ptr %1, align 4
%35 = mul nsw i32 5, %34
%36 = call i64 @bla(i32 noundef %35)
%37 = load i32, ptr %2, align 4
%38 = sext i32 %37 to i64
%39 = add nsw i64 %38, %36
%40 = trunc i64 %39 to i32
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %1, align 4
%42 = mul nsw i32 6, %41
%43 = call i64 @bla(i32 noundef %42)
%44 = load i32, ptr %2, align 4
%45 = sext i32 %44 to i64
%46 = add nsw i64 %45, %43
%47 = trunc i64 %46 to i32
store i32 %47, ptr %2, align 4
%48 = load i32, ptr %1, align 4
%49 = mul nsw i32 7, %48
%50 = call i64 @bla(i32 noundef %49)
%51 = load i32, ptr %2, align 4
%52 = sext i32 %51 to i64
%53 = add nsw i64 %52, %50
%54 = trunc i64 %53 to i32
store i32 %54, ptr %2, align 4
%55 = load i32, ptr %1, align 4
%56 = mul nsw i32 8, %55
%57 = call i64 @bla(i32 noundef %56)
%58 = load i32, ptr %2, align 4
%59 = sext i32 %58 to i64
%60 = add nsw i64 %59, %57
%61 = trunc i64 %60 to i32
store i32 %61, ptr %2, align 4
br label %62
62: ; preds = %6
%63 = load i32, ptr %1, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %1, align 4
br label %3, !llvm.loop !6
65: ; preds = %3
%66 = load i32, ptr %2, align 4
ret i32 %66
}
declare i64 @bla(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk83h159s.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 4
br i1 %4, label %.lr.ph, label %66
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %61
%6 = load i32, ptr %1, align 4
%7 = call i64 @bla(i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = add nsw i64 %9, %7
%11 = trunc i64 %10 to i32
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %1, align 4
%13 = mul nsw i32 2, %12
%14 = call i64 @bla(i32 noundef %13)
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = add nsw i64 %16, %14
%18 = trunc i64 %17 to i32
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %1, align 4
%20 = mul nsw i32 3, %19
%21 = call i64 @bla(i32 noundef %20)
%22 = load i32, ptr %2, align 4
%23 = sext i32 %22 to i64
%24 = add nsw i64 %23, %21
%25 = trunc i64 %24 to i32
store i32 %25, ptr %2, align 4
%26 = load i32, ptr %1, align 4
%27 = mul nsw i32 4, %26
%28 = call i64 @bla(i32 noundef %27)
%29 = load i32, ptr %2, align 4
%30 = sext i32 %29 to i64
%31 = add nsw i64 %30, %28
%32 = trunc i64 %31 to i32
store i32 %32, ptr %2, align 4
%33 = load i32, ptr %1, align 4
%34 = mul nsw i32 5, %33
%35 = call i64 @bla(i32 noundef %34)
%36 = load i32, ptr %2, align 4
%37 = sext i32 %36 to i64
%38 = add nsw i64 %37, %35
%39 = trunc i64 %38 to i32
store i32 %39, ptr %2, align 4
%40 = load i32, ptr %1, align 4
%41 = mul nsw i32 6, %40
%42 = call i64 @bla(i32 noundef %41)
%43 = load i32, ptr %2, align 4
%44 = sext i32 %43 to i64
%45 = add nsw i64 %44, %42
%46 = trunc i64 %45 to i32
store i32 %46, ptr %2, align 4
%47 = load i32, ptr %1, align 4
%48 = mul nsw i32 7, %47
%49 = call i64 @bla(i32 noundef %48)
%50 = load i32, ptr %2, align 4
%51 = sext i32 %50 to i64
%52 = add nsw i64 %51, %49
%53 = trunc i64 %52 to i32
store i32 %53, ptr %2, align 4
%54 = load i32, ptr %1, align 4
%55 = mul nsw i32 8, %54
%56 = call i64 @bla(i32 noundef %55)
%57 = load i32, ptr %2, align 4
%58 = sext i32 %57 to i64
%59 = add nsw i64 %58, %56
%60 = trunc i64 %59 to i32
store i32 %60, ptr %2, align 4
br label %61
61: ; preds = %5
%62 = load i32, ptr %1, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %1, align 4
%64 = load i32, ptr %1, align 4
%65 = icmp slt i32 %64, 4
br i1 %65, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %66
66: ; preds = %._crit_edge, %0
%67 = load i32, ptr %2, align 4
ret i32 %67
}
declare i64 @bla(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2pv54u_0.c'
source_filename = "/tmp/tmp2pv54u_0.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-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Congrats, you rolled a %d!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @time(ptr noundef null)
%4 = call i32 @srand(i32 noundef %3)
%5 = call i32 (...) @rand()
%6 = srem i32 %5, 6
%7 = add nsw i32 %6, 1
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2pv54u_0.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-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Congrats, you rolled a %d!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @time(ptr noundef null)
%4 = call i32 @srand(i32 noundef %3)
%5 = call i32 (...) @rand()
%6 = srem i32 %5, 6
%7 = add nsw i32 %6, 1
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppmiya6p5.c'
source_filename = "/tmp/tmppmiya6p5.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gen_TSTP() #0 {
%1 = alloca i32, align 4
%2 = call i32 @handle_TSTP(i32 noundef 0)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @handle_TSTP(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppmiya6p5.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gen_TSTP() #0 {
%1 = alloca i32, align 4
%2 = call i32 @handle_TSTP(i32 noundef 0)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @handle_TSTP(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphs5qp_kg.c'
source_filename = "/tmp/tmphs5qp_kg.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-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
store i32 3, ptr %4, align 4
store ptr %2, ptr %5, align 8
store ptr %3, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call ptr @f1(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %14, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %15)
%17 = call ptr @f2(ptr noundef %5, ptr noundef %6)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %20, align 4
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %19, i32 noundef %21)
ret i32 0
}
declare ptr @f1(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @f2(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphs5qp_kg.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-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
store i32 3, ptr %4, align 4
store ptr %2, ptr %5, align 8
store ptr %3, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call ptr @f1(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %14, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %15)
%17 = call ptr @f2(ptr noundef %5, ptr noundef %6)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %20, align 4
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %19, i32 noundef %21)
ret i32 0
}
declare ptr @f1(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @f2(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppi99f0am.c'
source_filename = "/tmp/tmppi99f0am.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppi99f0am.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxqsjj590.c'
source_filename = "/tmp/tmpxqsjj590.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @RemapAllGadgets() #0 {
%1 = call i32 @MultiMapGadgets(i32 noundef 58)
ret void
}
declare i32 @MultiMapGadgets(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxqsjj590.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @RemapAllGadgets() #0 {
%1 = call i32 @MultiMapGadgets(i32 noundef 58)
ret void
}
declare i32 @MultiMapGadgets(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq4ygiuig.c'
source_filename = "/tmp/tmpq4ygiuig.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @initnode(i32 noundef 5)
store ptr %2, ptr %1, align 8
%3 = call ptr @initnode(i32 noundef 6)
%4 = call i32 @add(ptr noundef %3)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @printnode(ptr noundef %5)
ret i32 0
}
declare ptr @initnode(i32 noundef) #1
declare i32 @add(ptr noundef) #1
declare i32 @printnode(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq4ygiuig.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @initnode(i32 noundef 5)
store ptr %2, ptr %1, align 8
%3 = call ptr @initnode(i32 noundef 6)
%4 = call i32 @add(ptr noundef %3)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @printnode(ptr noundef %5)
ret i32 0
}
declare ptr @initnode(i32 noundef) #1
declare i32 @add(ptr noundef) #1
declare i32 @printnode(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp37f9027u.c'
source_filename = "/tmp/tmp37f9027u.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-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%i %i %i\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %25, %0
%7 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %10, label %28
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
%14 = srem i32 %13, 24
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %14, %15
%17 = srem i32 %16, 24
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %10
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 24
br label %25
23: ; preds = %10
%24 = load i32, ptr %5, align 4
br label %25
25: ; preds = %23, %20
%26 = phi i32 [ %22, %20 ], [ %24, %23 ]
%27 = call i32 @printf(ptr noundef @.str.1, i32 noundef %26)
br label %6, !llvm.loop !6
28: ; preds = %6
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp37f9027u.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-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%i %i %i\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i64, ptr @EOF, align 8
%8 = icmp ne i64 %6, %7
br i1 %8, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %24
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %10, %11
%13 = srem i32 %12, 24
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %13, %14
%16 = srem i32 %15, 24
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %9
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 24
br label %24
22: ; preds = %9
%23 = load i32, ptr %5, align 4
br label %24
24: ; preds = %22, %19
%25 = phi i32 [ %21, %19 ], [ %23, %22 ]
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%28 = load i64, ptr @EOF, align 8
%29 = icmp ne i64 %27, %28
br i1 %29, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7k7odigq.c'
source_filename = "/tmp/tmp7k7odigq.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-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Adirhaltbetrieb\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Nur Warmwasser\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Heizen und Warmwasser\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"UNKNOWN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_mode_text() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr (...) @read_mode()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store ptr @.str, ptr %1, align 8
br label %15
8: ; preds = %0
%9 = load ptr, ptr %2, align 8
%10 = call i32 @atoi(ptr noundef %9)
switch i32 %10, label %14 [
i32 0, label %11
i32 1, label %12
i32 2, label %13
]
11: ; preds = %8
store ptr @.str.1, ptr %1, align 8
br label %15
12: ; preds = %8
store ptr @.str.2, ptr %1, align 8
br label %15
13: ; preds = %8
store ptr @.str.3, ptr %1, align 8
br label %15
14: ; preds = %8
store ptr @.str.4, ptr %1, align 8
br label %15
15: ; preds = %14, %13, %12, %11, %7
%16 = load ptr, ptr %1, align 8
ret ptr %16
}
declare ptr @read_mode(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7k7odigq.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-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Adirhaltbetrieb\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Nur Warmwasser\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Heizen und Warmwasser\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"UNKNOWN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_mode_text() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr (...) @read_mode()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store ptr @.str, ptr %1, align 8
br label %15
8: ; preds = %0
%9 = load ptr, ptr %2, align 8
%10 = call i32 @atoi(ptr noundef %9)
switch i32 %10, label %14 [
i32 0, label %11
i32 1, label %12
i32 2, label %13
]
11: ; preds = %8
store ptr @.str.1, ptr %1, align 8
br label %15
12: ; preds = %8
store ptr @.str.2, ptr %1, align 8
br label %15
13: ; preds = %8
store ptr @.str.3, ptr %1, align 8
br label %15
14: ; preds = %8
store ptr @.str.4, ptr %1, align 8
br label %15
15: ; preds = %14, %13, %12, %11, %7
%16 = load ptr, ptr %1, align 8
ret ptr %16
}
declare ptr @read_mode(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphgg7e9yf.c'
source_filename = "/tmp/tmphgg7e9yf.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g5_runMC_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @g5_runMC(i32 noundef %4)
ret void
}
declare i32 @g5_runMC(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphgg7e9yf.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g5_runMC_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @g5_runMC(i32 noundef %4)
ret void
}
declare i32 @g5_runMC(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5rhgd11o.c'
source_filename = "/tmp/tmp5rhgd11o.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-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"LAUNCHING THE (Q16_8_SIGN) RESOURCE AUTOTEST...\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"- TEST OF THE (Q16_8_SIGN) RESOURCE => FAILED !\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c" + %d COMPUTATION(s) BEFORE ERROR...\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c" + OPERANDE 1 [%d]\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c" + ASM INSTR. [%d]\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c" + REF C CODE [%d]\0A\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"- TEST OF THE (Q16_8_SIGN) RESOURCE => OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Q16_8_SIGN_AUTOTEST() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %33, %0
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 10
br i1 %10, label %11, label %36
11: ; preds = %8
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 65536
%14 = sub nsw i32 %13, 32768
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 @instr_q168sign(i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @prog_q168sign(i32 noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %32
22: ; preds = %11
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = load i32, ptr %3, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
%28 = load i32, ptr %5, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %28)
%30 = load i32, ptr %6, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %30)
store i32 0, ptr %1, align 4
br label %38
32: ; preds = %11
br label %33
33: ; preds = %32
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %8, !llvm.loop !6
36: ; preds = %8
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %1, align 4
br label %38
38: ; preds = %36, %22
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @rand(...) #1
declare i32 @instr_q168sign(i32 noundef) #1
declare i32 @prog_q168sign(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5rhgd11o.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-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"LAUNCHING THE (Q16_8_SIGN) RESOURCE AUTOTEST...\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"- TEST OF THE (Q16_8_SIGN) RESOURCE => FAILED !\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c" + %d COMPUTATION(s) BEFORE ERROR...\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c" + OPERANDE 1 [%d]\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c" + ASM INSTR. [%d]\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c" + REF C CODE [%d]\0A\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"- TEST OF THE (Q16_8_SIGN) RESOURCE => OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Q16_8_SIGN_AUTOTEST() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %.lr.ph, label %37
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %32
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 65536
%13 = sub nsw i32 %12, 32768
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @instr_q168sign(i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = call i32 @prog_q168sign(i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp ne i32 %18, %19
br i1 %20, label %21, label %31
21: ; preds = %10
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%23 = load i32, ptr %3, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
%25 = load i32, ptr %4, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %27)
%29 = load i32, ptr %6, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %29)
store i32 0, ptr %1, align 4
br label %39
31: ; preds = %10
br label %32
32: ; preds = %31
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 10
br i1 %36, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %0
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %1, align 4
br label %39
39: ; preds = %37, %21
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @rand(...) #1
declare i32 @instr_q168sign(i32 noundef) #1
declare i32 @prog_q168sign(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnkvp1jpn.c'
source_filename = "/tmp/tmpnkvp1jpn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_nxweb_close_good_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnkvp1jpn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_nxweb_close_good_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp22dae5ah.c'
source_filename = "/tmp/tmp22dae5ah.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-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32 }
@__time_to_tm.days_thru_month = internal constant [12 x i32] [i32 31, i32 61, i32 92, i32 122, i32 153, i32 184, i32 214, i32 245, i32 275, i32 306, i32 337, i32 366], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__time_to_tm(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, -951868800
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %2
%24 = load i32, ptr %3, align 4
%25 = sdiv i32 %24, 86400
br label %32
26: ; preds = %2
%27 = load i32, ptr %3, align 4
%28 = sub nsw i32 86400, %27
%29 = sub nsw i32 %28, 1
%30 = sdiv i32 %29, 86400
%31 = sub nsw i32 0, %30
br label %32
32: ; preds = %26, %23
%33 = phi i32 [ %25, %23 ], [ %31, %26 ]
%34 = sext i32 %33 to i64
store i64 %34, ptr %5, align 8
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = load i64, ptr %5, align 8
%38 = mul nsw i64 %37, 86400
%39 = sub nsw i64 %36, %38
%40 = trunc i64 %39 to i32
store i32 %40, ptr %15, align 4
%41 = load i32, ptr %15, align 4
%42 = sdiv i32 %41, 3600
store i32 %42, ptr %13, align 4
%43 = load i32, ptr %13, align 4
%44 = mul nsw i32 %43, 3600
%45 = load i32, ptr %15, align 4
%46 = sub nsw i32 %45, %44
store i32 %46, ptr %15, align 4
%47 = load i32, ptr %15, align 4
%48 = sdiv i32 %47, 60
store i32 %48, ptr %14, align 4
%49 = load i32, ptr %14, align 4
%50 = mul nsw i32 %49, 60
%51 = load i32, ptr %15, align 4
%52 = sub nsw i32 %51, %50
store i32 %52, ptr %15, align 4
%53 = load i64, ptr %5, align 8
%54 = add nsw i64 3, %53
%55 = srem i64 %54, 7
%56 = trunc i64 %55 to i32
store i32 %56, ptr %16, align 4
%57 = load i32, ptr %16, align 4
%58 = icmp slt i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %32
%60 = load i32, ptr %16, align 4
%61 = add nsw i32 %60, 7
store i32 %61, ptr %16, align 4
br label %62
62: ; preds = %59, %32
store i32 -942868800, ptr %3, align 4
%63 = load i64, ptr %5, align 8
%64 = icmp sgt i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i64, ptr %5, align 8
%67 = sdiv i64 %66, 146097
br label %74
68: ; preds = %62
%69 = load i64, ptr %5, align 8
%70 = sub nsw i64 146097, %69
%71 = sub nsw i64 %70, 1
%72 = sdiv i64 %71, 146097
%73 = sub nsw i64 0, %72
br label %74
74: ; preds = %68, %65
%75 = phi i64 [ %67, %65 ], [ %73, %68 ]
%76 = trunc i64 %75 to i32
store i32 %76, ptr %10, align 4
%77 = load i64, ptr %5, align 8
%78 = load i32, ptr %10, align 4
%79 = mul nsw i32 %78, 146097
%80 = sext i32 %79 to i64
%81 = sub nsw i64 %77, %80
%82 = trunc i64 %81 to i32
store i32 %82, ptr %6, align 4
%83 = load i32, ptr %6, align 4
%84 = udiv i32 %83, 36524
store i32 %84, ptr %8, align 4
%85 = load i32, ptr %8, align 4
%86 = icmp eq i32 %85, 4
br i1 %86, label %87, label %90
87: ; preds = %74
%88 = load i32, ptr %8, align 4
%89 = add i32 %88, -1
store i32 %89, ptr %8, align 4
br label %90
90: ; preds = %87, %74
%91 = load i32, ptr %8, align 4
%92 = mul i32 %91, 36524
%93 = load i32, ptr %6, align 4
%94 = sub i32 %93, %92
store i32 %94, ptr %6, align 4
%95 = load i32, ptr %6, align 4
%96 = udiv i32 %95, 1461
store i32 %96, ptr %7, align 4
%97 = load i32, ptr %7, align 4
%98 = icmp eq i32 %97, 25
br i1 %98, label %99, label %102
99: ; preds = %90
%100 = load i32, ptr %7, align 4
%101 = add i32 %100, -1
store i32 %101, ptr %7, align 4
br label %102
102: ; preds = %99, %90
%103 = load i32, ptr %7, align 4
%104 = mul i32 %103, 1461
%105 = load i32, ptr %6, align 4
%106 = sub i32 %105, %104
store i32 %106, ptr %6, align 4
%107 = load i32, ptr %6, align 4
%108 = udiv i32 %107, 365
store i32 %108, ptr %9, align 4
%109 = load i32, ptr %9, align 4
%110 = icmp eq i32 %109, 4
br i1 %110, label %111, label %114
111: ; preds = %102
%112 = load i32, ptr %9, align 4
%113 = add nsw i32 %112, -1
store i32 %113, ptr %9, align 4
br label %114
114: ; preds = %111, %102
%115 = load i32, ptr %9, align 4
%116 = mul nsw i32 %115, 365
%117 = load i32, ptr %6, align 4
%118 = sub i32 %117, %116
store i32 %118, ptr %6, align 4
%119 = load i32, ptr %9, align 4
%120 = icmp ne i32 %119, 0
br i1 %120, label %130, label %121
121: ; preds = %114
%122 = load i32, ptr %7, align 4
%123 = icmp ne i32 %122, 0
br i1 %123, label %128, label %124
124: ; preds = %121
%125 = load i32, ptr %8, align 4
%126 = icmp ne i32 %125, 0
%127 = xor i1 %126, true
br label %128
128: ; preds = %124, %121
%129 = phi i1 [ true, %121 ], [ %127, %124 ]
br label %130
130: ; preds = %128, %114
%131 = phi i1 [ false, %114 ], [ %129, %128 ]
%132 = zext i1 %131 to i32
store i32 %132, ptr %12, align 4
%133 = load i32, ptr %6, align 4
%134 = add i32 %133, 31
%135 = add i32 %134, 28
%136 = load i32, ptr %12, align 4
%137 = add i32 %135, %136
store i32 %137, ptr %18, align 4
%138 = load i32, ptr %18, align 4
%139 = load i32, ptr %12, align 4
%140 = add nsw i32 365, %139
%141 = icmp sge i32 %138, %140
br i1 %141, label %142, label %147
142: ; preds = %130
%143 = load i32, ptr %12, align 4
%144 = add nsw i32 365, %143
%145 = load i32, ptr %18, align 4
%146 = sub nsw i32 %145, %144
store i32 %146, ptr %18, align 4
br label %147
147: ; preds = %142, %130
%148 = load i32, ptr %7, align 4
%149 = mul i32 4, %148
%150 = load i32, ptr %8, align 4
%151 = mul i32 100, %150
%152 = add i32 %149, %151
%153 = load i32, ptr %10, align 4
%154 = mul nsw i32 400, %153
%155 = add i32 %152, %154
%156 = add i32 %155, 2000
%157 = sub i32 %156, 1900
%158 = load i32, ptr %9, align 4
%159 = add i32 %158, %157
store i32 %159, ptr %9, align 4
store i32 0, ptr %11, align 4
br label %160
160: ; preds = %168, %147
%161 = load i32, ptr %11, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [12 x i32], ptr @__time_to_tm.days_thru_month, i64 0, i64 %162
%164 = load i32, ptr %163, align 4
%165 = load i32, ptr %6, align 4
%166 = icmp ule i32 %164, %165
br i1 %166, label %167, label %171
167: ; preds = %160
br label %168
168: ; preds = %167
%169 = load i32, ptr %11, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %11, align 4
br label %160, !llvm.loop !6
171: ; preds = %160
%172 = load i32, ptr %11, align 4
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %182
174: ; preds = %171
%175 = load i32, ptr %11, align 4
%176 = sub nsw i32 %175, 1
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [12 x i32], ptr @__time_to_tm.days_thru_month, i64 0, i64 %177
%179 = load i32, ptr %178, align 4
%180 = load i32, ptr %6, align 4
%181 = sub i32 %180, %179
store i32 %181, ptr %6, align 4
br label %182
182: ; preds = %174, %171
%183 = load i32, ptr %11, align 4
%184 = add nsw i32 %183, 2
store i32 %184, ptr %11, align 4
%185 = load i32, ptr %11, align 4
%186 = icmp sge i32 %185, 12
br i1 %186, label %187, label %192
187: ; preds = %182
%188 = load i32, ptr %11, align 4
%189 = sub nsw i32 %188, 12
store i32 %189, ptr %11, align 4
%190 = load i32, ptr %9, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %9, align 4
br label %192
192: ; preds = %187, %182
%193 = load i32, ptr %6, align 4
%194 = add i32 %193, 1
store i32 %194, ptr %17, align 4
%195 = load i32, ptr %15, align 4
%196 = load ptr, ptr %4, align 8
%197 = getelementptr inbounds %struct.tm, ptr %196, i32 0, i32 0
store i32 %195, ptr %197, align 4
%198 = load i32, ptr %14, align 4
%199 = load ptr, ptr %4, align 8
%200 = getelementptr inbounds %struct.tm, ptr %199, i32 0, i32 1
store i32 %198, ptr %200, align 4
%201 = load i32, ptr %13, align 4
%202 = load ptr, ptr %4, align 8
%203 = getelementptr inbounds %struct.tm, ptr %202, i32 0, i32 2
store i32 %201, ptr %203, align 4
%204 = load i32, ptr %17, align 4
%205 = load ptr, ptr %4, align 8
%206 = getelementptr inbounds %struct.tm, ptr %205, i32 0, i32 3
store i32 %204, ptr %206, align 4
%207 = load i32, ptr %11, align 4
%208 = load ptr, ptr %4, align 8
%209 = getelementptr inbounds %struct.tm, ptr %208, i32 0, i32 4
store i32 %207, ptr %209, align 4
%210 = load i32, ptr %9, align 4
%211 = load ptr, ptr %4, align 8
%212 = getelementptr inbounds %struct.tm, ptr %211, i32 0, i32 5
store i32 %210, ptr %212, align 4
%213 = load i32, ptr %16, align 4
%214 = load ptr, ptr %4, align 8
%215 = getelementptr inbounds %struct.tm, ptr %214, i32 0, i32 6
store i32 %213, ptr %215, align 4
%216 = load i32, ptr %18, align 4
%217 = load ptr, ptr %4, align 8
%218 = getelementptr inbounds %struct.tm, ptr %217, i32 0, i32 7
store i32 %216, ptr %218, align 4
%219 = load ptr, ptr %4, align 8
ret ptr %219
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp22dae5ah.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-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32 }
@__time_to_tm.days_thru_month = internal constant [12 x i32] [i32 31, i32 61, i32 92, i32 122, i32 153, i32 184, i32 214, i32 245, i32 275, i32 306, i32 337, i32 366], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__time_to_tm(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, -951868800
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %2
%24 = load i32, ptr %3, align 4
%25 = sdiv i32 %24, 86400
br label %32
26: ; preds = %2
%27 = load i32, ptr %3, align 4
%28 = sub nsw i32 86400, %27
%29 = sub nsw i32 %28, 1
%30 = sdiv i32 %29, 86400
%31 = sub nsw i32 0, %30
br label %32
32: ; preds = %26, %23
%33 = phi i32 [ %25, %23 ], [ %31, %26 ]
%34 = sext i32 %33 to i64
store i64 %34, ptr %5, align 8
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = load i64, ptr %5, align 8
%38 = mul nsw i64 %37, 86400
%39 = sub nsw i64 %36, %38
%40 = trunc i64 %39 to i32
store i32 %40, ptr %15, align 4
%41 = load i32, ptr %15, align 4
%42 = sdiv i32 %41, 3600
store i32 %42, ptr %13, align 4
%43 = load i32, ptr %13, align 4
%44 = mul nsw i32 %43, 3600
%45 = load i32, ptr %15, align 4
%46 = sub nsw i32 %45, %44
store i32 %46, ptr %15, align 4
%47 = load i32, ptr %15, align 4
%48 = sdiv i32 %47, 60
store i32 %48, ptr %14, align 4
%49 = load i32, ptr %14, align 4
%50 = mul nsw i32 %49, 60
%51 = load i32, ptr %15, align 4
%52 = sub nsw i32 %51, %50
store i32 %52, ptr %15, align 4
%53 = load i64, ptr %5, align 8
%54 = add nsw i64 3, %53
%55 = srem i64 %54, 7
%56 = trunc i64 %55 to i32
store i32 %56, ptr %16, align 4
%57 = load i32, ptr %16, align 4
%58 = icmp slt i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %32
%60 = load i32, ptr %16, align 4
%61 = add nsw i32 %60, 7
store i32 %61, ptr %16, align 4
br label %62
62: ; preds = %59, %32
store i32 -942868800, ptr %3, align 4
%63 = load i64, ptr %5, align 8
%64 = icmp sgt i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i64, ptr %5, align 8
%67 = sdiv i64 %66, 146097
br label %74
68: ; preds = %62
%69 = load i64, ptr %5, align 8
%70 = sub nsw i64 146097, %69
%71 = sub nsw i64 %70, 1
%72 = sdiv i64 %71, 146097
%73 = sub nsw i64 0, %72
br label %74
74: ; preds = %68, %65
%75 = phi i64 [ %67, %65 ], [ %73, %68 ]
%76 = trunc i64 %75 to i32
store i32 %76, ptr %10, align 4
%77 = load i64, ptr %5, align 8
%78 = load i32, ptr %10, align 4
%79 = mul nsw i32 %78, 146097
%80 = sext i32 %79 to i64
%81 = sub nsw i64 %77, %80
%82 = trunc i64 %81 to i32
store i32 %82, ptr %6, align 4
%83 = load i32, ptr %6, align 4
%84 = udiv i32 %83, 36524
store i32 %84, ptr %8, align 4
%85 = load i32, ptr %8, align 4
%86 = icmp eq i32 %85, 4
br i1 %86, label %87, label %90
87: ; preds = %74
%88 = load i32, ptr %8, align 4
%89 = add i32 %88, -1
store i32 %89, ptr %8, align 4
br label %90
90: ; preds = %87, %74
%91 = load i32, ptr %8, align 4
%92 = mul i32 %91, 36524
%93 = load i32, ptr %6, align 4
%94 = sub i32 %93, %92
store i32 %94, ptr %6, align 4
%95 = load i32, ptr %6, align 4
%96 = udiv i32 %95, 1461
store i32 %96, ptr %7, align 4
%97 = load i32, ptr %7, align 4
%98 = icmp eq i32 %97, 25
br i1 %98, label %99, label %102
99: ; preds = %90
%100 = load i32, ptr %7, align 4
%101 = add i32 %100, -1
store i32 %101, ptr %7, align 4
br label %102
102: ; preds = %99, %90
%103 = load i32, ptr %7, align 4
%104 = mul i32 %103, 1461
%105 = load i32, ptr %6, align 4
%106 = sub i32 %105, %104
store i32 %106, ptr %6, align 4
%107 = load i32, ptr %6, align 4
%108 = udiv i32 %107, 365
store i32 %108, ptr %9, align 4
%109 = load i32, ptr %9, align 4
%110 = icmp eq i32 %109, 4
br i1 %110, label %111, label %114
111: ; preds = %102
%112 = load i32, ptr %9, align 4
%113 = add nsw i32 %112, -1
store i32 %113, ptr %9, align 4
br label %114
114: ; preds = %111, %102
%115 = load i32, ptr %9, align 4
%116 = mul nsw i32 %115, 365
%117 = load i32, ptr %6, align 4
%118 = sub i32 %117, %116
store i32 %118, ptr %6, align 4
%119 = load i32, ptr %9, align 4
%120 = icmp ne i32 %119, 0
br i1 %120, label %130, label %121
121: ; preds = %114
%122 = load i32, ptr %7, align 4
%123 = icmp ne i32 %122, 0
br i1 %123, label %128, label %124
124: ; preds = %121
%125 = load i32, ptr %8, align 4
%126 = icmp ne i32 %125, 0
%127 = xor i1 %126, true
br label %128
128: ; preds = %124, %121
%129 = phi i1 [ true, %121 ], [ %127, %124 ]
br label %130
130: ; preds = %128, %114
%131 = phi i1 [ false, %114 ], [ %129, %128 ]
%132 = zext i1 %131 to i32
store i32 %132, ptr %12, align 4
%133 = load i32, ptr %6, align 4
%134 = add i32 %133, 31
%135 = add i32 %134, 28
%136 = load i32, ptr %12, align 4
%137 = add i32 %135, %136
store i32 %137, ptr %18, align 4
%138 = load i32, ptr %18, align 4
%139 = load i32, ptr %12, align 4
%140 = add nsw i32 365, %139
%141 = icmp sge i32 %138, %140
br i1 %141, label %142, label %147
142: ; preds = %130
%143 = load i32, ptr %12, align 4
%144 = add nsw i32 365, %143
%145 = load i32, ptr %18, align 4
%146 = sub nsw i32 %145, %144
store i32 %146, ptr %18, align 4
br label %147
147: ; preds = %142, %130
%148 = load i32, ptr %7, align 4
%149 = mul i32 4, %148
%150 = load i32, ptr %8, align 4
%151 = mul i32 100, %150
%152 = add i32 %149, %151
%153 = load i32, ptr %10, align 4
%154 = mul nsw i32 400, %153
%155 = add i32 %152, %154
%156 = add i32 %155, 2000
%157 = sub i32 %156, 1900
%158 = load i32, ptr %9, align 4
%159 = add i32 %158, %157
store i32 %159, ptr %9, align 4
store i32 0, ptr %11, align 4
%160 = load i32, ptr %11, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [12 x i32], ptr @__time_to_tm.days_thru_month, i64 0, i64 %161
%163 = load i32, ptr %162, align 4
%164 = load i32, ptr %6, align 4
%165 = icmp ule i32 %163, %164
br i1 %165, label %.lr.ph, label %176
.lr.ph: ; preds = %147
br label %166
166: ; preds = %.lr.ph, %167
br label %167
167: ; preds = %166
%168 = load i32, ptr %11, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %11, align 4
%170 = load i32, ptr %11, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [12 x i32], ptr @__time_to_tm.days_thru_month, i64 0, i64 %171
%173 = load i32, ptr %172, align 4
%174 = load i32, ptr %6, align 4
%175 = icmp ule i32 %173, %174
br i1 %175, label %166, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %167
br label %176
176: ; preds = %._crit_edge, %147
%177 = load i32, ptr %11, align 4
%178 = icmp ne i32 %177, 0
br i1 %178, label %179, label %187
179: ; preds = %176
%180 = load i32, ptr %11, align 4
%181 = sub nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [12 x i32], ptr @__time_to_tm.days_thru_month, i64 0, i64 %182
%184 = load i32, ptr %183, align 4
%185 = load i32, ptr %6, align 4
%186 = sub i32 %185, %184
store i32 %186, ptr %6, align 4
br label %187
187: ; preds = %179, %176
%188 = load i32, ptr %11, align 4
%189 = add nsw i32 %188, 2
store i32 %189, ptr %11, align 4
%190 = load i32, ptr %11, align 4
%191 = icmp sge i32 %190, 12
br i1 %191, label %192, label %197
192: ; preds = %187
%193 = load i32, ptr %11, align 4
%194 = sub nsw i32 %193, 12
store i32 %194, ptr %11, align 4
%195 = load i32, ptr %9, align 4
%196 = add nsw i32 %195, 1
store i32 %196, ptr %9, align 4
br label %197
197: ; preds = %192, %187
%198 = load i32, ptr %6, align 4
%199 = add i32 %198, 1
store i32 %199, ptr %17, align 4
%200 = load i32, ptr %15, align 4
%201 = load ptr, ptr %4, align 8
%202 = getelementptr inbounds %struct.tm, ptr %201, i32 0, i32 0
store i32 %200, ptr %202, align 4
%203 = load i32, ptr %14, align 4
%204 = load ptr, ptr %4, align 8
%205 = getelementptr inbounds %struct.tm, ptr %204, i32 0, i32 1
store i32 %203, ptr %205, align 4
%206 = load i32, ptr %13, align 4
%207 = load ptr, ptr %4, align 8
%208 = getelementptr inbounds %struct.tm, ptr %207, i32 0, i32 2
store i32 %206, ptr %208, align 4
%209 = load i32, ptr %17, align 4
%210 = load ptr, ptr %4, align 8
%211 = getelementptr inbounds %struct.tm, ptr %210, i32 0, i32 3
store i32 %209, ptr %211, align 4
%212 = load i32, ptr %11, align 4
%213 = load ptr, ptr %4, align 8
%214 = getelementptr inbounds %struct.tm, ptr %213, i32 0, i32 4
store i32 %212, ptr %214, align 4
%215 = load i32, ptr %9, align 4
%216 = load ptr, ptr %4, align 8
%217 = getelementptr inbounds %struct.tm, ptr %216, i32 0, i32 5
store i32 %215, ptr %217, align 4
%218 = load i32, ptr %16, align 4
%219 = load ptr, ptr %4, align 8
%220 = getelementptr inbounds %struct.tm, ptr %219, i32 0, i32 6
store i32 %218, ptr %220, align 4
%221 = load i32, ptr %18, align 4
%222 = load ptr, ptr %4, align 8
%223 = getelementptr inbounds %struct.tm, ptr %222, i32 0, i32 7
store i32 %221, ptr %223, align 4
%224 = load ptr, ptr %4, align 8
ret ptr %224
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2uuv7zm0.c'
source_filename = "/tmp/tmp2uuv7zm0.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-pc-linux-gnu"
@gen_random.alphanum = internal constant [98 x i8] c"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \0A\09`~!@#$%^&*()-_=+[]\\{}|:\22;',./<>?\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_random(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %20, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %23
10: ; preds = %6
%11 = call i32 (...) @rand()
%12 = sext i32 %11 to i64
%13 = urem i64 %12, 97
%14 = getelementptr inbounds [98 x i8], ptr @gen_random.alphanum, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 %15, ptr %19, align 1
br label %20
20: ; preds = %10
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %6, !llvm.loop !6
23: ; preds = %6
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 0, ptr %27, align 1
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2uuv7zm0.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-pc-linux-gnu"
@gen_random.alphanum = internal constant [98 x i8] c"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \0A\09`~!@#$%^&*()-_=+[]\\{}|:\22;',./<>?\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_random(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %19
%10 = call i32 (...) @rand()
%11 = sext i32 %10 to i64
%12 = urem i64 %11, 97
%13 = getelementptr inbounds [98 x i8], ptr @gen_random.alphanum, i64 0, i64 %12
%14 = load i8, ptr %13, align 1
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
store i8 %14, ptr %18, align 1
br label %19
19: ; preds = %9
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %2
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwfxuz4w3.c'
source_filename = "/tmp/tmpwfxuz4w3.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-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"update grid!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @update_grid() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwfxuz4w3.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-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"update grid!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @update_grid() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6l42tih9.c'
source_filename = "/tmp/tmp6l42tih9.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wlReadByte(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %11
11: ; preds = %28, %3
%12 = load i32, ptr %9, align 4
%13 = icmp slt i32 %12, 8
br i1 %13, label %14, label %31
14: ; preds = %11
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %7, align 8
%18 = call i32 @wlReadBit(ptr noundef %15, ptr noundef %16, ptr noundef %17)
store i32 %18, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = load i32, ptr %10, align 4
store i32 %22, ptr %4, align 4
br label %33
23: ; preds = %14
%24 = load i32, ptr %8, align 4
%25 = shl i32 %24, 1
%26 = load i32, ptr %10, align 4
%27 = or i32 %25, %26
store i32 %27, ptr %8, align 4
br label %28
28: ; preds = %23
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %9, align 4
br label %11, !llvm.loop !6
31: ; preds = %11
%32 = load i32, ptr %8, align 4
store i32 %32, ptr %4, align 4
br label %33
33: ; preds = %31, %21
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i32 @wlReadBit(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6l42tih9.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wlReadByte(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %.lr.ph, label %32
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %27
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %7, align 8
%17 = call i32 @wlReadBit(ptr noundef %14, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %13
%21 = load i32, ptr %10, align 4
store i32 %21, ptr %4, align 4
br label %34
22: ; preds = %13
%23 = load i32, ptr %8, align 4
%24 = shl i32 %23, 1
%25 = load i32, ptr %10, align 4
%26 = or i32 %24, %25
store i32 %26, ptr %8, align 4
br label %27
27: ; preds = %22
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp slt i32 %30, 8
br i1 %31, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %3
%33 = load i32, ptr %8, align 4
store i32 %33, ptr %4, align 4
br label %34
34: ; preds = %32, %20
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @wlReadBit(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf6t_mvcx.c'
source_filename = "/tmp/tmpf6t_mvcx.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf6t_mvcx.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn4u35dq0.c'
source_filename = "/tmp/tmpn4u35dq0.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-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [50 x i8] c"[%s:%s:%s | %s-%s-%s] \1B[31mEpoch: ERROR:\0A\1B[0m%s\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SpitError(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [3 x [16 x i8]], align 16
%4 = alloca [3 x [16 x i8]], align 16
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 0
%6 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%7 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 1
%8 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%9 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 2
%10 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%11 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 0
%12 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
%13 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 1
%14 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%15 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 2
%16 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
%17 = call i32 @GetCurrentTime(ptr noundef %6, ptr noundef %8, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16)
%18 = load i32, ptr @stderr, align 4
%19 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 0
%20 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
%21 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 1
%22 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
%23 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 2
%24 = getelementptr inbounds [16 x i8], ptr %23, i64 0, i64 0
%25 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 0
%26 = getelementptr inbounds [16 x i8], ptr %25, i64 0, i64 0
%27 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 1
%28 = getelementptr inbounds [16 x i8], ptr %27, i64 0, i64 0
%29 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 2
%30 = getelementptr inbounds [16 x i8], ptr %29, i64 0, i64 0
%31 = load ptr, ptr %2, align 8
%32 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %20, ptr noundef %22, ptr noundef %24, ptr noundef %26, ptr noundef %28, ptr noundef %30, ptr noundef %31)
ret void
}
declare i32 @GetCurrentTime(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn4u35dq0.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-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [50 x i8] c"[%s:%s:%s | %s-%s-%s] \1B[31mEpoch: ERROR:\0A\1B[0m%s\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SpitError(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [3 x [16 x i8]], align 16
%4 = alloca [3 x [16 x i8]], align 16
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 0
%6 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%7 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 1
%8 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%9 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 2
%10 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%11 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 0
%12 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
%13 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 1
%14 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%15 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 2
%16 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
%17 = call i32 @GetCurrentTime(ptr noundef %6, ptr noundef %8, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16)
%18 = load i32, ptr @stderr, align 4
%19 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 0
%20 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
%21 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 1
%22 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
%23 = getelementptr inbounds [3 x [16 x i8]], ptr %3, i64 0, i64 2
%24 = getelementptr inbounds [16 x i8], ptr %23, i64 0, i64 0
%25 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 0
%26 = getelementptr inbounds [16 x i8], ptr %25, i64 0, i64 0
%27 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 1
%28 = getelementptr inbounds [16 x i8], ptr %27, i64 0, i64 0
%29 = getelementptr inbounds [3 x [16 x i8]], ptr %4, i64 0, i64 2
%30 = getelementptr inbounds [16 x i8], ptr %29, i64 0, i64 0
%31 = load ptr, ptr %2, align 8
%32 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %20, ptr noundef %22, ptr noundef %24, ptr noundef %26, ptr noundef %28, ptr noundef %30, ptr noundef %31)
ret void
}
declare i32 @GetCurrentTime(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsb4whlzl.c'
source_filename = "/tmp/tmpsb4whlzl.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MatrixCopy(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = mul nsw i32 %11, %12
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = trunc i64 %15 to i32
%17 = call i32 @memcpy(ptr noundef %9, ptr noundef %10, i32 noundef %16)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsb4whlzl.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MatrixCopy(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = mul nsw i32 %11, %12
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = trunc i64 %15 to i32
%17 = call i32 @memcpy(ptr noundef %9, ptr noundef %10, i32 noundef %16)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpie8vd9vg.c'
source_filename = "/tmp/tmpie8vd9vg.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-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"please send something!\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"/tmp/myfifio\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [19 x i8] c"open fifo error!\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"write fifo error!\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"write %s to the %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 1, %7
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @strcpy(ptr noundef %13, ptr noundef %16)
%18 = load i32, ptr @O_WRONLY, align 4
%19 = load i32, ptr @O_NONBLOCK, align 4
%20 = or i32 %18, %19
%21 = call i32 @open(ptr noundef @.str.1, i32 noundef %20, i32 noundef 0)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 -1, %22
br i1 %23, label %24, label %27
24: ; preds = %12
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %12
%28 = load i32, ptr %6, align 4
%29 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%30 = call i32 @write(i32 noundef %28, ptr noundef %29, i32 noundef 100)
%31 = icmp eq i32 -1, %30
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%34 = call i32 @exit(i32 noundef 1) #3
unreachable
35: ; preds = %27
%36 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %36, ptr noundef @.str.1)
br label %38
38: ; preds = %35
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpie8vd9vg.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-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"please send something!\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"/tmp/myfifio\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [19 x i8] c"open fifo error!\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"write fifo error!\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"write %s to the %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 1, %7
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @strcpy(ptr noundef %13, ptr noundef %16)
%18 = load i32, ptr @O_WRONLY, align 4
%19 = load i32, ptr @O_NONBLOCK, align 4
%20 = or i32 %18, %19
%21 = call i32 @open(ptr noundef @.str.1, i32 noundef %20, i32 noundef 0)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 -1, %22
br i1 %23, label %24, label %27
24: ; preds = %12
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %12
%28 = load i32, ptr %6, align 4
%29 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%30 = call i32 @write(i32 noundef %28, ptr noundef %29, i32 noundef 100)
%31 = icmp eq i32 -1, %30
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%34 = call i32 @exit(i32 noundef 1) #3
unreachable
35: ; preds = %27
%36 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %36, ptr noundef @.str.1)
br label %38
38: ; preds = %35
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxztgxedp.c'
source_filename = "/tmp/tmpxztgxedp.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-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"1 a = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"2 address of a = %p\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"3 b = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"4 address of b = %p\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"5 a = %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"6 b = %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"7 b = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 77, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
store ptr %1, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %8, align 4
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %3)
%13 = load ptr, ptr %2, align 8
store i32 -5, ptr %13, align 4
%14 = load i32, ptr %1, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %14)
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %16)
store i32 32, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxztgxedp.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-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"1 a = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"2 address of a = %p\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"3 b = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"4 address of b = %p\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"5 a = %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"6 b = %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"7 b = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 77, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
store ptr %1, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %8, align 4
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %3)
%13 = load ptr, ptr %2, align 8
store i32 -5, ptr %13, align 4
%14 = load i32, ptr %1, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %14)
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %16)
store i32 32, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplfytpved.c'
source_filename = "/tmp/tmplfytpved.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-pc-linux-gnu"
@SA_RESETHAND = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysv_signal(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr @SA_RESETHAND, align 4
%8 = call i32 @_signal(i32 noundef %5, i32 noundef %6, i32 noundef %7)
ret i32 %8
}
declare i32 @_signal(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplfytpved.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-pc-linux-gnu"
@SA_RESETHAND = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysv_signal(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr @SA_RESETHAND, align 4
%8 = call i32 @_signal(i32 noundef %5, i32 noundef %6, i32 noundef %7)
ret i32 %8
}
declare i32 @_signal(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk4xowyto.c'
source_filename = "/tmp/tmpk4xowyto.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ti_mom(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %10, align 8
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds double, ptr %17, i64 0
%19 = load double, ptr %18, align 8
%20 = fptosi double %19 to i32
store i32 %20, ptr %11, align 4
%21 = load ptr, ptr %9, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 0
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %12, align 8
%24 = load i32, ptr %11, align 4
%25 = icmp slt i32 %24, 1
br i1 %25, label %26, label %27
26: ; preds = %4
store i32 1, ptr %5, align 4
br label %75
27: ; preds = %4
%28 = load i32, ptr %6, align 4
%29 = load ptr, ptr %8, align 8
%30 = call i32 @ti_mom_start(ptr noundef %29)
%31 = icmp sle i32 %28, %30
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 0, ptr %5, align 4
br label %75
33: ; preds = %27
%34 = load i32, ptr %11, align 4
store i32 %34, ptr %13, align 4
br label %35
35: ; preds = %55, %33
%36 = load i32, ptr %13, align 4
%37 = load i32, ptr %6, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %58
39: ; preds = %35
%40 = load ptr, ptr %10, align 8
%41 = load i32, ptr %13, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %40, i64 %42
%44 = load double, ptr %43, align 8
%45 = load ptr, ptr %10, align 8
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %11, align 4
%48 = sub nsw i32 %46, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, ptr %45, i64 %49
%51 = load double, ptr %50, align 8
%52 = fsub double %44, %51
%53 = load ptr, ptr %12, align 8
%54 = getelementptr inbounds double, ptr %53, i32 1
store ptr %54, ptr %12, align 8
store double %52, ptr %53, align 8
br label %55
55: ; preds = %39
%56 = load i32, ptr %13, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %13, align 4
br label %35, !llvm.loop !6
58: ; preds = %35
%59 = load ptr, ptr %12, align 8
%60 = load ptr, ptr %9, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 0
%62 = load ptr, ptr %61, align 8
%63 = ptrtoint ptr %59 to i64
%64 = ptrtoint ptr %62 to i64
%65 = sub i64 %63, %64
%66 = sdiv exact i64 %65, 8
%67 = load i32, ptr %6, align 4
%68 = load ptr, ptr %8, align 8
%69 = call i32 @ti_mom_start(ptr noundef %68)
%70 = sub nsw i32 %67, %69
%71 = sext i32 %70 to i64
%72 = icmp eq i64 %66, %71
%73 = zext i1 %72 to i32
%74 = call i32 @assert(i32 noundef %73)
store i32 0, ptr %5, align 4
br label %75
75: ; preds = %58, %32, %26
%76 = load i32, ptr %5, align 4
ret i32 %76
}
declare i32 @ti_mom_start(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk4xowyto.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ti_mom(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %10, align 8
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds double, ptr %17, i64 0
%19 = load double, ptr %18, align 8
%20 = fptosi double %19 to i32
store i32 %20, ptr %11, align 4
%21 = load ptr, ptr %9, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 0
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %12, align 8
%24 = load i32, ptr %11, align 4
%25 = icmp slt i32 %24, 1
br i1 %25, label %26, label %27
26: ; preds = %4
store i32 1, ptr %5, align 4
br label %77
27: ; preds = %4
%28 = load i32, ptr %6, align 4
%29 = load ptr, ptr %8, align 8
%30 = call i32 @ti_mom_start(ptr noundef %29)
%31 = icmp sle i32 %28, %30
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 0, ptr %5, align 4
br label %77
33: ; preds = %27
%34 = load i32, ptr %11, align 4
store i32 %34, ptr %13, align 4
%35 = load i32, ptr %13, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph, label %60
.lr.ph: ; preds = %33
br label %38
38: ; preds = %.lr.ph, %54
%39 = load ptr, ptr %10, align 8
%40 = load i32, ptr %13, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load double, ptr %42, align 8
%44 = load ptr, ptr %10, align 8
%45 = load i32, ptr %13, align 4
%46 = load i32, ptr %11, align 4
%47 = sub nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %44, i64 %48
%50 = load double, ptr %49, align 8
%51 = fsub double %43, %50
%52 = load ptr, ptr %12, align 8
%53 = getelementptr inbounds double, ptr %52, i32 1
store ptr %53, ptr %12, align 8
store double %51, ptr %52, align 8
br label %54
54: ; preds = %38
%55 = load i32, ptr %13, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %13, align 4
%57 = load i32, ptr %13, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %33
%61 = load ptr, ptr %12, align 8
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 0
%64 = load ptr, ptr %63, align 8
%65 = ptrtoint ptr %61 to i64
%66 = ptrtoint ptr %64 to i64
%67 = sub i64 %65, %66
%68 = sdiv exact i64 %67, 8
%69 = load i32, ptr %6, align 4
%70 = load ptr, ptr %8, align 8
%71 = call i32 @ti_mom_start(ptr noundef %70)
%72 = sub nsw i32 %69, %71
%73 = sext i32 %72 to i64
%74 = icmp eq i64 %68, %73
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 noundef %75)
store i32 0, ptr %5, align 4
br label %77
77: ; preds = %60, %32, %26
%78 = load i32, ptr %5, align 4
ret i32 %78
}
declare i32 @ti_mom_start(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt2dx7ros.c'
source_filename = "/tmp/tmpt2dx7ros.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-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"One small step for programmers\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"One giant leap for mankind!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt2dx7ros.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-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"One small step for programmers\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"One giant leap for mankind!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv7r0gsre.c'
source_filename = "/tmp/tmpv7r0gsre.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_setegid_np(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @setegid(i32 noundef %3)
ret i32 %4
}
declare i32 @setegid(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv7r0gsre.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_setegid_np(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @setegid(i32 noundef %3)
ret i32 %4
}
declare i32 @setegid(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpscrj5ln4.c'
source_filename = "/tmp/tmpscrj5ln4.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpscrj5ln4.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_yagvz8h.c'
source_filename = "/tmp/tmp_yagvz8h.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-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%.3f\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strfloat_or_null(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %4
br label %28
12: ; preds = %4
%13 = load i32, ptr %8, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %7, align 4
%19 = sitofp i32 %18 to float
%20 = load i32, ptr %8, align 4
%21 = sitofp i32 %20 to float
%22 = fdiv float %19, %21
%23 = call i32 @snprintf(ptr noundef %16, i32 noundef %17, ptr noundef @.str, float noundef %22)
br label %28
24: ; preds = %12
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = call i32 @strncpy(ptr noundef %25, ptr noundef @.str.1, i32 noundef %26)
br label %28
28: ; preds = %11, %24, %15
ret void
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, float noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_yagvz8h.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-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%.3f\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strfloat_or_null(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %4
br label %28
12: ; preds = %4
%13 = load i32, ptr %8, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %7, align 4
%19 = sitofp i32 %18 to float
%20 = load i32, ptr %8, align 4
%21 = sitofp i32 %20 to float
%22 = fdiv float %19, %21
%23 = call i32 @snprintf(ptr noundef %16, i32 noundef %17, ptr noundef @.str, float noundef %22)
br label %28
24: ; preds = %12
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = call i32 @strncpy(ptr noundef %25, ptr noundef @.str.1, i32 noundef %26)
br label %28
28: ; preds = %24, %15, %11
ret void
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, float noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdwl00832.c'
source_filename = "/tmp/tmpdwl00832.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-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"File not found\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Acces violation\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Illegal TFTP operation\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"File already exists\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tftp_error(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [64 x i8], align 16
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load i32, ptr %4, align 4
switch i32 %9, label %26 [
i32 1, label %10
i32 2, label %13
i32 4, label %16
i32 6, label %19
i32 0, label %22
]
10: ; preds = %3
%11 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str)
br label %26
13: ; preds = %3
%14 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcpy(ptr noundef %14, ptr noundef @.str.1)
br label %26
16: ; preds = %3
%17 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%18 = call i32 @strcpy(ptr noundef %17, ptr noundef @.str.2)
br label %26
19: ; preds = %3
%20 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @strcpy(ptr noundef %20, ptr noundef @.str.3)
br label %26
22: ; preds = %3
%23 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%24 = load ptr, ptr %5, align 8
%25 = call i32 @strcpy(ptr noundef %23, ptr noundef %24)
br label %26
26: ; preds = %22, %3, %19, %16, %13, %10
%27 = load ptr, ptr %6, align 8
%28 = call i32 @setFlag(i32 noundef 5, ptr noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @setErrorCode(i32 noundef %29, ptr noundef %30)
%32 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%33 = load ptr, ptr %6, align 8
%34 = call i32 @setErrorMsg(ptr noundef %32, ptr noundef %33)
%35 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%36 = call i32 @strlen(ptr noundef %35)
%37 = add nsw i32 %36, 4
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
ret i32 %38
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @setFlag(i32 noundef, ptr noundef) #1
declare i32 @setErrorCode(i32 noundef, ptr noundef) #1
declare i32 @setErrorMsg(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdwl00832.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-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"File not found\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Acces violation\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Illegal TFTP operation\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"File already exists\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tftp_error(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [64 x i8], align 16
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load i32, ptr %4, align 4
switch i32 %9, label %26 [
i32 1, label %10
i32 2, label %13
i32 4, label %16
i32 6, label %19
i32 0, label %22
]
10: ; preds = %3
%11 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str)
br label %26
13: ; preds = %3
%14 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcpy(ptr noundef %14, ptr noundef @.str.1)
br label %26
16: ; preds = %3
%17 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%18 = call i32 @strcpy(ptr noundef %17, ptr noundef @.str.2)
br label %26
19: ; preds = %3
%20 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @strcpy(ptr noundef %20, ptr noundef @.str.3)
br label %26
22: ; preds = %3
%23 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%24 = load ptr, ptr %5, align 8
%25 = call i32 @strcpy(ptr noundef %23, ptr noundef %24)
br label %26
26: ; preds = %22, %19, %16, %13, %10, %3
%27 = load ptr, ptr %6, align 8
%28 = call i32 @setFlag(i32 noundef 5, ptr noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @setErrorCode(i32 noundef %29, ptr noundef %30)
%32 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%33 = load ptr, ptr %6, align 8
%34 = call i32 @setErrorMsg(ptr noundef %32, ptr noundef %33)
%35 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%36 = call i32 @strlen(ptr noundef %35)
%37 = add nsw i32 %36, 4
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
ret i32 %38
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @setFlag(i32 noundef, ptr noundef) #1
declare i32 @setErrorCode(i32 noundef, ptr noundef) #1
declare i32 @setErrorMsg(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqt5o_e08.c'
source_filename = "/tmp/tmpqt5o_e08.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_xdg_mime_media_type_equal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @xdg_mime_init()
%8 = load ptr, ptr %4, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 47)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %25
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %4, align 8
%17 = ptrtoint ptr %15 to i64
%18 = ptrtoint ptr %16 to i64
%19 = sub i64 %17, %18
%20 = add nsw i64 %19, 1
%21 = trunc i64 %20 to i32
%22 = call i64 @strncmp(ptr noundef %13, ptr noundef %14, i32 noundef %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %12
store i32 1, ptr %3, align 4
br label %26
25: ; preds = %12, %2
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %25, %24
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @xdg_mime_init(...) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqt5o_e08.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_xdg_mime_media_type_equal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @xdg_mime_init()
%8 = load ptr, ptr %4, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 47)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %25
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %4, align 8
%17 = ptrtoint ptr %15 to i64
%18 = ptrtoint ptr %16 to i64
%19 = sub i64 %17, %18
%20 = add nsw i64 %19, 1
%21 = trunc i64 %20 to i32
%22 = call i64 @strncmp(ptr noundef %13, ptr noundef %14, i32 noundef %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %12
store i32 1, ptr %3, align 4
br label %26
25: ; preds = %12, %2
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %25, %24
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @xdg_mime_init(...) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxywtqyae.c'
source_filename = "/tmp/tmpxywtqyae.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-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Couldn't read huge string length\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Couldn't read huge string body\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @netGetHugeString(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [4 x i8], align 1
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = load i32, ptr %3, align 4
%10 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%11 = call i32 (i32, ...) @netReadAll(i32 noundef %9, ptr noundef %10, i32 noundef 4)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %57
15: ; preds = %1
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @warn(ptr noundef @.str)
store ptr null, ptr %2, align 8
br label %57
20: ; preds = %15
store i32 0, ptr %8, align 4
br label %21
21: ; preds = %34, %20
%22 = load i32, ptr %8, align 4
%23 = icmp slt i32 %22, 4
br i1 %23, label %24, label %37
24: ; preds = %21
%25 = load i64, ptr %6, align 8
%26 = shl i64 %25, 8
store i64 %26, ptr %6, align 8
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i64
%32 = load i64, ptr %6, align 8
%33 = add i64 %32, %31
store i64 %33, ptr %6, align 8
br label %34
34: ; preds = %24
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %21, !llvm.loop !6
37: ; preds = %21
%38 = load i64, ptr %6, align 8
%39 = add i64 %38, 1
%40 = call ptr @needMem(i64 noundef %39)
store ptr %40, ptr %5, align 8
%41 = load i64, ptr %6, align 8
%42 = icmp ugt i64 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %37
%44 = load i32, ptr %3, align 4
%45 = load ptr, ptr %5, align 8
%46 = load i64, ptr %6, align 8
%47 = call i32 (i32, ...) @netReadAll(i32 noundef %44, ptr noundef %45, i64 noundef %46)
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = call i32 @warn(ptr noundef @.str.1)
store ptr null, ptr %2, align 8
br label %57
51: ; preds = %43
br label %52
52: ; preds = %51, %37
%53 = load ptr, ptr %5, align 8
%54 = load i64, ptr %6, align 8
%55 = getelementptr inbounds i8, ptr %53, i64 %54
store i8 0, ptr %55, align 1
%56 = load ptr, ptr %5, align 8
store ptr %56, ptr %2, align 8
br label %57
57: ; preds = %52, %49, %18, %14
%58 = load ptr, ptr %2, align 8
ret ptr %58
}
declare i32 @netReadAll(i32 noundef, ...) #1
declare i32 @warn(ptr noundef) #1
declare ptr @needMem(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxywtqyae.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-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Couldn't read huge string length\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Couldn't read huge string body\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @netGetHugeString(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [4 x i8], align 1
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = load i32, ptr %3, align 4
%10 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%11 = call i32 (i32, ...) @netReadAll(i32 noundef %9, ptr noundef %10, i32 noundef 4)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %58
15: ; preds = %1
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @warn(ptr noundef @.str)
store ptr null, ptr %2, align 8
br label %58
20: ; preds = %15
store i32 0, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp slt i32 %21, 4
br i1 %22, label %.lr.ph, label %38
.lr.ph: ; preds = %20
br label %23
23: ; preds = %.lr.ph, %33
%24 = load i64, ptr %6, align 8
%25 = shl i64 %24, 8
store i64 %25, ptr %6, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i64
%31 = load i64, ptr %6, align 8
%32 = add i64 %31, %30
store i64 %32, ptr %6, align 8
br label %33
33: ; preds = %23
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 4
br i1 %37, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %20
%39 = load i64, ptr %6, align 8
%40 = add i64 %39, 1
%41 = call ptr @needMem(i64 noundef %40)
store ptr %41, ptr %5, align 8
%42 = load i64, ptr %6, align 8
%43 = icmp ugt i64 %42, 0
br i1 %43, label %44, label %53
44: ; preds = %38
%45 = load i32, ptr %3, align 4
%46 = load ptr, ptr %5, align 8
%47 = load i64, ptr %6, align 8
%48 = call i32 (i32, ...) @netReadAll(i32 noundef %45, ptr noundef %46, i64 noundef %47)
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %44
%51 = call i32 @warn(ptr noundef @.str.1)
store ptr null, ptr %2, align 8
br label %58
52: ; preds = %44
br label %53
53: ; preds = %52, %38
%54 = load ptr, ptr %5, align 8
%55 = load i64, ptr %6, align 8
%56 = getelementptr inbounds i8, ptr %54, i64 %55
store i8 0, ptr %56, align 1
%57 = load ptr, ptr %5, align 8
store ptr %57, ptr %2, align 8
br label %58
58: ; preds = %53, %50, %18, %14
%59 = load ptr, ptr %2, align 8
ret ptr %59
}
declare i32 @netReadAll(i32 noundef, ...) #1
declare i32 @warn(ptr noundef) #1
declare ptr @needMem(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzz7wdjyz.c'
source_filename = "/tmp/tmpzz7wdjyz.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_board(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %4, align 8
br label %6
6: ; preds = %20, %1
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 81
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = srem i32 %10, 9
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @putchar(i8 noundef signext 10)
br label %15
15: ; preds = %13, %9
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i32, ptr %16, i32 1
store ptr %17, ptr %4, align 8
%18 = load i32, ptr %16, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %15
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %6, !llvm.loop !6
23: ; preds = %6
ret void
}
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzz7wdjyz.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_board(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 81
br i1 %7, label %.lr.ph, label %24
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %19
%9 = load i32, ptr %3, align 4
%10 = srem i32 %9, 9
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @putchar(i8 noundef signext 10)
br label %14
14: ; preds = %12, %8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i32, ptr %15, i32 1
store ptr %16, ptr %4, align 8
%17 = load i32, ptr %15, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %14
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 81
br i1 %23, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %1
ret void
}
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcbp2ruwv.c'
source_filename = "/tmp/tmpcbp2ruwv.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = and i32 %3, 255
%5 = call i32 @putchar(i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = ashr i32 %6, 8
%8 = and i32 %7, 255
%9 = call i32 @putchar(i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = ashr i32 %10, 16
%12 = and i32 %11, 255
%13 = call i32 @putchar(i32 noundef %12)
%14 = load i32, ptr %2, align 4
%15 = ashr i32 %14, 24
%16 = and i32 %15, 255
%17 = call i32 @putchar(i32 noundef %16)
ret void
}
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcbp2ruwv.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = and i32 %3, 255
%5 = call i32 @putchar(i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = ashr i32 %6, 8
%8 = and i32 %7, 255
%9 = call i32 @putchar(i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = ashr i32 %10, 16
%12 = and i32 %11, 255
%13 = call i32 @putchar(i32 noundef %12)
%14 = load i32, ptr %2, align 4
%15 = ashr i32 %14, 24
%16 = and i32 %15, 255
%17 = call i32 @putchar(i32 noundef %16)
ret void
}
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkiq05ceh.c'
source_filename = "/tmp/tmpkiq05ceh.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @power(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %6
6: ; preds = %13, %2
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %5, align 4
%12 = mul nsw i32 %11, %10
store i32 %12, ptr %5, align 4
br label %13
13: ; preds = %9
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %4, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = load i32, ptr %5, align 4
ret i32 %17
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkiq05ceh.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @power(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %.lr.ph, label %17
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %12
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %5, align 4
%11 = mul nsw i32 %10, %9
store i32 %11, ptr %5, align 4
br label %12
12: ; preds = %8
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %2
%18 = load i32, ptr %5, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpncf9i85q.c'
source_filename = "/tmp/tmpncf9i85q.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-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"celsius\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"fahr\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"%3.0f %8.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store float -2.730000e+02, ptr %8, align 4
store float 1.000000e+02, ptr %9, align 4
store float 2.000000e+01, ptr %10, align 4
%11 = load float, ptr %8, align 4
store float %11, ptr %7, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
br label %13
13: ; preds = %17, %2
%14 = load float, ptr %7, align 4
%15 = load float, ptr %9, align 4
%16 = fcmp ole float %14, %15
br i1 %16, label %17, label %30
17: ; preds = %13
%18 = load float, ptr %7, align 4
%19 = fpext float %18 to double
%20 = call double @llvm.fmuladd.f64(double %19, double 1.800000e+00, double 3.200000e+01)
%21 = fptrunc double %20 to float
store float %21, ptr %6, align 4
%22 = load float, ptr %7, align 4
%23 = fpext float %22 to double
%24 = load float, ptr %6, align 4
%25 = fpext float %24 to double
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %23, double noundef %25)
%27 = load float, ptr %10, align 4
%28 = load float, ptr %7, align 4
%29 = fadd float %28, %27
store float %29, ptr %7, align 4
br label %13, !llvm.loop !6
30: ; preds = %13
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpncf9i85q.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-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"celsius\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"fahr\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"%3.0f %8.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store float -2.730000e+02, ptr %8, align 4
store float 1.000000e+02, ptr %9, align 4
store float 2.000000e+01, ptr %10, align 4
%11 = load float, ptr %8, align 4
store float %11, ptr %7, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
%13 = load float, ptr %7, align 4
%14 = load float, ptr %9, align 4
%15 = fcmp ole float %13, %14
br i1 %15, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %16
%17 = load float, ptr %7, align 4
%18 = fpext float %17 to double
%19 = call double @llvm.fmuladd.f64(double %18, double 1.800000e+00, double 3.200000e+01)
%20 = fptrunc double %19 to float
store float %20, ptr %6, align 4
%21 = load float, ptr %7, align 4
%22 = fpext float %21 to double
%23 = load float, ptr %6, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %22, double noundef %24)
%26 = load float, ptr %10, align 4
%27 = load float, ptr %7, align 4
%28 = fadd float %27, %26
store float %28, ptr %7, align 4
%29 = load float, ptr %7, align 4
%30 = load float, ptr %9, align 4
%31 = fcmp ole float %29, %30
br i1 %31, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %32
32: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1muwjcmv.c'
source_filename = "/tmp/tmp1muwjcmv.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-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"dualpal.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"dualpal.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
%8 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fscanf(ptr noundef %9, ptr noundef @.str.4, ptr noundef %5, ptr noundef %6)
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %27, %0
%14 = load i32, ptr %4, align 4
%15 = call i64 @is_dualpal(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %26
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %5, align 4
%20 = icmp sle i32 %18, 0
br i1 %20, label %21, label %22
21: ; preds = %17
br label %30
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %4, align 4
%25 = call i32 @fprintf(ptr noundef %23, ptr noundef @.str.5, i32 noundef %24)
br label %26
26: ; preds = %22, %13
br label %27
27: ; preds = %26
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %13
30: ; preds = %21
%31 = load ptr, ptr %2, align 8
%32 = call i32 @fclose(ptr noundef %31)
%33 = load ptr, ptr %3, align 8
%34 = call i32 @fclose(ptr noundef %33)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @is_dualpal(i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1muwjcmv.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-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"dualpal.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"dualpal.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
%8 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fscanf(ptr noundef %9, ptr noundef @.str.4, ptr noundef %5, ptr noundef %6)
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %27, %0
%14 = load i32, ptr %4, align 4
%15 = call i64 @is_dualpal(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %26
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %5, align 4
%20 = icmp sle i32 %18, 0
br i1 %20, label %21, label %22
21: ; preds = %17
br label %30
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %4, align 4
%25 = call i32 @fprintf(ptr noundef %23, ptr noundef @.str.5, i32 noundef %24)
br label %26
26: ; preds = %22, %13
br label %27
27: ; preds = %26
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %13
30: ; preds = %21
%31 = load ptr, ptr %2, align 8
%32 = call i32 @fclose(ptr noundef %31)
%33 = load ptr, ptr %3, align 8
%34 = call i32 @fclose(ptr noundef %33)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @is_dualpal(i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsuyj6hb3.c'
source_filename = "/tmp/tmpsuyj6hb3.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ssd1306_i2cInit() #0 {
%1 = call i32 @ssd1306_i2cInitEx(i32 noundef -1, i32 noundef -1, i32 noundef 60)
ret void
}
declare i32 @ssd1306_i2cInitEx(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsuyj6hb3.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ssd1306_i2cInit() #0 {
%1 = call i32 @ssd1306_i2cInitEx(i32 noundef -1, i32 noundef -1, i32 noundef 60)
ret void
}
declare i32 @ssd1306_i2cInitEx(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphleuio0w.c'
source_filename = "/tmp/tmphleuio0w.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x [4 x i32]], align 16
%3 = alloca [4 x [4 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %25, %0
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 4
br i1 %8, label %9, label %28
9: ; preds = %6
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %21, %9
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [4 x [4 x i32]], ptr %2, i64 0, i64 %15
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %18
%20 = call i32 @scanf(ptr noundef @.str, ptr noundef %19)
br label %21
21: ; preds = %13
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %10, !llvm.loop !6
24: ; preds = %10
br label %25
25: ; preds = %24
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %6, !llvm.loop !8
28: ; preds = %6
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %54, %28
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 4
br i1 %31, label %32, label %57
32: ; preds = %29
store i32 0, ptr %5, align 4
br label %33
33: ; preds = %50, %32
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %34, 4
br i1 %35, label %36, label %53
36: ; preds = %33
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [4 x [4 x i32]], ptr %2, i64 0, i64 %38
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [4 x i32], ptr %39, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %43)
%45 = load i32, ptr %5, align 4
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %49
47: ; preds = %36
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %49
49: ; preds = %47, %36
br label %50
50: ; preds = %49
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
br label %33, !llvm.loop !9
53: ; preds = %33
br label %54
54: ; preds = %53
%55 = load i32, ptr %4, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4
br label %29, !llvm.loop !10
57: ; preds = %29
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %59
59: ; preds = %84, %57
%60 = load i32, ptr %4, align 4
%61 = icmp slt i32 %60, 4
br i1 %61, label %62, label %87
62: ; preds = %59
store i32 0, ptr %5, align 4
br label %63
63: ; preds = %80, %62
%64 = load i32, ptr %5, align 4
%65 = icmp slt i32 %64, 4
br i1 %65, label %66, label %83
66: ; preds = %63
%67 = load i32, ptr %4, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [4 x [4 x i32]], ptr %2, i64 0, i64 %68
%70 = load i32, ptr %5, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [4 x i32], ptr %69, i64 0, i64 %71
%73 = load i32, ptr %72, align 4
%74 = load i32, ptr %5, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 %75
%77 = load i32, ptr %4, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [4 x i32], ptr %76, i64 0, i64 %78
store i32 %73, ptr %79, align 4
br label %80
80: ; preds = %66
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %5, align 4
br label %63, !llvm.loop !11
83: ; preds = %63
br label %84
84: ; preds = %83
%85 = load i32, ptr %4, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %4, align 4
br label %59, !llvm.loop !12
87: ; preds = %59
store i32 0, ptr %4, align 4
br label %88
88: ; preds = %113, %87
%89 = load i32, ptr %4, align 4
%90 = icmp slt i32 %89, 4
br i1 %90, label %91, label %116
91: ; preds = %88
store i32 0, ptr %5, align 4
br label %92
92: ; preds = %109, %91
%93 = load i32, ptr %5, align 4
%94 = icmp slt i32 %93, 4
br i1 %94, label %95, label %112
95: ; preds = %92
%96 = load i32, ptr %4, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 %97
%99 = load i32, ptr %5, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [4 x i32], ptr %98, i64 0, i64 %100
%102 = load i32, ptr %101, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %102)
%104 = load i32, ptr %5, align 4
%105 = icmp eq i32 %104, 3
br i1 %105, label %106, label %108
106: ; preds = %95
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %108
108: ; preds = %106, %95
br label %109
109: ; preds = %108
%110 = load i32, ptr %5, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %5, align 4
br label %92, !llvm.loop !13
112: ; preds = %92
br label %113
113: ; preds = %112
%114 = load i32, ptr %4, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %4, align 4
br label %88, !llvm.loop !14
116: ; preds = %88
%117 = load i32, ptr %1, align 4
ret i32 %117
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphleuio0w.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x [4 x i32]], align 16
%3 = alloca [4 x [4 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 4
br i1 %7, label %.lr.ph2, label %30
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %25
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %.lr.ph, label %24
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %19
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [4 x [4 x i32]], ptr %2, i64 0, i64 %13
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %16
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %17)
br label %19
19: ; preds = %11
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 4
br i1 %23, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %8
br label %25
25: ; preds = %24
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %28, 4
br i1 %29, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %25
br label %30
30: ; preds = %._crit_edge3, %0
store i32 0, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 4
br i1 %32, label %.lr.ph8, label %61
.lr.ph8: ; preds = %30
br label %33
33: ; preds = %.lr.ph8, %56
store i32 0, ptr %5, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %34, 4
br i1 %35, label %.lr.ph5, label %55
.lr.ph5: ; preds = %33
br label %36
36: ; preds = %.lr.ph5, %50
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [4 x [4 x i32]], ptr %2, i64 0, i64 %38
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [4 x i32], ptr %39, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %43)
%45 = load i32, ptr %5, align 4
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %49
47: ; preds = %36
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %49
49: ; preds = %47, %36
br label %50
50: ; preds = %49
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
%53 = load i32, ptr %5, align 4
%54 = icmp slt i32 %53, 4
br i1 %54, label %36, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %50
br label %55
55: ; preds = %._crit_edge6, %33
br label %56
56: ; preds = %55
%57 = load i32, ptr %4, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %4, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp slt i32 %59, 4
br i1 %60, label %33, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %56
br label %61
61: ; preds = %._crit_edge9, %30
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
%63 = load i32, ptr %4, align 4
%64 = icmp slt i32 %63, 4
br i1 %64, label %.lr.ph14, label %93
.lr.ph14: ; preds = %61
br label %65
65: ; preds = %.lr.ph14, %88
store i32 0, ptr %5, align 4
%66 = load i32, ptr %5, align 4
%67 = icmp slt i32 %66, 4
br i1 %67, label %.lr.ph11, label %87
.lr.ph11: ; preds = %65
br label %68
68: ; preds = %.lr.ph11, %82
%69 = load i32, ptr %4, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [4 x [4 x i32]], ptr %2, i64 0, i64 %70
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [4 x i32], ptr %71, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 %77
%79 = load i32, ptr %4, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [4 x i32], ptr %78, i64 0, i64 %80
store i32 %75, ptr %81, align 4
br label %82
82: ; preds = %68
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %5, align 4
%85 = load i32, ptr %5, align 4
%86 = icmp slt i32 %85, 4
br i1 %86, label %68, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %82
br label %87
87: ; preds = %._crit_edge12, %65
br label %88
88: ; preds = %87
%89 = load i32, ptr %4, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %4, align 4
%91 = load i32, ptr %4, align 4
%92 = icmp slt i32 %91, 4
br i1 %92, label %65, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %88
br label %93
93: ; preds = %._crit_edge15, %61
store i32 0, ptr %4, align 4
%94 = load i32, ptr %4, align 4
%95 = icmp slt i32 %94, 4
br i1 %95, label %.lr.ph20, label %124
.lr.ph20: ; preds = %93
br label %96
96: ; preds = %.lr.ph20, %119
store i32 0, ptr %5, align 4
%97 = load i32, ptr %5, align 4
%98 = icmp slt i32 %97, 4
br i1 %98, label %.lr.ph17, label %118
.lr.ph17: ; preds = %96
br label %99
99: ; preds = %.lr.ph17, %113
%100 = load i32, ptr %4, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 %101
%103 = load i32, ptr %5, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [4 x i32], ptr %102, i64 0, i64 %104
%106 = load i32, ptr %105, align 4
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %106)
%108 = load i32, ptr %5, align 4
%109 = icmp eq i32 %108, 3
br i1 %109, label %110, label %112
110: ; preds = %99
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %112
112: ; preds = %110, %99
br label %113
113: ; preds = %112
%114 = load i32, ptr %5, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %5, align 4
%116 = load i32, ptr %5, align 4
%117 = icmp slt i32 %116, 4
br i1 %117, label %99, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %113
br label %118
118: ; preds = %._crit_edge18, %96
br label %119
119: ; preds = %118
%120 = load i32, ptr %4, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %4, align 4
%122 = load i32, ptr %4, align 4
%123 = icmp slt i32 %122, 4
br i1 %123, label %96, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %119
br label %124
124: ; preds = %._crit_edge21, %93
%125 = load i32, ptr %1, align 4
ret i32 %125
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmpx3g9qa5_.c'
source_filename = "/tmp/tmpx3g9qa5_.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx3g9qa5_.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp99nfefje.c'
source_filename = "/tmp/tmp99nfefje.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp99nfefje.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpndbagbo8.c'
source_filename = "/tmp/tmpndbagbo8.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-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %29, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 79
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = call i32 (...) @getchar()
store i32 %9, ptr %3, align 4
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
%15 = zext i1 %14 to i32
br label %17
16: ; preds = %8
br label %17
17: ; preds = %16, %11
%18 = phi i32 [ %15, %11 ], [ 0, %16 ]
br label %20
19: ; preds = %5
br label %20
20: ; preds = %19, %17
%21 = phi i32 [ %18, %17 ], [ 0, %19 ]
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %20
%24 = load i32, ptr %3, align 4
%25 = trunc i32 %24 to i8
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 %27
store i8 %25, ptr %28, align 1
br label %29
29: ; preds = %23
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
br label %5, !llvm.loop !6
32: ; preds = %20
%33 = load i32, ptr %2, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i32, ptr %2, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = xor i32 %42, %37
%44 = trunc i32 %43 to i8
store i8 %44, ptr %40, align 1
%45 = sext i8 %44 to i32
ret i32 %45
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpndbagbo8.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-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %29, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 79
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = call i32 (...) @getchar()
store i32 %9, ptr %3, align 4
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
%15 = zext i1 %14 to i32
br label %17
16: ; preds = %8
br label %17
17: ; preds = %16, %11
%18 = phi i32 [ %15, %11 ], [ 0, %16 ]
br label %20
19: ; preds = %5
br label %20
20: ; preds = %19, %17
%21 = phi i32 [ %18, %17 ], [ 0, %19 ]
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %20
%24 = load i32, ptr %3, align 4
%25 = trunc i32 %24 to i8
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 %27
store i8 %25, ptr %28, align 1
br label %29
29: ; preds = %23
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
br label %5, !llvm.loop !6
32: ; preds = %20
%33 = load i32, ptr %2, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i32, ptr %2, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = xor i32 %42, %37
%44 = trunc i32 %43 to i8
store i8 %44, ptr %40, align 1
%45 = sext i8 %44 to i32
ret i32 %45
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpm07b8cuw.c'
source_filename = "/tmp/tmpm07b8cuw.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @palindromicNumber()
ret i32 0
}
declare i32 @palindromicNumber(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm07b8cuw.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @palindromicNumber()
ret i32 0
}
declare i32 @palindromicNumber(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph2gawqd0.c'
source_filename = "/tmp/tmph2gawqd0.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph2gawqd0.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuwi4zwzl.c'
source_filename = "/tmp/tmpuwi4zwzl.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @despace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %13, %1
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %4
br label %13
13: ; preds = %12
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
br label %4, !llvm.loop !6
16: ; preds = %4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %33, %16
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = call i64 @is_ws(i8 noundef signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = load i32, ptr %3, align 4
%29 = icmp sge i32 %28, 0
br label %30
30: ; preds = %27, %19
%31 = phi i1 [ false, %19 ], [ %29, %27 ]
br i1 %31, label %32, label %36
32: ; preds = %30
br label %33
33: ; preds = %32
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %3, align 4
br label %19, !llvm.loop !8
36: ; preds = %30
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
store i8 0, ptr %41, align 1
ret void
}
declare i64 @is_ws(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuwi4zwzl.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @despace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %12
br label %12
12: ; preds = %11
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %22
22: ; preds = %._crit_edge, %1
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %39, %22
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = call i64 @is_ws(i8 noundef signext %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %25
%34 = load i32, ptr %3, align 4
%35 = icmp sge i32 %34, 0
br label %36
36: ; preds = %33, %25
%37 = phi i1 [ false, %25 ], [ %35, %33 ]
br i1 %37, label %38, label %42
38: ; preds = %36
br label %39
39: ; preds = %38
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %3, align 4
br label %25, !llvm.loop !8
42: ; preds = %36
%43 = load ptr, ptr %2, align 8
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %43, i64 %46
store i8 0, ptr %47, align 1
ret void
}
declare i64 @is_ws(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpshcmboji.c'
source_filename = "/tmp/tmpshcmboji.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @BTREE_CompareKeys(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %18
13: ; preds = %4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %8, align 4
%17 = call i32 @memcmp(ptr noundef %14, ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %9, align 4
br label %23
18: ; preds = %4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %6, align 4
%22 = call i32 @memcmp(ptr noundef %19, ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %9, align 4
br label %23
23: ; preds = %18, %13
%24 = load i32, ptr %9, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %23
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %8, align 4
%29 = sub nsw i32 %27, %28
store i32 %29, ptr %9, align 4
br label %30
30: ; preds = %26, %23
%31 = load i32, ptr %9, align 4
ret i32 %31
}
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpshcmboji.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @BTREE_CompareKeys(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %18
13: ; preds = %4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %8, align 4
%17 = call i32 @memcmp(ptr noundef %14, ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %9, align 4
br label %23
18: ; preds = %4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %6, align 4
%22 = call i32 @memcmp(ptr noundef %19, ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %9, align 4
br label %23
23: ; preds = %18, %13
%24 = load i32, ptr %9, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %23
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %8, align 4
%29 = sub nsw i32 %27, %28
store i32 %29, ptr %9, align 4
br label %30
30: ; preds = %26, %23
%31 = load i32, ptr %9, align 4
ret i32 %31
}
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps4wiv79z.c'
source_filename = "/tmp/tmps4wiv79z.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @change_term() #0 {
%1 = call i32 (...) @fix_screen()
%2 = call i32 (...) @init_term()
%3 = call i32 @setup_screen(i32 noundef 0)
%4 = call i32 (...) @rebind_key_macros()
ret i32 1
}
declare i32 @fix_screen(...) #1
declare i32 @init_term(...) #1
declare i32 @setup_screen(i32 noundef) #1
declare i32 @rebind_key_macros(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps4wiv79z.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @change_term() #0 {
%1 = call i32 (...) @fix_screen()
%2 = call i32 (...) @init_term()
%3 = call i32 @setup_screen(i32 noundef 0)
%4 = call i32 (...) @rebind_key_macros()
ret i32 1
}
declare i32 @fix_screen(...) #1
declare i32 @init_term(...) #1
declare i32 @setup_screen(i32 noundef) #1
declare i32 @rebind_key_macros(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpymwc8pyi.c'
source_filename = "/tmp/tmpymwc8pyi.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-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Setting tracking mode to lunar.\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"#:RT0#\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Setting tracking mode to solar.\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"#:RT1#\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Setting tracking mode to sidereal.\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"#:RT2#\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"Setting tracking mode to zero.\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"#:RT9#\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @selectAPTrackingMode(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %33 [
i32 0, label %5
i32 1, label %12
i32 2, label %19
i32 3, label %26
]
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str)
%8 = call i32 @portWrite(ptr noundef @.str.1)
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %5
store i32 -1, ptr %2, align 4
br label %35
11: ; preds = %5
br label %34
12: ; preds = %1
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.2)
%15 = call i32 @portWrite(ptr noundef @.str.3)
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
store i32 -1, ptr %2, align 4
br label %35
18: ; preds = %12
br label %34
19: ; preds = %1
%20 = load i32, ptr @stderr, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.4)
%22 = call i32 @portWrite(ptr noundef @.str.5)
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 -1, ptr %2, align 4
br label %35
25: ; preds = %19
br label %34
26: ; preds = %1
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.6)
%29 = call i32 @portWrite(ptr noundef @.str.7)
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 -1, ptr %2, align 4
br label %35
32: ; preds = %26
br label %34
33: ; preds = %1
store i32 -1, ptr %2, align 4
br label %35
34: ; preds = %32, %25, %18, %11
store i32 0, ptr %2, align 4
br label %35
35: ; preds = %34, %33, %31, %24, %17, %10
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @portWrite(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpymwc8pyi.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-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Setting tracking mode to lunar.\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"#:RT0#\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Setting tracking mode to solar.\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"#:RT1#\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Setting tracking mode to sidereal.\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"#:RT2#\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"Setting tracking mode to zero.\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"#:RT9#\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @selectAPTrackingMode(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %33 [
i32 0, label %5
i32 1, label %12
i32 2, label %19
i32 3, label %26
]
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str)
%8 = call i32 @portWrite(ptr noundef @.str.1)
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %5
store i32 -1, ptr %2, align 4
br label %35
11: ; preds = %5
br label %34
12: ; preds = %1
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.2)
%15 = call i32 @portWrite(ptr noundef @.str.3)
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
store i32 -1, ptr %2, align 4
br label %35
18: ; preds = %12
br label %34
19: ; preds = %1
%20 = load i32, ptr @stderr, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.4)
%22 = call i32 @portWrite(ptr noundef @.str.5)
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 -1, ptr %2, align 4
br label %35
25: ; preds = %19
br label %34
26: ; preds = %1
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.6)
%29 = call i32 @portWrite(ptr noundef @.str.7)
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 -1, ptr %2, align 4
br label %35
32: ; preds = %26
br label %34
33: ; preds = %1
store i32 -1, ptr %2, align 4
br label %35
34: ; preds = %32, %25, %18, %11
store i32 0, ptr %2, align 4
br label %35
35: ; preds = %34, %33, %31, %24, %17, %10
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @portWrite(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp48vc183.c'
source_filename = "/tmp/tmpp48vc183.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nislower(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %23, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br label %14
14: ; preds = %11, %6
%15 = phi i1 [ false, %6 ], [ %13, %11 ]
br i1 %15, label %16, label %28
16: ; preds = %14
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = call i32 @islower(i8 noundef signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %16
store i32 0, ptr %3, align 4
br label %29
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %5, align 4
br label %6, !llvm.loop !6
28: ; preds = %14
store i32 1, ptr %3, align 4
br label %29
29: ; preds = %28, %21
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @islower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp48vc183.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nislower(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %23, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br label %14
14: ; preds = %11, %6
%15 = phi i1 [ false, %6 ], [ %13, %11 ]
br i1 %15, label %16, label %28
16: ; preds = %14
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = call i32 @islower(i8 noundef signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %16
store i32 0, ptr %3, align 4
br label %29
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %5, align 4
br label %6, !llvm.loop !6
28: ; preds = %14
store i32 1, ptr %3, align 4
br label %29
29: ; preds = %28, %21
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @islower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprk7n9ph8.c'
source_filename = "/tmp/tmprk7n9ph8.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mergesort(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp ugt i64 %5, 1
br i1 %6, label %7, label %21
7: ; preds = %2
%8 = load i64, ptr %3, align 8
%9 = udiv i64 %8, 2
%10 = load ptr, ptr %4, align 8
call void @mergesort(i64 noundef %9, ptr noundef %10)
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
%13 = udiv i64 %12, 2
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %3, align 8
%16 = udiv i64 %15, 2
%17 = getelementptr inbounds i32, ptr %14, i64 %16
call void @mergesort(i64 noundef %13, ptr noundef %17)
%18 = load i64, ptr %3, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @mergehalves(i64 noundef %18, ptr noundef %19)
br label %21
21: ; preds = %7, %2
ret void
}
declare i32 @mergehalves(i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprk7n9ph8.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mergesort(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp ugt i64 %5, 1
br i1 %6, label %7, label %21
7: ; preds = %2
%8 = load i64, ptr %3, align 8
%9 = udiv i64 %8, 2
%10 = load ptr, ptr %4, align 8
call void @mergesort(i64 noundef %9, ptr noundef %10)
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
%13 = udiv i64 %12, 2
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %3, align 8
%16 = udiv i64 %15, 2
%17 = getelementptr inbounds i32, ptr %14, i64 %16
call void @mergesort(i64 noundef %13, ptr noundef %17)
%18 = load i64, ptr %3, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @mergehalves(i64 noundef %18, ptr noundef %19)
br label %21
21: ; preds = %7, %2
ret void
}
declare i32 @mergehalves(i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvkm80isw.c'
source_filename = "/tmp/tmpvkm80isw.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-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"/tmp/fifo.1\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [21 x i8] c"Can't create Fifo1: \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"/tmp/fifo.2\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Can't create Fifo2: \00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"Can't opem Fifo1: \00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [12 x i8] c"Open Readfd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @S_IRUSR, align 4
%6 = load i32, ptr @S_IWUSR, align 4
%7 = or i32 %5, %6
%8 = load i32, ptr @S_IRGRP, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr @S_IROTH, align 4
%11 = or i32 %9, %10
%12 = call i64 @mkfifo(ptr noundef @.str, i32 noundef %11)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %0
%15 = load i64, ptr @errno, align 8
%16 = load i64, ptr @EEXIST, align 8
%17 = icmp ne i64 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @perror(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %14, %0
%21 = load i32, ptr @S_IRUSR, align 4
%22 = load i32, ptr @S_IWUSR, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IRGRP, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @S_IROTH, align 4
%27 = or i32 %25, %26
%28 = call i64 @mkfifo(ptr noundef @.str.2, i32 noundef %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %20
%31 = load i64, ptr @errno, align 8
%32 = load i64, ptr @EEXIST, align 8
%33 = icmp ne i64 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = call i32 @perror(ptr noundef @.str.3)
%36 = call i32 @unlink(ptr noundef @.str)
br label %37
37: ; preds = %34, %30, %20
%38 = call i32 (...) @fork()
store i32 %38, ptr %4, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %57
40: ; preds = %37
%41 = load i32, ptr @O_WRONLY, align 4
%42 = call i32 @open(ptr noundef @.str, i32 noundef %41)
store i32 %42, ptr %3, align 4
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @perror(ptr noundef @.str.4)
br label %46
46: ; preds = %44, %40
%47 = load i32, ptr @O_RDONLY, align 4
%48 = call i32 @open(ptr noundef @.str.2, i32 noundef %47)
store i32 %48, ptr %2, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 @perror(ptr noundef @.str.4)
br label %52
52: ; preds = %50, %46
%53 = load i32, ptr %2, align 4
%54 = load i32, ptr %3, align 4
%55 = call i32 @server(i32 noundef %53, i32 noundef %54)
%56 = call i32 @exit(i32 noundef 0) #3
unreachable
57: ; preds = %37
%58 = load i32, ptr @O_RDONLY, align 4
%59 = call i32 @open(ptr noundef @.str, i32 noundef %58)
store i32 %59, ptr %2, align 4
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %64
61: ; preds = %57
%62 = call i32 @perror(ptr noundef @.str.5)
%63 = call i32 @exit(i32 noundef -1) #3
unreachable
64: ; preds = %57
%65 = load i32, ptr @O_WRONLY, align 4
%66 = call i32 @open(ptr noundef @.str.2, i32 noundef %65)
store i32 %66, ptr %3, align 4
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %71
68: ; preds = %64
%69 = call i32 @perror(ptr noundef @.str.5)
%70 = call i32 @exit(i32 noundef -1) #3
unreachable
71: ; preds = %64
%72 = load i32, ptr %2, align 4
%73 = load i32, ptr %3, align 4
%74 = call i32 @client(i32 noundef %72, i32 noundef %73)
%75 = load i32, ptr %4, align 4
%76 = call i32 @waitpid(i32 noundef %75, ptr noundef null, i32 noundef 0)
%77 = call i32 @unlink(ptr noundef @.str)
%78 = call i32 @unlink(ptr noundef @.str.2)
%79 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @mkfifo(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @server(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @client(i32 noundef, i32 noundef) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvkm80isw.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-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"/tmp/fifo.1\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [21 x i8] c"Can't create Fifo1: \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"/tmp/fifo.2\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Can't create Fifo2: \00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"Can't opem Fifo1: \00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [12 x i8] c"Open Readfd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @S_IRUSR, align 4
%6 = load i32, ptr @S_IWUSR, align 4
%7 = or i32 %5, %6
%8 = load i32, ptr @S_IRGRP, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr @S_IROTH, align 4
%11 = or i32 %9, %10
%12 = call i64 @mkfifo(ptr noundef @.str, i32 noundef %11)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %0
%15 = load i64, ptr @errno, align 8
%16 = load i64, ptr @EEXIST, align 8
%17 = icmp ne i64 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @perror(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %14, %0
%21 = load i32, ptr @S_IRUSR, align 4
%22 = load i32, ptr @S_IWUSR, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IRGRP, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @S_IROTH, align 4
%27 = or i32 %25, %26
%28 = call i64 @mkfifo(ptr noundef @.str.2, i32 noundef %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %20
%31 = load i64, ptr @errno, align 8
%32 = load i64, ptr @EEXIST, align 8
%33 = icmp ne i64 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = call i32 @perror(ptr noundef @.str.3)
%36 = call i32 @unlink(ptr noundef @.str)
br label %37
37: ; preds = %34, %30, %20
%38 = call i32 (...) @fork()
store i32 %38, ptr %4, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %57
40: ; preds = %37
%41 = load i32, ptr @O_WRONLY, align 4
%42 = call i32 @open(ptr noundef @.str, i32 noundef %41)
store i32 %42, ptr %3, align 4
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @perror(ptr noundef @.str.4)
br label %46
46: ; preds = %44, %40
%47 = load i32, ptr @O_RDONLY, align 4
%48 = call i32 @open(ptr noundef @.str.2, i32 noundef %47)
store i32 %48, ptr %2, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 @perror(ptr noundef @.str.4)
br label %52
52: ; preds = %50, %46
%53 = load i32, ptr %2, align 4
%54 = load i32, ptr %3, align 4
%55 = call i32 @server(i32 noundef %53, i32 noundef %54)
%56 = call i32 @exit(i32 noundef 0) #3
unreachable
57: ; preds = %37
%58 = load i32, ptr @O_RDONLY, align 4
%59 = call i32 @open(ptr noundef @.str, i32 noundef %58)
store i32 %59, ptr %2, align 4
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %64
61: ; preds = %57
%62 = call i32 @perror(ptr noundef @.str.5)
%63 = call i32 @exit(i32 noundef -1) #3
unreachable
64: ; preds = %57
%65 = load i32, ptr @O_WRONLY, align 4
%66 = call i32 @open(ptr noundef @.str.2, i32 noundef %65)
store i32 %66, ptr %3, align 4
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %71
68: ; preds = %64
%69 = call i32 @perror(ptr noundef @.str.5)
%70 = call i32 @exit(i32 noundef -1) #3
unreachable
71: ; preds = %64
%72 = load i32, ptr %2, align 4
%73 = load i32, ptr %3, align 4
%74 = call i32 @client(i32 noundef %72, i32 noundef %73)
%75 = load i32, ptr %4, align 4
%76 = call i32 @waitpid(i32 noundef %75, ptr noundef null, i32 noundef 0)
%77 = call i32 @unlink(ptr noundef @.str)
%78 = call i32 @unlink(ptr noundef @.str.2)
%79 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @mkfifo(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @server(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @client(i32 noundef, i32 noundef) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ch907bu.c'
source_filename = "/tmp/tmp2ch907bu.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @countSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [500 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %15, %2
%9 = load i32, ptr %6, align 4
%10 = icmp ult i32 %9, 500
br i1 %10, label %11, label %18
11: ; preds = %8
%12 = load i32, ptr %6, align 4
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [500 x i8], ptr %5, i64 0, i64 %13
store i8 0, ptr %14, align 1
br label %15
15: ; preds = %11
%16 = load i32, ptr %6, align 4
%17 = add i32 %16, 1
store i32 %17, ptr %6, align 4
br label %8, !llvm.loop !6
18: ; preds = %8
store i32 0, ptr %7, align 4
br label %19
19: ; preds = %50, %18
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp ult i32 %20, %21
br i1 %22, label %23, label %53
23: ; preds = %19
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %7, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp uge i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %23
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %7, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp ult i32 %35, 500
br label %37
37: ; preds = %30, %23
%38 = phi i1 [ false, %23 ], [ %36, %30 ]
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 noundef %39)
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %7, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds [500 x i8], ptr %5, i64 0, i64 %46
%48 = load i8, ptr %47, align 1
%49 = add i8 %48, 1
store i8 %49, ptr %47, align 1
br label %50
50: ; preds = %37
%51 = load i32, ptr %7, align 4
%52 = add i32 %51, 1
store i32 %52, ptr %7, align 4
br label %19, !llvm.loop !8
53: ; preds = %19
store i32 0, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %54
54: ; preds = %73, %53
%55 = load i32, ptr %6, align 4
%56 = icmp ult i32 %55, 500
br i1 %56, label %57, label %76
57: ; preds = %54
br label %58
58: ; preds = %65, %57
%59 = load i32, ptr %6, align 4
%60 = zext i32 %59 to i64
%61 = getelementptr inbounds [500 x i8], ptr %5, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = add i8 %62, -1
store i8 %63, ptr %61, align 1
%64 = icmp ne i8 %62, 0
br i1 %64, label %65, label %72
65: ; preds = %58
%66 = load i32, ptr %6, align 4
%67 = load ptr, ptr %3, align 8
%68 = load i32, ptr %7, align 4
%69 = add i32 %68, 1
store i32 %69, ptr %7, align 4
%70 = zext i32 %68 to i64
%71 = getelementptr inbounds i32, ptr %67, i64 %70
store i32 %66, ptr %71, align 4
br label %58, !llvm.loop !9
72: ; preds = %58
br label %73
73: ; preds = %72
%74 = load i32, ptr %6, align 4
%75 = add i32 %74, 1
store i32 %75, ptr %6, align 4
br label %54, !llvm.loop !10
76: ; preds = %54
%77 = load i32, ptr %7, align 4
%78 = load i32, ptr %4, align 4
%79 = icmp eq i32 %77, %78
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 noundef %80)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ch907bu.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @countSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [500 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp ult i32 %8, 500
br i1 %9, label %.lr.ph, label %19
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %14
%11 = load i32, ptr %6, align 4
%12 = zext i32 %11 to i64
%13 = getelementptr inbounds [500 x i8], ptr %5, i64 0, i64 %12
store i8 0, ptr %13, align 1
br label %14
14: ; preds = %10
%15 = load i32, ptr %6, align 4
%16 = add i32 %15, 1
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp ult i32 %17, 500
br i1 %18, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %2
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp ult i32 %20, %21
br i1 %22, label %.lr.ph2, label %56
.lr.ph2: ; preds = %19
br label %23
23: ; preds = %.lr.ph2, %50
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %7, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp uge i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %23
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %7, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp ult i32 %35, 500
br label %37
37: ; preds = %30, %23
%38 = phi i1 [ false, %23 ], [ %36, %30 ]
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 noundef %39)
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %7, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds [500 x i8], ptr %5, i64 0, i64 %46
%48 = load i8, ptr %47, align 1
%49 = add i8 %48, 1
store i8 %49, ptr %47, align 1
br label %50
50: ; preds = %37
%51 = load i32, ptr %7, align 4
%52 = add i32 %51, 1
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp ult i32 %53, %54
br i1 %55, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %19
store i32 0, ptr %7, align 4
store i32 0, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = icmp ult i32 %57, 500
br i1 %58, label %.lr.ph8, label %85
.lr.ph8: ; preds = %56
br label %59
59: ; preds = %.lr.ph8, %80
%60 = load i32, ptr %6, align 4
%61 = zext i32 %60 to i64
%62 = getelementptr inbounds [500 x i8], ptr %5, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = add i8 %63, -1
store i8 %64, ptr %62, align 1
%65 = icmp ne i8 %63, 0
br i1 %65, label %.lr.ph5, label %79
.lr.ph5: ; preds = %59
br label %66
66: ; preds = %.lr.ph5, %66
%67 = load i32, ptr %6, align 4
%68 = load ptr, ptr %3, align 8
%69 = load i32, ptr %7, align 4
%70 = add i32 %69, 1
store i32 %70, ptr %7, align 4
%71 = zext i32 %69 to i64
%72 = getelementptr inbounds i32, ptr %68, i64 %71
store i32 %67, ptr %72, align 4
%73 = load i32, ptr %6, align 4
%74 = zext i32 %73 to i64
%75 = getelementptr inbounds [500 x i8], ptr %5, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = add i8 %76, -1
store i8 %77, ptr %75, align 1
%78 = icmp ne i8 %76, 0
br i1 %78, label %66, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %66
br label %79
79: ; preds = %._crit_edge6, %59
br label %80
80: ; preds = %79
%81 = load i32, ptr %6, align 4
%82 = add i32 %81, 1
store i32 %82, ptr %6, align 4
%83 = load i32, ptr %6, align 4
%84 = icmp ult i32 %83, 500
br i1 %84, label %59, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %80
br label %85
85: ; preds = %._crit_edge9, %56
%86 = load i32, ptr %7, align 4
%87 = load i32, ptr %4, align 4
%88 = icmp eq i32 %86, %87
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 noundef %89)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp87rz7hid.c'
source_filename = "/tmp/tmp87rz7hid.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-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"/sys/class/gpio/unexport\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @unexportIO(i8 noundef zeroext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i8 %0, ptr %3, align 1
%5 = load i8, ptr %3, align 1
%6 = zext i8 %5 to i32
switch i32 %6, label %55 [
i32 50, label %7
i32 51, label %13
i32 32, label %19
i32 18, label %25
i32 16, label %31
i32 25, label %37
i32 38, label %43
i32 39, label %49
]
7: ; preds = %1
%8 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 50)
store i32 %8, ptr %4, align 4
%9 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 40)
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, %9
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
store i32 %12, ptr %2, align 4
br label %58
13: ; preds = %1
%14 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 51)
store i32 %14, ptr %4, align 4
%15 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 41)
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %2, align 4
br label %58
19: ; preds = %1
%20 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 32)
store i32 %20, ptr %4, align 4
%21 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 31)
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, %21
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
store i32 %24, ptr %2, align 4
br label %58
25: ; preds = %1
%26 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 18)
store i32 %26, ptr %4, align 4
%27 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 30)
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
store i32 %30, ptr %2, align 4
br label %58
31: ; preds = %1
%32 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 16)
store i32 %32, ptr %4, align 4
%33 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 42)
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
store i32 %36, ptr %2, align 4
br label %58
37: ; preds = %1
%38 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 25)
store i32 %38, ptr %4, align 4
%39 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 43)
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, %39
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %4, align 4
store i32 %42, ptr %2, align 4
br label %58
43: ; preds = %1
%44 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 38)
store i32 %44, ptr %4, align 4
%45 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 54)
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %4, align 4
store i32 %48, ptr %2, align 4
br label %58
49: ; preds = %1
%50 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 39)
store i32 %50, ptr %4, align 4
%51 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 55)
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, %51
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
store i32 %54, ptr %2, align 4
br label %58
55: ; preds = %1
%56 = load i8, ptr %3, align 1
%57 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext %56)
store i32 %57, ptr %2, align 4
br label %58
58: ; preds = %55, %49, %43, %37, %31, %25, %19, %13, %7
%59 = load i32, ptr %2, align 4
ret i32 %59
}
declare i32 @writeInt(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp87rz7hid.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-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"/sys/class/gpio/unexport\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @unexportIO(i8 noundef zeroext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i8 %0, ptr %3, align 1
%5 = load i8, ptr %3, align 1
%6 = zext i8 %5 to i32
switch i32 %6, label %55 [
i32 50, label %7
i32 51, label %13
i32 32, label %19
i32 18, label %25
i32 16, label %31
i32 25, label %37
i32 38, label %43
i32 39, label %49
]
7: ; preds = %1
%8 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 50)
store i32 %8, ptr %4, align 4
%9 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 40)
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, %9
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
store i32 %12, ptr %2, align 4
br label %58
13: ; preds = %1
%14 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 51)
store i32 %14, ptr %4, align 4
%15 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 41)
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %2, align 4
br label %58
19: ; preds = %1
%20 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 32)
store i32 %20, ptr %4, align 4
%21 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 31)
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, %21
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
store i32 %24, ptr %2, align 4
br label %58
25: ; preds = %1
%26 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 18)
store i32 %26, ptr %4, align 4
%27 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 30)
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
store i32 %30, ptr %2, align 4
br label %58
31: ; preds = %1
%32 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 16)
store i32 %32, ptr %4, align 4
%33 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 42)
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
store i32 %36, ptr %2, align 4
br label %58
37: ; preds = %1
%38 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 25)
store i32 %38, ptr %4, align 4
%39 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 43)
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, %39
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %4, align 4
store i32 %42, ptr %2, align 4
br label %58
43: ; preds = %1
%44 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 38)
store i32 %44, ptr %4, align 4
%45 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 54)
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %4, align 4
store i32 %48, ptr %2, align 4
br label %58
49: ; preds = %1
%50 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 39)
store i32 %50, ptr %4, align 4
%51 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext 55)
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, %51
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
store i32 %54, ptr %2, align 4
br label %58
55: ; preds = %1
%56 = load i8, ptr %3, align 1
%57 = call i32 @writeInt(ptr noundef @.str, i8 noundef zeroext %56)
store i32 %57, ptr %2, align 4
br label %58
58: ; preds = %55, %49, %43, %37, %31, %25, %19, %13, %7
%59 = load i32, ptr %2, align 4
ret i32 %59
}
declare i32 @writeInt(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw_wvabey.c'
source_filename = "/tmp/tmpw_wvabey.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-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Usage: ftoc temperature\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"%f degrees Fahrenheit equals %f degrees Celsius\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call double @atof(ptr noundef %16)
store double %17, ptr %6, align 8
%18 = load double, ptr %6, align 8
%19 = fsub double %18, 3.200000e+01
%20 = fmul double 0x3FE1C71C71C71C72, %19
store double %20, ptr %7, align 8
%21 = load double, ptr %6, align 8
%22 = load double, ptr %7, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %21, double noundef %22)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw_wvabey.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-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Usage: ftoc temperature\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"%f degrees Fahrenheit equals %f degrees Celsius\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call double @atof(ptr noundef %16)
store double %17, ptr %6, align 8
%18 = load double, ptr %6, align 8
%19 = fsub double %18, 3.200000e+01
%20 = fmul double 0x3FE1C71C71C71C72, %19
store double %20, ptr %7, align 8
%21 = load double, ptr %6, align 8
%22 = load double, ptr %7, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %21, double noundef %22)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn6k3q2in.c'
source_filename = "/tmp/tmpn6k3q2in.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn6k3q2in.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ks8okja.c'
source_filename = "/tmp/tmp3ks8okja.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = srem i32 %5, 5
%7 = load i32, ptr %2, align 4
%8 = sub nsw i32 %7, %6
store i32 %8, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %16, %0
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = call i32 @printf(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 5
store i32 %18, ptr %3, align 4
br label %9, !llvm.loop !6
19: ; preds = %9
%20 = load i32, ptr %2, align 4
%21 = call i32 @printf(ptr noundef @.str.2, i32 noundef %20)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ks8okja.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = srem i32 %5, 5
%7 = load i32, ptr %2, align 4
%8 = sub nsw i32 %7, %6
store i32 %8, ptr %2, align 4
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %15
%13 = load i32, ptr %3, align 4
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %13)
br label %15
15: ; preds = %12
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 5
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %0
%22 = load i32, ptr %2, align 4
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp03yzm3pk.c'
source_filename = "/tmp/tmp03yzm3pk.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %9, %1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %4
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 1
store i64 %11, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 1
store ptr %13, ptr %2, align 8
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = load i64, ptr %3, align 8
ret i64 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp03yzm3pk.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i64, ptr %3, align 8
%10 = add i64 %9, 1
store i64 %10, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %17
17: ; preds = %._crit_edge, %1
%18 = load i64, ptr %3, align 8
ret i64 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0oc1kkha.c'
source_filename = "/tmp/tmp0oc1kkha.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-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"\0A 1. Factorial\0A 2. Prime\0A 3. Odd/Even\0A 4. Exit\0A?\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Factorial: %lld\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"The number you entered is prime.\0A\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"The number you entered is not prime.\0A\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"The number you entered was %s\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"even\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"odd\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"\0A Invalid Input\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca [301 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 100, ptr %2, align 4
br label %11
11: ; preds = %93, %0
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %94
14: ; preds = %11
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%17 = load i32, ptr %2, align 4
switch i32 %17, label %91 [
i32 1, label %18
i32 2, label %31
i32 3, label %82
i32 4, label %90
]
18: ; preds = %14
store i64 1, ptr %3, align 8
store i64 0, ptr %4, align 8
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
br label %20
20: ; preds = %23, %18
%21 = load i64, ptr %4, align 8
%22 = icmp sgt i64 %21, 1
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i64, ptr %4, align 8
%25 = add nsw i64 %24, -1
store i64 %25, ptr %4, align 8
%26 = load i64, ptr %3, align 8
%27 = mul nsw i64 %26, %24
store i64 %27, ptr %3, align 8
br label %20, !llvm.loop !6
28: ; preds = %20
%29 = load i64, ptr %3, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %29)
br label %93
31: ; preds = %14
store i32 0, ptr %5, align 4
%32 = load i32, ptr %5, align 4
%33 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, i32 noundef %32)
store i32 1, ptr %7, align 4
br label %34
34: ; preds = %41, %31
%35 = load i32, ptr %7, align 4
%36 = icmp sle i32 %35, 300
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [301 x i32], ptr %6, i64 0, i64 %39
store i32 1, ptr %40, align 4
br label %41
41: ; preds = %37
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
br label %34, !llvm.loop !8
44: ; preds = %34
store i32 2, ptr %8, align 4
br label %45
45: ; preds = %68, %44
%46 = load i32, ptr %8, align 4
%47 = icmp sle i32 %46, 300
br i1 %47, label %48, label %71
48: ; preds = %45
%49 = load i32, ptr %8, align 4
%50 = mul nsw i32 %49, 2
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %64, %48
%52 = load i32, ptr %9, align 4
%53 = icmp sle i32 %52, 300
br i1 %53, label %54, label %67
54: ; preds = %51
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %8, align 4
%57 = srem i32 %55, %56
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %54
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [301 x i32], ptr %6, i64 0, i64 %61
store i32 0, ptr %62, align 4
br label %63
63: ; preds = %59, %54
br label %64
64: ; preds = %63
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %9, align 4
br label %51, !llvm.loop !9
67: ; preds = %51
br label %68
68: ; preds = %67
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %8, align 4
br label %45, !llvm.loop !10
71: ; preds = %45
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [301 x i32], ptr %6, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %81
79: ; preds = %71
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %81
81: ; preds = %79, %77
br label %93
82: ; preds = %14
%83 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %10)
%84 = load i32, ptr %10, align 4
%85 = srem i32 %84, 2
%86 = icmp eq i32 %85, 0
%87 = zext i1 %86 to i64
%88 = select i1 %86, ptr @.str.7, ptr @.str.8
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %88)
br label %93
90: ; preds = %14
store i32 0, ptr %2, align 4
br label %93
91: ; preds = %14
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %93
93: ; preds = %91, %90, %82, %81, %28
br label %11, !llvm.loop !11
94: ; preds = %11
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0oc1kkha.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-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"\0A 1. Factorial\0A 2. Prime\0A 3. Odd/Even\0A 4. Exit\0A?\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Factorial: %lld\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"The number you entered is prime.\0A\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"The number you entered is not prime.\0A\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"The number you entered was %s\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"even\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"odd\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"\0A Invalid Input\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca [301 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 100, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph11, label %99
.lr.ph11: ; preds = %0
br label %13
13: ; preds = %.lr.ph11, %96
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = load i32, ptr %2, align 4
switch i32 %16, label %94 [
i32 1, label %17
i32 2, label %31
i32 3, label %85
i32 4, label %93
]
17: ; preds = %13
store i64 1, ptr %3, align 8
store i64 0, ptr %4, align 8
%18 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
%19 = load i64, ptr %4, align 8
%20 = icmp sgt i64 %19, 1
br i1 %20, label %.lr.ph8, label %28
.lr.ph8: ; preds = %17
br label %21
21: ; preds = %.lr.ph8, %21
%22 = load i64, ptr %4, align 8
%23 = add nsw i64 %22, -1
store i64 %23, ptr %4, align 8
%24 = load i64, ptr %3, align 8
%25 = mul nsw i64 %24, %22
store i64 %25, ptr %3, align 8
%26 = load i64, ptr %4, align 8
%27 = icmp sgt i64 %26, 1
br i1 %27, label %21, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %21
br label %28
28: ; preds = %._crit_edge9, %17
%29 = load i64, ptr %3, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %29)
br label %96
31: ; preds = %13
store i32 0, ptr %5, align 4
%32 = load i32, ptr %5, align 4
%33 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, i32 noundef %32)
store i32 1, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp sle i32 %34, 300
br i1 %35, label %.lr.ph, label %45
.lr.ph: ; preds = %31
br label %36
36: ; preds = %.lr.ph, %40
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [301 x i32], ptr %6, i64 0, i64 %38
store i32 1, ptr %39, align 4
br label %40
40: ; preds = %36
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %7, align 4
%43 = load i32, ptr %7, align 4
%44 = icmp sle i32 %43, 300
br i1 %44, label %36, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %40
br label %45
45: ; preds = %._crit_edge, %31
store i32 2, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp sle i32 %46, 300
br i1 %47, label %.lr.ph5, label %74
.lr.ph5: ; preds = %45
br label %48
48: ; preds = %.lr.ph5, %69
%49 = load i32, ptr %8, align 4
%50 = mul nsw i32 %49, 2
store i32 %50, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = icmp sle i32 %51, 300
br i1 %52, label %.lr.ph2, label %68
.lr.ph2: ; preds = %48
br label %53
53: ; preds = %.lr.ph2, %63
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %8, align 4
%56 = srem i32 %54, %55
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %53
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [301 x i32], ptr %6, i64 0, i64 %60
store i32 0, ptr %61, align 4
br label %62
62: ; preds = %58, %53
br label %63
63: ; preds = %62
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
%66 = load i32, ptr %9, align 4
%67 = icmp sle i32 %66, 300
br i1 %67, label %53, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %63
br label %68
68: ; preds = %._crit_edge3, %48
br label %69
69: ; preds = %68
%70 = load i32, ptr %8, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %8, align 4
%72 = load i32, ptr %8, align 4
%73 = icmp sle i32 %72, 300
br i1 %73, label %48, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %69
br label %74
74: ; preds = %._crit_edge6, %45
%75 = load i32, ptr %5, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [301 x i32], ptr %6, i64 0, i64 %76
%78 = load i32, ptr %77, align 4
%79 = icmp eq i32 %78, 1
br i1 %79, label %80, label %82
80: ; preds = %74
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %84
82: ; preds = %74
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %84
84: ; preds = %82, %80
br label %96
85: ; preds = %13
%86 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %10)
%87 = load i32, ptr %10, align 4
%88 = srem i32 %87, 2
%89 = icmp eq i32 %88, 0
%90 = zext i1 %89 to i64
%91 = select i1 %89, ptr @.str.7, ptr @.str.8
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %91)
br label %96
93: ; preds = %13
store i32 0, ptr %2, align 4
br label %96
94: ; preds = %13
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %96
96: ; preds = %94, %93, %85, %84, %28
%97 = load i32, ptr %2, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %13, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %96
br label %99
99: ; preds = %._crit_edge12, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpijhsm1tc.c'
source_filename = "/tmp/tmpijhsm1tc.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-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Insert an integer :\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%c\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"failure\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"valid integer followed by enter key\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6, ptr noundef %7)
%10 = icmp ne i32 %9, 2
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i8, ptr %7, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 10
br i1 %14, label %15, label %17
15: ; preds = %11, %2
%16 = call i32 @printf(ptr noundef @.str.2)
br label %19
17: ; preds = %11
%18 = call i32 @printf(ptr noundef @.str.3)
br label %19
19: ; preds = %17, %15
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpijhsm1tc.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-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Insert an integer :\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%c\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"failure\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"valid integer followed by enter key\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6, ptr noundef %7)
%10 = icmp ne i32 %9, 2
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i8, ptr %7, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 10
br i1 %14, label %15, label %17
15: ; preds = %11, %2
%16 = call i32 @printf(ptr noundef @.str.2)
br label %19
17: ; preds = %11
%18 = call i32 @printf(ptr noundef @.str.3)
br label %19
19: ; preds = %17, %15
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdtae916t.c'
source_filename = "/tmp/tmpdtae916t.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @map_cmp_uint32(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %11, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i64, ptr %13, align 8
%15 = icmp sgt i64 %12, %14
%16 = zext i1 %15 to i32
%17 = load ptr, ptr %7, align 8
%18 = load i64, ptr %17, align 8
%19 = load ptr, ptr %8, align 8
%20 = load i64, ptr %19, align 8
%21 = icmp slt i64 %18, %20
%22 = zext i1 %21 to i32
%23 = sub nsw i32 %16, %22
ret i32 %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdtae916t.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @map_cmp_uint32(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %11, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i64, ptr %13, align 8
%15 = icmp sgt i64 %12, %14
%16 = zext i1 %15 to i32
%17 = load ptr, ptr %7, align 8
%18 = load i64, ptr %17, align 8
%19 = load ptr, ptr %8, align 8
%20 = load i64, ptr %19, align 8
%21 = icmp slt i64 %18, %20
%22 = zext i1 %21 to i32
%23 = sub nsw i32 %16, %22
ret i32 %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0_76y4ws.c'
source_filename = "/tmp/tmp0_76y4ws.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calc_rmsd_c(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %47, %3
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %50
14: ; preds = %10
store i32 0, ptr %9, align 4
br label %15
15: ; preds = %43, %14
%16 = load i32, ptr %9, align 4
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %46
18: ; preds = %15
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
%23 = load double, ptr %22, align 8
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
%29 = fsub double %23, %28
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %30, i64 %32
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, ptr %35, i64 %37
%39 = load double, ptr %38, align 8
%40 = fsub double %34, %39
%41 = load double, ptr %7, align 8
%42 = call double @llvm.fmuladd.f64(double %29, double %40, double %41)
store double %42, ptr %7, align 8
br label %43
43: ; preds = %18
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %9, align 4
br label %15, !llvm.loop !6
46: ; preds = %15
br label %47
47: ; preds = %46
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
br label %10, !llvm.loop !8
50: ; preds = %10
%51 = load i32, ptr %6, align 4
%52 = sitofp i32 %51 to double
%53 = load double, ptr %7, align 8
%54 = fdiv double %53, %52
store double %54, ptr %7, align 8
%55 = load double, ptr %7, align 8
%56 = call double @sqrt(double noundef %55) #3
ret double %56
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0_76y4ws.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calc_rmsd_c(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %7, align 8
store i32 0, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %53
.lr.ph2: ; preds = %3
br label %13
13: ; preds = %.lr.ph2, %47
store i32 0, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp slt i32 %14, 3
br i1 %15, label %.lr.ph, label %46
.lr.ph: ; preds = %13
br label %16
16: ; preds = %.lr.ph, %41
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
%21 = load double, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %22, i64 %24
%26 = load double, ptr %25, align 8
%27 = fsub double %21, %26
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %28, i64 %30
%32 = load double, ptr %31, align 8
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %33, i64 %35
%37 = load double, ptr %36, align 8
%38 = fsub double %32, %37
%39 = load double, ptr %7, align 8
%40 = call double @llvm.fmuladd.f64(double %27, double %38, double %39)
store double %40, ptr %7, align 8
br label %41
41: ; preds = %16
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %9, align 4
%44 = load i32, ptr %9, align 4
%45 = icmp slt i32 %44, 3
br i1 %45, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %46
46: ; preds = %._crit_edge, %13
br label %47
47: ; preds = %46
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %53
53: ; preds = %._crit_edge3, %3
%54 = load i32, ptr %6, align 4
%55 = sitofp i32 %54 to double
%56 = load double, ptr %7, align 8
%57 = fdiv double %56, %55
store double %57, ptr %7, align 8
%58 = load double, ptr %7, align 8
%59 = call double @sqrt(double noundef %58) #3
ret double %59
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpk542pyzz.c'
source_filename = "/tmp/tmpk542pyzz.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-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"getmode : %d\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"getMode() error\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"regsr() error\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"\0A\0Ainto mode 3\0A\0A\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"parent_pid = %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"i = %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Child_pid = %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"do work with reg\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [12 x i8] c"file xfer \0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"Fork() error: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [31 x i8] c"Exit status of %d was %d (%s)\0A\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"reject\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @getMode(i32 noundef %11, ptr noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %114
21: ; preds = %2
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = call i64 (...) @regsr()
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr @stderr, align 4
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %114
30: ; preds = %24
br label %31
31: ; preds = %30, %21
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, 2
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = call i64 (...) @xfer()
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr @stderr, align 4
%39 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %114
40: ; preds = %34
br label %41
41: ; preds = %40, %31
%42 = load i32, ptr %6, align 4
%43 = icmp eq i32 %42, 3
br i1 %43, label %44, label %113
44: ; preds = %41
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%46 = call i32 (...) @getpid()
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %46)
store i32 0, ptr %7, align 4
br label %48
48: ; preds = %96, %44
%49 = load i32, ptr %7, align 4
%50 = icmp slt i32 %49, 2
br i1 %50, label %51, label %99
51: ; preds = %48
%52 = load i32, ptr %7, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %52)
%54 = call i64 (...) @fork()
store i64 %54, ptr %10, align 8
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %85
56: ; preds = %51
%57 = call i32 (...) @getpid()
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %57)
%59 = load i32, ptr %7, align 4
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %73
61: ; preds = %56
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%63 = call i64 (...) @regsr()
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %61
%66 = load i32, ptr @stderr, align 4
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.2)
%68 = load i32, ptr @EXIT_FAILURE, align 4
%69 = call i32 @exit(i32 noundef %68) #3
unreachable
70: ; preds = %61
%71 = load i32, ptr @EXIT_SUCCESS, align 4
%72 = call i32 @exit(i32 noundef %71) #3
unreachable
73: ; preds = %56
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%75 = call i64 (...) @xfer()
%76 = icmp slt i64 %75, 0
br i1 %76, label %77, label %82
77: ; preds = %73
%78 = load i32, ptr @stderr, align 4
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %78, ptr noundef @.str.2)
%80 = load i32, ptr @EXIT_FAILURE, align 4
%81 = call i32 @exit(i32 noundef %80) #3
unreachable
82: ; preds = %73
%83 = load i32, ptr @EXIT_SUCCESS, align 4
%84 = call i32 @exit(i32 noundef %83) #3
unreachable
85: ; preds = %51
%86 = load i64, ptr %10, align 8
%87 = icmp slt i64 %86, 0
br i1 %87, label %88, label %95
88: ; preds = %85
%89 = load i32, ptr @stderr, align 4
%90 = load i32, ptr @errno, align 4
%91 = call ptr @strerror(i32 noundef %90)
%92 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %89, ptr noundef @.str.9, ptr noundef %91)
%93 = load i32, ptr @EXIT_FAILURE, align 4
%94 = call i32 @exit(i32 noundef %93) #3
unreachable
95: ; preds = %85
br label %96
96: ; preds = %95
%97 = load i32, ptr %7, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %7, align 4
br label %48, !llvm.loop !6
99: ; preds = %48
br label %100
100: ; preds = %103, %99
%101 = call i64 @wait(ptr noundef %8)
store i64 %101, ptr %9, align 8
%102 = icmp sgt i64 %101, 0
br i1 %102, label %103, label %112
103: ; preds = %100
%104 = load i64, ptr %9, align 8
%105 = trunc i64 %104 to i32
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %8, align 4
%108 = icmp sgt i32 %107, 0
%109 = zext i1 %108 to i64
%110 = select i1 %108, ptr @.str.11, ptr @.str.12
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %105, i32 noundef %106, ptr noundef %110)
br label %100, !llvm.loop !8
112: ; preds = %100
br label %113
113: ; preds = %112, %41
store i32 0, ptr %3, align 4
br label %114
114: ; preds = %113, %37, %27, %18
%115 = load i32, ptr %3, align 4
ret i32 %115
}
declare i32 @getMode(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @regsr(...) #1
declare i64 @xfer(...) #1
declare i32 @getpid(...) #1
declare i64 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @strerror(i32 noundef) #1
declare i64 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk542pyzz.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-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"getmode : %d\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"getMode() error\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"regsr() error\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"\0A\0Ainto mode 3\0A\0A\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"parent_pid = %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"i = %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Child_pid = %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"do work with reg\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [12 x i8] c"file xfer \0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"Fork() error: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [31 x i8] c"Exit status of %d was %d (%s)\0A\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"reject\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @getMode(i32 noundef %11, ptr noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %116
21: ; preds = %2
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = call i64 (...) @regsr()
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr @stderr, align 4
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %116
30: ; preds = %24
br label %31
31: ; preds = %30, %21
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, 2
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = call i64 (...) @xfer()
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr @stderr, align 4
%39 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %116
40: ; preds = %34
br label %41
41: ; preds = %40, %31
%42 = load i32, ptr %6, align 4
%43 = icmp eq i32 %42, 3
br i1 %43, label %44, label %115
44: ; preds = %41
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%46 = call i32 (...) @getpid()
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %46)
store i32 0, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = icmp slt i32 %48, 2
br i1 %49, label %.lr.ph, label %100
.lr.ph: ; preds = %44
br label %50
50: ; preds = %.lr.ph, %95
%51 = load i32, ptr %7, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %51)
%53 = call i64 (...) @fork()
store i64 %53, ptr %10, align 8
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %84
55: ; preds = %50
%56 = call i32 (...) @getpid()
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %56)
%58 = load i32, ptr %7, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %72
60: ; preds = %55
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%62 = call i64 (...) @regsr()
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = load i32, ptr @stderr, align 4
%66 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %65, ptr noundef @.str.2)
%67 = load i32, ptr @EXIT_FAILURE, align 4
%68 = call i32 @exit(i32 noundef %67) #3
unreachable
69: ; preds = %60
%70 = load i32, ptr @EXIT_SUCCESS, align 4
%71 = call i32 @exit(i32 noundef %70) #3
unreachable
72: ; preds = %55
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%74 = call i64 (...) @xfer()
%75 = icmp slt i64 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %72
%77 = load i32, ptr @stderr, align 4
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.2)
%79 = load i32, ptr @EXIT_FAILURE, align 4
%80 = call i32 @exit(i32 noundef %79) #3
unreachable
81: ; preds = %72
%82 = load i32, ptr @EXIT_SUCCESS, align 4
%83 = call i32 @exit(i32 noundef %82) #3
unreachable
84: ; preds = %50
%85 = load i64, ptr %10, align 8
%86 = icmp slt i64 %85, 0
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = load i32, ptr @stderr, align 4
%89 = load i32, ptr @errno, align 4
%90 = call ptr @strerror(i32 noundef %89)
%91 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %88, ptr noundef @.str.9, ptr noundef %90)
%92 = load i32, ptr @EXIT_FAILURE, align 4
%93 = call i32 @exit(i32 noundef %92) #3
unreachable
94: ; preds = %84
br label %95
95: ; preds = %94
%96 = load i32, ptr %7, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %7, align 4
%98 = load i32, ptr %7, align 4
%99 = icmp slt i32 %98, 2
br i1 %99, label %50, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %95
br label %100
100: ; preds = %._crit_edge, %44
%101 = call i64 @wait(ptr noundef %8)
store i64 %101, ptr %9, align 8
%102 = icmp sgt i64 %101, 0
br i1 %102, label %.lr.ph2, label %114
.lr.ph2: ; preds = %100
br label %103
103: ; preds = %.lr.ph2, %103
%104 = load i64, ptr %9, align 8
%105 = trunc i64 %104 to i32
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %8, align 4
%108 = icmp sgt i32 %107, 0
%109 = zext i1 %108 to i64
%110 = select i1 %108, ptr @.str.11, ptr @.str.12
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %105, i32 noundef %106, ptr noundef %110)
%112 = call i64 @wait(ptr noundef %8)
store i64 %112, ptr %9, align 8
%113 = icmp sgt i64 %112, 0
br i1 %113, label %103, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %103
br label %114
114: ; preds = %._crit_edge3, %100
br label %115
115: ; preds = %114, %41
store i32 0, ptr %3, align 4
br label %116
116: ; preds = %115, %37, %27, %18
%117 = load i32, ptr %3, align 4
ret i32 %117
}
declare i32 @getMode(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @regsr(...) #1
declare i64 @xfer(...) #1
declare i32 @getpid(...) #1
declare i64 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @strerror(i32 noundef) #1
declare i64 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpprsu4u11.c'
source_filename = "/tmp/tmpprsu4u11.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Lamda(i32 noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store double %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
store double 0.000000e+00, ptr %14, align 8
%15 = load double, ptr %9, align 8
%16 = fcmp oeq double %15, 0.000000e+00
br i1 %16, label %17, label %18
17: ; preds = %6
store double 5.000000e-01, ptr %14, align 8
br label %62
18: ; preds = %6
store i32 1, ptr %13, align 4
br label %19
19: ; preds = %49, %18
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %11, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %52
23: ; preds = %19
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %13, align 4
%26 = icmp ne i32 %24, %25
br i1 %26, label %27, label %48
27: ; preds = %23
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %13, align 4
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %48
31: ; preds = %27
%32 = load i32, ptr %13, align 4
%33 = load ptr, ptr %10, align 8
%34 = call i32 @Emptied(i32 noundef %32, ptr noundef %33)
%35 = icmp ne i32 %34, 0
br i1 %35, label %48, label %36
36: ; preds = %31
%37 = load double, ptr %14, align 8
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %13, align 4
%40 = load ptr, ptr %10, align 8
%41 = call double @Variance(i32 noundef %38, i32 noundef %39, ptr noundef %40)
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %13, align 4
%44 = load ptr, ptr %10, align 8
%45 = call double @Variance(i32 noundef %42, i32 noundef %43, ptr noundef %44)
%46 = fsub double %41, %45
%47 = fadd double %37, %46
store double %47, ptr %14, align 8
br label %48
48: ; preds = %36, %31, %27, %23
br label %49
49: ; preds = %48
%50 = load i32, ptr %13, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %13, align 4
br label %19, !llvm.loop !6
52: ; preds = %19
%53 = load double, ptr %14, align 8
%54 = load i32, ptr %12, align 4
%55 = sub nsw i32 %54, 2
%56 = mul nsw i32 2, %55
%57 = sitofp i32 %56 to double
%58 = load double, ptr %9, align 8
%59 = fmul double %57, %58
%60 = fdiv double %53, %59
%61 = fadd double 5.000000e-01, %60
store double %61, ptr %14, align 8
br label %62
62: ; preds = %52, %17
%63 = load double, ptr %14, align 8
%64 = fcmp ogt double %63, 1.000000e+00
br i1 %64, label %65, label %66
65: ; preds = %62
store double 1.000000e+00, ptr %14, align 8
br label %66
66: ; preds = %65, %62
%67 = load double, ptr %14, align 8
%68 = fcmp olt double %67, 0.000000e+00
br i1 %68, label %69, label %70
69: ; preds = %66
store double 0.000000e+00, ptr %14, align 8
br label %70
70: ; preds = %69, %66
%71 = load double, ptr %14, align 8
ret double %71
}
declare i32 @Emptied(i32 noundef, ptr noundef) #1
declare double @Variance(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpprsu4u11.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Lamda(i32 noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store double %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
store double 0.000000e+00, ptr %14, align 8
%15 = load double, ptr %9, align 8
%16 = fcmp oeq double %15, 0.000000e+00
br i1 %16, label %17, label %18
17: ; preds = %6
store double 5.000000e-01, ptr %14, align 8
br label %64
18: ; preds = %6
store i32 1, ptr %13, align 4
%19 = load i32, ptr %13, align 4
%20 = load i32, ptr %11, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %.lr.ph, label %54
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %48
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %13, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %47
26: ; preds = %22
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %13, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %47
30: ; preds = %26
%31 = load i32, ptr %13, align 4
%32 = load ptr, ptr %10, align 8
%33 = call i32 @Emptied(i32 noundef %31, ptr noundef %32)
%34 = icmp ne i32 %33, 0
br i1 %34, label %47, label %35
35: ; preds = %30
%36 = load double, ptr %14, align 8
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %13, align 4
%39 = load ptr, ptr %10, align 8
%40 = call double @Variance(i32 noundef %37, i32 noundef %38, ptr noundef %39)
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %13, align 4
%43 = load ptr, ptr %10, align 8
%44 = call double @Variance(i32 noundef %41, i32 noundef %42, ptr noundef %43)
%45 = fsub double %40, %44
%46 = fadd double %36, %45
store double %46, ptr %14, align 8
br label %47
47: ; preds = %35, %30, %26, %22
br label %48
48: ; preds = %47
%49 = load i32, ptr %13, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %13, align 4
%51 = load i32, ptr %13, align 4
%52 = load i32, ptr %11, align 4
%53 = icmp sle i32 %51, %52
br i1 %53, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %54
54: ; preds = %._crit_edge, %18
%55 = load double, ptr %14, align 8
%56 = load i32, ptr %12, align 4
%57 = sub nsw i32 %56, 2
%58 = mul nsw i32 2, %57
%59 = sitofp i32 %58 to double
%60 = load double, ptr %9, align 8
%61 = fmul double %59, %60
%62 = fdiv double %55, %61
%63 = fadd double 5.000000e-01, %62
store double %63, ptr %14, align 8
br label %64
64: ; preds = %54, %17
%65 = load double, ptr %14, align 8
%66 = fcmp ogt double %65, 1.000000e+00
br i1 %66, label %67, label %68
67: ; preds = %64
store double 1.000000e+00, ptr %14, align 8
br label %68
68: ; preds = %67, %64
%69 = load double, ptr %14, align 8
%70 = fcmp olt double %69, 0.000000e+00
br i1 %70, label %71, label %72
71: ; preds = %68
store double 0.000000e+00, ptr %14, align 8
br label %72
72: ; preds = %71, %68
%73 = load double, ptr %14, align 8
ret double %73
}
declare i32 @Emptied(i32 noundef, ptr noundef) #1
declare double @Variance(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3s6n3uyr.c'
source_filename = "/tmp/tmp3s6n3uyr.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3s6n3uyr.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkizmyf4j.c'
source_filename = "/tmp/tmpkizmyf4j.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-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Introduzca su nombre completo: \00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [30 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @printf(ptr noundef @.str)
%8 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 0
%9 = load i32, ptr @stdin, align 4
%10 = call i32 @fgets(ptr noundef %8, i32 noundef 30, i32 noundef %9)
%11 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @saludar(ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @saludar(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkizmyf4j.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-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Introduzca su nombre completo: \00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [30 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @printf(ptr noundef @.str)
%8 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 0
%9 = load i32, ptr @stdin, align 4
%10 = call i32 @fgets(ptr noundef %8, i32 noundef 30, i32 noundef %9)
%11 = getelementptr inbounds [30 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @saludar(ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @saludar(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoa54anmy.c'
source_filename = "/tmp/tmpoa54anmy.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoa54anmy.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw4be3rkw.c'
source_filename = "/tmp/tmpw4be3rkw.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-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ULLONG_MAX = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoull(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i64 0, ptr %10, align 8
%17 = load ptr, ptr %5, align 8
store ptr %17, ptr %12, align 8
br label %18
18: ; preds = %23, %3
%19 = load ptr, ptr %12, align 8
%20 = load i8, ptr %19, align 1
%21 = call i64 @isspace(i8 noundef signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load ptr, ptr %12, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %12, align 8
br label %18, !llvm.loop !6
26: ; preds = %18
%27 = load ptr, ptr %12, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 45
br i1 %30, label %31, label %34
31: ; preds = %26
store i32 1, ptr %8, align 4
%32 = load ptr, ptr %12, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %12, align 8
br label %43
34: ; preds = %26
%35 = load ptr, ptr %12, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 43
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load ptr, ptr %12, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %12, align 8
br label %42
42: ; preds = %39, %34
br label %43
43: ; preds = %42, %31
%44 = load ptr, ptr %12, align 8
store ptr %44, ptr %11, align 8
%45 = load i32, ptr %7, align 4
%46 = icmp eq i32 %45, 16
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = load ptr, ptr %12, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 48
br i1 %52, label %53, label %54
53: ; preds = %47
br label %74
54: ; preds = %47, %43
%55 = load i32, ptr %7, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %68
57: ; preds = %54
%58 = load i32, ptr %7, align 4
%59 = sub nsw i32 %58, 2
store i32 %59, ptr %13, align 4
%60 = load i32, ptr %13, align 4
%61 = icmp ugt i32 %60, 34
%62 = zext i1 %61 to i32
%63 = call i64 @__unlikely(i32 noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %57
%66 = load i32, ptr @EINVAL, align 4
store i32 %66, ptr @errno, align 4
store i64 0, ptr %4, align 8
br label %212
67: ; preds = %57
br label %98
68: ; preds = %54
%69 = load ptr, ptr %12, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 48
br i1 %72, label %73, label %96
73: ; preds = %68
store i32 8, ptr %7, align 4
br label %74
74: ; preds = %73, %53
%75 = load ptr, ptr %12, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 1
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 120
br i1 %79, label %86, label %80
80: ; preds = %74
%81 = load ptr, ptr %12, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 1
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 88
br i1 %85, label %86, label %95
86: ; preds = %80, %74
%87 = load ptr, ptr %12, align 8
%88 = getelementptr inbounds i8, ptr %87, i64 2
%89 = load i8, ptr %88, align 1
%90 = call i64 @isxdigit(i8 noundef signext %89)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %86
%93 = load ptr, ptr %12, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 2
store ptr %94, ptr %12, align 8
store i32 16, ptr %7, align 4
br label %95
95: ; preds = %92, %86, %80
br label %97
96: ; preds = %68
store i32 10, ptr %7, align 4
br label %97
97: ; preds = %96, %95
br label %98
98: ; preds = %97, %67
br label %99
99: ; preds = %171, %98
%100 = load ptr, ptr %12, align 8
%101 = load i8, ptr %100, align 1
%102 = call i64 @__likely(i8 noundef signext %101)
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %179
104: ; preds = %99
%105 = load ptr, ptr %12, align 8
%106 = load i8, ptr %105, align 1
store i8 %106, ptr %14, align 1
%107 = load i8, ptr %14, align 1
%108 = zext i8 %107 to i32
%109 = icmp sge i32 %108, 97
br i1 %109, label %110, label %115
110: ; preds = %104
%111 = load i8, ptr %14, align 1
%112 = zext i8 %111 to i32
%113 = sub nsw i32 %112, 97
%114 = add nsw i32 %113, 10
br label %137
115: ; preds = %104
%116 = load i8, ptr %14, align 1
%117 = zext i8 %116 to i32
%118 = icmp sge i32 %117, 65
br i1 %118, label %119, label %124
119: ; preds = %115
%120 = load i8, ptr %14, align 1
%121 = zext i8 %120 to i32
%122 = sub nsw i32 %121, 65
%123 = add nsw i32 %122, 10
br label %135
124: ; preds = %115
%125 = load i8, ptr %14, align 1
%126 = zext i8 %125 to i32
%127 = icmp sle i32 %126, 57
br i1 %127, label %128, label %132
128: ; preds = %124
%129 = load i8, ptr %14, align 1
%130 = zext i8 %129 to i32
%131 = sub nsw i32 %130, 48
br label %133
132: ; preds = %124
br label %133
133: ; preds = %132, %128
%134 = phi i32 [ %131, %128 ], [ 255, %132 ]
br label %135
135: ; preds = %133, %119
%136 = phi i32 [ %123, %119 ], [ %134, %133 ]
br label %137
137: ; preds = %135, %110
%138 = phi i32 [ %114, %110 ], [ %136, %135 ]
%139 = trunc i32 %138 to i8
store i8 %139, ptr %14, align 1
%140 = load i8, ptr %14, align 1
%141 = zext i8 %140 to i32
%142 = load i32, ptr %7, align 4
%143 = icmp sge i32 %141, %142
%144 = zext i1 %143 to i32
%145 = call i64 @__unlikely(i32 noundef %144)
%146 = icmp ne i64 %145, 0
br i1 %146, label %147, label %148
147: ; preds = %137
br label %179
148: ; preds = %137
%149 = load i64, ptr %10, align 8
%150 = and i64 %149, 255
%151 = load i32, ptr %7, align 4
%152 = sext i32 %151 to i64
%153 = mul nsw i64 %150, %152
%154 = load i8, ptr %14, align 1
%155 = zext i8 %154 to i64
%156 = add nsw i64 %153, %155
store i64 %156, ptr %15, align 8
%157 = load i64, ptr %10, align 8
%158 = ashr i64 %157, 8
%159 = load i32, ptr %7, align 4
%160 = sext i32 %159 to i64
%161 = mul nsw i64 %158, %160
%162 = load i64, ptr %15, align 8
%163 = lshr i64 %162, 8
%164 = add i64 %161, %163
store i64 %164, ptr %16, align 8
%165 = load i64, ptr %16, align 8
%166 = load i32, ptr @ULLONG_MAX, align 4
%167 = ashr i32 %166, 8
%168 = sext i32 %167 to i64
%169 = icmp ugt i64 %165, %168
br i1 %169, label %170, label %171
170: ; preds = %148
store i32 1, ptr %9, align 4
br label %171
171: ; preds = %170, %148
%172 = load i64, ptr %16, align 8
%173 = shl i64 %172, 8
%174 = load i64, ptr %15, align 8
%175 = and i64 %174, 255
%176 = add i64 %173, %175
store i64 %176, ptr %10, align 8
%177 = load ptr, ptr %12, align 8
%178 = getelementptr inbounds i8, ptr %177, i32 1
store ptr %178, ptr %12, align 8
br label %99, !llvm.loop !8
179: ; preds = %147, %99
%180 = load ptr, ptr %12, align 8
%181 = load ptr, ptr %11, align 8
%182 = icmp eq ptr %180, %181
%183 = zext i1 %182 to i32
%184 = call i64 @__unlikely(i32 noundef %183)
%185 = icmp ne i64 %184, 0
br i1 %185, label %186, label %189
186: ; preds = %179
%187 = load ptr, ptr %5, align 8
store ptr %187, ptr %12, align 8
%188 = load i32, ptr @EINVAL, align 4
store i32 %188, ptr @errno, align 4
store i64 0, ptr %10, align 8
br label %189
189: ; preds = %186, %179
%190 = load ptr, ptr %6, align 8
%191 = icmp ne ptr %190, null
br i1 %191, label %192, label %195
192: ; preds = %189
%193 = load ptr, ptr %12, align 8
%194 = load ptr, ptr %6, align 8
store ptr %193, ptr %194, align 8
br label %195
195: ; preds = %192, %189
%196 = load i32, ptr %9, align 4
%197 = icmp ne i32 %196, 0
br i1 %197, label %198, label %202
198: ; preds = %195
%199 = load i32, ptr @ERANGE, align 4
store i32 %199, ptr @errno, align 4
%200 = load i32, ptr @ULLONG_MAX, align 4
%201 = sext i32 %200 to i64
store i64 %201, ptr %4, align 8
br label %212
202: ; preds = %195
%203 = load i32, ptr %8, align 4
%204 = icmp ne i32 %203, 0
br i1 %204, label %205, label %208
205: ; preds = %202
%206 = load i64, ptr %10, align 8
%207 = sub nsw i64 0, %206
br label %210
208: ; preds = %202
%209 = load i64, ptr %10, align 8
br label %210
210: ; preds = %208, %205
%211 = phi i64 [ %207, %205 ], [ %209, %208 ]
store i64 %211, ptr %4, align 8
br label %212
212: ; preds = %210, %198, %65
%213 = load i64, ptr %4, align 8
ret i64 %213
}
declare i64 @isspace(i8 noundef signext) #1
declare i64 @__unlikely(i32 noundef) #1
declare i64 @isxdigit(i8 noundef signext) #1
declare i64 @__likely(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw4be3rkw.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-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ULLONG_MAX = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoull(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i64 0, ptr %10, align 8
%17 = load ptr, ptr %5, align 8
store ptr %17, ptr %12, align 8
%18 = load ptr, ptr %12, align 8
%19 = load i8, ptr %18, align 1
%20 = call i64 @isspace(i8 noundef signext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %22
22: ; preds = %.lr.ph, %22
%23 = load ptr, ptr %12, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %12, align 8
%25 = load ptr, ptr %12, align 8
%26 = load i8, ptr %25, align 1
%27 = call i64 @isspace(i8 noundef signext %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %29
29: ; preds = %._crit_edge, %3
%30 = load ptr, ptr %12, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 45
br i1 %33, label %34, label %37
34: ; preds = %29
store i32 1, ptr %8, align 4
%35 = load ptr, ptr %12, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %12, align 8
br label %46
37: ; preds = %29
%38 = load ptr, ptr %12, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 43
br i1 %41, label %42, label %45
42: ; preds = %37
%43 = load ptr, ptr %12, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %12, align 8
br label %45
45: ; preds = %42, %37
br label %46
46: ; preds = %45, %34
%47 = load ptr, ptr %12, align 8
store ptr %47, ptr %11, align 8
%48 = load i32, ptr %7, align 4
%49 = icmp eq i32 %48, 16
br i1 %49, label %50, label %57
50: ; preds = %46
%51 = load ptr, ptr %12, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 0
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 48
br i1 %55, label %56, label %57
56: ; preds = %50
br label %77
57: ; preds = %50, %46
%58 = load i32, ptr %7, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %71
60: ; preds = %57
%61 = load i32, ptr %7, align 4
%62 = sub nsw i32 %61, 2
store i32 %62, ptr %13, align 4
%63 = load i32, ptr %13, align 4
%64 = icmp ugt i32 %63, 34
%65 = zext i1 %64 to i32
%66 = call i64 @__unlikely(i32 noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %60
%69 = load i32, ptr @EINVAL, align 4
store i32 %69, ptr @errno, align 4
store i64 0, ptr %4, align 8
br label %218
70: ; preds = %60
br label %101
71: ; preds = %57
%72 = load ptr, ptr %12, align 8
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 48
br i1 %75, label %76, label %99
76: ; preds = %71
store i32 8, ptr %7, align 4
br label %77
77: ; preds = %76, %56
%78 = load ptr, ptr %12, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 1
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 120
br i1 %82, label %89, label %83
83: ; preds = %77
%84 = load ptr, ptr %12, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 1
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %87, 88
br i1 %88, label %89, label %98
89: ; preds = %83, %77
%90 = load ptr, ptr %12, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 2
%92 = load i8, ptr %91, align 1
%93 = call i64 @isxdigit(i8 noundef signext %92)
%94 = icmp ne i64 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %89
%96 = load ptr, ptr %12, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 2
store ptr %97, ptr %12, align 8
store i32 16, ptr %7, align 4
br label %98
98: ; preds = %95, %89, %83
br label %100
99: ; preds = %71
store i32 10, ptr %7, align 4
br label %100
100: ; preds = %99, %98
br label %101
101: ; preds = %100, %70
%102 = load ptr, ptr %12, align 8
%103 = load i8, ptr %102, align 1
%104 = call i64 @__likely(i8 noundef signext %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %101
br label %106
106: ; preds = %.lr.ph2, %173
%107 = load ptr, ptr %12, align 8
%108 = load i8, ptr %107, align 1
store i8 %108, ptr %14, align 1
%109 = load i8, ptr %14, align 1
%110 = zext i8 %109 to i32
%111 = icmp sge i32 %110, 97
br i1 %111, label %112, label %117
112: ; preds = %106
%113 = load i8, ptr %14, align 1
%114 = zext i8 %113 to i32
%115 = sub nsw i32 %114, 97
%116 = add nsw i32 %115, 10
br label %139
117: ; preds = %106
%118 = load i8, ptr %14, align 1
%119 = zext i8 %118 to i32
%120 = icmp sge i32 %119, 65
br i1 %120, label %121, label %126
121: ; preds = %117
%122 = load i8, ptr %14, align 1
%123 = zext i8 %122 to i32
%124 = sub nsw i32 %123, 65
%125 = add nsw i32 %124, 10
br label %137
126: ; preds = %117
%127 = load i8, ptr %14, align 1
%128 = zext i8 %127 to i32
%129 = icmp sle i32 %128, 57
br i1 %129, label %130, label %134
130: ; preds = %126
%131 = load i8, ptr %14, align 1
%132 = zext i8 %131 to i32
%133 = sub nsw i32 %132, 48
br label %135
134: ; preds = %126
br label %135
135: ; preds = %134, %130
%136 = phi i32 [ %133, %130 ], [ 255, %134 ]
br label %137
137: ; preds = %135, %121
%138 = phi i32 [ %125, %121 ], [ %136, %135 ]
br label %139
139: ; preds = %137, %112
%140 = phi i32 [ %116, %112 ], [ %138, %137 ]
%141 = trunc i32 %140 to i8
store i8 %141, ptr %14, align 1
%142 = load i8, ptr %14, align 1
%143 = zext i8 %142 to i32
%144 = load i32, ptr %7, align 4
%145 = icmp sge i32 %143, %144
%146 = zext i1 %145 to i32
%147 = call i64 @__unlikely(i32 noundef %146)
%148 = icmp ne i64 %147, 0
br i1 %148, label %149, label %150
149: ; preds = %139
br label %185
150: ; preds = %139
%151 = load i64, ptr %10, align 8
%152 = and i64 %151, 255
%153 = load i32, ptr %7, align 4
%154 = sext i32 %153 to i64
%155 = mul nsw i64 %152, %154
%156 = load i8, ptr %14, align 1
%157 = zext i8 %156 to i64
%158 = add nsw i64 %155, %157
store i64 %158, ptr %15, align 8
%159 = load i64, ptr %10, align 8
%160 = ashr i64 %159, 8
%161 = load i32, ptr %7, align 4
%162 = sext i32 %161 to i64
%163 = mul nsw i64 %160, %162
%164 = load i64, ptr %15, align 8
%165 = lshr i64 %164, 8
%166 = add i64 %163, %165
store i64 %166, ptr %16, align 8
%167 = load i64, ptr %16, align 8
%168 = load i32, ptr @ULLONG_MAX, align 4
%169 = ashr i32 %168, 8
%170 = sext i32 %169 to i64
%171 = icmp ugt i64 %167, %170
br i1 %171, label %172, label %173
172: ; preds = %150
store i32 1, ptr %9, align 4
br label %173
173: ; preds = %172, %150
%174 = load i64, ptr %16, align 8
%175 = shl i64 %174, 8
%176 = load i64, ptr %15, align 8
%177 = and i64 %176, 255
%178 = add i64 %175, %177
store i64 %178, ptr %10, align 8
%179 = load ptr, ptr %12, align 8
%180 = getelementptr inbounds i8, ptr %179, i32 1
store ptr %180, ptr %12, align 8
%181 = load ptr, ptr %12, align 8
%182 = load i8, ptr %181, align 1
%183 = call i64 @__likely(i8 noundef signext %182)
%184 = icmp ne i64 %183, 0
br i1 %184, label %106, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %173
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %101
br label %185
185: ; preds = %.loopexit, %149
%186 = load ptr, ptr %12, align 8
%187 = load ptr, ptr %11, align 8
%188 = icmp eq ptr %186, %187
%189 = zext i1 %188 to i32
%190 = call i64 @__unlikely(i32 noundef %189)
%191 = icmp ne i64 %190, 0
br i1 %191, label %192, label %195
192: ; preds = %185
%193 = load ptr, ptr %5, align 8
store ptr %193, ptr %12, align 8
%194 = load i32, ptr @EINVAL, align 4
store i32 %194, ptr @errno, align 4
store i64 0, ptr %10, align 8
br label %195
195: ; preds = %192, %185
%196 = load ptr, ptr %6, align 8
%197 = icmp ne ptr %196, null
br i1 %197, label %198, label %201
198: ; preds = %195
%199 = load ptr, ptr %12, align 8
%200 = load ptr, ptr %6, align 8
store ptr %199, ptr %200, align 8
br label %201
201: ; preds = %198, %195
%202 = load i32, ptr %9, align 4
%203 = icmp ne i32 %202, 0
br i1 %203, label %204, label %208
204: ; preds = %201
%205 = load i32, ptr @ERANGE, align 4
store i32 %205, ptr @errno, align 4
%206 = load i32, ptr @ULLONG_MAX, align 4
%207 = sext i32 %206 to i64
store i64 %207, ptr %4, align 8
br label %218
208: ; preds = %201
%209 = load i32, ptr %8, align 4
%210 = icmp ne i32 %209, 0
br i1 %210, label %211, label %214
211: ; preds = %208
%212 = load i64, ptr %10, align 8
%213 = sub nsw i64 0, %212
br label %216
214: ; preds = %208
%215 = load i64, ptr %10, align 8
br label %216
216: ; preds = %214, %211
%217 = phi i64 [ %213, %211 ], [ %215, %214 ]
store i64 %217, ptr %4, align 8
br label %218
218: ; preds = %216, %204, %68
%219 = load i64, ptr %4, align 8
ret i64 %219
}
declare i64 @isspace(i8 noundef signext) #1
declare i64 @__unlikely(i32 noundef) #1
declare i64 @isxdigit(i8 noundef signext) #1
declare i64 @__likely(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpcoososnn.c'
source_filename = "/tmp/tmpcoososnn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @g(i32 noundef 2, i32 noundef 3)
ret i32 0
}
declare i32 @g(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcoososnn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @g(i32 noundef 2, i32 noundef 3)
ret i32 0
}
declare i32 @g(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpivjuwzfg.c'
source_filename = "/tmp/tmpivjuwzfg.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-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"hello world!!!!!!!!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpivjuwzfg.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-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"hello world!!!!!!!!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx8931734.c'
source_filename = "/tmp/tmpx8931734.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @XfwfDrawImageString(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store ptr %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
store ptr %7, ptr %16, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %20, align 4
%21 = load ptr, ptr %14, align 8
store ptr %21, ptr %17, align 8
br label %22
22: ; preds = %79, %8
%23 = load i32, ptr %15, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %80
25: ; preds = %22
%26 = load ptr, ptr %17, align 8
%27 = load i32, ptr %15, align 4
%28 = call ptr @strnchr(ptr noundef %26, i8 noundef signext 9, i32 noundef %27)
store ptr %28, ptr %18, align 8
%29 = load ptr, ptr %18, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %68
31: ; preds = %25
%32 = load ptr, ptr %16, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %68
34: ; preds = %31
%35 = load ptr, ptr %9, align 8
%36 = load i32, ptr %10, align 4
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %12, align 4
%39 = load i32, ptr %19, align 4
%40 = add nsw i32 %38, %39
%41 = load i32, ptr %13, align 4
%42 = load ptr, ptr %17, align 8
%43 = load ptr, ptr %18, align 8
%44 = load ptr, ptr %17, align 8
%45 = ptrtoint ptr %43 to i64
%46 = ptrtoint ptr %44 to i64
%47 = sub i64 %45, %46
%48 = trunc i64 %47 to i32
%49 = call i32 @XDrawImageString(ptr noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %40, i32 noundef %41, ptr noundef %42, i32 noundef %48)
%50 = load ptr, ptr %16, align 8
%51 = load i32, ptr %20, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %20, align 4
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds i32, ptr %50, i64 %53
%55 = load i32, ptr %54, align 4
store i32 %55, ptr %19, align 4
%56 = load ptr, ptr %18, align 8
%57 = load ptr, ptr %17, align 8
%58 = ptrtoint ptr %56 to i64
%59 = ptrtoint ptr %57 to i64
%60 = sub i64 %58, %59
%61 = add nsw i64 %60, 1
%62 = load i32, ptr %15, align 4
%63 = sext i32 %62 to i64
%64 = sub nsw i64 %63, %61
%65 = trunc i64 %64 to i32
store i32 %65, ptr %15, align 4
%66 = load ptr, ptr %18, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 1
store ptr %67, ptr %17, align 8
br label %79
68: ; preds = %31, %25
%69 = load ptr, ptr %9, align 8
%70 = load i32, ptr %10, align 4
%71 = load i32, ptr %11, align 4
%72 = load i32, ptr %12, align 4
%73 = load i32, ptr %19, align 4
%74 = add nsw i32 %72, %73
%75 = load i32, ptr %13, align 4
%76 = load ptr, ptr %17, align 8
%77 = load i32, ptr %15, align 4
%78 = call i32 @XDrawImageString(ptr noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %74, i32 noundef %75, ptr noundef %76, i32 noundef %77)
br label %80
79: ; preds = %34
br label %22, !llvm.loop !6
80: ; preds = %68, %22
ret void
}
declare ptr @strnchr(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @XDrawImageString(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx8931734.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @XfwfDrawImageString(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store ptr %5, ptr %14, align 8
store i32 %6, ptr %15, align 4
store ptr %7, ptr %16, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %20, align 4
%21 = load ptr, ptr %14, align 8
store ptr %21, ptr %17, align 8
%22 = load i32, ptr %15, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %8
br label %24
24: ; preds = %.lr.ph, %78
%25 = load ptr, ptr %17, align 8
%26 = load i32, ptr %15, align 4
%27 = call ptr @strnchr(ptr noundef %25, i8 noundef signext 9, i32 noundef %26)
store ptr %27, ptr %18, align 8
%28 = load ptr, ptr %18, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %67
30: ; preds = %24
%31 = load ptr, ptr %16, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %67
33: ; preds = %30
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %11, align 4
%37 = load i32, ptr %12, align 4
%38 = load i32, ptr %19, align 4
%39 = add nsw i32 %37, %38
%40 = load i32, ptr %13, align 4
%41 = load ptr, ptr %17, align 8
%42 = load ptr, ptr %18, align 8
%43 = load ptr, ptr %17, align 8
%44 = ptrtoint ptr %42 to i64
%45 = ptrtoint ptr %43 to i64
%46 = sub i64 %44, %45
%47 = trunc i64 %46 to i32
%48 = call i32 @XDrawImageString(ptr noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %39, i32 noundef %40, ptr noundef %41, i32 noundef %47)
%49 = load ptr, ptr %16, align 8
%50 = load i32, ptr %20, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %20, align 4
%52 = sext i32 %50 to i64
%53 = getelementptr inbounds i32, ptr %49, i64 %52
%54 = load i32, ptr %53, align 4
store i32 %54, ptr %19, align 4
%55 = load ptr, ptr %18, align 8
%56 = load ptr, ptr %17, align 8
%57 = ptrtoint ptr %55 to i64
%58 = ptrtoint ptr %56 to i64
%59 = sub i64 %57, %58
%60 = add nsw i64 %59, 1
%61 = load i32, ptr %15, align 4
%62 = sext i32 %61 to i64
%63 = sub nsw i64 %62, %60
%64 = trunc i64 %63 to i32
store i32 %64, ptr %15, align 4
%65 = load ptr, ptr %18, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 1
store ptr %66, ptr %17, align 8
br label %78
67: ; preds = %30, %24
%68 = load ptr, ptr %9, align 8
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %11, align 4
%71 = load i32, ptr %12, align 4
%72 = load i32, ptr %19, align 4
%73 = add nsw i32 %71, %72
%74 = load i32, ptr %13, align 4
%75 = load ptr, ptr %17, align 8
%76 = load i32, ptr %15, align 4
%77 = call i32 @XDrawImageString(ptr noundef %68, i32 noundef %69, i32 noundef %70, i32 noundef %73, i32 noundef %74, ptr noundef %75, i32 noundef %76)
br label %81
78: ; preds = %33
%79 = load i32, ptr %15, align 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %24, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %78
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %8
br label %81
81: ; preds = %.loopexit, %67
ret void
}
declare ptr @strnchr(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @XDrawImageString(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8p6ci8do.c'
source_filename = "/tmp/tmp8p6ci8do.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8p6ci8do.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-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6meuj12o.c'
source_filename = "/tmp/tmp6meuj12o.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-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"clear\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @limparTela() #0 {
%1 = call i32 @system(ptr noundef @.str)
ret void
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6meuj12o.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-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"clear\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @limparTela() #0 {
%1 = call i32 @system(ptr noundef @.str)
ret void
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpupwhk_pv.c'
source_filename = "/tmp/tmpupwhk_pv.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-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [29 x i8] c"stdout successfully closed.\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @close_stdout() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @stdout, align 4
%3 = call i64 @fclose(i32 noundef %2)
%4 = load i64, ptr @EOF, align 8
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 -1, ptr %1, align 4
br label %10
7: ; preds = %0
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fputs(ptr noundef @.str, i32 noundef %8)
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %7, %6
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i64 @fclose(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpupwhk_pv.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-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [29 x i8] c"stdout successfully closed.\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @close_stdout() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @stdout, align 4
%3 = call i64 @fclose(i32 noundef %2)
%4 = load i64, ptr @EOF, align 8
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 -1, ptr %1, align 4
br label %10
7: ; preds = %0
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fputs(ptr noundef @.str, i32 noundef %8)
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %7, %6
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i64 @fclose(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjk8xv_nb.c'
source_filename = "/tmp/tmpjk8xv_nb.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-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"/tmp/ffo\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"unlink\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"mkfifo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [1 x i8], align 1
%10 = alloca %struct.stat, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr @S_IRWXU, align 4
%12 = call i32 @mkfifo(ptr noundef @.str, i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %41
15: ; preds = %2
%16 = load i64, ptr @errno, align 8
%17 = load i64, ptr @EEXIST, align 8
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %38
19: ; preds = %15
%20 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = call i32 @S_ISFIFO(i32 noundef %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %38, label %24
24: ; preds = %19
%25 = call i32 @unlink(ptr noundef @.str)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %42
30: ; preds = %24
%31 = load i32, ptr @S_IRWXU, align 4
%32 = call i32 @mkfifo(ptr noundef @.str, i32 noundef %31)
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %42
37: ; preds = %30
br label %40
38: ; preds = %19, %15
%39 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %42
40: ; preds = %37
br label %41
41: ; preds = %40, %2
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %41, %38, %35, %28
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @mkfifo(ptr noundef, i32 noundef) #1
declare i32 @S_ISFIFO(i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjk8xv_nb.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-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"/tmp/ffo\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"unlink\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"mkfifo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [1 x i8], align 1
%10 = alloca %struct.stat, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr @S_IRWXU, align 4
%12 = call i32 @mkfifo(ptr noundef @.str, i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %41
15: ; preds = %2
%16 = load i64, ptr @errno, align 8
%17 = load i64, ptr @EEXIST, align 8
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %38
19: ; preds = %15
%20 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = call i32 @S_ISFIFO(i32 noundef %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %38, label %24
24: ; preds = %19
%25 = call i32 @unlink(ptr noundef @.str)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %42
30: ; preds = %24
%31 = load i32, ptr @S_IRWXU, align 4
%32 = call i32 @mkfifo(ptr noundef @.str, i32 noundef %31)
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %42
37: ; preds = %30
br label %40
38: ; preds = %19, %15
%39 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %42
40: ; preds = %37
br label %41
41: ; preds = %40, %2
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %41, %38, %35, %28
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @mkfifo(ptr noundef, i32 noundef) #1
declare i32 @S_ISFIFO(i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmggexf_f.c'
source_filename = "/tmp/tmpmggexf_f.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-pc-linux-gnu"
@.str = private unnamed_addr constant [89 x i8] c"You should now have a screen in the upper left corner, and this text should have wrapped\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"\0AThis text should be down\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"and broken into two here ^\00", align 1
@A_BOLD = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [46 x i8] c"A new window will appear with this text in it\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Press any key to continue\00", align 1
@LINES = dso_local global i32 0, align 4
@COLS = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [47 x i8] c"Some tests have been skipped as they require a\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"display of at least 24 LINES by 75 COLUMNS\00", align 1
@A_NORMAL = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [46 x i8] c"This text should appear; using overlay option\00", align 1
@TRUE = dso_local global i32 0, align 4
@ACS_VLINE = dso_local global i32 0, align 4
@ACS_HLINE = dso_local global i32 0, align 4
@A_BLINK = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [59 x i8] c"This blinking text should appear in only the second window\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"This line shouldn't appear\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"Only half of the next line is visible\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"This line also shouldn't appear\00", align 1
@.str.12 = private unnamed_addr constant [29 x i8] c"The next char should be l: \00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"A1B2C3D4E5\00", align 1
@.str.14 = private unnamed_addr constant [39 x i8] c"The lines below should have moved down\00", align 1
@.str.15 = private unnamed_addr constant [47 x i8] c"This is a formatted string in a window: %d %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"is it\00", align 1
@.str.17 = private unnamed_addr constant [17 x i8] c"Enter a string: \00", align 1
@.str.18 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.19 = private unnamed_addr constant [45 x i8] c"This is a formatted string in stdscr: %d %s\0A\00", align 1
@.str.20 = private unnamed_addr constant [45 x i8] c"The cursor should be in high-visibility mode\00", align 1
@.str.21 = private unnamed_addr constant [35 x i8] c"The cursor should have disappeared\00", align 1
@.str.22 = private unnamed_addr constant [28 x i8] c"The cursor should be normal\00", align 1
@.str.23 = private unnamed_addr constant [32 x i8] c"Information About Your Terminal\00", align 1
@.str.24 = private unnamed_addr constant [42 x i8] c"This terminal claims to support blinking.\00", align 1
@.str.25 = private unnamed_addr constant [41 x i8] c"This terminal does NOT support blinking.\00", align 1
@.str.26 = private unnamed_addr constant [19 x i8] c"Have a nice day!ok\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outputTest(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [80 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = call i32 (...) @nl()
%9 = load ptr, ptr %2, align 8
%10 = call i32 @wclear(ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @mvwaddstr(ptr noundef %11, i32 noundef 1, i32 noundef 1, ptr noundef @.str)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @waddstr(ptr noundef %13, ptr noundef @.str.1)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @waddstr(ptr noundef %15, ptr noundef @.str.2)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @Continue(ptr noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = call i32 @wclear(ptr noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr @A_BOLD, align 4
%23 = call i32 @wattron(ptr noundef %21, i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = call i32 @mvwaddstr(ptr noundef %24, i32 noundef 1, i32 noundef 1, ptr noundef @.str.3)
%26 = load ptr, ptr %2, align 8
%27 = call i32 @mvwaddstr(ptr noundef %26, i32 noundef 8, i32 noundef 1, ptr noundef @.str.4)
%28 = load ptr, ptr %2, align 8
%29 = call i32 @wrefresh(ptr noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = call i32 @wgetch(ptr noundef %30)
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = call i32 @getbegyx(ptr noundef %32, i32 noundef %33, i32 noundef %34)
%36 = load i32, ptr @LINES, align 4
%37 = icmp slt i32 %36, 24
br i1 %37, label %41, label %38
38: ; preds = %1
%39 = load i32, ptr @COLS, align 4
%40 = icmp slt i32 %39, 75
br i1 %40, label %41, label %48
41: ; preds = %38, %1
%42 = load ptr, ptr %2, align 8
%43 = call i32 @mvwaddstr(ptr noundef %42, i32 noundef 5, i32 noundef 1, ptr noundef @.str.5)
%44 = load ptr, ptr %2, align 8
%45 = call i32 @mvwaddstr(ptr noundef %44, i32 noundef 6, i32 noundef 1, ptr noundef @.str.6)
%46 = load ptr, ptr %2, align 8
%47 = call i32 @Continue(ptr noundef %46)
br label %103
48: ; preds = %38
%49 = call ptr @newwin(i32 noundef 10, i32 noundef 50, i32 noundef 14, i32 noundef 25)
store ptr %49, ptr %3, align 8
%50 = load ptr, ptr %3, align 8
%51 = icmp eq ptr %50, null
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = call i32 (...) @endwin()
br label %232
54: ; preds = %48
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr @A_NORMAL, align 4
%57 = call i32 @wbkgd(ptr noundef %55, i32 noundef %56)
%58 = load ptr, ptr %3, align 8
%59 = call i32 @wclear(ptr noundef %58)
%60 = load ptr, ptr %3, align 8
%61 = call i32 @mvwaddstr(ptr noundef %60, i32 noundef 5, i32 noundef 1, ptr noundef @.str.7)
%62 = load ptr, ptr %2, align 8
%63 = load ptr, ptr %3, align 8
%64 = load i32, ptr @TRUE, align 4
%65 = call i32 @copywin(ptr noundef %62, ptr noundef %63, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 9, i32 noundef 49, i32 noundef %64)
%66 = load ptr, ptr %3, align 8
%67 = load i32, ptr @ACS_VLINE, align 4
%68 = load i32, ptr @ACS_HLINE, align 4
%69 = call i32 @box(ptr noundef %66, i32 noundef %67, i32 noundef %68)
%70 = load ptr, ptr %3, align 8
%71 = call i32 @wmove(ptr noundef %70, i32 noundef 8, i32 noundef 26)
%72 = load ptr, ptr %3, align 8
%73 = call i32 @wrefresh(ptr noundef %72)
%74 = load ptr, ptr %3, align 8
%75 = call i32 @wgetch(ptr noundef %74)
%76 = load ptr, ptr %3, align 8
%77 = call i32 @wclear(ptr noundef %76)
%78 = load ptr, ptr %3, align 8
%79 = load i32, ptr @A_BLINK, align 4
%80 = call i32 @wattron(ptr noundef %78, i32 noundef %79)
%81 = load ptr, ptr %3, align 8
%82 = call i32 @mvwaddstr(ptr noundef %81, i32 noundef 4, i32 noundef 1, ptr noundef @.str.8)
%83 = load ptr, ptr %3, align 8
%84 = load i32, ptr @A_BLINK, align 4
%85 = call i32 @wattroff(ptr noundef %83, i32 noundef %84)
%86 = load ptr, ptr %3, align 8
%87 = load i32, ptr %6, align 4
%88 = load i32, ptr %7, align 4
%89 = call i32 @mvwin(ptr noundef %86, i32 noundef %87, i32 noundef %88)
%90 = load ptr, ptr %2, align 8
%91 = load ptr, ptr %3, align 8
%92 = call i32 @overlay(ptr noundef %90, ptr noundef %91)
%93 = load ptr, ptr %3, align 8
%94 = call i32 @mvwin(ptr noundef %93, i32 noundef 14, i32 noundef 25)
%95 = load ptr, ptr %3, align 8
%96 = call i32 @wmove(ptr noundef %95, i32 noundef 8, i32 noundef 26)
%97 = load ptr, ptr %3, align 8
%98 = call i32 @wrefresh(ptr noundef %97)
%99 = load ptr, ptr %3, align 8
%100 = call i32 @wgetch(ptr noundef %99)
%101 = load ptr, ptr %3, align 8
%102 = call i32 @delwin(ptr noundef %101)
br label %103
103: ; preds = %54, %41
%104 = call i32 (...) @clear()
%105 = load ptr, ptr %2, align 8
%106 = call i32 @wclear(ptr noundef %105)
%107 = load ptr, ptr %2, align 8
%108 = call i32 @wrefresh(ptr noundef %107)
%109 = load ptr, ptr %2, align 8
%110 = call i32 @mvwaddstr(ptr noundef %109, i32 noundef 6, i32 noundef 2, ptr noundef @.str.9)
%111 = load ptr, ptr %2, align 8
%112 = call i32 @mvwaddstr(ptr noundef %111, i32 noundef 4, i32 noundef 2, ptr noundef @.str.10)
%113 = load ptr, ptr %2, align 8
%114 = call i32 @mvwaddstr(ptr noundef %113, i32 noundef 5, i32 noundef 2, ptr noundef @.str.10)
%115 = load ptr, ptr %2, align 8
%116 = call i32 @wmove(ptr noundef %115, i32 noundef 6, i32 noundef 1)
%117 = load ptr, ptr %2, align 8
%118 = call i32 @wclrtobot(ptr noundef %117)
%119 = load ptr, ptr %2, align 8
%120 = call i32 @wmove(ptr noundef %119, i32 noundef 5, i32 noundef 20)
%121 = load ptr, ptr %2, align 8
%122 = call i32 @wclrtoeol(ptr noundef %121)
%123 = load ptr, ptr %2, align 8
%124 = call i32 @mvwaddstr(ptr noundef %123, i32 noundef 8, i32 noundef 2, ptr noundef @.str.11)
%125 = load ptr, ptr %2, align 8
%126 = call i32 @wmove(ptr noundef %125, i32 noundef 8, i32 noundef 1)
%127 = load ptr, ptr %2, align 8
%128 = call i32 @winsdelln(ptr noundef %127, i32 noundef -1)
%129 = load ptr, ptr %2, align 8
%130 = call i32 @Continue(ptr noundef %129)
%131 = load ptr, ptr %2, align 8
%132 = call i32 @wmove(ptr noundef %131, i32 noundef 5, i32 noundef 9)
%133 = load ptr, ptr %2, align 8
%134 = call i32 @winch(ptr noundef %133)
store i32 %134, ptr %5, align 4
%135 = load ptr, ptr %2, align 8
%136 = call i32 @wclear(ptr noundef %135)
%137 = load ptr, ptr %2, align 8
%138 = call i32 @wmove(ptr noundef %137, i32 noundef 6, i32 noundef 2)
%139 = load ptr, ptr %2, align 8
%140 = call i32 @waddstr(ptr noundef %139, ptr noundef @.str.12)
%141 = load ptr, ptr %2, align 8
%142 = load i32, ptr %5, align 4
%143 = call i32 @winsch(ptr noundef %141, i32 noundef %142)
%144 = load ptr, ptr %2, align 8
%145 = call i32 @Continue(ptr noundef %144)
%146 = load ptr, ptr %2, align 8
%147 = call i32 @mvwinsstr(ptr noundef %146, i32 noundef 6, i32 noundef 2, ptr noundef @.str.13)
%148 = load ptr, ptr %2, align 8
%149 = call i32 @Continue(ptr noundef %148)
%150 = load ptr, ptr %2, align 8
%151 = call i32 @wmove(ptr noundef %150, i32 noundef 5, i32 noundef 1)
%152 = load ptr, ptr %2, align 8
%153 = call i32 @winsdelln(ptr noundef %152, i32 noundef 1)
%154 = load ptr, ptr %2, align 8
%155 = call i32 @mvwaddstr(ptr noundef %154, i32 noundef 5, i32 noundef 2, ptr noundef @.str.14)
%156 = load ptr, ptr %2, align 8
%157 = call i32 @Continue(ptr noundef %156)
%158 = load ptr, ptr %2, align 8
%159 = call i32 @wclear(ptr noundef %158)
%160 = load ptr, ptr %2, align 8
%161 = call i32 @wmove(ptr noundef %160, i32 noundef 2, i32 noundef 2)
%162 = load ptr, ptr %2, align 8
%163 = call i32 @wprintw(ptr noundef %162, ptr noundef @.str.15, i32 noundef 42, ptr noundef @.str.16)
%164 = load ptr, ptr %2, align 8
%165 = call i32 @mvwaddstr(ptr noundef %164, i32 noundef 10, i32 noundef 1, ptr noundef @.str.17)
%166 = load ptr, ptr %2, align 8
%167 = call i32 @wrefresh(ptr noundef %166)
%168 = call i32 (...) @echo()
%169 = load ptr, ptr %2, align 8
%170 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%171 = call i32 @wscanw(ptr noundef %169, ptr noundef @.str.18, ptr noundef %170)
%172 = call i32 @printw(ptr noundef @.str.19, i32 noundef 42, ptr noundef @.str.16)
%173 = call i32 @mvaddstr(i32 noundef 10, i32 noundef 1, ptr noundef @.str.17)
%174 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%175 = call i32 @scanw(ptr noundef @.str.18, ptr noundef %174)
%176 = load ptr, ptr %2, align 8
%177 = call i32 @wclear(ptr noundef %176)
%178 = call i32 @curs_set(i32 noundef 2)
%179 = load ptr, ptr %2, align 8
%180 = call i32 @mvwaddstr(ptr noundef %179, i32 noundef 1, i32 noundef 1, ptr noundef @.str.20)
%181 = load ptr, ptr %2, align 8
%182 = call i32 @Continue(ptr noundef %181)
%183 = load ptr, ptr %2, align 8
%184 = call i32 @wclear(ptr noundef %183)
%185 = call i32 @curs_set(i32 noundef 0)
%186 = load ptr, ptr %2, align 8
%187 = call i32 @mvwaddstr(ptr noundef %186, i32 noundef 1, i32 noundef 1, ptr noundef @.str.21)
%188 = load ptr, ptr %2, align 8
%189 = call i32 @Continue(ptr noundef %188)
%190 = load ptr, ptr %2, align 8
%191 = call i32 @wclear(ptr noundef %190)
%192 = call i32 @curs_set(i32 noundef 1)
%193 = load ptr, ptr %2, align 8
%194 = call i32 @mvwaddstr(ptr noundef %193, i32 noundef 1, i32 noundef 1, ptr noundef @.str.22)
%195 = load ptr, ptr %2, align 8
%196 = call i32 @Continue(ptr noundef %195)
%197 = load ptr, ptr %2, align 8
%198 = call i32 @werase(ptr noundef %197)
%199 = load ptr, ptr %2, align 8
%200 = call i32 @mvwaddstr(ptr noundef %199, i32 noundef 1, i32 noundef 1, ptr noundef @.str.23)
%201 = load ptr, ptr %2, align 8
%202 = call ptr (...) @termname()
%203 = call i32 @mvwaddstr(ptr noundef %201, i32 noundef 3, i32 noundef 1, ptr noundef %202)
%204 = load ptr, ptr %2, align 8
%205 = call ptr (...) @longname()
%206 = call i32 @mvwaddstr(ptr noundef %204, i32 noundef 4, i32 noundef 1, ptr noundef %205)
%207 = call i32 (...) @termattrs()
%208 = load i32, ptr @A_BLINK, align 4
%209 = and i32 %207, %208
%210 = icmp ne i32 %209, 0
br i1 %210, label %211, label %214
211: ; preds = %103
%212 = load ptr, ptr %2, align 8
%213 = call i32 @mvwaddstr(ptr noundef %212, i32 noundef 5, i32 noundef 1, ptr noundef @.str.24)
br label %217
214: ; preds = %103
%215 = load ptr, ptr %2, align 8
%216 = call i32 @mvwaddstr(ptr noundef %215, i32 noundef 5, i32 noundef 1, ptr noundef @.str.25)
br label %217
217: ; preds = %214, %211
%218 = load ptr, ptr %2, align 8
%219 = call i32 @mvwaddnstr(ptr noundef %218, i32 noundef 7, i32 noundef 5, ptr noundef @.str.26, i32 noundef 16)
%220 = load ptr, ptr %2, align 8
%221 = call i32 @wrefresh(ptr noundef %220)
%222 = load ptr, ptr %2, align 8
%223 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%224 = call i32 @mvwinnstr(ptr noundef %222, i32 noundef 7, i32 noundef 5, ptr noundef %223, i32 noundef 18)
%225 = load i32, ptr @LINES, align 4
%226 = sub nsw i32 %225, 2
%227 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%228 = call i32 @mvaddstr(i32 noundef %226, i32 noundef 10, ptr noundef %227)
%229 = call i32 (...) @refresh()
%230 = load ptr, ptr %2, align 8
%231 = call i32 @Continue(ptr noundef %230)
br label %232
232: ; preds = %217, %52
ret void
}
declare i32 @nl(...) #1
declare i32 @wclear(ptr noundef) #1
declare i32 @mvwaddstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @waddstr(ptr noundef, ptr noundef) #1
declare i32 @Continue(ptr noundef) #1
declare i32 @wattron(ptr noundef, i32 noundef) #1
declare i32 @wrefresh(ptr noundef) #1
declare i32 @wgetch(ptr noundef) #1
declare i32 @getbegyx(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @newwin(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @endwin(...) #1
declare i32 @wbkgd(ptr noundef, i32 noundef) #1
declare i32 @copywin(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @box(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @wattroff(ptr noundef, i32 noundef) #1
declare i32 @mvwin(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @overlay(ptr noundef, ptr noundef) #1
declare i32 @delwin(ptr noundef) #1
declare i32 @clear(...) #1
declare i32 @wclrtobot(ptr noundef) #1
declare i32 @wclrtoeol(ptr noundef) #1
declare i32 @winsdelln(ptr noundef, i32 noundef) #1
declare i32 @winch(ptr noundef) #1
declare i32 @winsch(ptr noundef, i32 noundef) #1
declare i32 @mvwinsstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @wprintw(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @echo(...) #1
declare i32 @wscanw(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printw(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @mvaddstr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @scanw(ptr noundef, ptr noundef) #1
declare i32 @curs_set(i32 noundef) #1
declare i32 @werase(ptr noundef) #1
declare ptr @termname(...) #1
declare ptr @longname(...) #1
declare i32 @termattrs(...) #1
declare i32 @mvwaddnstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @mvwinnstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @refresh(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmggexf_f.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-pc-linux-gnu"
@.str = private unnamed_addr constant [89 x i8] c"You should now have a screen in the upper left corner, and this text should have wrapped\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"\0AThis text should be down\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"and broken into two here ^\00", align 1
@A_BOLD = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [46 x i8] c"A new window will appear with this text in it\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Press any key to continue\00", align 1
@LINES = dso_local global i32 0, align 4
@COLS = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [47 x i8] c"Some tests have been skipped as they require a\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"display of at least 24 LINES by 75 COLUMNS\00", align 1
@A_NORMAL = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [46 x i8] c"This text should appear; using overlay option\00", align 1
@TRUE = dso_local global i32 0, align 4
@ACS_VLINE = dso_local global i32 0, align 4
@ACS_HLINE = dso_local global i32 0, align 4
@A_BLINK = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [59 x i8] c"This blinking text should appear in only the second window\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"This line shouldn't appear\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"Only half of the next line is visible\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"This line also shouldn't appear\00", align 1
@.str.12 = private unnamed_addr constant [29 x i8] c"The next char should be l: \00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"A1B2C3D4E5\00", align 1
@.str.14 = private unnamed_addr constant [39 x i8] c"The lines below should have moved down\00", align 1
@.str.15 = private unnamed_addr constant [47 x i8] c"This is a formatted string in a window: %d %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"is it\00", align 1
@.str.17 = private unnamed_addr constant [17 x i8] c"Enter a string: \00", align 1
@.str.18 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.19 = private unnamed_addr constant [45 x i8] c"This is a formatted string in stdscr: %d %s\0A\00", align 1
@.str.20 = private unnamed_addr constant [45 x i8] c"The cursor should be in high-visibility mode\00", align 1
@.str.21 = private unnamed_addr constant [35 x i8] c"The cursor should have disappeared\00", align 1
@.str.22 = private unnamed_addr constant [28 x i8] c"The cursor should be normal\00", align 1
@.str.23 = private unnamed_addr constant [32 x i8] c"Information About Your Terminal\00", align 1
@.str.24 = private unnamed_addr constant [42 x i8] c"This terminal claims to support blinking.\00", align 1
@.str.25 = private unnamed_addr constant [41 x i8] c"This terminal does NOT support blinking.\00", align 1
@.str.26 = private unnamed_addr constant [19 x i8] c"Have a nice day!ok\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outputTest(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [80 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = call i32 (...) @nl()
%9 = load ptr, ptr %2, align 8
%10 = call i32 @wclear(ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @mvwaddstr(ptr noundef %11, i32 noundef 1, i32 noundef 1, ptr noundef @.str)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @waddstr(ptr noundef %13, ptr noundef @.str.1)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @waddstr(ptr noundef %15, ptr noundef @.str.2)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @Continue(ptr noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = call i32 @wclear(ptr noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr @A_BOLD, align 4
%23 = call i32 @wattron(ptr noundef %21, i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = call i32 @mvwaddstr(ptr noundef %24, i32 noundef 1, i32 noundef 1, ptr noundef @.str.3)
%26 = load ptr, ptr %2, align 8
%27 = call i32 @mvwaddstr(ptr noundef %26, i32 noundef 8, i32 noundef 1, ptr noundef @.str.4)
%28 = load ptr, ptr %2, align 8
%29 = call i32 @wrefresh(ptr noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = call i32 @wgetch(ptr noundef %30)
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = call i32 @getbegyx(ptr noundef %32, i32 noundef %33, i32 noundef %34)
%36 = load i32, ptr @LINES, align 4
%37 = icmp slt i32 %36, 24
br i1 %37, label %41, label %38
38: ; preds = %1
%39 = load i32, ptr @COLS, align 4
%40 = icmp slt i32 %39, 75
br i1 %40, label %41, label %48
41: ; preds = %38, %1
%42 = load ptr, ptr %2, align 8
%43 = call i32 @mvwaddstr(ptr noundef %42, i32 noundef 5, i32 noundef 1, ptr noundef @.str.5)
%44 = load ptr, ptr %2, align 8
%45 = call i32 @mvwaddstr(ptr noundef %44, i32 noundef 6, i32 noundef 1, ptr noundef @.str.6)
%46 = load ptr, ptr %2, align 8
%47 = call i32 @Continue(ptr noundef %46)
br label %103
48: ; preds = %38
%49 = call ptr @newwin(i32 noundef 10, i32 noundef 50, i32 noundef 14, i32 noundef 25)
store ptr %49, ptr %3, align 8
%50 = load ptr, ptr %3, align 8
%51 = icmp eq ptr %50, null
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = call i32 (...) @endwin()
br label %232
54: ; preds = %48
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr @A_NORMAL, align 4
%57 = call i32 @wbkgd(ptr noundef %55, i32 noundef %56)
%58 = load ptr, ptr %3, align 8
%59 = call i32 @wclear(ptr noundef %58)
%60 = load ptr, ptr %3, align 8
%61 = call i32 @mvwaddstr(ptr noundef %60, i32 noundef 5, i32 noundef 1, ptr noundef @.str.7)
%62 = load ptr, ptr %2, align 8
%63 = load ptr, ptr %3, align 8
%64 = load i32, ptr @TRUE, align 4
%65 = call i32 @copywin(ptr noundef %62, ptr noundef %63, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 9, i32 noundef 49, i32 noundef %64)
%66 = load ptr, ptr %3, align 8
%67 = load i32, ptr @ACS_VLINE, align 4
%68 = load i32, ptr @ACS_HLINE, align 4
%69 = call i32 @box(ptr noundef %66, i32 noundef %67, i32 noundef %68)
%70 = load ptr, ptr %3, align 8
%71 = call i32 @wmove(ptr noundef %70, i32 noundef 8, i32 noundef 26)
%72 = load ptr, ptr %3, align 8
%73 = call i32 @wrefresh(ptr noundef %72)
%74 = load ptr, ptr %3, align 8
%75 = call i32 @wgetch(ptr noundef %74)
%76 = load ptr, ptr %3, align 8
%77 = call i32 @wclear(ptr noundef %76)
%78 = load ptr, ptr %3, align 8
%79 = load i32, ptr @A_BLINK, align 4
%80 = call i32 @wattron(ptr noundef %78, i32 noundef %79)
%81 = load ptr, ptr %3, align 8
%82 = call i32 @mvwaddstr(ptr noundef %81, i32 noundef 4, i32 noundef 1, ptr noundef @.str.8)
%83 = load ptr, ptr %3, align 8
%84 = load i32, ptr @A_BLINK, align 4
%85 = call i32 @wattroff(ptr noundef %83, i32 noundef %84)
%86 = load ptr, ptr %3, align 8
%87 = load i32, ptr %6, align 4
%88 = load i32, ptr %7, align 4
%89 = call i32 @mvwin(ptr noundef %86, i32 noundef %87, i32 noundef %88)
%90 = load ptr, ptr %2, align 8
%91 = load ptr, ptr %3, align 8
%92 = call i32 @overlay(ptr noundef %90, ptr noundef %91)
%93 = load ptr, ptr %3, align 8
%94 = call i32 @mvwin(ptr noundef %93, i32 noundef 14, i32 noundef 25)
%95 = load ptr, ptr %3, align 8
%96 = call i32 @wmove(ptr noundef %95, i32 noundef 8, i32 noundef 26)
%97 = load ptr, ptr %3, align 8
%98 = call i32 @wrefresh(ptr noundef %97)
%99 = load ptr, ptr %3, align 8
%100 = call i32 @wgetch(ptr noundef %99)
%101 = load ptr, ptr %3, align 8
%102 = call i32 @delwin(ptr noundef %101)
br label %103
103: ; preds = %54, %41
%104 = call i32 (...) @clear()
%105 = load ptr, ptr %2, align 8
%106 = call i32 @wclear(ptr noundef %105)
%107 = load ptr, ptr %2, align 8
%108 = call i32 @wrefresh(ptr noundef %107)
%109 = load ptr, ptr %2, align 8
%110 = call i32 @mvwaddstr(ptr noundef %109, i32 noundef 6, i32 noundef 2, ptr noundef @.str.9)
%111 = load ptr, ptr %2, align 8
%112 = call i32 @mvwaddstr(ptr noundef %111, i32 noundef 4, i32 noundef 2, ptr noundef @.str.10)
%113 = load ptr, ptr %2, align 8
%114 = call i32 @mvwaddstr(ptr noundef %113, i32 noundef 5, i32 noundef 2, ptr noundef @.str.10)
%115 = load ptr, ptr %2, align 8
%116 = call i32 @wmove(ptr noundef %115, i32 noundef 6, i32 noundef 1)
%117 = load ptr, ptr %2, align 8
%118 = call i32 @wclrtobot(ptr noundef %117)
%119 = load ptr, ptr %2, align 8
%120 = call i32 @wmove(ptr noundef %119, i32 noundef 5, i32 noundef 20)
%121 = load ptr, ptr %2, align 8
%122 = call i32 @wclrtoeol(ptr noundef %121)
%123 = load ptr, ptr %2, align 8
%124 = call i32 @mvwaddstr(ptr noundef %123, i32 noundef 8, i32 noundef 2, ptr noundef @.str.11)
%125 = load ptr, ptr %2, align 8
%126 = call i32 @wmove(ptr noundef %125, i32 noundef 8, i32 noundef 1)
%127 = load ptr, ptr %2, align 8
%128 = call i32 @winsdelln(ptr noundef %127, i32 noundef -1)
%129 = load ptr, ptr %2, align 8
%130 = call i32 @Continue(ptr noundef %129)
%131 = load ptr, ptr %2, align 8
%132 = call i32 @wmove(ptr noundef %131, i32 noundef 5, i32 noundef 9)
%133 = load ptr, ptr %2, align 8
%134 = call i32 @winch(ptr noundef %133)
store i32 %134, ptr %5, align 4
%135 = load ptr, ptr %2, align 8
%136 = call i32 @wclear(ptr noundef %135)
%137 = load ptr, ptr %2, align 8
%138 = call i32 @wmove(ptr noundef %137, i32 noundef 6, i32 noundef 2)
%139 = load ptr, ptr %2, align 8
%140 = call i32 @waddstr(ptr noundef %139, ptr noundef @.str.12)
%141 = load ptr, ptr %2, align 8
%142 = load i32, ptr %5, align 4
%143 = call i32 @winsch(ptr noundef %141, i32 noundef %142)
%144 = load ptr, ptr %2, align 8
%145 = call i32 @Continue(ptr noundef %144)
%146 = load ptr, ptr %2, align 8
%147 = call i32 @mvwinsstr(ptr noundef %146, i32 noundef 6, i32 noundef 2, ptr noundef @.str.13)
%148 = load ptr, ptr %2, align 8
%149 = call i32 @Continue(ptr noundef %148)
%150 = load ptr, ptr %2, align 8
%151 = call i32 @wmove(ptr noundef %150, i32 noundef 5, i32 noundef 1)
%152 = load ptr, ptr %2, align 8
%153 = call i32 @winsdelln(ptr noundef %152, i32 noundef 1)
%154 = load ptr, ptr %2, align 8
%155 = call i32 @mvwaddstr(ptr noundef %154, i32 noundef 5, i32 noundef 2, ptr noundef @.str.14)
%156 = load ptr, ptr %2, align 8
%157 = call i32 @Continue(ptr noundef %156)
%158 = load ptr, ptr %2, align 8
%159 = call i32 @wclear(ptr noundef %158)
%160 = load ptr, ptr %2, align 8
%161 = call i32 @wmove(ptr noundef %160, i32 noundef 2, i32 noundef 2)
%162 = load ptr, ptr %2, align 8
%163 = call i32 @wprintw(ptr noundef %162, ptr noundef @.str.15, i32 noundef 42, ptr noundef @.str.16)
%164 = load ptr, ptr %2, align 8
%165 = call i32 @mvwaddstr(ptr noundef %164, i32 noundef 10, i32 noundef 1, ptr noundef @.str.17)
%166 = load ptr, ptr %2, align 8
%167 = call i32 @wrefresh(ptr noundef %166)
%168 = call i32 (...) @echo()
%169 = load ptr, ptr %2, align 8
%170 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%171 = call i32 @wscanw(ptr noundef %169, ptr noundef @.str.18, ptr noundef %170)
%172 = call i32 @printw(ptr noundef @.str.19, i32 noundef 42, ptr noundef @.str.16)
%173 = call i32 @mvaddstr(i32 noundef 10, i32 noundef 1, ptr noundef @.str.17)
%174 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%175 = call i32 @scanw(ptr noundef @.str.18, ptr noundef %174)
%176 = load ptr, ptr %2, align 8
%177 = call i32 @wclear(ptr noundef %176)
%178 = call i32 @curs_set(i32 noundef 2)
%179 = load ptr, ptr %2, align 8
%180 = call i32 @mvwaddstr(ptr noundef %179, i32 noundef 1, i32 noundef 1, ptr noundef @.str.20)
%181 = load ptr, ptr %2, align 8
%182 = call i32 @Continue(ptr noundef %181)
%183 = load ptr, ptr %2, align 8
%184 = call i32 @wclear(ptr noundef %183)
%185 = call i32 @curs_set(i32 noundef 0)
%186 = load ptr, ptr %2, align 8
%187 = call i32 @mvwaddstr(ptr noundef %186, i32 noundef 1, i32 noundef 1, ptr noundef @.str.21)
%188 = load ptr, ptr %2, align 8
%189 = call i32 @Continue(ptr noundef %188)
%190 = load ptr, ptr %2, align 8
%191 = call i32 @wclear(ptr noundef %190)
%192 = call i32 @curs_set(i32 noundef 1)
%193 = load ptr, ptr %2, align 8
%194 = call i32 @mvwaddstr(ptr noundef %193, i32 noundef 1, i32 noundef 1, ptr noundef @.str.22)
%195 = load ptr, ptr %2, align 8
%196 = call i32 @Continue(ptr noundef %195)
%197 = load ptr, ptr %2, align 8
%198 = call i32 @werase(ptr noundef %197)
%199 = load ptr, ptr %2, align 8
%200 = call i32 @mvwaddstr(ptr noundef %199, i32 noundef 1, i32 noundef 1, ptr noundef @.str.23)
%201 = load ptr, ptr %2, align 8
%202 = call ptr (...) @termname()
%203 = call i32 @mvwaddstr(ptr noundef %201, i32 noundef 3, i32 noundef 1, ptr noundef %202)
%204 = load ptr, ptr %2, align 8
%205 = call ptr (...) @longname()
%206 = call i32 @mvwaddstr(ptr noundef %204, i32 noundef 4, i32 noundef 1, ptr noundef %205)
%207 = call i32 (...) @termattrs()
%208 = load i32, ptr @A_BLINK, align 4
%209 = and i32 %207, %208
%210 = icmp ne i32 %209, 0
br i1 %210, label %211, label %214
211: ; preds = %103
%212 = load ptr, ptr %2, align 8
%213 = call i32 @mvwaddstr(ptr noundef %212, i32 noundef 5, i32 noundef 1, ptr noundef @.str.24)
br label %217
214: ; preds = %103
%215 = load ptr, ptr %2, align 8
%216 = call i32 @mvwaddstr(ptr noundef %215, i32 noundef 5, i32 noundef 1, ptr noundef @.str.25)
br label %217
217: ; preds = %214, %211
%218 = load ptr, ptr %2, align 8
%219 = call i32 @mvwaddnstr(ptr noundef %218, i32 noundef 7, i32 noundef 5, ptr noundef @.str.26, i32 noundef 16)
%220 = load ptr, ptr %2, align 8
%221 = call i32 @wrefresh(ptr noundef %220)
%222 = load ptr, ptr %2, align 8
%223 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%224 = call i32 @mvwinnstr(ptr noundef %222, i32 noundef 7, i32 noundef 5, ptr noundef %223, i32 noundef 18)
%225 = load i32, ptr @LINES, align 4
%226 = sub nsw i32 %225, 2
%227 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%228 = call i32 @mvaddstr(i32 noundef %226, i32 noundef 10, ptr noundef %227)
%229 = call i32 (...) @refresh()
%230 = load ptr, ptr %2, align 8
%231 = call i32 @Continue(ptr noundef %230)
br label %232
232: ; preds = %217, %52
ret void
}
declare i32 @nl(...) #1
declare i32 @wclear(ptr noundef) #1
declare i32 @mvwaddstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @waddstr(ptr noundef, ptr noundef) #1
declare i32 @Continue(ptr noundef) #1
declare i32 @wattron(ptr noundef, i32 noundef) #1
declare i32 @wrefresh(ptr noundef) #1
declare i32 @wgetch(ptr noundef) #1
declare i32 @getbegyx(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @newwin(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @endwin(...) #1
declare i32 @wbkgd(ptr noundef, i32 noundef) #1
declare i32 @copywin(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @box(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @wattroff(ptr noundef, i32 noundef) #1
declare i32 @mvwin(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @overlay(ptr noundef, ptr noundef) #1
declare i32 @delwin(ptr noundef) #1
declare i32 @clear(...) #1
declare i32 @wclrtobot(ptr noundef) #1
declare i32 @wclrtoeol(ptr noundef) #1
declare i32 @winsdelln(ptr noundef, i32 noundef) #1
declare i32 @winch(ptr noundef) #1
declare i32 @winsch(ptr noundef, i32 noundef) #1
declare i32 @mvwinsstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @wprintw(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @echo(...) #1
declare i32 @wscanw(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printw(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @mvaddstr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @scanw(ptr noundef, ptr noundef) #1
declare i32 @curs_set(i32 noundef) #1
declare i32 @werase(ptr noundef) #1
declare ptr @termname(...) #1
declare ptr @longname(...) #1
declare i32 @termattrs(...) #1
declare i32 @mvwaddnstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @mvwinnstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @refresh(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnuicw45_.c'
source_filename = "/tmp/tmpnuicw45_.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @trocados(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100 x i8], align 16
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %119
15: ; preds = %2
store i32 0, ptr %6, align 4
br label %16
16: ; preds = %115, %15
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = icmp slt i32 %17, %19
br i1 %20, label %21, label %118
21: ; preds = %16
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strlen(ptr noundef %22)
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %111, %21
%25 = load i32, ptr %7, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %114
27: ; preds = %24
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %110
31: ; preds = %27
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %37, %43
br i1 %44, label %45, label %110
45: ; preds = %31
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %51, %57
br i1 %58, label %59, label %110
59: ; preds = %45
store i32 0, ptr %9, align 4
br label %60
60: ; preds = %100, %59
%61 = load i32, ptr %9, align 4
%62 = load ptr, ptr %4, align 8
%63 = call i32 @strlen(ptr noundef %62)
%64 = icmp slt i32 %61, %63
br i1 %64, label %65, label %103
65: ; preds = %60
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %9, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
%70 = load i8, ptr %69, align 1
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %72
store i8 %70, ptr %73, align 1
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %6, align 4
%76 = icmp eq i32 %74, %75
br i1 %76, label %77, label %86
77: ; preds = %65
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %7, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load i8, ptr %81, align 1
%83 = load i32, ptr %9, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %84
store i8 %82, ptr %85, align 1
br label %86
86: ; preds = %77, %65
%87 = load i32, ptr %9, align 4
%88 = load i32, ptr %7, align 4
%89 = icmp eq i32 %87, %88
br i1 %89, label %90, label %99
90: ; preds = %86
%91 = load ptr, ptr %4, align 8
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
%95 = load i8, ptr %94, align 1
%96 = load i32, ptr %9, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %97
store i8 %95, ptr %98, align 1
br label %99
99: ; preds = %90, %86
br label %100
100: ; preds = %99
%101 = load i32, ptr %9, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %9, align 4
br label %60, !llvm.loop !6
103: ; preds = %60
%104 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%105 = load ptr, ptr %5, align 8
%106 = call i64 @strcmp(ptr noundef %104, ptr noundef %105)
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %103
store i32 0, ptr %3, align 4
br label %120
109: ; preds = %103
br label %110
110: ; preds = %109, %45, %31, %27
br label %111
111: ; preds = %110
%112 = load i32, ptr %7, align 4
%113 = add nsw i32 %112, -1
store i32 %113, ptr %7, align 4
br label %24, !llvm.loop !8
114: ; preds = %24
br label %115
115: ; preds = %114
%116 = load i32, ptr %6, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %6, align 4
br label %16, !llvm.loop !9
118: ; preds = %16
br label %119
119: ; preds = %118, %2
store i32 1, ptr %3, align 4
br label %120
120: ; preds = %119, %108
%121 = load i32, ptr %3, align 4
ret i32 %121
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnuicw45_.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @trocados(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100 x i8], align 16
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %126
15: ; preds = %2
store i32 0, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = call i32 @strlen(ptr noundef %17)
%19 = icmp slt i32 %16, %18
br i1 %19, label %.lr.ph5, label %125
.lr.ph5: ; preds = %15
br label %20
20: ; preds = %.lr.ph5, %118
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %.lr.ph2, label %117
.lr.ph2: ; preds = %20
br label %25
25: ; preds = %.lr.ph2, %112
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %29, label %111
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %35, %41
br i1 %42, label %43, label %111
43: ; preds = %29
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %49, %55
br i1 %56, label %57, label %111
57: ; preds = %43
store i32 0, ptr %9, align 4
%58 = load i32, ptr %9, align 4
%59 = load ptr, ptr %4, align 8
%60 = call i32 @strlen(ptr noundef %59)
%61 = icmp slt i32 %58, %60
br i1 %61, label %.lr.ph, label %104
.lr.ph: ; preds = %57
br label %62
62: ; preds = %.lr.ph, %97
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %9, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = load i8, ptr %66, align 1
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %69
store i8 %67, ptr %70, align 1
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp eq i32 %71, %72
br i1 %73, label %74, label %83
74: ; preds = %62
%75 = load ptr, ptr %4, align 8
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
%79 = load i8, ptr %78, align 1
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %81
store i8 %79, ptr %82, align 1
br label %83
83: ; preds = %74, %62
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %7, align 4
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %96
87: ; preds = %83
%88 = load ptr, ptr %4, align 8
%89 = load i32, ptr %6, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %88, i64 %90
%92 = load i8, ptr %91, align 1
%93 = load i32, ptr %9, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %94
store i8 %92, ptr %95, align 1
br label %96
96: ; preds = %87, %83
br label %97
97: ; preds = %96
%98 = load i32, ptr %9, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %9, align 4
%100 = load i32, ptr %9, align 4
%101 = load ptr, ptr %4, align 8
%102 = call i32 @strlen(ptr noundef %101)
%103 = icmp slt i32 %100, %102
br i1 %103, label %62, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %104
104: ; preds = %._crit_edge, %57
%105 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%106 = load ptr, ptr %5, align 8
%107 = call i64 @strcmp(ptr noundef %105, ptr noundef %106)
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %104
store i32 0, ptr %3, align 4
br label %127
110: ; preds = %104
br label %111
111: ; preds = %110, %43, %29, %25
br label %112
112: ; preds = %111
%113 = load i32, ptr %7, align 4
%114 = add nsw i32 %113, -1
store i32 %114, ptr %7, align 4
%115 = load i32, ptr %7, align 4
%116 = icmp sgt i32 %115, 0
br i1 %116, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %112
br label %117
117: ; preds = %._crit_edge3, %20
br label %118
118: ; preds = %117
%119 = load i32, ptr %6, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %6, align 4
%121 = load i32, ptr %6, align 4
%122 = load ptr, ptr %4, align 8
%123 = call i32 @strlen(ptr noundef %122)
%124 = icmp slt i32 %121, %123
br i1 %124, label %20, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %118
br label %125
125: ; preds = %._crit_edge6, %15
br label %126
126: ; preds = %125, %2
store i32 1, ptr %3, align 4
br label %127
127: ; preds = %126, %109
%128 = load i32, ptr %3, align 4
ret i32 %128
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp_ccou32x.c'
source_filename = "/tmp/tmp_ccou32x.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-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"R_TextureNumForName: %s not found\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @R_TextureNumForName(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @R_CheckTextureNumForName(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @I_Error(ptr noundef @.str, ptr noundef %9)
br label %11
11: ; preds = %8, %1
%12 = load i32, ptr %3, align 4
ret i32 %12
}
declare i32 @R_CheckTextureNumForName(ptr noundef) #1
declare i32 @I_Error(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ccou32x.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-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"R_TextureNumForName: %s not found\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @R_TextureNumForName(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @R_CheckTextureNumForName(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @I_Error(ptr noundef @.str, ptr noundef %9)
br label %11
11: ; preds = %8, %1
%12 = load i32, ptr %3, align 4
ret i32 %12
}
declare i32 @R_CheckTextureNumForName(ptr noundef) #1
declare i32 @I_Error(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5k5izwwy.c'
source_filename = "/tmp/tmp5k5izwwy.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-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getxattr(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i32, ptr @ENOSYS, align 4
%10 = call i32 @__set_errno(i32 noundef %9)
ret i32 -1
}
declare i32 @__set_errno(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5k5izwwy.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-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getxattr(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i32, ptr @ENOSYS, align 4
%10 = call i32 @__set_errno(i32 noundef %9)
ret i32 -1
}
declare i32 @__set_errno(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpikz6kohu.c'
source_filename = "/tmp/tmpikz6kohu.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-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i16
store i16 %30, ptr %9, align 2
%31 = load i16, ptr %9, align 2
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %33
store i16 %31, ptr %34, align 2
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%42 = load i16, ptr %41, align 2
%43 = zext i16 %42 to i32
%44 = icmp eq i32 %43, 10257
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpikz6kohu.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-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i16
store i16 %29, ptr %9, align 2
%30 = load i16, ptr %9, align 2
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %32
store i16 %30, ptr %33, align 2
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%43 = load i16, ptr %42, align 2
%44 = zext i16 %43 to i32
%45 = icmp eq i32 %44, 10257
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpufu9s9nv.c'
source_filename = "/tmp/tmpufu9s9nv.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @palindrome_check(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [100 x i8], align 16
%10 = alloca i32, align 4
store i64 %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 1, ptr %7, align 4
%11 = load i64, ptr %2, align 8
store i64 %11, ptr %3, align 8
br label %12
12: ; preds = %27, %1
%13 = load i64, ptr %3, align 8
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %36
15: ; preds = %12
%16 = load i64, ptr %3, align 8
%17 = srem i64 %16, 16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %19, 10
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 48
store i32 %23, ptr %5, align 4
br label %27
24: ; preds = %15
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 55
store i32 %26, ptr %5, align 4
br label %27
27: ; preds = %24, %21
%28 = load i32, ptr %5, align 4
%29 = trunc i32 %28 to i8
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = sext i32 %30 to i64
%33 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %32
store i8 %29, ptr %33, align 1
%34 = load i64, ptr %3, align 8
%35 = sdiv i64 %34, 16
store i64 %35, ptr %3, align 8
br label %12, !llvm.loop !6
36: ; preds = %12
store i32 0, ptr %8, align 4
%37 = load i32, ptr %4, align 4
%38 = sub nsw i32 %37, 1
store i32 %38, ptr %7, align 4
br label %39
39: ; preds = %61, %36
%40 = load i32, ptr %8, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %66
43: ; preds = %39
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
store i32 %48, ptr %6, align 4
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %54
store i8 %52, ptr %55, align 1
%56 = load i32, ptr %6, align 4
%57 = trunc i32 %56 to i8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %59
store i8 %57, ptr %60, align 1
br label %61
61: ; preds = %43
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, -1
store i32 %65, ptr %7, align 4
br label %39, !llvm.loop !8
66: ; preds = %39
store i32 0, ptr %8, align 4
%67 = load i32, ptr %4, align 4
%68 = sub nsw i32 %67, 1
store i32 %68, ptr %7, align 4
br label %69
69: ; preds = %91, %66
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %96
73: ; preds = %69
%74 = load i32, ptr %8, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %75
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = load i32, ptr %7, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %78, %83
br i1 %84, label %85, label %86
85: ; preds = %73
store i32 1, ptr %10, align 4
br label %90
86: ; preds = %73
store i32 0, ptr %10, align 4
%87 = load i64, ptr %2, align 8
%88 = add nsw i64 %87, 1
store i64 %88, ptr %2, align 8
%89 = call i32 @palindrome_check(i64 noundef %88)
br label %90
90: ; preds = %86, %85
br label %91
91: ; preds = %90
%92 = load i32, ptr %8, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %8, align 4
%94 = load i32, ptr %7, align 4
%95 = add nsw i32 %94, -1
store i32 %95, ptr %7, align 4
br label %69, !llvm.loop !9
96: ; preds = %69
%97 = load i32, ptr %10, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %116
99: ; preds = %96
store i32 0, ptr %8, align 4
br label %100
100: ; preds = %111, %99
%101 = load i32, ptr %8, align 4
%102 = load i32, ptr %4, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %114
104: ; preds = %100
%105 = load i32, ptr %8, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %106
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %109)
br label %111
111: ; preds = %104
%112 = load i32, ptr %8, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %8, align 4
br label %100, !llvm.loop !10
114: ; preds = %100
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %116
116: ; preds = %114, %96
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpufu9s9nv.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-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @palindrome_check(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [100 x i8], align 16
%10 = alloca i32, align 4
store i64 %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 1, ptr %7, align 4
%11 = load i64, ptr %2, align 8
store i64 %11, ptr %3, align 8
%12 = load i64, ptr %3, align 8
%13 = icmp ne i64 %12, 0
br i1 %13, label %.lr.ph, label %37
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %26
%15 = load i64, ptr %3, align 8
%16 = srem i64 %15, 16
%17 = trunc i64 %16 to i32
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %18, 10
br i1 %19, label %20, label %23
20: ; preds = %14
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 48
store i32 %22, ptr %5, align 4
br label %26
23: ; preds = %14
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 55
store i32 %25, ptr %5, align 4
br label %26
26: ; preds = %23, %20
%27 = load i32, ptr %5, align 4
%28 = trunc i32 %27 to i8
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %31
store i8 %28, ptr %32, align 1
%33 = load i64, ptr %3, align 8
%34 = sdiv i64 %33, 16
store i64 %34, ptr %3, align 8
%35 = load i64, ptr %3, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %37
37: ; preds = %._crit_edge, %1
store i32 0, ptr %8, align 4
%38 = load i32, ptr %4, align 4
%39 = sub nsw i32 %38, 1
store i32 %39, ptr %7, align 4
%40 = load i32, ptr %8, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph2, label %69
.lr.ph2: ; preds = %37
br label %43
43: ; preds = %.lr.ph2, %61
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
store i32 %48, ptr %6, align 4
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %54
store i8 %52, ptr %55, align 1
%56 = load i32, ptr %6, align 4
%57 = trunc i32 %56 to i8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %59
store i8 %57, ptr %60, align 1
br label %61
61: ; preds = %43
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, -1
store i32 %65, ptr %7, align 4
%66 = load i32, ptr %8, align 4
%67 = load i32, ptr %7, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %61
br label %69
69: ; preds = %._crit_edge3, %37
store i32 0, ptr %8, align 4
%70 = load i32, ptr %4, align 4
%71 = sub nsw i32 %70, 1
store i32 %71, ptr %7, align 4
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %.lr.ph5, label %101
.lr.ph5: ; preds = %69
br label %75
75: ; preds = %.lr.ph5, %93
%76 = load i32, ptr %8, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %77
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = load i32, ptr %7, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %80, %85
br i1 %86, label %87, label %88
87: ; preds = %75
store i32 1, ptr %10, align 4
br label %92
88: ; preds = %75
store i32 0, ptr %10, align 4
%89 = load i64, ptr %2, align 8
%90 = add nsw i64 %89, 1
store i64 %90, ptr %2, align 8
%91 = call i32 @palindrome_check(i64 noundef %90)
br label %92
92: ; preds = %88, %87
br label %93
93: ; preds = %92
%94 = load i32, ptr %8, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %8, align 4
%96 = load i32, ptr %7, align 4
%97 = add nsw i32 %96, -1
store i32 %97, ptr %7, align 4
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr %7, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %75, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %93
br label %101
101: ; preds = %._crit_edge6, %69
%102 = load i32, ptr %10, align 4
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %123
104: ; preds = %101
store i32 0, ptr %8, align 4
%105 = load i32, ptr %8, align 4
%106 = load i32, ptr %4, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %.lr.ph8, label %121
.lr.ph8: ; preds = %104
br label %108
108: ; preds = %.lr.ph8, %115
%109 = load i32, ptr %8, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %113)
br label %115
115: ; preds = %108
%116 = load i32, ptr %8, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %8, align 4
%118 = load i32, ptr %8, align 4
%119 = load i32, ptr %4, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %108, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %115
br label %121
121: ; preds = %._crit_edge9, %104
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %123
123: ; preds = %121, %101
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpne_ucf03.c'
source_filename = "/tmp/tmpne_ucf03.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logCDFNormal(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %3, align 8
%9 = load double, ptr %3, align 8
%10 = call double @llvm.fabs.f64(double %9)
store double %10, ptr %5, align 8
store double -1.000000e+01, ptr %7, align 8
store double 5.000000e+00, ptr %8, align 8
%11 = load double, ptr %3, align 8
%12 = load double, ptr %7, align 8
%13 = fcmp oge double %11, %12
br i1 %13, label %14, label %22
14: ; preds = %1
%15 = load double, ptr %3, align 8
%16 = load double, ptr %8, align 8
%17 = fcmp ole double %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load double, ptr %3, align 8
%20 = call double @CDFNormal(double noundef %19)
%21 = call double @log(double noundef %20) #4
store double %21, ptr %2, align 8
br label %129
22: ; preds = %14, %1
%23 = load double, ptr %3, align 8
%24 = load double, ptr %8, align 8
%25 = fcmp ogt double %23, %24
br i1 %25, label %26, label %36
26: ; preds = %22
%27 = load double, ptr %3, align 8
%28 = load double, ptr %7, align 8
%29 = fneg double %28
%30 = fcmp olt double %27, %29
br i1 %30, label %31, label %36
31: ; preds = %26
%32 = load double, ptr %5, align 8
%33 = fneg double %32
%34 = call double @CDFNormal(double noundef %33)
%35 = call double @log(double noundef %34) #4
store double %35, ptr %4, align 8
br label %94
36: ; preds = %26, %22
%37 = load double, ptr %5, align 8
%38 = load double, ptr %5, align 8
%39 = fmul double %37, %38
%40 = fdiv double 1.000000e+00, %39
%41 = fsub double 1.000000e+00, %40
%42 = load double, ptr %5, align 8
%43 = load double, ptr %5, align 8
%44 = fmul double %42, %43
%45 = load double, ptr %5, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %5, align 8
%48 = fmul double %46, %47
%49 = fdiv double 3.000000e+00, %48
%50 = fadd double %41, %49
%51 = load double, ptr %5, align 8
%52 = load double, ptr %5, align 8
%53 = fmul double %51, %52
%54 = load double, ptr %5, align 8
%55 = fmul double %53, %54
%56 = load double, ptr %5, align 8
%57 = fmul double %55, %56
%58 = load double, ptr %5, align 8
%59 = fmul double %57, %58
%60 = load double, ptr %5, align 8
%61 = fmul double %59, %60
%62 = fdiv double 1.500000e+01, %61
%63 = fsub double %50, %62
%64 = load double, ptr %5, align 8
%65 = load double, ptr %5, align 8
%66 = fmul double %64, %65
%67 = load double, ptr %5, align 8
%68 = fmul double %66, %67
%69 = load double, ptr %5, align 8
%70 = fmul double %68, %69
%71 = load double, ptr %5, align 8
%72 = fmul double %70, %71
%73 = load double, ptr %5, align 8
%74 = fmul double %72, %73
%75 = load double, ptr %5, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %5, align 8
%78 = fmul double %76, %77
%79 = fdiv double 1.050000e+02, %78
%80 = fadd double %63, %79
store double %80, ptr %6, align 8
%81 = load double, ptr %5, align 8
%82 = fneg double %81
%83 = load double, ptr %5, align 8
%84 = fmul double %82, %83
%85 = fdiv double %84, 2.000000e+00
%86 = call double @sqrt(i32 noundef 6)
%87 = load double, ptr %5, align 8
%88 = fmul double %86, %87
%89 = call double @log(double noundef %88) #4
%90 = fsub double %85, %89
%91 = load double, ptr %6, align 8
%92 = call double @log(double noundef %91) #4
%93 = fadd double %90, %92
store double %93, ptr %4, align 8
br label %94
94: ; preds = %36, %31
%95 = load double, ptr %3, align 8
%96 = fcmp ogt double %95, 0.000000e+00
br i1 %96, label %97, label %127
97: ; preds = %94
%98 = load double, ptr %4, align 8
%99 = call double @exp(double noundef %98) #4
store double %99, ptr %5, align 8
%100 = load double, ptr %5, align 8
%101 = fneg double %100
%102 = load double, ptr %5, align 8
%103 = fdiv double %102, 2.000000e+00
%104 = fadd double 1.000000e+00, %103
%105 = load double, ptr %5, align 8
%106 = load double, ptr %5, align 8
%107 = fmul double %105, %106
%108 = fdiv double %107, 3.000000e+00
%109 = fadd double %104, %108
%110 = load double, ptr %5, align 8
%111 = load double, ptr %5, align 8
%112 = fmul double %110, %111
%113 = load double, ptr %5, align 8
%114 = fmul double %112, %113
%115 = fdiv double %114, 4.000000e+00
%116 = fadd double %109, %115
%117 = load double, ptr %5, align 8
%118 = load double, ptr %5, align 8
%119 = fmul double %117, %118
%120 = load double, ptr %5, align 8
%121 = fmul double %119, %120
%122 = load double, ptr %5, align 8
%123 = fmul double %121, %122
%124 = fdiv double %123, 5.000000e+00
%125 = fadd double %116, %124
%126 = fmul double %101, %125
store double %126, ptr %4, align 8
br label %127
127: ; preds = %97, %94
%128 = load double, ptr %4, align 8
store double %128, ptr %2, align 8
br label %129
129: ; preds = %127, %18
%130 = load double, ptr %2, align 8
ret double %130
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
declare double @CDFNormal(double noundef) #3
declare double @sqrt(i32 noundef) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpne_ucf03.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logCDFNormal(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %3, align 8
%9 = load double, ptr %3, align 8
%10 = call double @llvm.fabs.f64(double %9)
store double %10, ptr %5, align 8
store double -1.000000e+01, ptr %7, align 8
store double 5.000000e+00, ptr %8, align 8
%11 = load double, ptr %3, align 8
%12 = load double, ptr %7, align 8
%13 = fcmp oge double %11, %12
br i1 %13, label %14, label %22
14: ; preds = %1
%15 = load double, ptr %3, align 8
%16 = load double, ptr %8, align 8
%17 = fcmp ole double %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load double, ptr %3, align 8
%20 = call double @CDFNormal(double noundef %19)
%21 = call double @log(double noundef %20) #4
store double %21, ptr %2, align 8
br label %129
22: ; preds = %14, %1
%23 = load double, ptr %3, align 8
%24 = load double, ptr %8, align 8
%25 = fcmp ogt double %23, %24
br i1 %25, label %26, label %36
26: ; preds = %22
%27 = load double, ptr %3, align 8
%28 = load double, ptr %7, align 8
%29 = fneg double %28
%30 = fcmp olt double %27, %29
br i1 %30, label %31, label %36
31: ; preds = %26
%32 = load double, ptr %5, align 8
%33 = fneg double %32
%34 = call double @CDFNormal(double noundef %33)
%35 = call double @log(double noundef %34) #4
store double %35, ptr %4, align 8
br label %94
36: ; preds = %26, %22
%37 = load double, ptr %5, align 8
%38 = load double, ptr %5, align 8
%39 = fmul double %37, %38
%40 = fdiv double 1.000000e+00, %39
%41 = fsub double 1.000000e+00, %40
%42 = load double, ptr %5, align 8
%43 = load double, ptr %5, align 8
%44 = fmul double %42, %43
%45 = load double, ptr %5, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %5, align 8
%48 = fmul double %46, %47
%49 = fdiv double 3.000000e+00, %48
%50 = fadd double %41, %49
%51 = load double, ptr %5, align 8
%52 = load double, ptr %5, align 8
%53 = fmul double %51, %52
%54 = load double, ptr %5, align 8
%55 = fmul double %53, %54
%56 = load double, ptr %5, align 8
%57 = fmul double %55, %56
%58 = load double, ptr %5, align 8
%59 = fmul double %57, %58
%60 = load double, ptr %5, align 8
%61 = fmul double %59, %60
%62 = fdiv double 1.500000e+01, %61
%63 = fsub double %50, %62
%64 = load double, ptr %5, align 8
%65 = load double, ptr %5, align 8
%66 = fmul double %64, %65
%67 = load double, ptr %5, align 8
%68 = fmul double %66, %67
%69 = load double, ptr %5, align 8
%70 = fmul double %68, %69
%71 = load double, ptr %5, align 8
%72 = fmul double %70, %71
%73 = load double, ptr %5, align 8
%74 = fmul double %72, %73
%75 = load double, ptr %5, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %5, align 8
%78 = fmul double %76, %77
%79 = fdiv double 1.050000e+02, %78
%80 = fadd double %63, %79
store double %80, ptr %6, align 8
%81 = load double, ptr %5, align 8
%82 = fneg double %81
%83 = load double, ptr %5, align 8
%84 = fmul double %82, %83
%85 = fdiv double %84, 2.000000e+00
%86 = call double @sqrt(i32 noundef 6)
%87 = load double, ptr %5, align 8
%88 = fmul double %86, %87
%89 = call double @log(double noundef %88) #4
%90 = fsub double %85, %89
%91 = load double, ptr %6, align 8
%92 = call double @log(double noundef %91) #4
%93 = fadd double %90, %92
store double %93, ptr %4, align 8
br label %94
94: ; preds = %36, %31
%95 = load double, ptr %3, align 8
%96 = fcmp ogt double %95, 0.000000e+00
br i1 %96, label %97, label %127
97: ; preds = %94
%98 = load double, ptr %4, align 8
%99 = call double @exp(double noundef %98) #4
store double %99, ptr %5, align 8
%100 = load double, ptr %5, align 8
%101 = fneg double %100
%102 = load double, ptr %5, align 8
%103 = fdiv double %102, 2.000000e+00
%104 = fadd double 1.000000e+00, %103
%105 = load double, ptr %5, align 8
%106 = load double, ptr %5, align 8
%107 = fmul double %105, %106
%108 = fdiv double %107, 3.000000e+00
%109 = fadd double %104, %108
%110 = load double, ptr %5, align 8
%111 = load double, ptr %5, align 8
%112 = fmul double %110, %111
%113 = load double, ptr %5, align 8
%114 = fmul double %112, %113
%115 = fdiv double %114, 4.000000e+00
%116 = fadd double %109, %115
%117 = load double, ptr %5, align 8
%118 = load double, ptr %5, align 8
%119 = fmul double %117, %118
%120 = load double, ptr %5, align 8
%121 = fmul double %119, %120
%122 = load double, ptr %5, align 8
%123 = fmul double %121, %122
%124 = fdiv double %123, 5.000000e+00
%125 = fadd double %116, %124
%126 = fmul double %101, %125
store double %126, ptr %4, align 8
br label %127
127: ; preds = %97, %94
%128 = load double, ptr %4, align 8
store double %128, ptr %2, align 8
br label %129
129: ; preds = %127, %18
%130 = load double, ptr %2, align 8
ret double %130
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
declare double @CDFNormal(double noundef) #3
declare double @sqrt(i32 noundef) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpenihubun.c'
source_filename = "/tmp/tmpenihubun.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-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"%d*%d=%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 1, ptr %1, align 4
br label %2
2: ; preds = %20, %0
%3 = load i32, ptr %1, align 4
%4 = icmp sle i32 %3, 10000
br i1 %4, label %5, label %23
5: ; preds = %2
%6 = load i32, ptr %1, align 4
%7 = call i64 @fun(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %19
9: ; preds = %5
%10 = load i32, ptr %1, align 4
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %1, align 4
%13 = sext i32 %12 to i64
%14 = mul nsw i64 1, %13
%15 = load i32, ptr %1, align 4
%16 = sext i32 %15 to i64
%17 = mul nsw i64 %14, %16
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %11, i64 noundef %17)
br label %19
19: ; preds = %9, %5
br label %20
20: ; preds = %19
%21 = load i32, ptr %1, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %1, align 4
br label %2, !llvm.loop !6
23: ; preds = %2
ret void
}
declare i64 @fun(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpenihubun.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-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"%d*%d=%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 1, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp sle i32 %2, 10000
br i1 %3, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %19
%5 = load i32, ptr %1, align 4
%6 = call i64 @fun(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %4
%9 = load i32, ptr %1, align 4
%10 = load i32, ptr %1, align 4
%11 = load i32, ptr %1, align 4
%12 = sext i32 %11 to i64
%13 = mul nsw i64 1, %12
%14 = load i32, ptr %1, align 4
%15 = sext i32 %14 to i64
%16 = mul nsw i64 %13, %15
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %10, i64 noundef %16)
br label %18
18: ; preds = %8, %4
br label %19
19: ; preds = %18
%20 = load i32, ptr %1, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %1, align 4
%22 = load i32, ptr %1, align 4
%23 = icmp sle i32 %22, 10000
br i1 %23, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
ret void
}
declare i64 @fun(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_fcmhqk8.c'
source_filename = "/tmp/tmp_fcmhqk8.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ecn_square(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 %0, ptr %11, align 4
store i32 %1, ptr %12, align 4
store i32 %2, ptr %13, align 4
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store i32 %7, ptr %18, align 4
store i32 %8, ptr %19, align 4
store i32 %9, ptr %20, align 4
%21 = load i32, ptr %19, align 4
%22 = call i64 @mpz_cmp_si(i32 noundef %21, i32 noundef -1)
%23 = icmp eq i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %10
%25 = load i32, ptr %20, align 4
%26 = call i64 @mpz_cmp_si(i32 noundef %25, i32 noundef 0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %24, %10
%29 = load i32, ptr %14, align 4
%30 = call i32 @mpz_set_si(i32 noundef %29, i32 noundef -1)
%31 = load i32, ptr %15, align 4
%32 = call i32 @mpz_set_si(i32 noundef %31, i32 noundef -1)
br label %100
33: ; preds = %24
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %19, align 4
%36 = load i32, ptr %19, align 4
%37 = call i32 @mpz_mul(i32 noundef %34, i32 noundef %35, i32 noundef %36)
%38 = load i32, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %16, align 4
%41 = call i32 @mpz_mod(i32 noundef %38, i32 noundef %39, i32 noundef %40)
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %11, align 4
%44 = call i32 @mpz_mul_ui(i32 noundef %42, i32 noundef %43, i32 noundef 3)
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr %17, align 4
%48 = call i32 @mpz_add(i32 noundef %45, i32 noundef %46, i32 noundef %47)
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %11, align 4
%51 = load i32, ptr %16, align 4
%52 = call i32 @mpz_mod(i32 noundef %49, i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %12, align 4
%54 = load i32, ptr %20, align 4
%55 = load i32, ptr %20, align 4
%56 = call i32 @mpz_add(i32 noundef %53, i32 noundef %54, i32 noundef %55)
%57 = load i32, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr %16, align 4
%60 = call i32 @mpz_invert(i32 noundef %57, i32 noundef %58, i32 noundef %59)
%61 = load i32, ptr %13, align 4
%62 = load i32, ptr %11, align 4
%63 = load i32, ptr %12, align 4
%64 = call i32 @mpz_mul(i32 noundef %61, i32 noundef %62, i32 noundef %63)
%65 = load i32, ptr %13, align 4
%66 = load i32, ptr %13, align 4
%67 = load i32, ptr %16, align 4
%68 = call i32 @mpz_mod(i32 noundef %65, i32 noundef %66, i32 noundef %67)
%69 = load i32, ptr %11, align 4
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %13, align 4
%72 = call i32 @mpz_mul(i32 noundef %69, i32 noundef %70, i32 noundef %71)
%73 = load i32, ptr %12, align 4
%74 = load i32, ptr %19, align 4
%75 = call i32 @mpz_mul_ui(i32 noundef %73, i32 noundef %74, i32 noundef 2)
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %11, align 4
%78 = load i32, ptr %12, align 4
%79 = call i32 @mpz_sub(i32 noundef %76, i32 noundef %77, i32 noundef %78)
%80 = load i32, ptr %12, align 4
%81 = load i32, ptr %19, align 4
%82 = load i32, ptr %11, align 4
%83 = call i32 @mpz_sub(i32 noundef %80, i32 noundef %81, i32 noundef %82)
%84 = load i32, ptr %12, align 4
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %12, align 4
%87 = call i32 @mpz_mul(i32 noundef %84, i32 noundef %85, i32 noundef %86)
%88 = load i32, ptr %12, align 4
%89 = load i32, ptr %12, align 4
%90 = load i32, ptr %20, align 4
%91 = call i32 @mpz_sub(i32 noundef %88, i32 noundef %89, i32 noundef %90)
%92 = load i32, ptr %14, align 4
%93 = load i32, ptr %11, align 4
%94 = load i32, ptr %16, align 4
%95 = call i32 @mpz_mod(i32 noundef %92, i32 noundef %93, i32 noundef %94)
%96 = load i32, ptr %15, align 4
%97 = load i32, ptr %12, align 4
%98 = load i32, ptr %16, align 4
%99 = call i32 @mpz_mod(i32 noundef %96, i32 noundef %97, i32 noundef %98)
br label %100
100: ; preds = %33, %28
ret void
}
declare i64 @mpz_cmp_si(i32 noundef, i32 noundef) #1
declare i32 @mpz_set_si(i32 noundef, i32 noundef) #1
declare i32 @mpz_mul(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mod(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mul_ui(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_invert(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_fcmhqk8.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ecn_square(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 %0, ptr %11, align 4
store i32 %1, ptr %12, align 4
store i32 %2, ptr %13, align 4
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store i32 %7, ptr %18, align 4
store i32 %8, ptr %19, align 4
store i32 %9, ptr %20, align 4
%21 = load i32, ptr %19, align 4
%22 = call i64 @mpz_cmp_si(i32 noundef %21, i32 noundef -1)
%23 = icmp eq i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %10
%25 = load i32, ptr %20, align 4
%26 = call i64 @mpz_cmp_si(i32 noundef %25, i32 noundef 0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %24, %10
%29 = load i32, ptr %14, align 4
%30 = call i32 @mpz_set_si(i32 noundef %29, i32 noundef -1)
%31 = load i32, ptr %15, align 4
%32 = call i32 @mpz_set_si(i32 noundef %31, i32 noundef -1)
br label %100
33: ; preds = %24
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %19, align 4
%36 = load i32, ptr %19, align 4
%37 = call i32 @mpz_mul(i32 noundef %34, i32 noundef %35, i32 noundef %36)
%38 = load i32, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %16, align 4
%41 = call i32 @mpz_mod(i32 noundef %38, i32 noundef %39, i32 noundef %40)
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %11, align 4
%44 = call i32 @mpz_mul_ui(i32 noundef %42, i32 noundef %43, i32 noundef 3)
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr %17, align 4
%48 = call i32 @mpz_add(i32 noundef %45, i32 noundef %46, i32 noundef %47)
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %11, align 4
%51 = load i32, ptr %16, align 4
%52 = call i32 @mpz_mod(i32 noundef %49, i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %12, align 4
%54 = load i32, ptr %20, align 4
%55 = load i32, ptr %20, align 4
%56 = call i32 @mpz_add(i32 noundef %53, i32 noundef %54, i32 noundef %55)
%57 = load i32, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr %16, align 4
%60 = call i32 @mpz_invert(i32 noundef %57, i32 noundef %58, i32 noundef %59)
%61 = load i32, ptr %13, align 4
%62 = load i32, ptr %11, align 4
%63 = load i32, ptr %12, align 4
%64 = call i32 @mpz_mul(i32 noundef %61, i32 noundef %62, i32 noundef %63)
%65 = load i32, ptr %13, align 4
%66 = load i32, ptr %13, align 4
%67 = load i32, ptr %16, align 4
%68 = call i32 @mpz_mod(i32 noundef %65, i32 noundef %66, i32 noundef %67)
%69 = load i32, ptr %11, align 4
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %13, align 4
%72 = call i32 @mpz_mul(i32 noundef %69, i32 noundef %70, i32 noundef %71)
%73 = load i32, ptr %12, align 4
%74 = load i32, ptr %19, align 4
%75 = call i32 @mpz_mul_ui(i32 noundef %73, i32 noundef %74, i32 noundef 2)
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %11, align 4
%78 = load i32, ptr %12, align 4
%79 = call i32 @mpz_sub(i32 noundef %76, i32 noundef %77, i32 noundef %78)
%80 = load i32, ptr %12, align 4
%81 = load i32, ptr %19, align 4
%82 = load i32, ptr %11, align 4
%83 = call i32 @mpz_sub(i32 noundef %80, i32 noundef %81, i32 noundef %82)
%84 = load i32, ptr %12, align 4
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %12, align 4
%87 = call i32 @mpz_mul(i32 noundef %84, i32 noundef %85, i32 noundef %86)
%88 = load i32, ptr %12, align 4
%89 = load i32, ptr %12, align 4
%90 = load i32, ptr %20, align 4
%91 = call i32 @mpz_sub(i32 noundef %88, i32 noundef %89, i32 noundef %90)
%92 = load i32, ptr %14, align 4
%93 = load i32, ptr %11, align 4
%94 = load i32, ptr %16, align 4
%95 = call i32 @mpz_mod(i32 noundef %92, i32 noundef %93, i32 noundef %94)
%96 = load i32, ptr %15, align 4
%97 = load i32, ptr %12, align 4
%98 = load i32, ptr %16, align 4
%99 = call i32 @mpz_mod(i32 noundef %96, i32 noundef %97, i32 noundef %98)
br label %100
100: ; preds = %33, %28
ret void
}
declare i64 @mpz_cmp_si(i32 noundef, i32 noundef) #1
declare i32 @mpz_set_si(i32 noundef, i32 noundef) #1
declare i32 @mpz_mul(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mod(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mul_ui(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_invert(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpurtjn3yx.c'
source_filename = "/tmp/tmpurtjn3yx.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-pc-linux-gnu"
@UINT32_MAX = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpurtjn3yx.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-pc-linux-gnu"
@UINT32_MAX = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphmrflz2l.c'
source_filename = "/tmp/tmphmrflz2l.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-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cos(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %6, align 8
br label %9
9: ; preds = %15, %1
%10 = load double, ptr %2, align 8
%11 = load i32, ptr @M_PI, align 4
%12 = mul nsw i32 %11, 2
%13 = sitofp i32 %12 to double
%14 = fcmp ogt double %10, %13
br i1 %14, label %15, label %21
15: ; preds = %9
%16 = load i32, ptr @M_PI, align 4
%17 = mul nsw i32 %16, 2
%18 = sitofp i32 %17 to double
%19 = load double, ptr %2, align 8
%20 = fsub double %19, %18
store double %20, ptr %2, align 8
br label %9, !llvm.loop !6
21: ; preds = %9
br label %22
22: ; preds = %29, %21
%23 = load double, ptr %2, align 8
%24 = load i32, ptr @M_PI, align 4
%25 = mul nsw i32 %24, 2
%26 = sub nsw i32 0, %25
%27 = sitofp i32 %26 to double
%28 = fcmp olt double %23, %27
br i1 %28, label %29, label %35
29: ; preds = %22
%30 = load i32, ptr @M_PI, align 4
%31 = mul nsw i32 %30, 2
%32 = sitofp i32 %31 to double
%33 = load double, ptr %2, align 8
%34 = fadd double %33, %32
store double %34, ptr %2, align 8
br label %22, !llvm.loop !8
35: ; preds = %22
store double 0.000000e+00, ptr %7, align 8
br label %36
36: ; preds = %87, %35
%37 = load double, ptr %7, align 8
%38 = fcmp olt double %37, 1.500000e+01
br i1 %38, label %39, label %90
39: ; preds = %36
store double 1.000000e+00, ptr %4, align 8
store double 0.000000e+00, ptr %8, align 8
br label %40
40: ; preds = %47, %39
%41 = load double, ptr %8, align 8
%42 = load double, ptr %7, align 8
%43 = fcmp olt double %41, %42
br i1 %43, label %44, label %50
44: ; preds = %40
%45 = load double, ptr %4, align 8
%46 = fmul double %45, -1.000000e+00
store double %46, ptr %4, align 8
br label %47
47: ; preds = %44
%48 = load double, ptr %8, align 8
%49 = fadd double %48, 1.000000e+00
store double %49, ptr %8, align 8
br label %40, !llvm.loop !9
50: ; preds = %40
store double 1.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %8, align 8
br label %51
51: ; preds = %60, %50
%52 = load double, ptr %8, align 8
%53 = load double, ptr %7, align 8
%54 = fmul double 2.000000e+00, %53
%55 = fcmp olt double %52, %54
br i1 %55, label %56, label %63
56: ; preds = %51
%57 = load double, ptr %2, align 8
%58 = load double, ptr %5, align 8
%59 = fmul double %58, %57
store double %59, ptr %5, align 8
br label %60
60: ; preds = %56
%61 = load double, ptr %8, align 8
%62 = fadd double %61, 1.000000e+00
store double %62, ptr %8, align 8
br label %51, !llvm.loop !10
63: ; preds = %51
store double 1.000000e+00, ptr %6, align 8
%64 = load double, ptr %7, align 8
%65 = fmul double 2.000000e+00, %64
store double %65, ptr %8, align 8
br label %66
66: ; preds = %73, %63
%67 = load double, ptr %8, align 8
%68 = fcmp ogt double %67, 0.000000e+00
br i1 %68, label %69, label %76
69: ; preds = %66
%70 = load double, ptr %8, align 8
%71 = load double, ptr %6, align 8
%72 = fmul double %71, %70
store double %72, ptr %6, align 8
br label %73
73: ; preds = %69
%74 = load double, ptr %8, align 8
%75 = fsub double %74, 1.000000e+00
store double %75, ptr %8, align 8
br label %66, !llvm.loop !11
76: ; preds = %66
%77 = load double, ptr %6, align 8
%78 = fcmp une double %77, 0.000000e+00
br i1 %78, label %79, label %86
79: ; preds = %76
%80 = load double, ptr %4, align 8
%81 = load double, ptr %5, align 8
%82 = load double, ptr %6, align 8
%83 = fdiv double %81, %82
%84 = load double, ptr %3, align 8
%85 = call double @llvm.fmuladd.f64(double %80, double %83, double %84)
store double %85, ptr %3, align 8
br label %86
86: ; preds = %79, %76
br label %87
87: ; preds = %86
%88 = load double, ptr %7, align 8
%89 = fadd double %88, 1.000000e+00
store double %89, ptr %7, align 8
br label %36, !llvm.loop !12
90: ; preds = %36
%91 = load double, ptr %3, align 8
ret double %91
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphmrflz2l.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-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cos(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %6, align 8
%9 = load double, ptr %2, align 8
%10 = load i32, ptr @M_PI, align 4
%11 = mul nsw i32 %10, 2
%12 = sitofp i32 %11 to double
%13 = fcmp ogt double %9, %12
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr @M_PI, align 4
%16 = mul nsw i32 %15, 2
%17 = sitofp i32 %16 to double
%18 = load double, ptr %2, align 8
%19 = fsub double %18, %17
store double %19, ptr %2, align 8
%20 = load double, ptr %2, align 8
%21 = load i32, ptr @M_PI, align 4
%22 = mul nsw i32 %21, 2
%23 = sitofp i32 %22 to double
%24 = fcmp ogt double %20, %23
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %25
25: ; preds = %._crit_edge, %1
%26 = load double, ptr %2, align 8
%27 = load i32, ptr @M_PI, align 4
%28 = mul nsw i32 %27, 2
%29 = sub nsw i32 0, %28
%30 = sitofp i32 %29 to double
%31 = fcmp olt double %26, %30
br i1 %31, label %.lr.ph2, label %44
.lr.ph2: ; preds = %25
br label %32
32: ; preds = %.lr.ph2, %32
%33 = load i32, ptr @M_PI, align 4
%34 = mul nsw i32 %33, 2
%35 = sitofp i32 %34 to double
%36 = load double, ptr %2, align 8
%37 = fadd double %36, %35
store double %37, ptr %2, align 8
%38 = load double, ptr %2, align 8
%39 = load i32, ptr @M_PI, align 4
%40 = mul nsw i32 %39, 2
%41 = sub nsw i32 0, %40
%42 = sitofp i32 %41 to double
%43 = fcmp olt double %38, %42
br i1 %43, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %44
44: ; preds = %._crit_edge3, %25
store double 0.000000e+00, ptr %7, align 8
%45 = load double, ptr %7, align 8
%46 = fcmp olt double %45, 1.500000e+01
br i1 %46, label %.lr.ph14, label %106
.lr.ph14: ; preds = %44
br label %47
47: ; preds = %.lr.ph14, %101
store double 1.000000e+00, ptr %4, align 8
store double 0.000000e+00, ptr %8, align 8
%48 = load double, ptr %8, align 8
%49 = load double, ptr %7, align 8
%50 = fcmp olt double %48, %49
br i1 %50, label %.lr.ph5, label %60
.lr.ph5: ; preds = %47
br label %51
51: ; preds = %.lr.ph5, %54
%52 = load double, ptr %4, align 8
%53 = fmul double %52, -1.000000e+00
store double %53, ptr %4, align 8
br label %54
54: ; preds = %51
%55 = load double, ptr %8, align 8
%56 = fadd double %55, 1.000000e+00
store double %56, ptr %8, align 8
%57 = load double, ptr %8, align 8
%58 = load double, ptr %7, align 8
%59 = fcmp olt double %57, %58
br i1 %59, label %51, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %54
br label %60
60: ; preds = %._crit_edge6, %47
store double 1.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %8, align 8
%61 = load double, ptr %8, align 8
%62 = load double, ptr %7, align 8
%63 = fmul double 2.000000e+00, %62
%64 = fcmp olt double %61, %63
br i1 %64, label %.lr.ph8, label %76
.lr.ph8: ; preds = %60
br label %65
65: ; preds = %.lr.ph8, %69
%66 = load double, ptr %2, align 8
%67 = load double, ptr %5, align 8
%68 = fmul double %67, %66
store double %68, ptr %5, align 8
br label %69
69: ; preds = %65
%70 = load double, ptr %8, align 8
%71 = fadd double %70, 1.000000e+00
store double %71, ptr %8, align 8
%72 = load double, ptr %8, align 8
%73 = load double, ptr %7, align 8
%74 = fmul double 2.000000e+00, %73
%75 = fcmp olt double %72, %74
br i1 %75, label %65, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %69
br label %76
76: ; preds = %._crit_edge9, %60
store double 1.000000e+00, ptr %6, align 8
%77 = load double, ptr %7, align 8
%78 = fmul double 2.000000e+00, %77
store double %78, ptr %8, align 8
%79 = load double, ptr %8, align 8
%80 = fcmp ogt double %79, 0.000000e+00
br i1 %80, label %.lr.ph11, label %90
.lr.ph11: ; preds = %76
br label %81
81: ; preds = %.lr.ph11, %85
%82 = load double, ptr %8, align 8
%83 = load double, ptr %6, align 8
%84 = fmul double %83, %82
store double %84, ptr %6, align 8
br label %85
85: ; preds = %81
%86 = load double, ptr %8, align 8
%87 = fsub double %86, 1.000000e+00
store double %87, ptr %8, align 8
%88 = load double, ptr %8, align 8
%89 = fcmp ogt double %88, 0.000000e+00
br i1 %89, label %81, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %85
br label %90
90: ; preds = %._crit_edge12, %76
%91 = load double, ptr %6, align 8
%92 = fcmp une double %91, 0.000000e+00
br i1 %92, label %93, label %100
93: ; preds = %90
%94 = load double, ptr %4, align 8
%95 = load double, ptr %5, align 8
%96 = load double, ptr %6, align 8
%97 = fdiv double %95, %96
%98 = load double, ptr %3, align 8
%99 = call double @llvm.fmuladd.f64(double %94, double %97, double %98)
store double %99, ptr %3, align 8
br label %100
100: ; preds = %93, %90
br label %101
101: ; preds = %100
%102 = load double, ptr %7, align 8
%103 = fadd double %102, 1.000000e+00
store double %103, ptr %7, align 8
%104 = load double, ptr %7, align 8
%105 = fcmp olt double %104, 1.500000e+01
br i1 %105, label %47, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %101
br label %106
106: ; preds = %._crit_edge15, %44
%107 = load double, ptr %3, align 8
ret double %107
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpfl1n84xx.c'
source_filename = "/tmp/tmpfl1n84xx.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-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfl1n84xx.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-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjlt4dkdu.c'
source_filename = "/tmp/tmpjlt4dkdu.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @FlashIntUnregister() #0 {
%1 = call i32 @IntDisable(i32 noundef 45)
%2 = call i32 @IntUnregister(i32 noundef 45)
ret void
}
declare i32 @IntDisable(i32 noundef) #1
declare i32 @IntUnregister(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjlt4dkdu.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @FlashIntUnregister() #0 {
%1 = call i32 @IntDisable(i32 noundef 45)
%2 = call i32 @IntUnregister(i32 noundef 45)
ret void
}
declare i32 @IntDisable(i32 noundef) #1
declare i32 @IntUnregister(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwiua3tfk.c'
source_filename = "/tmp/tmpwiua3tfk.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-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"TS_ONFINISH\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"fork on finish\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hook_on_finish(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [20 x i8], align 16
%12 = alloca [20 x i8], align 16
%13 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%14 = call ptr @getenv(ptr noundef @.str)
store ptr %14, ptr %9, align 8
%15 = load ptr, ptr %9, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %4
br label %40
18: ; preds = %4
%19 = call i32 (...) @fork()
store i32 %19, ptr %10, align 4
%20 = load i32, ptr %10, align 4
switch i32 %20, label %38 [
i32 0, label %21
i32 -1, label %36
]
21: ; preds = %18
%22 = call i32 (...) @restore_sigmask()
%23 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%24 = load i32, ptr %5, align 4
%25 = call i32 @sprintf(ptr noundef %23, ptr noundef @.str.1, i32 noundef %24)
%26 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%27 = load i32, ptr %6, align 4
%28 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.1, i32 noundef %27)
%29 = load ptr, ptr %9, align 8
%30 = load ptr, ptr %9, align 8
%31 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%32 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%33 = load ptr, ptr %7, align 8
%34 = load ptr, ptr %8, align 8
%35 = call i32 @execlp(ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef null)
br label %36
36: ; preds = %18, %21
%37 = call i32 @error(ptr noundef @.str.2)
br label %38
38: ; preds = %18, %36
%39 = call i32 @wait(ptr noundef %13)
br label %40
40: ; preds = %17, %38
ret void
}
declare ptr @getenv(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @restore_sigmask(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwiua3tfk.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-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"TS_ONFINISH\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"fork on finish\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hook_on_finish(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [20 x i8], align 16
%12 = alloca [20 x i8], align 16
%13 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%14 = call ptr @getenv(ptr noundef @.str)
store ptr %14, ptr %9, align 8
%15 = load ptr, ptr %9, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %4
br label %40
18: ; preds = %4
%19 = call i32 (...) @fork()
store i32 %19, ptr %10, align 4
%20 = load i32, ptr %10, align 4
switch i32 %20, label %38 [
i32 0, label %21
i32 -1, label %36
]
21: ; preds = %18
%22 = call i32 (...) @restore_sigmask()
%23 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%24 = load i32, ptr %5, align 4
%25 = call i32 @sprintf(ptr noundef %23, ptr noundef @.str.1, i32 noundef %24)
%26 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%27 = load i32, ptr %6, align 4
%28 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.1, i32 noundef %27)
%29 = load ptr, ptr %9, align 8
%30 = load ptr, ptr %9, align 8
%31 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%32 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%33 = load ptr, ptr %7, align 8
%34 = load ptr, ptr %8, align 8
%35 = call i32 @execlp(ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef null)
br label %36
36: ; preds = %21, %18
%37 = call i32 @error(ptr noundef @.str.2)
br label %38
38: ; preds = %36, %18
%39 = call i32 @wait(ptr noundef %13)
br label %40
40: ; preds = %38, %17
ret void
}
declare ptr @getenv(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @restore_sigmask(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjt3i2472.c'
source_filename = "/tmp/tmpjt3i2472.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cnd_init(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @cond_init(ptr noundef %3)
ret i32 %4
}
declare i32 @cond_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjt3i2472.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cnd_init(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @cond_init(ptr noundef %3)
ret i32 %4
}
declare i32 @cond_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2t05pufn.c'
source_filename = "/tmp/tmp2t05pufn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @snow_4()
ret i32 0
}
declare i32 @snow_4(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2t05pufn.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-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @snow_4()
ret i32 0
}
declare i32 @snow_4(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.