llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpkyjfl8gz.c'
source_filename = "/tmp/tmpkyjfl8gz.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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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
%6 = call i32 (...) @strftime_test()
%7 = call i32 (...) @strptime_test()
ret i32 0
}
declare i32 @strftime_test(...) #1
declare i32 @strptime_test(...) #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/tmpkyjfl8gz.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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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
%6 = call i32 (...) @strftime_test()
%7 = call i32 (...) @strptime_test()
ret i32 0
}
declare i32 @strftime_test(...) #1
declare i32 @strptime_test(...) #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/tmp_xbtyx5f.c'
source_filename = "/tmp/tmp_xbtyx5f.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"
@betaln.e = internal global double 0x3FED67F1C864BEB7, align 8
@betaln.betaln = internal global double 0.000000e+00, align 8
@betaln.a = internal global double 0.000000e+00, align 8
@betaln.b = internal global double 0.000000e+00, align 8
@betaln.c = internal global double 0.000000e+00, align 8
@betaln.h = internal global double 0.000000e+00, align 8
@betaln.u = internal global double 0.000000e+00, align 8
@betaln.v = internal global double 0.000000e+00, align 8
@betaln.w = internal global double 0.000000e+00, align 8
@betaln.z = internal global double 0.000000e+00, align 8
@betaln.i = internal global i32 0, align 4
@betaln.n = internal global i32 0, align 4
@betaln.T1 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @betaln(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load double, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load double, ptr %8, align 8
%10 = call double @fifdmin1(double noundef %7, double noundef %9)
store double %10, ptr @betaln.a, align 8
%11 = load ptr, ptr %4, align 8
%12 = load double, ptr %11, align 8
%13 = load ptr, ptr %5, align 8
%14 = load double, ptr %13, align 8
%15 = call double @fifdmax1(double noundef %12, double noundef %14)
store double %15, ptr @betaln.b, align 8
%16 = load double, ptr @betaln.a, align 8
%17 = fcmp oge double %16, 8.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %2
br label %178
19: ; preds = %2
%20 = load double, ptr @betaln.a, align 8
%21 = fcmp oge double %20, 1.000000e+00
br i1 %21, label %22, label %23
22: ; preds = %19
br label %42
23: ; preds = %19
%24 = load double, ptr @betaln.b, align 8
%25 = fcmp oge double %24, 8.000000e+00
br i1 %25, label %26, label %27
26: ; preds = %23
br label %37
27: ; preds = %23
%28 = load double, ptr @betaln.a, align 8
%29 = load double, ptr @betaln.b, align 8
%30 = fadd double %28, %29
store double %30, ptr @betaln.T1, align 8
%31 = call double @gamln(ptr noundef @betaln.a)
%32 = call double @gamln(ptr noundef @betaln.b)
%33 = call double @gamln(ptr noundef @betaln.T1)
%34 = fsub double %32, %33
%35 = fadd double %31, %34
store double %35, ptr @betaln.betaln, align 8
%36 = load double, ptr @betaln.betaln, align 8
store double %36, ptr %3, align 8
br label %224
37: ; preds = %26
%38 = call double @gamln(ptr noundef @betaln.a)
%39 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%40 = fadd double %38, %39
store double %40, ptr @betaln.betaln, align 8
%41 = load double, ptr @betaln.betaln, align 8
store double %41, ptr %3, align 8
br label %224
42: ; preds = %22
%43 = load double, ptr @betaln.a, align 8
%44 = fcmp ogt double %43, 2.000000e+00
br i1 %44, label %45, label %46
45: ; preds = %42
br label %66
46: ; preds = %42
%47 = load double, ptr @betaln.b, align 8
%48 = fcmp ogt double %47, 2.000000e+00
br i1 %48, label %49, label %50
49: ; preds = %46
br label %57
50: ; preds = %46
%51 = call double @gamln(ptr noundef @betaln.a)
%52 = call double @gamln(ptr noundef @betaln.b)
%53 = fadd double %51, %52
%54 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%55 = fsub double %53, %54
store double %55, ptr @betaln.betaln, align 8
%56 = load double, ptr @betaln.betaln, align 8
store double %56, ptr %3, align 8
br label %224
57: ; preds = %49
store double 0.000000e+00, ptr @betaln.w, align 8
%58 = load double, ptr @betaln.b, align 8
%59 = fcmp olt double %58, 8.000000e+00
br i1 %59, label %60, label %61
60: ; preds = %57
br label %107
61: ; preds = %57
%62 = call double @gamln(ptr noundef @betaln.a)
%63 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%64 = fadd double %62, %63
store double %64, ptr @betaln.betaln, align 8
%65 = load double, ptr @betaln.betaln, align 8
store double %65, ptr %3, align 8
br label %224
66: ; preds = %45
%67 = load double, ptr @betaln.b, align 8
%68 = fcmp ogt double %67, 1.000000e+03
br i1 %68, label %69, label %70
69: ; preds = %66
br label %141
70: ; preds = %66
%71 = load double, ptr @betaln.a, align 8
%72 = fsub double %71, 1.000000e+00
%73 = fptosi double %72 to i64
%74 = trunc i64 %73 to i32
store i32 %74, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
br label %75
75: ; preds = %91, %70
%76 = load i32, ptr @betaln.i, align 4
%77 = load i32, ptr @betaln.n, align 4
%78 = icmp sle i32 %76, %77
br i1 %78, label %79, label %94
79: ; preds = %75
%80 = load double, ptr @betaln.a, align 8
%81 = fsub double %80, 1.000000e+00
store double %81, ptr @betaln.a, align 8
%82 = load double, ptr @betaln.a, align 8
%83 = load double, ptr @betaln.b, align 8
%84 = fdiv double %82, %83
store double %84, ptr @betaln.h, align 8
%85 = load double, ptr @betaln.h, align 8
%86 = load double, ptr @betaln.h, align 8
%87 = fadd double 1.000000e+00, %86
%88 = fdiv double %85, %87
%89 = load double, ptr @betaln.w, align 8
%90 = fmul double %89, %88
store double %90, ptr @betaln.w, align 8
br label %91
91: ; preds = %79
%92 = load i32, ptr @betaln.i, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr @betaln.i, align 4
br label %75, !llvm.loop !6
94: ; preds = %75
%95 = load double, ptr @betaln.w, align 8
%96 = call double @log(double noundef %95) #4
store double %96, ptr @betaln.w, align 8
%97 = load double, ptr @betaln.b, align 8
%98 = fcmp olt double %97, 8.000000e+00
br i1 %98, label %99, label %100
99: ; preds = %94
br label %107
100: ; preds = %94
%101 = load double, ptr @betaln.w, align 8
%102 = call double @gamln(ptr noundef @betaln.a)
%103 = fadd double %101, %102
%104 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%105 = fadd double %103, %104
store double %105, ptr @betaln.betaln, align 8
%106 = load double, ptr @betaln.betaln, align 8
store double %106, ptr %3, align 8
br label %224
107: ; preds = %99, %60
%108 = load double, ptr @betaln.b, align 8
%109 = fsub double %108, 1.000000e+00
%110 = fptosi double %109 to i64
%111 = trunc i64 %110 to i32
store i32 %111, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.z, align 8
store i32 1, ptr @betaln.i, align 4
br label %112
112: ; preds = %126, %107
%113 = load i32, ptr @betaln.i, align 4
%114 = load i32, ptr @betaln.n, align 4
%115 = icmp sle i32 %113, %114
br i1 %115, label %116, label %129
116: ; preds = %112
%117 = load double, ptr @betaln.b, align 8
%118 = fsub double %117, 1.000000e+00
store double %118, ptr @betaln.b, align 8
%119 = load double, ptr @betaln.b, align 8
%120 = load double, ptr @betaln.a, align 8
%121 = load double, ptr @betaln.b, align 8
%122 = fadd double %120, %121
%123 = fdiv double %119, %122
%124 = load double, ptr @betaln.z, align 8
%125 = fmul double %124, %123
store double %125, ptr @betaln.z, align 8
br label %126
126: ; preds = %116
%127 = load i32, ptr @betaln.i, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr @betaln.i, align 4
br label %112, !llvm.loop !8
129: ; preds = %112
%130 = load double, ptr @betaln.w, align 8
%131 = load double, ptr @betaln.z, align 8
%132 = call double @log(double noundef %131) #4
%133 = fadd double %130, %132
%134 = call double @gamln(ptr noundef @betaln.a)
%135 = call double @gamln(ptr noundef @betaln.b)
%136 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%137 = fsub double %135, %136
%138 = fadd double %134, %137
%139 = fadd double %133, %138
store double %139, ptr @betaln.betaln, align 8
%140 = load double, ptr @betaln.betaln, align 8
store double %140, ptr %3, align 8
br label %224
141: ; preds = %69
%142 = load double, ptr @betaln.a, align 8
%143 = fsub double %142, 1.000000e+00
%144 = fptosi double %143 to i64
%145 = trunc i64 %144 to i32
store i32 %145, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
br label %146
146: ; preds = %161, %141
%147 = load i32, ptr @betaln.i, align 4
%148 = load i32, ptr @betaln.n, align 4
%149 = icmp sle i32 %147, %148
br i1 %149, label %150, label %164
150: ; preds = %146
%151 = load double, ptr @betaln.a, align 8
%152 = fsub double %151, 1.000000e+00
store double %152, ptr @betaln.a, align 8
%153 = load double, ptr @betaln.a, align 8
%154 = load double, ptr @betaln.a, align 8
%155 = load double, ptr @betaln.b, align 8
%156 = fdiv double %154, %155
%157 = fadd double 1.000000e+00, %156
%158 = fdiv double %153, %157
%159 = load double, ptr @betaln.w, align 8
%160 = fmul double %159, %158
store double %160, ptr @betaln.w, align 8
br label %161
161: ; preds = %150
%162 = load i32, ptr @betaln.i, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr @betaln.i, align 4
br label %146, !llvm.loop !9
164: ; preds = %146
%165 = load double, ptr @betaln.w, align 8
%166 = call double @log(double noundef %165) #4
%167 = load i32, ptr @betaln.n, align 4
%168 = sitofp i32 %167 to double
%169 = load double, ptr @betaln.b, align 8
%170 = call double @log(double noundef %169) #4
%171 = fneg double %168
%172 = call double @llvm.fmuladd.f64(double %171, double %170, double %166)
%173 = call double @gamln(ptr noundef @betaln.a)
%174 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%175 = fadd double %173, %174
%176 = fadd double %172, %175
store double %176, ptr @betaln.betaln, align 8
%177 = load double, ptr @betaln.betaln, align 8
store double %177, ptr %3, align 8
br label %224
178: ; preds = %18
%179 = call double @bcorr(ptr noundef @betaln.a, ptr noundef @betaln.b)
store double %179, ptr @betaln.w, align 8
%180 = load double, ptr @betaln.a, align 8
%181 = load double, ptr @betaln.b, align 8
%182 = fdiv double %180, %181
store double %182, ptr @betaln.h, align 8
%183 = load double, ptr @betaln.h, align 8
%184 = load double, ptr @betaln.h, align 8
%185 = fadd double 1.000000e+00, %184
%186 = fdiv double %183, %185
store double %186, ptr @betaln.c, align 8
%187 = load double, ptr @betaln.a, align 8
%188 = fsub double %187, 5.000000e-01
%189 = load double, ptr @betaln.c, align 8
%190 = call double @log(double noundef %189) #4
%191 = fmul double %188, %190
%192 = fneg double %191
store double %192, ptr @betaln.u, align 8
%193 = load double, ptr @betaln.b, align 8
%194 = call double @alnrel(ptr noundef @betaln.h)
%195 = fmul double %193, %194
store double %195, ptr @betaln.v, align 8
%196 = load double, ptr @betaln.u, align 8
%197 = load double, ptr @betaln.v, align 8
%198 = fcmp ole double %196, %197
br i1 %198, label %199, label %200
199: ; preds = %178
br label %212
200: ; preds = %178
%201 = load double, ptr @betaln.b, align 8
%202 = call double @log(double noundef %201) #4
%203 = load double, ptr @betaln.e, align 8
%204 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %202, double %203)
%205 = load double, ptr @betaln.w, align 8
%206 = fadd double %204, %205
%207 = load double, ptr @betaln.v, align 8
%208 = fsub double %206, %207
%209 = load double, ptr @betaln.u, align 8
%210 = fsub double %208, %209
store double %210, ptr @betaln.betaln, align 8
%211 = load double, ptr @betaln.betaln, align 8
store double %211, ptr %3, align 8
br label %224
212: ; preds = %199
%213 = load double, ptr @betaln.b, align 8
%214 = call double @log(double noundef %213) #4
%215 = load double, ptr @betaln.e, align 8
%216 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %214, double %215)
%217 = load double, ptr @betaln.w, align 8
%218 = fadd double %216, %217
%219 = load double, ptr @betaln.u, align 8
%220 = fsub double %218, %219
%221 = load double, ptr @betaln.v, align 8
%222 = fsub double %220, %221
store double %222, ptr @betaln.betaln, align 8
%223 = load double, ptr @betaln.betaln, align 8
store double %223, ptr %3, align 8
br label %224
224: ; preds = %212, %200, %164, %129, %100, %61, %50, %37, %27
%225 = load double, ptr %3, align 8
ret double %225
}
declare double @fifdmin1(double noundef, double noundef) #1
declare double @fifdmax1(double noundef, double noundef) #1
declare double @gamln(ptr noundef) #1
declare double @algdiv(ptr noundef, ptr noundef) #1
declare double @gsumln(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @bcorr(ptr noundef, ptr noundef) #1
declare double @alnrel(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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_xbtyx5f.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"
@betaln.e = internal global double 0x3FED67F1C864BEB7, align 8
@betaln.betaln = internal global double 0.000000e+00, align 8
@betaln.a = internal global double 0.000000e+00, align 8
@betaln.b = internal global double 0.000000e+00, align 8
@betaln.c = internal global double 0.000000e+00, align 8
@betaln.h = internal global double 0.000000e+00, align 8
@betaln.u = internal global double 0.000000e+00, align 8
@betaln.v = internal global double 0.000000e+00, align 8
@betaln.w = internal global double 0.000000e+00, align 8
@betaln.z = internal global double 0.000000e+00, align 8
@betaln.i = internal global i32 0, align 4
@betaln.n = internal global i32 0, align 4
@betaln.T1 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @betaln(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load double, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load double, ptr %8, align 8
%10 = call double @fifdmin1(double noundef %7, double noundef %9)
store double %10, ptr @betaln.a, align 8
%11 = load ptr, ptr %4, align 8
%12 = load double, ptr %11, align 8
%13 = load ptr, ptr %5, align 8
%14 = load double, ptr %13, align 8
%15 = call double @fifdmax1(double noundef %12, double noundef %14)
store double %15, ptr @betaln.b, align 8
%16 = load double, ptr @betaln.a, align 8
%17 = fcmp oge double %16, 8.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %2
br label %184
19: ; preds = %2
%20 = load double, ptr @betaln.a, align 8
%21 = fcmp oge double %20, 1.000000e+00
br i1 %21, label %22, label %23
22: ; preds = %19
br label %42
23: ; preds = %19
%24 = load double, ptr @betaln.b, align 8
%25 = fcmp oge double %24, 8.000000e+00
br i1 %25, label %26, label %27
26: ; preds = %23
br label %37
27: ; preds = %23
%28 = load double, ptr @betaln.a, align 8
%29 = load double, ptr @betaln.b, align 8
%30 = fadd double %28, %29
store double %30, ptr @betaln.T1, align 8
%31 = call double @gamln(ptr noundef @betaln.a)
%32 = call double @gamln(ptr noundef @betaln.b)
%33 = call double @gamln(ptr noundef @betaln.T1)
%34 = fsub double %32, %33
%35 = fadd double %31, %34
store double %35, ptr @betaln.betaln, align 8
%36 = load double, ptr @betaln.betaln, align 8
store double %36, ptr %3, align 8
br label %230
37: ; preds = %26
%38 = call double @gamln(ptr noundef @betaln.a)
%39 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%40 = fadd double %38, %39
store double %40, ptr @betaln.betaln, align 8
%41 = load double, ptr @betaln.betaln, align 8
store double %41, ptr %3, align 8
br label %230
42: ; preds = %22
%43 = load double, ptr @betaln.a, align 8
%44 = fcmp ogt double %43, 2.000000e+00
br i1 %44, label %45, label %46
45: ; preds = %42
br label %66
46: ; preds = %42
%47 = load double, ptr @betaln.b, align 8
%48 = fcmp ogt double %47, 2.000000e+00
br i1 %48, label %49, label %50
49: ; preds = %46
br label %57
50: ; preds = %46
%51 = call double @gamln(ptr noundef @betaln.a)
%52 = call double @gamln(ptr noundef @betaln.b)
%53 = fadd double %51, %52
%54 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%55 = fsub double %53, %54
store double %55, ptr @betaln.betaln, align 8
%56 = load double, ptr @betaln.betaln, align 8
store double %56, ptr %3, align 8
br label %230
57: ; preds = %49
store double 0.000000e+00, ptr @betaln.w, align 8
%58 = load double, ptr @betaln.b, align 8
%59 = fcmp olt double %58, 8.000000e+00
br i1 %59, label %60, label %61
60: ; preds = %57
br label %109
61: ; preds = %57
%62 = call double @gamln(ptr noundef @betaln.a)
%63 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%64 = fadd double %62, %63
store double %64, ptr @betaln.betaln, align 8
%65 = load double, ptr @betaln.betaln, align 8
store double %65, ptr %3, align 8
br label %230
66: ; preds = %45
%67 = load double, ptr @betaln.b, align 8
%68 = fcmp ogt double %67, 1.000000e+03
br i1 %68, label %69, label %70
69: ; preds = %66
br label %145
70: ; preds = %66
%71 = load double, ptr @betaln.a, align 8
%72 = fsub double %71, 1.000000e+00
%73 = fptosi double %72 to i64
%74 = trunc i64 %73 to i32
store i32 %74, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
%75 = load i32, ptr @betaln.i, align 4
%76 = load i32, ptr @betaln.n, align 4
%77 = icmp sle i32 %75, %76
br i1 %77, label %.lr.ph, label %96
.lr.ph: ; preds = %70
br label %78
78: ; preds = %.lr.ph, %90
%79 = load double, ptr @betaln.a, align 8
%80 = fsub double %79, 1.000000e+00
store double %80, ptr @betaln.a, align 8
%81 = load double, ptr @betaln.a, align 8
%82 = load double, ptr @betaln.b, align 8
%83 = fdiv double %81, %82
store double %83, ptr @betaln.h, align 8
%84 = load double, ptr @betaln.h, align 8
%85 = load double, ptr @betaln.h, align 8
%86 = fadd double 1.000000e+00, %85
%87 = fdiv double %84, %86
%88 = load double, ptr @betaln.w, align 8
%89 = fmul double %88, %87
store double %89, ptr @betaln.w, align 8
br label %90
90: ; preds = %78
%91 = load i32, ptr @betaln.i, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr @betaln.i, align 4
%93 = load i32, ptr @betaln.i, align 4
%94 = load i32, ptr @betaln.n, align 4
%95 = icmp sle i32 %93, %94
br i1 %95, label %78, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %90
br label %96
96: ; preds = %._crit_edge, %70
%97 = load double, ptr @betaln.w, align 8
%98 = call double @log(double noundef %97) #4
store double %98, ptr @betaln.w, align 8
%99 = load double, ptr @betaln.b, align 8
%100 = fcmp olt double %99, 8.000000e+00
br i1 %100, label %101, label %102
101: ; preds = %96
br label %109
102: ; preds = %96
%103 = load double, ptr @betaln.w, align 8
%104 = call double @gamln(ptr noundef @betaln.a)
%105 = fadd double %103, %104
%106 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%107 = fadd double %105, %106
store double %107, ptr @betaln.betaln, align 8
%108 = load double, ptr @betaln.betaln, align 8
store double %108, ptr %3, align 8
br label %230
109: ; preds = %101, %60
%110 = load double, ptr @betaln.b, align 8
%111 = fsub double %110, 1.000000e+00
%112 = fptosi double %111 to i64
%113 = trunc i64 %112 to i32
store i32 %113, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.z, align 8
store i32 1, ptr @betaln.i, align 4
%114 = load i32, ptr @betaln.i, align 4
%115 = load i32, ptr @betaln.n, align 4
%116 = icmp sle i32 %114, %115
br i1 %116, label %.lr.ph2, label %133
.lr.ph2: ; preds = %109
br label %117
117: ; preds = %.lr.ph2, %127
%118 = load double, ptr @betaln.b, align 8
%119 = fsub double %118, 1.000000e+00
store double %119, ptr @betaln.b, align 8
%120 = load double, ptr @betaln.b, align 8
%121 = load double, ptr @betaln.a, align 8
%122 = load double, ptr @betaln.b, align 8
%123 = fadd double %121, %122
%124 = fdiv double %120, %123
%125 = load double, ptr @betaln.z, align 8
%126 = fmul double %125, %124
store double %126, ptr @betaln.z, align 8
br label %127
127: ; preds = %117
%128 = load i32, ptr @betaln.i, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr @betaln.i, align 4
%130 = load i32, ptr @betaln.i, align 4
%131 = load i32, ptr @betaln.n, align 4
%132 = icmp sle i32 %130, %131
br i1 %132, label %117, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %127
br label %133
133: ; preds = %._crit_edge3, %109
%134 = load double, ptr @betaln.w, align 8
%135 = load double, ptr @betaln.z, align 8
%136 = call double @log(double noundef %135) #4
%137 = fadd double %134, %136
%138 = call double @gamln(ptr noundef @betaln.a)
%139 = call double @gamln(ptr noundef @betaln.b)
%140 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%141 = fsub double %139, %140
%142 = fadd double %138, %141
%143 = fadd double %137, %142
store double %143, ptr @betaln.betaln, align 8
%144 = load double, ptr @betaln.betaln, align 8
store double %144, ptr %3, align 8
br label %230
145: ; preds = %69
%146 = load double, ptr @betaln.a, align 8
%147 = fsub double %146, 1.000000e+00
%148 = fptosi double %147 to i64
%149 = trunc i64 %148 to i32
store i32 %149, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
%150 = load i32, ptr @betaln.i, align 4
%151 = load i32, ptr @betaln.n, align 4
%152 = icmp sle i32 %150, %151
br i1 %152, label %.lr.ph5, label %170
.lr.ph5: ; preds = %145
br label %153
153: ; preds = %.lr.ph5, %164
%154 = load double, ptr @betaln.a, align 8
%155 = fsub double %154, 1.000000e+00
store double %155, ptr @betaln.a, align 8
%156 = load double, ptr @betaln.a, align 8
%157 = load double, ptr @betaln.a, align 8
%158 = load double, ptr @betaln.b, align 8
%159 = fdiv double %157, %158
%160 = fadd double 1.000000e+00, %159
%161 = fdiv double %156, %160
%162 = load double, ptr @betaln.w, align 8
%163 = fmul double %162, %161
store double %163, ptr @betaln.w, align 8
br label %164
164: ; preds = %153
%165 = load i32, ptr @betaln.i, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr @betaln.i, align 4
%167 = load i32, ptr @betaln.i, align 4
%168 = load i32, ptr @betaln.n, align 4
%169 = icmp sle i32 %167, %168
br i1 %169, label %153, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %164
br label %170
170: ; preds = %._crit_edge6, %145
%171 = load double, ptr @betaln.w, align 8
%172 = call double @log(double noundef %171) #4
%173 = load i32, ptr @betaln.n, align 4
%174 = sitofp i32 %173 to double
%175 = load double, ptr @betaln.b, align 8
%176 = call double @log(double noundef %175) #4
%177 = fneg double %174
%178 = call double @llvm.fmuladd.f64(double %177, double %176, double %172)
%179 = call double @gamln(ptr noundef @betaln.a)
%180 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%181 = fadd double %179, %180
%182 = fadd double %178, %181
store double %182, ptr @betaln.betaln, align 8
%183 = load double, ptr @betaln.betaln, align 8
store double %183, ptr %3, align 8
br label %230
184: ; preds = %18
%185 = call double @bcorr(ptr noundef @betaln.a, ptr noundef @betaln.b)
store double %185, ptr @betaln.w, align 8
%186 = load double, ptr @betaln.a, align 8
%187 = load double, ptr @betaln.b, align 8
%188 = fdiv double %186, %187
store double %188, ptr @betaln.h, align 8
%189 = load double, ptr @betaln.h, align 8
%190 = load double, ptr @betaln.h, align 8
%191 = fadd double 1.000000e+00, %190
%192 = fdiv double %189, %191
store double %192, ptr @betaln.c, align 8
%193 = load double, ptr @betaln.a, align 8
%194 = fsub double %193, 5.000000e-01
%195 = load double, ptr @betaln.c, align 8
%196 = call double @log(double noundef %195) #4
%197 = fmul double %194, %196
%198 = fneg double %197
store double %198, ptr @betaln.u, align 8
%199 = load double, ptr @betaln.b, align 8
%200 = call double @alnrel(ptr noundef @betaln.h)
%201 = fmul double %199, %200
store double %201, ptr @betaln.v, align 8
%202 = load double, ptr @betaln.u, align 8
%203 = load double, ptr @betaln.v, align 8
%204 = fcmp ole double %202, %203
br i1 %204, label %205, label %206
205: ; preds = %184
br label %218
206: ; preds = %184
%207 = load double, ptr @betaln.b, align 8
%208 = call double @log(double noundef %207) #4
%209 = load double, ptr @betaln.e, align 8
%210 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %208, double %209)
%211 = load double, ptr @betaln.w, align 8
%212 = fadd double %210, %211
%213 = load double, ptr @betaln.v, align 8
%214 = fsub double %212, %213
%215 = load double, ptr @betaln.u, align 8
%216 = fsub double %214, %215
store double %216, ptr @betaln.betaln, align 8
%217 = load double, ptr @betaln.betaln, align 8
store double %217, ptr %3, align 8
br label %230
218: ; preds = %205
%219 = load double, ptr @betaln.b, align 8
%220 = call double @log(double noundef %219) #4
%221 = load double, ptr @betaln.e, align 8
%222 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %220, double %221)
%223 = load double, ptr @betaln.w, align 8
%224 = fadd double %222, %223
%225 = load double, ptr @betaln.u, align 8
%226 = fsub double %224, %225
%227 = load double, ptr @betaln.v, align 8
%228 = fsub double %226, %227
store double %228, ptr @betaln.betaln, align 8
%229 = load double, ptr @betaln.betaln, align 8
store double %229, ptr %3, align 8
br label %230
230: ; preds = %218, %206, %170, %133, %102, %61, %50, %37, %27
%231 = load double, ptr %3, align 8
ret double %231
}
declare double @fifdmin1(double noundef, double noundef) #1
declare double @fifdmax1(double noundef, double noundef) #1
declare double @gamln(ptr noundef) #1
declare double @algdiv(ptr noundef, ptr noundef) #1
declare double @gsumln(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @bcorr(ptr noundef, ptr noundef) #1
declare double @alnrel(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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpjegowfgb.c'
source_filename = "/tmp/tmpjegowfgb.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 signext i8 @is_valid_char(i16 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i16, align 2
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i16, align 2
store i16 %0, ptr %4, align 2
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call signext i16 @strlen(ptr noundef %8)
store i16 %9, ptr %7, align 2
store i16 0, ptr %6, align 2
br label %10
10: ; preds = %28, %2
%11 = load i16, ptr %6, align 2
%12 = sext i16 %11 to i32
%13 = load i16, ptr %7, align 2
%14 = sext i16 %13 to i32
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %31
16: ; preds = %10
%17 = load ptr, ptr %5, align 8
%18 = load i16, ptr %6, align 2
%19 = sext i16 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i16, ptr %4, align 2
%24 = sext i16 %23 to i32
%25 = icmp eq i32 %22, %24
br i1 %25, label %26, label %27
26: ; preds = %16
store i8 1, ptr %3, align 1
br label %32
27: ; preds = %16
br label %28
28: ; preds = %27
%29 = load i16, ptr %6, align 2
%30 = add i16 %29, 1
store i16 %30, ptr %6, align 2
br label %10, !llvm.loop !6
31: ; preds = %10
store i8 0, ptr %3, align 1
br label %32
32: ; preds = %31, %26
%33 = load i8, ptr %3, align 1
ret i8 %33
}
declare signext i16 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjegowfgb.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 signext i8 @is_valid_char(i16 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i16, align 2
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i16, align 2
store i16 %0, ptr %4, align 2
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call signext i16 @strlen(ptr noundef %8)
store i16 %9, ptr %7, align 2
store i16 0, ptr %6, align 2
%10 = load i16, ptr %6, align 2
%11 = sext i16 %10 to i32
%12 = load i16, ptr %7, align 2
%13 = sext i16 %12 to i32
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %27
%16 = load ptr, ptr %5, align 8
%17 = load i16, ptr %6, align 2
%18 = sext i16 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load i16, ptr %4, align 2
%23 = sext i16 %22 to i32
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %26
25: ; preds = %15
store i8 1, ptr %3, align 1
br label %36
26: ; preds = %15
br label %27
27: ; preds = %26
%28 = load i16, ptr %6, align 2
%29 = add i16 %28, 1
store i16 %29, ptr %6, align 2
%30 = load i16, ptr %6, align 2
%31 = sext i16 %30 to i32
%32 = load i16, ptr %7, align 2
%33 = sext i16 %32 to i32
%34 = icmp slt i32 %31, %33
br i1 %34, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %35
35: ; preds = %._crit_edge, %2
store i8 0, ptr %3, align 1
br label %36
36: ; preds = %35, %25
%37 = load i8, ptr %3, align 1
ret i8 %37
}
declare signext i16 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8qotqina.c'
source_filename = "/tmp/tmp8qotqina.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 [297 x i8] c"Usage: gem5ToMcPAT [OPTIONS]\0ALaunch parser gem5ToMcPAT\0AOptions:\0A -x <file>, --xmltemplate=<file>: XML template\0A -c <file>, --config=<file>: config.ini file (not JSON!)\0A -s <file>, --stats=<file>: statistics file\0A -o <file>, --output=<output>: XML output\0A -h, --help: displays this message\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @exit(i32 noundef %4) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { "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/tmp8qotqina.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 [297 x i8] c"Usage: gem5ToMcPAT [OPTIONS]\0ALaunch parser gem5ToMcPAT\0AOptions:\0A -x <file>, --xmltemplate=<file>: XML template\0A -c <file>, --config=<file>: config.ini file (not JSON!)\0A -s <file>, --stats=<file>: statistics file\0A -o <file>, --output=<output>: XML output\0A -h, --help: displays this message\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @exit(i32 noundef %4) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { "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/tmpaeqdo33s.c'
source_filename = "/tmp/tmpaeqdo33s.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"
@RB_HALT_SYSTEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; 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 = load i32, ptr @RB_HALT_SYSTEM, align 4
%3 = call i64 @reboot(i32 noundef %2)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %9
6: ; preds = %0
%7 = load i32, ptr @errno, align 4
%8 = sub nsw i32 0, %7
store i32 %8, ptr %1, align 4
br label %9
9: ; preds = %6, %5
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i64 @reboot(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/tmpaeqdo33s.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"
@RB_HALT_SYSTEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; 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 = load i32, ptr @RB_HALT_SYSTEM, align 4
%3 = call i64 @reboot(i32 noundef %2)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %9
6: ; preds = %0
%7 = load i32, ptr @errno, align 4
%8 = sub nsw i32 0, %7
store i32 %8, ptr %1, align 4
br label %9
9: ; preds = %6, %5
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i64 @reboot(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/tmp8e5tw5q7.c'
source_filename = "/tmp/tmp8e5tw5q7.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 @NumberIO_StrToBin(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %5, align 4
%11 = add i32 %10, 1
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %8, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %9, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = add i32 %16, 1
%18 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i32 noundef %17)
%19 = load i32, ptr %5, align 4
%20 = call i32 @NumberIO_StrToBinInt(ptr noundef %14, i32 noundef %19, ptr noundef %7)
%21 = load i32, ptr %7, align 4
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %23)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @NumberIO_StrToBinInt(ptr noundef, i32 noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
attributes #2 = { "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/tmp8e5tw5q7.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 @NumberIO_StrToBin(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %5, align 4
%11 = add i32 %10, 1
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %8, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %9, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = add i32 %16, 1
%18 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i32 noundef %17)
%19 = load i32, ptr %5, align 4
%20 = call i32 @NumberIO_StrToBinInt(ptr noundef %14, i32 noundef %19, ptr noundef %7)
%21 = load i32, ptr %7, align 4
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %23)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @NumberIO_StrToBinInt(ptr noundef, i32 noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
attributes #2 = { "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/tmp76tmcb6m.c'
source_filename = "/tmp/tmp76tmcb6m.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/tmp76tmcb6m.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/tmplil0ucru.c'
source_filename = "/tmp/tmplil0ucru.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"fff\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"chil\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"!!!\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 [20 x i8], align 16
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = load i32, ptr @O_RDONLY, align 4
%8 = load i32, ptr @O_CREAT, align 4
%9 = or i32 %7, %8
%10 = call i32 (ptr, i32, ...) @open(ptr noundef @.str, i32 noundef %9, i32 noundef 511)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr @O_WRONLY, align 4
%12 = call i32 (ptr, i32, ...) @open(ptr noundef @.str, i32 noundef %11)
store i32 %12, ptr %3, align 4
%13 = load i32, ptr @O_RDWR, align 4
%14 = call i32 (ptr, i32, ...) @open(ptr noundef @.str, i32 noundef %13)
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @write(i32 noundef %15, ptr noundef @.str.1, i32 noundef 11)
%17 = load i32, ptr %4, align 4
%18 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%19 = call i32 @read(i32 noundef %17, ptr noundef %18, i32 noundef 6)
%20 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%21 = call i32 @write(i32 noundef 1, ptr noundef %20, i32 noundef 6)
%22 = load i32, ptr %2, align 4
%23 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%24 = call i32 @read(i32 noundef %22, ptr noundef %23, i32 noundef 5)
store i32 %24, ptr %6, align 4
%25 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%26 = load i32, ptr %6, align 4
%27 = call i32 @write(i32 noundef 1, ptr noundef %25, i32 noundef %26)
%28 = load i32, ptr %4, align 4
%29 = call i32 @write(i32 noundef %28, ptr noundef @.str.2, i32 noundef 4)
%30 = load i32, ptr %3, align 4
%31 = call i32 @write(i32 noundef %30, ptr noundef @.str.3, i32 noundef 3)
%32 = load i32, ptr %2, align 4
%33 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%34 = call i32 @read(i32 noundef %32, ptr noundef %33, i32 noundef 9)
%35 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%36 = call i32 @write(i32 noundef 1, ptr noundef %35, i32 noundef 9)
%37 = load i32, ptr %2, align 4
%38 = call i32 @close(i32 noundef %37)
%39 = load i32, ptr %3, align 4
%40 = call i32 @close(i32 noundef %39)
%41 = load i32, ptr %4, align 4
%42 = call i32 @close(i32 noundef %41)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
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/tmplil0ucru.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"fff\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"chil\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"!!!\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 [20 x i8], align 16
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = load i32, ptr @O_RDONLY, align 4
%8 = load i32, ptr @O_CREAT, align 4
%9 = or i32 %7, %8
%10 = call i32 (ptr, i32, ...) @open(ptr noundef @.str, i32 noundef %9, i32 noundef 511)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr @O_WRONLY, align 4
%12 = call i32 (ptr, i32, ...) @open(ptr noundef @.str, i32 noundef %11)
store i32 %12, ptr %3, align 4
%13 = load i32, ptr @O_RDWR, align 4
%14 = call i32 (ptr, i32, ...) @open(ptr noundef @.str, i32 noundef %13)
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @write(i32 noundef %15, ptr noundef @.str.1, i32 noundef 11)
%17 = load i32, ptr %4, align 4
%18 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%19 = call i32 @read(i32 noundef %17, ptr noundef %18, i32 noundef 6)
%20 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%21 = call i32 @write(i32 noundef 1, ptr noundef %20, i32 noundef 6)
%22 = load i32, ptr %2, align 4
%23 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%24 = call i32 @read(i32 noundef %22, ptr noundef %23, i32 noundef 5)
store i32 %24, ptr %6, align 4
%25 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%26 = load i32, ptr %6, align 4
%27 = call i32 @write(i32 noundef 1, ptr noundef %25, i32 noundef %26)
%28 = load i32, ptr %4, align 4
%29 = call i32 @write(i32 noundef %28, ptr noundef @.str.2, i32 noundef 4)
%30 = load i32, ptr %3, align 4
%31 = call i32 @write(i32 noundef %30, ptr noundef @.str.3, i32 noundef 3)
%32 = load i32, ptr %2, align 4
%33 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%34 = call i32 @read(i32 noundef %32, ptr noundef %33, i32 noundef 9)
%35 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%36 = call i32 @write(i32 noundef 1, ptr noundef %35, i32 noundef 9)
%37 = load i32, ptr %2, align 4
%38 = call i32 @close(i32 noundef %37)
%39 = load i32, ptr %3, align 4
%40 = call i32 @close(i32 noundef %39)
%41 = load i32, ptr %4, align 4
%42 = call i32 @close(i32 noundef %41)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
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/tmp7as6ska6.c'
source_filename = "/tmp/tmp7as6ska6.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"
@__const.main.str1 = private unnamed_addr constant [3 x i8] c"aab", align 1
@.str = private unnamed_addr constant [5 x i8] c"YES\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
@__const.main.str2 = private unnamed_addr constant [4 x i8] c"abcd", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i8], align 1
%3 = alloca [4 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.str1, i64 3, i1 false)
%4 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @strlen(ptr noundef %5)
%7 = call i64 @is_rotate_palindrome(ptr noundef %4, i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str)
br label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.1)
br label %13
13: ; preds = %11, %9
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str2, i64 4, i1 false)
%14 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%15 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = call i64 @is_rotate_palindrome(ptr noundef %14, i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 @printf(ptr noundef @.str)
br label %23
21: ; preds = %13
%22 = call i32 @printf(ptr noundef @.str.1)
br label %23
23: ; preds = %21, %19
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i64 @is_rotate_palindrome(ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/tmp7as6ska6.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"
@__const.main.str1 = private unnamed_addr constant [3 x i8] c"aab", align 1
@.str = private unnamed_addr constant [5 x i8] c"YES\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
@__const.main.str2 = private unnamed_addr constant [4 x i8] c"abcd", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i8], align 1
%3 = alloca [4 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.str1, i64 3, i1 false)
%4 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @strlen(ptr noundef %5)
%7 = call i64 @is_rotate_palindrome(ptr noundef %4, i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str)
br label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.1)
br label %13
13: ; preds = %11, %9
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str2, i64 4, i1 false)
%14 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%15 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = call i64 @is_rotate_palindrome(ptr noundef %14, i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 @printf(ptr noundef @.str)
br label %23
21: ; preds = %13
%22 = call i32 @printf(ptr noundef @.str.1)
br label %23
23: ; preds = %21, %19
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i64 @is_rotate_palindrome(ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/tmpr_4n8lsb.c'
source_filename = "/tmp/tmpr_4n8lsb.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 @fgetc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = ptrtoint ptr %4 to i32
%6 = call i32 @read(i32 noundef %5, ptr noundef %3, i32 noundef 1)
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
ret i32 %8
}
declare i32 @read(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr_4n8lsb.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 @fgetc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = ptrtoint ptr %4 to i32
%6 = call i32 @read(i32 noundef %5, ptr noundef %3, i32 noundef 1)
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
ret i32 %8
}
declare i32 @read(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"}
|
; ModuleID = '/tmp/tmppy5k75pg.c'
source_filename = "/tmp/tmppy5k75pg.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/tmppy5k75pg.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/tmpe7d1ecvn.c'
source_filename = "/tmp/tmpe7d1ecvn.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 @shake256(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [25 x i64], align 16
%11 = alloca [136 x i8], align 16
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %9, align 8
br label %12
12: ; preds = %18, %4
%13 = load i64, ptr %9, align 8
%14 = icmp ult i64 %13, 25
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load i64, ptr %9, align 8
%17 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 %16
store i64 0, ptr %17, align 8
br label %18
18: ; preds = %15
%19 = load i64, ptr %9, align 8
%20 = add i64 %19, 1
store i64 %20, ptr %9, align 8
br label %12, !llvm.loop !6
21: ; preds = %12
%22 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 0
%23 = load ptr, ptr %7, align 8
%24 = load i64, ptr %8, align 8
%25 = call i32 @keccak_absorb(ptr noundef %22, i32 noundef 136, ptr noundef %23, i64 noundef %24, i32 noundef 31)
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %6, align 8
%28 = udiv i64 %27, 136
%29 = trunc i64 %28 to i32
%30 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 0
%31 = call i32 @keccak_squeezeblocks(ptr noundef %26, i32 noundef %29, ptr noundef %30, i32 noundef 136)
%32 = load i64, ptr %6, align 8
%33 = udiv i64 %32, 136
%34 = mul i64 %33, 136
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 %34
store ptr %36, ptr %5, align 8
%37 = load i64, ptr %6, align 8
%38 = urem i64 %37, 136
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %60
40: ; preds = %21
%41 = getelementptr inbounds [136 x i8], ptr %11, i64 0, i64 0
%42 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 0
%43 = call i32 @keccak_squeezeblocks(ptr noundef %41, i32 noundef 1, ptr noundef %42, i32 noundef 136)
store i64 0, ptr %9, align 8
br label %44
44: ; preds = %56, %40
%45 = load i64, ptr %9, align 8
%46 = load i64, ptr %6, align 8
%47 = urem i64 %46, 136
%48 = icmp ult i64 %45, %47
br i1 %48, label %49, label %59
49: ; preds = %44
%50 = load i64, ptr %9, align 8
%51 = getelementptr inbounds [136 x i8], ptr %11, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load ptr, ptr %5, align 8
%54 = load i64, ptr %9, align 8
%55 = getelementptr inbounds i8, ptr %53, i64 %54
store i8 %52, ptr %55, align 1
br label %56
56: ; preds = %49
%57 = load i64, ptr %9, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %9, align 8
br label %44, !llvm.loop !8
59: ; preds = %44
br label %60
60: ; preds = %59, %21
ret void
}
declare i32 @keccak_absorb(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @keccak_squeezeblocks(ptr 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe7d1ecvn.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 @shake256(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [25 x i64], align 16
%11 = alloca [136 x i8], align 16
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %9, align 8
%12 = load i64, ptr %9, align 8
%13 = icmp ult i64 %12, 25
br i1 %13, label %.lr.ph, label %22
.lr.ph: ; preds = %4
br label %14
14: ; preds = %.lr.ph, %17
%15 = load i64, ptr %9, align 8
%16 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 %15
store i64 0, ptr %16, align 8
br label %17
17: ; preds = %14
%18 = load i64, ptr %9, align 8
%19 = add i64 %18, 1
store i64 %19, ptr %9, align 8
%20 = load i64, ptr %9, align 8
%21 = icmp ult i64 %20, 25
br i1 %21, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %4
%23 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 0
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = call i32 @keccak_absorb(ptr noundef %23, i32 noundef 136, ptr noundef %24, i64 noundef %25, i32 noundef 31)
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %6, align 8
%29 = udiv i64 %28, 136
%30 = trunc i64 %29 to i32
%31 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 0
%32 = call i32 @keccak_squeezeblocks(ptr noundef %27, i32 noundef %30, ptr noundef %31, i32 noundef 136)
%33 = load i64, ptr %6, align 8
%34 = udiv i64 %33, 136
%35 = mul i64 %34, 136
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 %35
store ptr %37, ptr %5, align 8
%38 = load i64, ptr %6, align 8
%39 = urem i64 %38, 136
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %64
41: ; preds = %22
%42 = getelementptr inbounds [136 x i8], ptr %11, i64 0, i64 0
%43 = getelementptr inbounds [25 x i64], ptr %10, i64 0, i64 0
%44 = call i32 @keccak_squeezeblocks(ptr noundef %42, i32 noundef 1, ptr noundef %43, i32 noundef 136)
store i64 0, ptr %9, align 8
%45 = load i64, ptr %9, align 8
%46 = load i64, ptr %6, align 8
%47 = urem i64 %46, 136
%48 = icmp ult i64 %45, %47
br i1 %48, label %.lr.ph2, label %63
.lr.ph2: ; preds = %41
br label %49
49: ; preds = %.lr.ph2, %56
%50 = load i64, ptr %9, align 8
%51 = getelementptr inbounds [136 x i8], ptr %11, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load ptr, ptr %5, align 8
%54 = load i64, ptr %9, align 8
%55 = getelementptr inbounds i8, ptr %53, i64 %54
store i8 %52, ptr %55, align 1
br label %56
56: ; preds = %49
%57 = load i64, ptr %9, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %9, align 8
%59 = load i64, ptr %9, align 8
%60 = load i64, ptr %6, align 8
%61 = urem i64 %60, 136
%62 = icmp ult i64 %59, %61
br i1 %62, label %49, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %63
63: ; preds = %._crit_edge3, %41
br label %64
64: ; preds = %63, %22
ret void
}
declare i32 @keccak_absorb(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @keccak_squeezeblocks(ptr 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpk955u6s2.c'
source_filename = "/tmp/tmpk955u6s2.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"Requested file not found! (404)\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [24 x i8] c"Sending the file (200)\0A\00", align 1
@MSG_NOSIGNAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @work(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call ptr @get_file_name(i32 noundef %8)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %17
12: ; preds = %1
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
%15 = load i32, ptr %2, align 4
%16 = call i32 @send_header(i32 noundef %15, i32 noundef 404, i64 noundef 0)
br label %61
17: ; preds = %1
%18 = load ptr, ptr %3, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %53
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr @SEEK_END, align 4
%25 = call i32 @fseek(ptr noundef %23, i64 noundef 0, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = call i64 @ftell(ptr noundef %26)
store i64 %27, ptr %5, align 8
%28 = load ptr, ptr %4, align 8
%29 = call i32 @rewind(ptr noundef %28)
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fprintf(i32 noundef %30, ptr noundef @.str.2)
%32 = load i32, ptr %2, align 4
%33 = load i64, ptr %5, align 8
%34 = call i32 @send_header(i32 noundef %32, i32 noundef 200, i64 noundef %33)
%35 = call i64 @malloc(i32 noundef 1024)
%36 = inttoptr i64 %35 to ptr
store ptr %36, ptr %6, align 8
br label %37
37: ; preds = %42, %22
%38 = load ptr, ptr %6, align 8
%39 = load ptr, ptr %4, align 8
%40 = call i64 @fread(ptr noundef %38, i32 noundef 1, i32 noundef 1024, ptr noundef %39)
store i64 %40, ptr %7, align 8
%41 = icmp ne i64 0, %40
br i1 %41, label %42, label %48
42: ; preds = %37
%43 = load i32, ptr %2, align 4
%44 = load ptr, ptr %6, align 8
%45 = load i64, ptr %7, align 8
%46 = load i32, ptr @MSG_NOSIGNAL, align 4
%47 = call i32 @send(i32 noundef %43, ptr noundef %44, i64 noundef %45, i32 noundef %46)
br label %37, !llvm.loop !6
48: ; preds = %37
%49 = load ptr, ptr %4, align 8
%50 = call i32 @fclose(ptr noundef %49)
%51 = load ptr, ptr %6, align 8
%52 = call i32 @free(ptr noundef %51)
br label %58
53: ; preds = %17
%54 = load i32, ptr @stderr, align 4
%55 = call i32 @fprintf(i32 noundef %54, ptr noundef @.str)
%56 = load i32, ptr %2, align 4
%57 = call i32 @send_header(i32 noundef %56, i32 noundef 404, i64 noundef 0)
br label %58
58: ; preds = %53, %48
%59 = load ptr, ptr %3, align 8
%60 = call i32 @free(ptr noundef %59)
br label %61
61: ; preds = %58, %12
ret void
}
declare ptr @get_file_name(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @send_header(i32 noundef, i32 noundef, i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(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/tmpk955u6s2.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"Requested file not found! (404)\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [24 x i8] c"Sending the file (200)\0A\00", align 1
@MSG_NOSIGNAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @work(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call ptr @get_file_name(i32 noundef %8)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %17
12: ; preds = %1
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
%15 = load i32, ptr %2, align 4
%16 = call i32 @send_header(i32 noundef %15, i32 noundef 404, i64 noundef 0)
br label %64
17: ; preds = %1
%18 = load ptr, ptr %3, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %56
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr @SEEK_END, align 4
%25 = call i32 @fseek(ptr noundef %23, i64 noundef 0, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = call i64 @ftell(ptr noundef %26)
store i64 %27, ptr %5, align 8
%28 = load ptr, ptr %4, align 8
%29 = call i32 @rewind(ptr noundef %28)
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fprintf(i32 noundef %30, ptr noundef @.str.2)
%32 = load i32, ptr %2, align 4
%33 = load i64, ptr %5, align 8
%34 = call i32 @send_header(i32 noundef %32, i32 noundef 200, i64 noundef %33)
%35 = call i64 @malloc(i32 noundef 1024)
%36 = inttoptr i64 %35 to ptr
store ptr %36, ptr %6, align 8
%37 = load ptr, ptr %6, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i64 @fread(ptr noundef %37, i32 noundef 1, i32 noundef 1024, ptr noundef %38)
store i64 %39, ptr %7, align 8
%40 = icmp ne i64 0, %39
br i1 %40, label %.lr.ph, label %51
.lr.ph: ; preds = %22
br label %41
41: ; preds = %.lr.ph, %41
%42 = load i32, ptr %2, align 4
%43 = load ptr, ptr %6, align 8
%44 = load i64, ptr %7, align 8
%45 = load i32, ptr @MSG_NOSIGNAL, align 4
%46 = call i32 @send(i32 noundef %42, ptr noundef %43, i64 noundef %44, i32 noundef %45)
%47 = load ptr, ptr %6, align 8
%48 = load ptr, ptr %4, align 8
%49 = call i64 @fread(ptr noundef %47, i32 noundef 1, i32 noundef 1024, ptr noundef %48)
store i64 %49, ptr %7, align 8
%50 = icmp ne i64 0, %49
br i1 %50, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %51
51: ; preds = %._crit_edge, %22
%52 = load ptr, ptr %4, align 8
%53 = call i32 @fclose(ptr noundef %52)
%54 = load ptr, ptr %6, align 8
%55 = call i32 @free(ptr noundef %54)
br label %61
56: ; preds = %17
%57 = load i32, ptr @stderr, align 4
%58 = call i32 @fprintf(i32 noundef %57, ptr noundef @.str)
%59 = load i32, ptr %2, align 4
%60 = call i32 @send_header(i32 noundef %59, i32 noundef 404, i64 noundef 0)
br label %61
61: ; preds = %56, %51
%62 = load ptr, ptr %3, align 8
%63 = call i32 @free(ptr noundef %62)
br label %64
64: ; preds = %61, %12
ret void
}
declare ptr @get_file_name(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @send_header(i32 noundef, i32 noundef, i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(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/tmp9nbfs42r.c'
source_filename = "/tmp/tmp9nbfs42r.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/tmp9nbfs42r.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/tmp6ianxfmy.c'
source_filename = "/tmp/tmp6ianxfmy.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/tmp6ianxfmy.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/tmpu4gdc1gk.c'
source_filename = "/tmp/tmpu4gdc1gk.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 [17 x i8] c"# c::native::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"sqrtf\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%12 = call double (...) @benchmark()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @print_results(double noundef %13)
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu4gdc1gk.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 [17 x i8] c"# c::native::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"sqrtf\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%11 = call double (...) @benchmark()
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call i32 @print_results(double noundef %12)
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmplzkdxq1n.c'
source_filename = "/tmp/tmplzkdxq1n.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 [55 x i8] c"Inside wsinit, %d command line args, argv pointer: %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c" Arg %d: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wsinit(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %6, ptr noundef %7)
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %21, %2
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %9
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, 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 %9, !llvm.loop !6
24: ; preds = %9
ret void
}
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/tmplzkdxq1n.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 [55 x i8] c"Inside wsinit, %d command line args, argv pointer: %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c" Arg %d: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wsinit(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %6, ptr noundef %7)
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %20
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13, ptr noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
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/tmpx1a4du30.c'
source_filename = "/tmp/tmpx1a4du30.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"array left child %d < parent %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"array right child %d < parent %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_valid_intheap(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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 0, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @lchild(i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @rchild(i32 noundef %15)
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %68
20: ; preds = %3
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %9, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = icmp slt i32 %25, %30
br i1 %31, label %32, label %61
32: ; preds = %20
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %37, i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %11, align 4
br label %45
45: ; preds = %56, %32
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %59
49: ; preds = %45
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %54)
br label %56
56: ; preds = %49
%57 = load i32, ptr %11, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %11, align 4
br label %45, !llvm.loop !6
59: ; preds = %45
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %4, align 4
br label %122
61: ; preds = %20
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %7, align 4
%65 = call i32 @check_valid_intheap(ptr noundef %62, i32 noundef %63, i32 noundef %64)
%66 = load i32, ptr %8, align 4
%67 = or i32 %66, %65
store i32 %67, ptr %8, align 4
br label %68
68: ; preds = %61, %3
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %7, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %120
72: ; preds = %68
%73 = load ptr, ptr %5, align 8
%74 = load i32, ptr %10, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = load ptr, ptr %5, align 8
%79 = load i32, ptr %6, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %81, align 4
%83 = icmp slt i32 %77, %82
br i1 %83, label %84, label %113
84: ; preds = %72
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr %10, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load ptr, ptr %5, align 8
%91 = load i32, ptr %6, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %89, i32 noundef %94)
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %12, align 4
br label %97
97: ; preds = %108, %84
%98 = load i32, ptr %12, align 4
%99 = load i32, ptr %7, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %111
101: ; preds = %97
%102 = load ptr, ptr %5, align 8
%103 = load i32, ptr %12, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %102, i64 %104
%106 = load i32, ptr %105, align 4
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %106)
br label %108
108: ; preds = %101
%109 = load i32, ptr %12, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %12, align 4
br label %97, !llvm.loop !8
111: ; preds = %97
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %4, align 4
br label %122
113: ; preds = %72
%114 = load ptr, ptr %5, align 8
%115 = load i32, ptr %10, align 4
%116 = load i32, ptr %7, align 4
%117 = call i32 @check_valid_intheap(ptr noundef %114, i32 noundef %115, i32 noundef %116)
%118 = load i32, ptr %8, align 4
%119 = or i32 %118, %117
store i32 %119, ptr %8, align 4
br label %120
120: ; preds = %113, %68
%121 = load i32, ptr %8, align 4
store i32 %121, ptr %4, align 4
br label %122
122: ; preds = %120, %111, %59
%123 = load i32, ptr %4, align 4
ret i32 %123
}
declare i32 @lchild(i32 noundef) #1
declare i32 @rchild(i32 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx1a4du30.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"array left child %d < parent %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"array right child %d < parent %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_valid_intheap(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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 0, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @lchild(i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @rchild(i32 noundef %15)
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %70
20: ; preds = %3
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %9, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = icmp slt i32 %25, %30
br i1 %31, label %32, label %63
32: ; preds = %20
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %37, i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %11, align 4
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph2, label %61
.lr.ph2: ; preds = %32
br label %48
48: ; preds = %.lr.ph2, %55
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %11, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load i32, ptr %52, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %53)
br label %55
55: ; preds = %48
%56 = load i32, ptr %11, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %11, align 4
%58 = load i32, ptr %11, align 4
%59 = load i32, ptr %7, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %48, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %55
br label %61
61: ; preds = %._crit_edge3, %32
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %4, align 4
br label %126
63: ; preds = %20
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr %7, align 4
%67 = call i32 @check_valid_intheap(ptr noundef %64, i32 noundef %65, i32 noundef %66)
%68 = load i32, ptr %8, align 4
%69 = or i32 %68, %67
store i32 %69, ptr %8, align 4
br label %70
70: ; preds = %63, %3
%71 = load i32, ptr %10, align 4
%72 = load i32, ptr %7, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %124
74: ; preds = %70
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %10, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %75, i64 %77
%79 = load i32, ptr %78, align 4
%80 = load ptr, ptr %5, align 8
%81 = load i32, ptr %6, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %80, i64 %82
%84 = load i32, ptr %83, align 4
%85 = icmp slt i32 %79, %84
br i1 %85, label %86, label %117
86: ; preds = %74
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %10, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %87, i64 %89
%91 = load i32, ptr %90, align 4
%92 = load ptr, ptr %5, align 8
%93 = load i32, ptr %6, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %92, i64 %94
%96 = load i32, ptr %95, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %91, i32 noundef %96)
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %12, align 4
%99 = load i32, ptr %12, align 4
%100 = load i32, ptr %7, align 4
%101 = icmp slt i32 %99, %100
br i1 %101, label %.lr.ph, label %115
.lr.ph: ; preds = %86
br label %102
102: ; preds = %.lr.ph, %109
%103 = load ptr, ptr %5, align 8
%104 = load i32, ptr %12, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, ptr %103, i64 %105
%107 = load i32, ptr %106, align 4
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %107)
br label %109
109: ; preds = %102
%110 = load i32, ptr %12, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %12, align 4
%112 = load i32, ptr %12, align 4
%113 = load i32, ptr %7, align 4
%114 = icmp slt i32 %112, %113
br i1 %114, label %102, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %109
br label %115
115: ; preds = %._crit_edge, %86
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %4, align 4
br label %126
117: ; preds = %74
%118 = load ptr, ptr %5, align 8
%119 = load i32, ptr %10, align 4
%120 = load i32, ptr %7, align 4
%121 = call i32 @check_valid_intheap(ptr noundef %118, i32 noundef %119, i32 noundef %120)
%122 = load i32, ptr %8, align 4
%123 = or i32 %122, %121
store i32 %123, ptr %8, align 4
br label %124
124: ; preds = %117, %70
%125 = load i32, ptr %8, align 4
store i32 %125, ptr %4, align 4
br label %126
126: ; preds = %124, %115, %61
%127 = load i32, ptr %4, align 4
ret i32 %127
}
declare i32 @lchild(i32 noundef) #1
declare i32 @rchild(i32 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}
|
; ModuleID = '/tmp/tmpj8m3_31l.c'
source_filename = "/tmp/tmpj8m3_31l.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
!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/tmpj8m3_31l.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
!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/tmp7itda4uj.c'
source_filename = "/tmp/tmp7itda4uj.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 [2 x i8] c"0\00", align 1
@.str.1 = private unnamed_addr constant [172 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/log-unit.c at line 92\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 (...) @verify_log_to_file()
%4 = call i64 @expect(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 0, ptr noundef @.str.2, i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %2
store i32 1, ptr %1, align 4
br label %10
7: ; preds = %2
br label %8
8: ; preds = %7
%9 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %9, ptr %1, align 4
br label %10
10: ; preds = %8, %6
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i64 @expect(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @verify_log_to_file(...) #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/tmp7itda4uj.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 [2 x i8] c"0\00", align 1
@.str.1 = private unnamed_addr constant [172 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/log-unit.c at line 92\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0
%3 = call i32 (...) @verify_log_to_file()
%4 = call i64 @expect(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 0, ptr noundef @.str.2, i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %2
store i32 1, ptr %1, align 4
br label %10
7: ; preds = %2
br label %8
8: ; preds = %7
%9 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %9, ptr %1, align 4
br label %10
10: ; preds = %8, %6
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i64 @expect(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @verify_log_to_file(...) #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/tmp4qxk7o5j.c'
source_filename = "/tmp/tmp4qxk7o5j.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 [19 x i8] c"riterate_erase=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @riterate_erase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @slist_begin_riterate(ptr noundef %7)
br label %9
9: ; preds = %13, %1
%10 = load ptr, ptr %2, align 8
%11 = call i32 @slist_riterate(ptr noundef %10, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%12 = icmp ne i32 %11, -1
br i1 %12, label %13, label %31
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %14, align 4
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 @ntohl(i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %4, align 4
%23 = call i64 @slist_erase(ptr noundef %20, ptr noundef %21, i32 noundef %22)
%24 = icmp eq i64 %23, 0
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = icmp eq ptr %27, null
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 noundef %29)
br label %9, !llvm.loop !6
31: ; preds = %9
%32 = load ptr, ptr %2, align 8
%33 = call i32 @slist_end_riterate(ptr noundef %32)
ret void
}
declare i32 @slist_begin_riterate(ptr noundef) #1
declare i32 @slist_riterate(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ntohl(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @slist_erase(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @slist_end_riterate(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/tmp4qxk7o5j.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 [19 x i8] c"riterate_erase=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @riterate_erase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @slist_begin_riterate(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @slist_riterate(ptr noundef %9, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%11 = icmp ne i32 %10, -1
br i1 %11, label %.lr.ph, label %33
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %12
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @ntohl(i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %4, align 4
%22 = call i64 @slist_erase(ptr noundef %19, ptr noundef %20, i32 noundef %21)
%23 = icmp eq i64 %22, 0
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 noundef %24)
%26 = load ptr, ptr %5, align 8
%27 = icmp eq ptr %26, null
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = call i32 @slist_riterate(ptr noundef %30, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%32 = icmp ne i32 %31, -1
br i1 %32, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %33
33: ; preds = %._crit_edge, %1
%34 = load ptr, ptr %2, align 8
%35 = call i32 @slist_end_riterate(ptr noundef %34)
ret void
}
declare i32 @slist_begin_riterate(ptr noundef) #1
declare i32 @slist_riterate(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ntohl(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @slist_erase(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @slist_end_riterate(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/tmpvsfb04on.c'
source_filename = "/tmp/tmpvsfb04on.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"1 OHM\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"10 OHM\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"100 OHM\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"1K OHM\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"10K OHM\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"100K OHM\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"1M OHM\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"10M OHM\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"0.1 OHM\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"0.01 OHM\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"ERR no such multiplier\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @colorToMulti(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %44
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %7
store ptr @.str.1, ptr %2, align 8
br label %44
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %11
store ptr @.str.2, ptr %2, align 8
br label %44
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, 3
br i1 %17, label %18, label %19
18: ; preds = %15
store ptr @.str.3, ptr %2, align 8
br label %44
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, 4
br i1 %21, label %22, label %23
22: ; preds = %19
store ptr @.str.4, ptr %2, align 8
br label %44
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, 5
br i1 %25, label %26, label %27
26: ; preds = %23
store ptr @.str.5, ptr %2, align 8
br label %44
27: ; preds = %23
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 6
br i1 %29, label %30, label %31
30: ; preds = %27
store ptr @.str.6, ptr %2, align 8
br label %44
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = icmp eq i32 %32, 7
br i1 %33, label %34, label %35
34: ; preds = %31
store ptr @.str.7, ptr %2, align 8
br label %44
35: ; preds = %31
%36 = load i32, ptr %3, align 4
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %39
38: ; preds = %35
store ptr @.str.8, ptr %2, align 8
br label %44
39: ; preds = %35
%40 = load i32, ptr %3, align 4
%41 = icmp eq i32 %40, 11
br i1 %41, label %42, label %43
42: ; preds = %39
store ptr @.str.9, ptr %2, align 8
br label %44
43: ; preds = %39
store ptr @.str.10, ptr %2, align 8
br label %44
44: ; preds = %43, %42, %38, %34, %30, %26, %22, %18, %14, %10, %6
%45 = load ptr, ptr %2, align 8
ret ptr %45
}
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/tmpvsfb04on.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"1 OHM\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"10 OHM\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"100 OHM\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"1K OHM\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"10K OHM\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"100K OHM\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"1M OHM\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"10M OHM\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"0.1 OHM\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"0.01 OHM\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"ERR no such multiplier\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @colorToMulti(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %44
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %7
store ptr @.str.1, ptr %2, align 8
br label %44
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %11
store ptr @.str.2, ptr %2, align 8
br label %44
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, 3
br i1 %17, label %18, label %19
18: ; preds = %15
store ptr @.str.3, ptr %2, align 8
br label %44
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, 4
br i1 %21, label %22, label %23
22: ; preds = %19
store ptr @.str.4, ptr %2, align 8
br label %44
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, 5
br i1 %25, label %26, label %27
26: ; preds = %23
store ptr @.str.5, ptr %2, align 8
br label %44
27: ; preds = %23
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 6
br i1 %29, label %30, label %31
30: ; preds = %27
store ptr @.str.6, ptr %2, align 8
br label %44
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = icmp eq i32 %32, 7
br i1 %33, label %34, label %35
34: ; preds = %31
store ptr @.str.7, ptr %2, align 8
br label %44
35: ; preds = %31
%36 = load i32, ptr %3, align 4
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %39
38: ; preds = %35
store ptr @.str.8, ptr %2, align 8
br label %44
39: ; preds = %35
%40 = load i32, ptr %3, align 4
%41 = icmp eq i32 %40, 11
br i1 %41, label %42, label %43
42: ; preds = %39
store ptr @.str.9, ptr %2, align 8
br label %44
43: ; preds = %39
store ptr @.str.10, ptr %2, align 8
br label %44
44: ; preds = %43, %42, %38, %34, %30, %26, %22, %18, %14, %10, %6
%45 = load ptr, ptr %2, align 8
ret ptr %45
}
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/tmpwi_44vhq.c'
source_filename = "/tmp/tmpwi_44vhq.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 [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sim9108/SDKS/refs/heads/master/LibLzma/src/xz/.libs/lt-xz.c\00", align 1
@.str.1 = private unnamed_addr constant [56 x i8] c"(lt_update_exe_path) modifying '%s' by prepending '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lt_update_exe_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @nonnull(ptr noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @nonnull(ptr noundef %9)
%11 = call i32 @lt_debugprintf(ptr noundef @.str, i32 noundef 663, ptr noundef @.str.1, i32 noundef %8, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %67
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %67
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %67
22: ; preds = %19
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %67
27: ; preds = %22
%28 = load ptr, ptr %3, align 8
%29 = call i32 @getenv(ptr noundef %28)
%30 = load ptr, ptr %4, align 8
%31 = call ptr @lt_extend_str(i32 noundef %29, ptr noundef %30, i32 noundef 0)
store ptr %31, ptr %5, align 8
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strlen(ptr noundef %32)
store i32 %33, ptr %6, align 4
br label %34
34: ; preds = %49, %27
%35 = load ptr, ptr %5, align 8
%36 = call i32 @strlen(ptr noundef %35)
store i32 %36, ptr %6, align 4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 58
br label %47
47: ; preds = %38, %34
%48 = phi i1 [ false, %34 ], [ %46, %38 ]
br i1 %48, label %49, label %55
49: ; preds = %47
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %6, align 4
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
store i8 0, ptr %54, align 1
br label %34, !llvm.loop !6
55: ; preds = %47
%56 = load ptr, ptr %3, align 8
%57 = load ptr, ptr %5, align 8
%58 = call i32 @lt_setenv(ptr noundef %56, ptr noundef %57)
br label %59
59: ; preds = %55
%60 = load ptr, ptr %5, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load ptr, ptr %5, align 8
%64 = call i32 @free(ptr noundef %63)
store ptr null, ptr %5, align 8
br label %65
65: ; preds = %62, %59
br label %66
66: ; preds = %65
br label %67
67: ; preds = %66, %22, %19, %14, %2
ret void
}
declare i32 @lt_debugprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @nonnull(ptr noundef) #1
declare ptr @lt_extend_str(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getenv(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @lt_setenv(ptr noundef, ptr noundef) #1
declare i32 @free(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/tmpwi_44vhq.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 [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sim9108/SDKS/refs/heads/master/LibLzma/src/xz/.libs/lt-xz.c\00", align 1
@.str.1 = private unnamed_addr constant [56 x i8] c"(lt_update_exe_path) modifying '%s' by prepending '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lt_update_exe_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @nonnull(ptr noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @nonnull(ptr noundef %9)
%11 = call i32 @lt_debugprintf(ptr noundef @.str, i32 noundef 663, ptr noundef @.str.1, i32 noundef %8, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %67
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %67
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %67
22: ; preds = %19
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %67
27: ; preds = %22
%28 = load ptr, ptr %3, align 8
%29 = call i32 @getenv(ptr noundef %28)
%30 = load ptr, ptr %4, align 8
%31 = call ptr @lt_extend_str(i32 noundef %29, ptr noundef %30, i32 noundef 0)
store ptr %31, ptr %5, align 8
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strlen(ptr noundef %32)
store i32 %33, ptr %6, align 4
br label %34
34: ; preds = %49, %27
%35 = load ptr, ptr %5, align 8
%36 = call i32 @strlen(ptr noundef %35)
store i32 %36, ptr %6, align 4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 58
br label %47
47: ; preds = %38, %34
%48 = phi i1 [ false, %34 ], [ %46, %38 ]
br i1 %48, label %49, label %55
49: ; preds = %47
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %6, align 4
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
store i8 0, ptr %54, align 1
br label %34, !llvm.loop !6
55: ; preds = %47
%56 = load ptr, ptr %3, align 8
%57 = load ptr, ptr %5, align 8
%58 = call i32 @lt_setenv(ptr noundef %56, ptr noundef %57)
br label %59
59: ; preds = %55
%60 = load ptr, ptr %5, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load ptr, ptr %5, align 8
%64 = call i32 @free(ptr noundef %63)
store ptr null, ptr %5, align 8
br label %65
65: ; preds = %62, %59
br label %66
66: ; preds = %65
br label %67
67: ; preds = %66, %22, %19, %14, %2
ret void
}
declare i32 @lt_debugprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @nonnull(ptr noundef) #1
declare ptr @lt_extend_str(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getenv(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @lt_setenv(ptr noundef, ptr noundef) #1
declare i32 @free(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/tmp7ag2kfiq.c'
source_filename = "/tmp/tmp7ag2kfiq.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"mkdir -p data/\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"[Error] - Error initialing process folder\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initDataFolder() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
8: ; preds = %0
%9 = load ptr, ptr %1, align 8
%10 = call i32 @pclose(ptr noundef %9)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @pclose(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/tmp7ag2kfiq.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"mkdir -p data/\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"[Error] - Error initialing process folder\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initDataFolder() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
8: ; preds = %0
%9 = load ptr, ptr %1, align 8
%10 = call i32 @pclose(ptr noundef %9)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @pclose(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/tmp1658ytch.c'
source_filename = "/tmp/tmp1658ytch.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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_waddnstr(i32 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
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @check_arg_count(i32 noundef %7, i32 noundef 1)
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %11
10: ; preds = %2
br label %38
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %5)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = call i32 @report_count(i32 noundef 1)
%19 = call i32 @report_error(ptr noundef @.str.1)
br label %38
20: ; preds = %11
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
%24 = call i64 @sscanf(ptr noundef %23, ptr noundef @.str.2, ptr noundef %6)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 @report_count(i32 noundef 1)
%28 = call i32 @report_error(ptr noundef @.str.1)
br label %38
29: ; preds = %20
%30 = call i32 @report_count(i32 noundef 1)
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %6, align 4
%36 = call i32 @waddnstr(ptr noundef %31, ptr noundef %34, i32 noundef %35)
%37 = call i32 @report_return(i32 noundef %36)
br label %38
38: ; preds = %29, %26, %17, %10
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @waddnstr(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/tmp1658ytch.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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_waddnstr(i32 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
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @check_arg_count(i32 noundef %7, i32 noundef 1)
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %11
10: ; preds = %2
br label %38
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %5)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = call i32 @report_count(i32 noundef 1)
%19 = call i32 @report_error(ptr noundef @.str.1)
br label %38
20: ; preds = %11
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
%24 = call i64 @sscanf(ptr noundef %23, ptr noundef @.str.2, ptr noundef %6)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 @report_count(i32 noundef 1)
%28 = call i32 @report_error(ptr noundef @.str.1)
br label %38
29: ; preds = %20
%30 = call i32 @report_count(i32 noundef 1)
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %6, align 4
%36 = call i32 @waddnstr(ptr noundef %31, ptr noundef %34, i32 noundef %35)
%37 = call i32 @report_return(i32 noundef %36)
br label %38
38: ; preds = %29, %26, %17, %10
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @waddnstr(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/tmpcnklrkhz.c'
source_filename = "/tmp/tmpcnklrkhz.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/tmpcnklrkhz.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/tmpsttrvsom.c'
source_filename = "/tmp/tmpsttrvsom.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/tmpsttrvsom.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/tmpvamgp76k.c'
source_filename = "/tmp/tmpvamgp76k.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/tmpvamgp76k.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/tmpg7mic5i0.c'
source_filename = "/tmp/tmpg7mic5i0.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"hello\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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @printf(ptr noundef @.str)
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/tmpg7mic5i0.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"hello\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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @printf(ptr noundef @.str)
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/tmplxrxski3.c'
source_filename = "/tmp/tmplxrxski3.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 @stfl_lookup(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = call ptr @checkret(i32 noundef 0)
ret ptr %7
}
declare ptr @checkret(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/tmplxrxski3.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 @stfl_lookup(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = call ptr @checkret(i32 noundef 0)
ret ptr %7
}
declare ptr @checkret(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/tmp0whhq9ft.c'
source_filename = "/tmp/tmp0whhq9ft.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 [8 x i8] c"%FT%T%z\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @time_parse_iso8601(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 4)
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strptime(ptr noundef %7, ptr noundef @.str, ptr noundef %8)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strptime(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/tmp0whhq9ft.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 [8 x i8] c"%FT%T%z\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @time_parse_iso8601(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 4)
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strptime(ptr noundef %7, ptr noundef @.str, ptr noundef %8)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strptime(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/tmp5ajnd92g.c'
source_filename = "/tmp/tmp5ajnd92g.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
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @foo(i32 noundef 100)
store i32 2, ptr %2, align 4
br label %4
4: ; preds = %10, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, -10
br i1 %6, label %7, label %13
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 @foo(i32 noundef %8)
br label %10
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %2, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @foo(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/tmp5ajnd92g.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
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @foo(i32 noundef 100)
store i32 2, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, -10
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %9
%7 = load i32, ptr %2, align 4
%8 = call i32 @foo(i32 noundef %7)
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sgt i32 %12, -10
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %0
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i32 @foo(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/tmpy7sb80dh.c'
source_filename = "/tmp/tmpy7sb80dh.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"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @frand(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = call i64 (...) @random()
%6 = sitofp i64 %5 to double
%7 = load double, ptr @RAND_MAX, align 8
%8 = fdiv double %6, %7
%9 = load float, ptr %4, align 4
%10 = load float, ptr %3, align 4
%11 = fsub float %9, %10
%12 = fpext float %11 to double
%13 = load float, ptr %3, align 4
%14 = fpext float %13 to double
%15 = call double @llvm.fmuladd.f64(double %8, double %12, double %14)
%16 = fptrunc double %15 to float
ret float %16
}
declare i64 @random(...) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy7sb80dh.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"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @frand(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = call i64 (...) @random()
%6 = sitofp i64 %5 to double
%7 = load double, ptr @RAND_MAX, align 8
%8 = fdiv double %6, %7
%9 = load float, ptr %4, align 4
%10 = load float, ptr %3, align 4
%11 = fsub float %9, %10
%12 = fpext float %11 to double
%13 = load float, ptr %3, align 4
%14 = fpext float %13 to double
%15 = call double @llvm.fmuladd.f64(double %8, double %12, double %14)
%16 = fptrunc double %15 to float
ret float %16
}
declare i64 @random(...) #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"}
|
; ModuleID = '/tmp/tmp0ovexrl3.c'
source_filename = "/tmp/tmp0ovexrl3.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/tmp0ovexrl3.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/tmp0blt7vuj.c'
source_filename = "/tmp/tmp0blt7vuj.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 @BIO_new_connect(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = call i32 (...) @BIO_s_connect()
%6 = call ptr @BIO_new(i32 noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
10: ; preds = %1
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i64 @BIO_set_conn_hostname(ptr noundef %11, ptr noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
store ptr %16, ptr %2, align 8
br label %20
17: ; preds = %10
%18 = load ptr, ptr %4, align 8
%19 = call i32 @BIO_free(ptr noundef %18)
store ptr null, ptr %2, align 8
br label %20
20: ; preds = %17, %15, %9
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_connect(...) #1
declare i64 @BIO_set_conn_hostname(ptr noundef, ptr noundef) #1
declare i32 @BIO_free(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/tmp0blt7vuj.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 @BIO_new_connect(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = call i32 (...) @BIO_s_connect()
%6 = call ptr @BIO_new(i32 noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
10: ; preds = %1
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i64 @BIO_set_conn_hostname(ptr noundef %11, ptr noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
store ptr %16, ptr %2, align 8
br label %20
17: ; preds = %10
%18 = load ptr, ptr %4, align 8
%19 = call i32 @BIO_free(ptr noundef %18)
store ptr null, ptr %2, align 8
br label %20
20: ; preds = %17, %15, %9
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_connect(...) #1
declare i64 @BIO_set_conn_hostname(ptr noundef, ptr noundef) #1
declare i32 @BIO_free(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/tmpq021hlza.c'
source_filename = "/tmp/tmpq021hlza.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 [60 x i8] c"Usage: fastq_info [-r -e -s -q -h] fastq1 [fastq2 file|pe]\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c" -h : print this help message\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c" -s : the reads in the two fastq files have the same ordering\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c" -e : do not fail with empty files\0A\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c" -q : do not fail if quality encoding cannot be determined\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c" -r : skip check for duplicated readnames\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @printf(ptr noundef @.str.4)
%11 = call i32 @printf(ptr noundef @.str.5)
br label %12
12: ; preds = %6, %1
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/tmpq021hlza.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 [60 x i8] c"Usage: fastq_info [-r -e -s -q -h] fastq1 [fastq2 file|pe]\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c" -h : print this help message\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c" -s : the reads in the two fastq files have the same ordering\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c" -e : do not fail with empty files\0A\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c" -q : do not fail if quality encoding cannot be determined\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c" -r : skip check for duplicated readnames\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @printf(ptr noundef @.str.4)
%11 = call i32 @printf(ptr noundef @.str.5)
br label %12
12: ; preds = %6, %1
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/tmpxgkxvzx2.c'
source_filename = "/tmp/tmpxgkxvzx2.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/tmpxgkxvzx2.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/tmpqk5uw4i8.c'
source_filename = "/tmp/tmpqk5uw4i8.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/tmpqk5uw4i8.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/tmp892c2w97.c'
source_filename = "/tmp/tmp892c2w97.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 [43 x i8] c"WARNING: dummy likwid_markerInit() called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @likwid_markerInit() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp892c2w97.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 [43 x i8] c"WARNING: dummy likwid_markerInit() called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @likwid_markerInit() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(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"}
|
; ModuleID = '/tmp/tmp_vnkphnq.c'
source_filename = "/tmp/tmp_vnkphnq.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 @check_in_square(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 3
store i32 %14, ptr %11, align 4
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 3
store i32 %16, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %17
17: ; preds = %71, %4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %11, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %74
21: ; preds = %17
%22 = load i32, ptr %12, align 4
%23 = sub nsw i32 %22, 4
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %70, %21
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %12, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %71
29: ; preds = %24
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 11
br i1 %40, label %53, label %41
41: ; preds = %29
%42 = load ptr, ptr %9, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, 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 = icmp eq i32 %51, 0
br i1 %52, label %53, label %70
53: ; preds = %41, %29
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %8, align 4
%57 = load ptr, ptr %9, align 8
%58 = call i32 @check_all(i32 noundef %54, i32 noundef %55, i32 noundef %56, ptr noundef %57)
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %70
60: ; preds = %53
%61 = load i32, ptr %10, align 4
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %68
63: ; preds = %60
%64 = load i32, ptr %6, align 4
%65 = mul nsw i32 %64, 10
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %65, %66
store i32 %67, ptr %10, align 4
br label %69
68: ; preds = %60
store i32 -1, ptr %5, align 4
br label %76
69: ; preds = %63
br label %70
70: ; preds = %69, %53, %41
br label %24, !llvm.loop !6
71: ; preds = %24
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %6, align 4
br label %17, !llvm.loop !8
74: ; preds = %17
%75 = load i32, ptr %10, align 4
store i32 %75, ptr %5, align 4
br label %76
76: ; preds = %74, %68
%77 = load i32, ptr %5, align 4
ret i32 %77
}
declare i32 @check_all(i32 noundef, 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_vnkphnq.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 @check_in_square(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 3
store i32 %14, ptr %11, align 4
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 3
store i32 %16, ptr %12, align 4
store i32 0, ptr %10, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %11, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph2, label %79
.lr.ph2: ; preds = %4
br label %20
20: ; preds = %.lr.ph2, %73
%21 = load i32, ptr %12, align 4
%22 = sub nsw i32 %21, 4
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %12, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %73
.lr.ph: ; preds = %20
br label %27
27: ; preds = %.lr.ph, %68
%28 = load ptr, ptr %9, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %7, 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 = icmp eq i32 %37, 11
br i1 %38, label %51, label %39
39: ; preds = %27
%40 = load ptr, ptr %9, align 8
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %40, i64 %42
%44 = load ptr, ptr %43, 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 = icmp eq i32 %49, 0
br i1 %50, label %51, label %68
51: ; preds = %39, %27
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = load ptr, ptr %9, align 8
%56 = call i32 @check_all(i32 noundef %52, i32 noundef %53, i32 noundef %54, ptr noundef %55)
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %68
58: ; preds = %51
%59 = load i32, ptr %10, align 4
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load i32, ptr %6, align 4
%63 = mul nsw i32 %62, 10
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %63, %64
store i32 %65, ptr %10, align 4
br label %67
66: ; preds = %58
store i32 -1, ptr %5, align 4
br label %81
67: ; preds = %61
br label %68
68: ; preds = %67, %51, %39
%69 = load i32, ptr %7, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %7, align 4
%71 = load i32, ptr %12, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %68
br label %73
73: ; preds = %._crit_edge, %20
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %6, align 4
%76 = load i32, ptr %6, align 4
%77 = load i32, ptr %11, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %73
br label %79
79: ; preds = %._crit_edge3, %4
%80 = load i32, ptr %10, align 4
store i32 %80, ptr %5, align 4
br label %81
81: ; preds = %79, %66
%82 = load i32, ptr %5, align 4
ret i32 %82
}
declare i32 @check_all(i32 noundef, 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpf9eryqp3.c'
source_filename = "/tmp/tmpf9eryqp3.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 [27 x i8] c"NOT IMPLEMENTED:pa_getcwd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_getcwd() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpf9eryqp3.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 [27 x i8] c"NOT IMPLEMENTED:pa_getcwd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_getcwd() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpkx7dy6ep.c'
source_filename = "/tmp/tmpkx7dy6ep.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 @high_freq() #0 {
%1 = call i32 @syscall(i32 noundef 295, i32 noundef 0, i32 noundef 2)
ret i32 %1
}
declare i32 @syscall(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/tmpkx7dy6ep.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 @high_freq() #0 {
%1 = call i32 @syscall(i32 noundef 295, i32 noundef 0, i32 noundef 2)
ret i32 %1
}
declare i32 @syscall(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/tmpqr6dhd53.c'
source_filename = "/tmp/tmpqr6dhd53.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"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i64 2, ptr %3, align 8
store i64 600851475143, ptr %6, align 8
store i64 600851475143, ptr %4, align 8
br label %8
8: ; preds = %55, %0
%9 = load i64, ptr %4, align 8
%10 = icmp ne i64 %9, 1
br i1 %10, label %11, label %56
11: ; preds = %8
%12 = load i64, ptr %4, align 8
%13 = load i64, ptr %3, align 8
%14 = srem i64 %12, %13
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %37
16: ; preds = %11
store i32 1, ptr %7, align 4
store i64 2, ptr %5, align 8
br label %17
17: ; preds = %28, %16
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %3, align 8
%20 = icmp slt i64 %18, %19
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load i64, ptr %3, align 8
%23 = load i64, ptr %5, align 8
%24 = srem i64 %22, %23
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %21
store i32 0, ptr %7, align 4
br label %31
27: ; preds = %21
br label %28
28: ; preds = %27
%29 = load i64, ptr %5, align 8
%30 = add nsw i64 %29, 1
store i64 %30, ptr %5, align 8
br label %17, !llvm.loop !6
31: ; preds = %26, %17
%32 = load i32, ptr %7, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = load i64, ptr %3, align 8
store i64 %35, ptr %2, align 8
br label %36
36: ; preds = %34, %31
br label %37
37: ; preds = %36, %11
br label %38
38: ; preds = %43, %37
%39 = load i64, ptr %4, align 8
%40 = load i64, ptr %3, align 8
%41 = srem i64 %39, %40
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %38
%44 = load i64, ptr %4, align 8
%45 = load i64, ptr %3, align 8
%46 = sdiv i64 %44, %45
store i64 %46, ptr %4, align 8
br label %38, !llvm.loop !8
47: ; preds = %38
%48 = load i64, ptr %4, align 8
%49 = load i64, ptr %3, align 8
%50 = srem i64 %48, %49
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %47
%53 = load i64, ptr %3, align 8
%54 = add nsw i64 %53, 1
store i64 %54, ptr %3, align 8
br label %55
55: ; preds = %52, %47
br label %8, !llvm.loop !9
56: ; preds = %8
%57 = load i64, ptr %2, align 8
%58 = call i32 @printf(ptr noundef @.str, i64 noundef %57)
ret i32 0
}
declare i32 @printf(ptr 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqr6dhd53.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"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i64 2, ptr %3, align 8
store i64 600851475143, ptr %6, align 8
store i64 600851475143, ptr %4, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ne i64 %8, 1
br i1 %9, label %.lr.ph3, label %62
.lr.ph3: ; preds = %0
br label %10
10: ; preds = %.lr.ph3, %59
%11 = load i64, ptr %4, align 8
%12 = load i64, ptr %3, align 8
%13 = srem i64 %11, %12
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %38
15: ; preds = %10
store i32 1, ptr %7, align 4
store i64 2, ptr %5, align 8
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr %3, align 8
%18 = icmp slt i64 %16, %17
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %26
%20 = load i64, ptr %3, align 8
%21 = load i64, ptr %5, align 8
%22 = srem i64 %20, %21
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 0, ptr %7, align 4
br label %32
25: ; preds = %19
br label %26
26: ; preds = %25
%27 = load i64, ptr %5, align 8
%28 = add nsw i64 %27, 1
store i64 %28, ptr %5, align 8
%29 = load i64, ptr %5, align 8
%30 = load i64, ptr %3, align 8
%31 = icmp slt i64 %29, %30
br i1 %31, label %19, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %26
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %32
32: ; preds = %.loopexit, %24
%33 = load i32, ptr %7, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = load i64, ptr %3, align 8
store i64 %36, ptr %2, align 8
br label %37
37: ; preds = %35, %32
br label %38
38: ; preds = %37, %10
%39 = load i64, ptr %4, align 8
%40 = load i64, ptr %3, align 8
%41 = srem i64 %39, %40
%42 = icmp eq i64 %41, 0
br i1 %42, label %.lr.ph1, label %51
.lr.ph1: ; preds = %38
br label %43
43: ; preds = %.lr.ph1, %43
%44 = load i64, ptr %4, align 8
%45 = load i64, ptr %3, align 8
%46 = sdiv i64 %44, %45
store i64 %46, ptr %4, align 8
%47 = load i64, ptr %4, align 8
%48 = load i64, ptr %3, align 8
%49 = srem i64 %47, %48
%50 = icmp eq i64 %49, 0
br i1 %50, label %43, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %43
br label %51
51: ; preds = %._crit_edge, %38
%52 = load i64, ptr %4, align 8
%53 = load i64, ptr %3, align 8
%54 = srem i64 %52, %53
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = load i64, ptr %3, align 8
%58 = add nsw i64 %57, 1
store i64 %58, ptr %3, align 8
br label %59
59: ; preds = %56, %51
%60 = load i64, ptr %4, align 8
%61 = icmp ne i64 %60, 1
br i1 %61, label %10, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %59
br label %62
62: ; preds = %._crit_edge4, %0
%63 = load i64, ptr %2, align 8
%64 = call i32 @printf(ptr noundef @.str, i64 noundef %63)
ret i32 0
}
declare i32 @printf(ptr 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpbg8paihs.c'
source_filename = "/tmp/tmpbg8paihs.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/tmpbg8paihs.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/tmp8jeg1_7a.c'
source_filename = "/tmp/tmp8jeg1_7a.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 @opcb_66() #0 {
%1 = call i32 @bit_hl(i32 noundef 4)
ret void
}
declare i32 @bit_hl(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/tmp8jeg1_7a.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 @opcb_66() #0 {
%1 = call i32 @bit_hl(i32 noundef 4)
ret void
}
declare i32 @bit_hl(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/tmp1qet04g9.c'
source_filename = "/tmp/tmp1qet04g9.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/tmp1qet04g9.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/tmprlw04jon.c'
source_filename = "/tmp/tmprlw04jon.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 [2 x i8] c"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"awa_bootstrapd\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdline_parser_file_save(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
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmdline_parser_dump(ptr noundef, ptr 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/tmprlw04jon.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 [2 x i8] c"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"awa_bootstrapd\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdline_parser_file_save(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
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmdline_parser_dump(ptr noundef, ptr 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/tmpkm9qyq1_.c'
source_filename = "/tmp/tmpkm9qyq1_.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 @j1(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @__ocml_j1_f64(double noundef %3)
ret double %4
}
declare double @__ocml_j1_f64(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/tmpkm9qyq1_.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 @j1(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @__ocml_j1_f64(double noundef %3)
ret double %4
}
declare double @__ocml_j1_f64(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/tmpaub_297h.c'
source_filename = "/tmp/tmpaub_297h.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 [39 x i8] c"SFSM (Scriptable Finite State Machine)\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"\0AUsage: sfsm <fsm script>\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str.1)
br label %16
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @loadFSM(ptr noundef %14)
br label %16
16: ; preds = %11, %8
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @loadFSM(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/tmpaub_297h.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 [39 x i8] c"SFSM (Scriptable Finite State Machine)\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"\0AUsage: sfsm <fsm script>\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str.1)
br label %16
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @loadFSM(ptr noundef %14)
br label %16
16: ; preds = %11, %8
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @loadFSM(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/tmpdx0rsrex.c'
source_filename = "/tmp/tmpdx0rsrex.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 [18 x i8] c"Usage : -Option\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Options\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"no option Auto RS485 Half duplex test\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c"-half Auto RS485 Half duplex test\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"-full Auto RS485 Full duplex test\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
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/tmpdx0rsrex.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 [18 x i8] c"Usage : -Option\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Options\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"no option Auto RS485 Half duplex test\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c"-half Auto RS485 Half duplex test\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"-full Auto RS485 Full duplex test\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
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/tmpz0e35ofo.c'
source_filename = "/tmp/tmpz0e35ofo.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"%u(%u, b008\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c")\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"uiGenCommKey iDoRemoteFunc ret = %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uiGenCommKey(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
%9 = call ptr @malloc(i32 noundef 100)
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i8, ptr %4, align 1
%12 = zext i8 %11 to i32
%13 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %10, ptr noundef @.str, i32 noundef 9801, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load ptr, ptr %8, align 8
%15 = load i32, ptr %6, align 4
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load ptr, ptr %5, align 8
%19 = call i32 @memcpy(ptr noundef %17, ptr noundef %18, i32 noundef 8)
%20 = load i32, ptr %6, align 4
%21 = add i32 %20, 8
store i32 %21, ptr %6, align 4
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %6, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %25, ptr noundef @.str.1)
%27 = load i32, ptr %6, align 4
%28 = add i32 %27, %26
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %6, align 4
%31 = call i32 @iDoRemoteFunc(ptr noundef %29, i32 noundef %30, i32 noundef 5)
store i32 %31, ptr %7, align 4
%32 = load ptr, ptr %8, align 8
%33 = call i32 @free(ptr noundef %32)
%34 = load i32, ptr %7, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %2
%37 = load i32, ptr %7, align 4
%38 = call i32 @vWriteLogTxt(ptr noundef @.str.2, i32 noundef %37)
store i32 99, ptr %3, align 4
br label %41
39: ; preds = %2
%40 = call i32 @iGetParaInt(i32 noundef 0)
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %39, %36
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @iDoRemoteFunc(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @vWriteLogTxt(ptr noundef, i32 noundef) #1
declare i32 @iGetParaInt(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/tmpz0e35ofo.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"%u(%u, b008\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c")\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"uiGenCommKey iDoRemoteFunc ret = %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uiGenCommKey(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
%9 = call ptr @malloc(i32 noundef 100)
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i8, ptr %4, align 1
%12 = zext i8 %11 to i32
%13 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %10, ptr noundef @.str, i32 noundef 9801, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load ptr, ptr %8, align 8
%15 = load i32, ptr %6, align 4
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load ptr, ptr %5, align 8
%19 = call i32 @memcpy(ptr noundef %17, ptr noundef %18, i32 noundef 8)
%20 = load i32, ptr %6, align 4
%21 = add i32 %20, 8
store i32 %21, ptr %6, align 4
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %6, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %25, ptr noundef @.str.1)
%27 = load i32, ptr %6, align 4
%28 = add i32 %27, %26
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %6, align 4
%31 = call i32 @iDoRemoteFunc(ptr noundef %29, i32 noundef %30, i32 noundef 5)
store i32 %31, ptr %7, align 4
%32 = load ptr, ptr %8, align 8
%33 = call i32 @free(ptr noundef %32)
%34 = load i32, ptr %7, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %2
%37 = load i32, ptr %7, align 4
%38 = call i32 @vWriteLogTxt(ptr noundef @.str.2, i32 noundef %37)
store i32 99, ptr %3, align 4
br label %41
39: ; preds = %2
%40 = call i32 @iGetParaInt(i32 noundef 0)
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %39, %36
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @iDoRemoteFunc(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @vWriteLogTxt(ptr noundef, i32 noundef) #1
declare i32 @iGetParaInt(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/tmpi8g9llgo.c'
source_filename = "/tmp/tmpi8g9llgo.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"/usr/bin/clear\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"******* JOGO DA VELHA *******\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"\0A\0A1 multiplayer\0A2 alone\0A3. Sair\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Dificuldade: \0A2. easy\0A3. hard\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @show_menu() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %19, %0
%3 = load i32, ptr %1, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %20
5: ; preds = %2
%6 = call i32 @system(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %1)
%10 = load i32, ptr %1, align 4
%11 = icmp eq i32 %10, 3
br i1 %11, label %12, label %13
12: ; preds = %5
store i32 4, ptr %1, align 4
br label %13
13: ; preds = %12, %5
%14 = load i32, ptr %1, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = call i32 @printf(ptr noundef @.str.4)
%18 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %1)
br label %19
19: ; preds = %16, %13
br label %2, !llvm.loop !6
20: ; preds = %2
%21 = load i32, ptr %1, align 4
ret i32 %21
}
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(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/tmpi8g9llgo.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"/usr/bin/clear\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"******* JOGO DA VELHA *******\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"\0A\0A1 multiplayer\0A2 alone\0A3. Sair\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Dificuldade: \0A2. easy\0A3. hard\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @show_menu() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp eq i32 %2, 0
br i1 %3, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %18
%5 = call i32 @system(ptr noundef @.str)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %1)
%9 = load i32, ptr %1, align 4
%10 = icmp eq i32 %9, 3
br i1 %10, label %11, label %12
11: ; preds = %4
store i32 4, ptr %1, align 4
br label %12
12: ; preds = %11, %4
%13 = load i32, ptr %1, align 4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.4)
%17 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %1)
br label %18
18: ; preds = %15, %12
%19 = load i32, ptr %1, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %21
21: ; preds = %._crit_edge, %0
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(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/tmpx_q3i_yx.c'
source_filename = "/tmp/tmpx_q3i_yx.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 @parse_value(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%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 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call ptr @parse_token(ptr noundef %7, ptr noundef %8)
store ptr %9, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %3, align 8
br label %17
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = call ptr @parse_quoted_string(ptr noundef %14, ptr noundef %15)
store ptr %16, ptr %3, align 8
br label %17
17: ; preds = %13, %11
%18 = load ptr, ptr %3, align 8
ret ptr %18
}
declare ptr @parse_token(ptr noundef, ptr noundef) #1
declare ptr @parse_quoted_string(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/tmpx_q3i_yx.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 @parse_value(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%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 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call ptr @parse_token(ptr noundef %7, ptr noundef %8)
store ptr %9, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %3, align 8
br label %17
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = call ptr @parse_quoted_string(ptr noundef %14, ptr noundef %15)
store ptr %16, ptr %3, align 8
br label %17
17: ; preds = %13, %11
%18 = load ptr, ptr %3, align 8
ret ptr %18
}
declare ptr @parse_token(ptr noundef, ptr noundef) #1
declare ptr @parse_quoted_string(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/tmps7lnq8mr.c'
source_filename = "/tmp/tmps7lnq8mr.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"/bin/date\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Child report: Execve failed \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%s%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [69 x i8] c"Parent report: Child process failed. Status of the child process is \00", align 1
@.str.5 = private unnamed_addr constant [49 x i8] c"Parent report: Child process exited successfully\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 i64, align 8
%7 = alloca [2 x ptr], align 16
%8 = alloca ptr, align 8
%9 = 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
%10 = call i64 (...) @fork()
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %2
store ptr @.str, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
store ptr %14, ptr %15, align 16
%16 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 1
store ptr null, ptr %16, align 8
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
%19 = call i32 @execv(ptr noundef %17, ptr noundef %18)
%20 = load i32, ptr @stdout, align 4
%21 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str.1, ptr noundef @.str.2)
br label %36
22: ; preds = %2
%23 = load i64, ptr %6, align 8
%24 = call i32 @waitpid(i64 noundef %23, ptr noundef %9, i32 noundef 0)
%25 = load i32, ptr %9, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %22
%28 = load i32, ptr @stdout, align 4
%29 = load i32, ptr %9, align 4
%30 = call i32 @WEXITSTATUS(i32 noundef %29)
%31 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef %30)
br label %35
32: ; preds = %22
%33 = load i32, ptr @stdout, align 4
%34 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.1, ptr noundef @.str.5)
br label %35
35: ; preds = %32, %27
br label %36
36: ; preds = %35, %13
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmps7lnq8mr.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"/bin/date\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Child report: Execve failed \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%s%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [69 x i8] c"Parent report: Child process failed. Status of the child process is \00", align 1
@.str.5 = private unnamed_addr constant [49 x i8] c"Parent report: Child process exited successfully\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 i64, align 8
%7 = alloca [2 x ptr], align 16
%8 = alloca ptr, align 8
%9 = 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
%10 = call i64 (...) @fork()
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %2
store ptr @.str, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
store ptr %14, ptr %15, align 16
%16 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 1
store ptr null, ptr %16, align 8
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
%19 = call i32 @execv(ptr noundef %17, ptr noundef %18)
%20 = load i32, ptr @stdout, align 4
%21 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str.1, ptr noundef @.str.2)
br label %36
22: ; preds = %2
%23 = load i64, ptr %6, align 8
%24 = call i32 @waitpid(i64 noundef %23, ptr noundef %9, i32 noundef 0)
%25 = load i32, ptr %9, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %22
%28 = load i32, ptr @stdout, align 4
%29 = load i32, ptr %9, align 4
%30 = call i32 @WEXITSTATUS(i32 noundef %29)
%31 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef %30)
br label %35
32: ; preds = %22
%33 = load i32, ptr @stdout, align 4
%34 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.1, ptr noundef @.str.5)
br label %35
35: ; preds = %32, %27
br label %36
36: ; preds = %35, %13
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmp_d21rpkf.c'
source_filename = "/tmp/tmp_d21rpkf.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"
@__const.main.google = private unnamed_addr constant [15 x i8] c"173.194.79.103\00", align 1
@__const.main.message = private unnamed_addr constant [19 x i8] c"GET / HTTP/1.1\0D\0A\0D\0A\00", align 16
@.str = private unnamed_addr constant [44 x i8] c"Created socket wrapper with descriptor %d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"Socket wrapper connected to '%s' on port '%d' with return value %d.\0A\00", align 1
@.str.2 = private unnamed_addr constant [73 x i8] c"Socket wrapper sent: \0A\0A'%s'\0A\0Ato '%s' on port '%d' with return value %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c"Socket wrapper received: \0A\0A'%s'\0A\0Afrom '%s' on port '%d' with return value %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [74 x i8] c"Socket wrapper disconnected from '%s' on port '%d' with return value %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [15 x i8], align 1
%3 = alloca [19 x i8], align 16
%4 = alloca [2000 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.google, i64 15, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.message, i64 19, i1 false)
store i32 80, ptr %5, align 4
%8 = call i32 (...) @socketCreate()
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %7, align 4
%12 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%13 = load i32, ptr %5, align 4
%14 = call i32 @socketConnect(i32 noundef %11, ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %6, align 4
%15 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15, i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %7, align 4
%20 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @socketSend(i32 noundef %19, ptr noundef %20, i32 noundef -1)
store i32 %21, ptr %6, align 4
%22 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%23 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %22, ptr noundef %23, i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %7, align 4
%28 = getelementptr inbounds [2000 x i8], ptr %4, i64 0, i64 0
%29 = call i32 @socketReceive(i32 noundef %27, ptr noundef %28, i32 noundef 2000)
store i32 %29, ptr %6, align 4
%30 = getelementptr inbounds [2000 x i8], ptr %4, i64 0, i64 0
%31 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %30, ptr noundef %31, i32 noundef %32, i32 noundef %33)
%35 = load i32, ptr %7, align 4
%36 = call i32 @socketDisconnect(i32 noundef %35)
store i32 %36, ptr %6, align 4
%37 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %37, i32 noundef %38, i32 noundef %39)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @socketCreate(...) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @socketConnect(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @socketSend(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @socketReceive(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @socketDisconnect(i32 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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_d21rpkf.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"
@__const.main.google = private unnamed_addr constant [15 x i8] c"173.194.79.103\00", align 1
@__const.main.message = private unnamed_addr constant [19 x i8] c"GET / HTTP/1.1\0D\0A\0D\0A\00", align 16
@.str = private unnamed_addr constant [44 x i8] c"Created socket wrapper with descriptor %d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"Socket wrapper connected to '%s' on port '%d' with return value %d.\0A\00", align 1
@.str.2 = private unnamed_addr constant [73 x i8] c"Socket wrapper sent: \0A\0A'%s'\0A\0Ato '%s' on port '%d' with return value %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c"Socket wrapper received: \0A\0A'%s'\0A\0Afrom '%s' on port '%d' with return value %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [74 x i8] c"Socket wrapper disconnected from '%s' on port '%d' with return value %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [15 x i8], align 1
%3 = alloca [19 x i8], align 16
%4 = alloca [2000 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.google, i64 15, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.message, i64 19, i1 false)
store i32 80, ptr %5, align 4
%8 = call i32 (...) @socketCreate()
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %7, align 4
%12 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%13 = load i32, ptr %5, align 4
%14 = call i32 @socketConnect(i32 noundef %11, ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %6, align 4
%15 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15, i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %7, align 4
%20 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @socketSend(i32 noundef %19, ptr noundef %20, i32 noundef -1)
store i32 %21, ptr %6, align 4
%22 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%23 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %22, ptr noundef %23, i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %7, align 4
%28 = getelementptr inbounds [2000 x i8], ptr %4, i64 0, i64 0
%29 = call i32 @socketReceive(i32 noundef %27, ptr noundef %28, i32 noundef 2000)
store i32 %29, ptr %6, align 4
%30 = getelementptr inbounds [2000 x i8], ptr %4, i64 0, i64 0
%31 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %30, ptr noundef %31, i32 noundef %32, i32 noundef %33)
%35 = load i32, ptr %7, align 4
%36 = call i32 @socketDisconnect(i32 noundef %35)
store i32 %36, ptr %6, align 4
%37 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %37, i32 noundef %38, i32 noundef %39)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @socketCreate(...) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @socketConnect(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @socketSend(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @socketReceive(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @socketDisconnect(i32 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/tmp_y1thnk2.c'
source_filename = "/tmp/tmp_y1thnk2.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"Enter the array limit for 1st array\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Enter the elemets of 1st array:-\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"ENter the array limit for 2nd array\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Enter elements of 2nd array\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = load i32, ptr %2, align 4
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %10, align 8
%19 = alloca i32, i64 %17, align 16
store i64 %17, ptr %11, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %21
21: ; preds = %30, %0
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %19, i64 %27
%29 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %28)
br label %30
30: ; preds = %25
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %21, !llvm.loop !6
33: ; preds = %21
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%35 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%36 = load i32, ptr %3, align 4
%37 = zext i32 %36 to i64
%38 = alloca i32, i64 %37, align 16
store i64 %37, ptr %12, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %5, align 4
br label %40
40: ; preds = %49, %33
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %52
44: ; preds = %40
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %38, i64 %46
%48 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %47)
br label %49
49: ; preds = %44
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
br label %40, !llvm.loop !8
52: ; preds = %40
%53 = load i32, ptr %2, align 4
%54 = load i32, ptr %3, align 4
%55 = add nsw i32 %53, %54
%56 = zext i32 %55 to i64
%57 = alloca i32, i64 %56, align 16
store i64 %56, ptr %13, align 8
store i32 0, ptr %8, align 4
br label %58
58: ; preds = %139, %52
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %2, align 4
%61 = load i32, ptr %3, align 4
%62 = add nsw i32 %60, %61
%63 = icmp slt i32 %59, %62
br i1 %63, label %64, label %142
64: ; preds = %58
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %3, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %102
68: ; preds = %64
%69 = load i32, ptr %6, align 4
%70 = load i32, ptr %2, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %102
72: ; preds = %68
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %19, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %7, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %38, i64 %78
%80 = load i32, ptr %79, align 4
%81 = icmp sgt i32 %76, %80
br i1 %81, label %82, label %92
82: ; preds = %72
%83 = load i32, ptr %7, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %38, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr %8, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %57, i64 %88
store i32 %86, ptr %89, align 4
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %7, align 4
br label %139
92: ; preds = %72
%93 = load i32, ptr %6, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %19, i64 %94
%96 = load i32, ptr %95, align 4
%97 = load i32, ptr %8, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %57, i64 %98
store i32 %96, ptr %99, align 4
%100 = load i32, ptr %6, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %6, align 4
br label %139
102: ; preds = %68, %64
%103 = load i32, ptr %7, align 4
%104 = load i32, ptr %3, align 4
%105 = icmp eq i32 %103, %104
br i1 %105, label %106, label %120
106: ; preds = %102
%107 = load i32, ptr %6, align 4
%108 = load i32, ptr %2, align 4
%109 = icmp slt i32 %107, %108
br i1 %109, label %110, label %120
110: ; preds = %106
%111 = load i32, ptr %6, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, ptr %19, i64 %112
%114 = load i32, ptr %113, align 4
%115 = load i32, ptr %8, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, ptr %57, i64 %116
store i32 %114, ptr %117, align 4
%118 = load i32, ptr %6, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %6, align 4
br label %139
120: ; preds = %106, %102
%121 = load i32, ptr %6, align 4
%122 = load i32, ptr %2, align 4
%123 = icmp eq i32 %121, %122
br i1 %123, label %124, label %138
124: ; preds = %120
%125 = load i32, ptr %7, align 4
%126 = load i32, ptr %3, align 4
%127 = icmp slt i32 %125, %126
br i1 %127, label %128, label %138
128: ; preds = %124
%129 = load i32, ptr %7, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i32, ptr %38, i64 %130
%132 = load i32, ptr %131, align 4
%133 = load i32, ptr %8, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, ptr %57, i64 %134
store i32 %132, ptr %135, align 4
%136 = load i32, ptr %7, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %7, align 4
br label %139
138: ; preds = %124, %120
br label %139
139: ; preds = %138, %128, %110, %92, %82
%140 = load i32, ptr %8, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %8, align 4
br label %58, !llvm.loop !9
142: ; preds = %58
store i32 0, ptr %6, align 4
br label %143
143: ; preds = %155, %142
%144 = load i32, ptr %6, align 4
%145 = load i32, ptr %2, align 4
%146 = load i32, ptr %3, align 4
%147 = add nsw i32 %145, %146
%148 = icmp slt i32 %144, %147
br i1 %148, label %149, label %158
149: ; preds = %143
%150 = load i32, ptr %6, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, ptr %57, i64 %151
%153 = load i32, ptr %152, align 4
%154 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %153)
br label %155
155: ; preds = %149
%156 = load i32, ptr %6, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %6, align 4
br label %143, !llvm.loop !10
158: ; preds = %143
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
%160 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %160)
%161 = load i32, ptr %1, align 4
ret i32 %161
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!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/tmp_y1thnk2.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"Enter the array limit for 1st array\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Enter the elemets of 1st array:-\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"ENter the array limit for 2nd array\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Enter elements of 2nd array\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = load i32, ptr %2, align 4
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %10, align 8
%19 = alloca i32, i64 %17, align 16
store i64 %17, ptr %11, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %35
.lr.ph: ; preds = %0
br label %24
24: ; preds = %.lr.ph, %29
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %19, i64 %26
%28 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %27)
br label %29
29: ; preds = %24
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%37 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%38 = load i32, ptr %3, align 4
%39 = zext i32 %38 to i64
%40 = alloca i32, i64 %39, align 16
store i64 %39, ptr %12, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %5, align 4
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph2, label %56
.lr.ph2: ; preds = %35
br label %45
45: ; preds = %.lr.ph2, %50
%46 = load i32, ptr %5, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %40, i64 %47
%49 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %48)
br label %50
50: ; preds = %45
%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 = load i32, ptr %3, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %35
%57 = load i32, ptr %2, align 4
%58 = load i32, ptr %3, align 4
%59 = add nsw i32 %57, %58
%60 = zext i32 %59 to i64
%61 = alloca i32, i64 %60, align 16
store i64 %60, ptr %13, align 8
store i32 0, ptr %8, align 4
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %2, align 4
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %63, %64
%66 = icmp slt i32 %62, %65
br i1 %66, label %.lr.ph5, label %150
.lr.ph5: ; preds = %56
br label %67
67: ; preds = %.lr.ph5, %142
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %3, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %105
71: ; preds = %67
%72 = load i32, ptr %6, align 4
%73 = load i32, ptr %2, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %105
75: ; preds = %71
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %19, i64 %77
%79 = load i32, ptr %78, align 4
%80 = load i32, ptr %7, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %40, i64 %81
%83 = load i32, ptr %82, align 4
%84 = icmp sgt i32 %79, %83
br i1 %84, label %85, label %95
85: ; preds = %75
%86 = load i32, ptr %7, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %40, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load i32, ptr %8, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %61, i64 %91
store i32 %89, ptr %92, align 4
%93 = load i32, ptr %7, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %7, align 4
br label %142
95: ; preds = %75
%96 = load i32, ptr %6, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %19, i64 %97
%99 = load i32, ptr %98, align 4
%100 = load i32, ptr %8, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, ptr %61, i64 %101
store i32 %99, ptr %102, align 4
%103 = load i32, ptr %6, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %6, align 4
br label %142
105: ; preds = %71, %67
%106 = load i32, ptr %7, align 4
%107 = load i32, ptr %3, align 4
%108 = icmp eq i32 %106, %107
br i1 %108, label %109, label %123
109: ; preds = %105
%110 = load i32, ptr %6, align 4
%111 = load i32, ptr %2, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %123
113: ; preds = %109
%114 = load i32, ptr %6, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, ptr %19, i64 %115
%117 = load i32, ptr %116, align 4
%118 = load i32, ptr %8, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %61, i64 %119
store i32 %117, ptr %120, align 4
%121 = load i32, ptr %6, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %6, align 4
br label %142
123: ; preds = %109, %105
%124 = load i32, ptr %6, align 4
%125 = load i32, ptr %2, align 4
%126 = icmp eq i32 %124, %125
br i1 %126, label %127, label %141
127: ; preds = %123
%128 = load i32, ptr %7, align 4
%129 = load i32, ptr %3, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %131, label %141
131: ; preds = %127
%132 = load i32, ptr %7, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, ptr %40, i64 %133
%135 = load i32, ptr %134, align 4
%136 = load i32, ptr %8, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, ptr %61, i64 %137
store i32 %135, ptr %138, align 4
%139 = load i32, ptr %7, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %7, align 4
br label %142
141: ; preds = %127, %123
br label %142
142: ; preds = %141, %131, %113, %95, %85
%143 = load i32, ptr %8, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %8, align 4
%145 = load i32, ptr %8, align 4
%146 = load i32, ptr %2, align 4
%147 = load i32, ptr %3, align 4
%148 = add nsw i32 %146, %147
%149 = icmp slt i32 %145, %148
br i1 %149, label %67, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %142
br label %150
150: ; preds = %._crit_edge6, %56
store i32 0, ptr %6, align 4
%151 = load i32, ptr %6, align 4
%152 = load i32, ptr %2, align 4
%153 = load i32, ptr %3, align 4
%154 = add nsw i32 %152, %153
%155 = icmp slt i32 %151, %154
br i1 %155, label %.lr.ph8, label %170
.lr.ph8: ; preds = %150
br label %156
156: ; preds = %.lr.ph8, %162
%157 = load i32, ptr %6, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i32, ptr %61, i64 %158
%160 = load i32, ptr %159, align 4
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %160)
br label %162
162: ; preds = %156
%163 = load i32, ptr %6, align 4
%164 = add nsw i32 %163, 1
store i32 %164, ptr %6, align 4
%165 = load i32, ptr %6, align 4
%166 = load i32, ptr %2, align 4
%167 = load i32, ptr %3, align 4
%168 = add nsw i32 %166, %167
%169 = icmp slt i32 %165, %168
br i1 %169, label %156, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %162
br label %170
170: ; preds = %._crit_edge9, %150
%171 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
%172 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %172)
%173 = load i32, ptr %1, align 4
ret i32 %173
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!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/tmpgehm82z0.c'
source_filename = "/tmp/tmpgehm82z0.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"Enter '+','-','*','/','q':\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Enter First Number:\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%10f\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Enter Second Number:\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"The total is: %10f\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c"\0AUnable to divide by 0. Please enter new number to divide by:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %7
7: ; preds = %69, %0
%8 = call signext i8 (...) @getchar()
store i8 %8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 113
br i1 %10, label %11, label %72
11: ; preds = %7
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%15 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%16 = load i8, ptr %2, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 43
br i1 %18, label %19, label %26
19: ; preds = %11
%20 = load float, ptr %3, align 4
%21 = load float, ptr %4, align 4
%22 = fadd float %20, %21
store float %22, ptr %5, align 4
%23 = load float, ptr %5, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %24)
br label %69
26: ; preds = %11
%27 = load i8, ptr %2, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 45
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load float, ptr %3, align 4
%32 = load float, ptr %4, align 4
%33 = fsub float %31, %32
store float %33, ptr %5, align 4
%34 = load float, ptr %5, align 4
%35 = fpext float %34 to double
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %35)
br label %68
37: ; preds = %26
%38 = load i8, ptr %2, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 42
br i1 %40, label %41, label %48
41: ; preds = %37
%42 = load float, ptr %3, align 4
%43 = load float, ptr %4, align 4
%44 = fmul float %42, %43
store float %44, ptr %5, align 4
%45 = load float, ptr %5, align 4
%46 = fpext float %45 to double
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %46)
br label %67
48: ; preds = %37
%49 = load i8, ptr %2, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 47
br i1 %51, label %52, label %66
52: ; preds = %48
br label %53
53: ; preds = %56, %52
%54 = load float, ptr %4, align 4
%55 = fcmp oeq float %54, 0.000000e+00
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%58 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
br label %53, !llvm.loop !6
59: ; preds = %53
%60 = load float, ptr %3, align 4
%61 = load float, ptr %4, align 4
%62 = fdiv float %60, %61
store float %62, ptr %5, align 4
%63 = load float, ptr %5, align 4
%64 = fpext float %63 to double
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %64)
br label %66
66: ; preds = %59, %48
br label %67
67: ; preds = %66, %41
br label %68
68: ; preds = %67, %30
br label %69
69: ; preds = %68, %19
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%71 = call signext i8 (...) @getchar()
store i8 %71, ptr %2, align 1
br label %7, !llvm.loop !8
72: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #1
declare i32 @scanf(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgehm82z0.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"Enter '+','-','*','/','q':\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Enter First Number:\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%10f\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Enter Second Number:\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"The total is: %10f\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c"\0AUnable to divide by 0. Please enter new number to divide by:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call signext i8 (...) @getchar()
store i8 %7, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 113
br i1 %9, label %.lr.ph2, label %75
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %69
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%14 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%15 = load i8, ptr %2, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 43
br i1 %17, label %18, label %25
18: ; preds = %10
%19 = load float, ptr %3, align 4
%20 = load float, ptr %4, align 4
%21 = fadd float %19, %20
store float %21, ptr %5, align 4
%22 = load float, ptr %5, align 4
%23 = fpext float %22 to double
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %23)
br label %69
25: ; preds = %10
%26 = load i8, ptr %2, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 45
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = load float, ptr %3, align 4
%31 = load float, ptr %4, align 4
%32 = fsub float %30, %31
store float %32, ptr %5, align 4
%33 = load float, ptr %5, align 4
%34 = fpext float %33 to double
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %34)
br label %68
36: ; preds = %25
%37 = load i8, ptr %2, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 42
br i1 %39, label %40, label %47
40: ; preds = %36
%41 = load float, ptr %3, align 4
%42 = load float, ptr %4, align 4
%43 = fmul float %41, %42
store float %43, ptr %5, align 4
%44 = load float, ptr %5, align 4
%45 = fpext float %44 to double
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %45)
br label %67
47: ; preds = %36
%48 = load i8, ptr %2, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 47
br i1 %50, label %51, label %66
51: ; preds = %47
%52 = load float, ptr %4, align 4
%53 = fcmp oeq float %52, 0.000000e+00
br i1 %53, label %.lr.ph, label %59
.lr.ph: ; preds = %51
br label %54
54: ; preds = %.lr.ph, %54
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%56 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%57 = load float, ptr %4, align 4
%58 = fcmp oeq float %57, 0.000000e+00
br i1 %58, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %59
59: ; preds = %._crit_edge, %51
%60 = load float, ptr %3, align 4
%61 = load float, ptr %4, align 4
%62 = fdiv float %60, %61
store float %62, ptr %5, align 4
%63 = load float, ptr %5, align 4
%64 = fpext float %63 to double
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %64)
br label %66
66: ; preds = %59, %47
br label %67
67: ; preds = %66, %40
br label %68
68: ; preds = %67, %29
br label %69
69: ; preds = %68, %18
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%71 = call signext i8 (...) @getchar()
store i8 %71, ptr %2, align 1
%72 = call signext i8 (...) @getchar()
store i8 %72, ptr %2, align 1
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 113
br i1 %74, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %75
75: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #1
declare i32 @scanf(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}
|
; ModuleID = '/tmp/tmpj_tcwt7m.c'
source_filename = "/tmp/tmpj_tcwt7m.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 [19 x i8] c"First element: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Last element: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"All elements: [\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"]\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 [5 x i32], align 16
%7 = 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
%8 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
store i32 2, ptr %8, align 16
%9 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
store i32 8, ptr %9, align 4
%10 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 2
store i32 -9, ptr %10, align 8
%11 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 3
store i32 100, ptr %11, align 4
%12 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 4
store i32 0, ptr %12, align 16
%13 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%14 = load i32, ptr %13, align 16
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 4
%17 = load i32, ptr %16, align 16
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i64 0, ptr %7, align 8
br label %20
20: ; preds = %28, %2
%21 = load i64, ptr %7, align 8
%22 = icmp ult i64 %21, 5
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = load i64, ptr %7, align 8
%25 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
br label %28
28: ; preds = %23
%29 = load i64, ptr %7, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %7, align 8
br label %20, !llvm.loop !6
31: ; preds = %20
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj_tcwt7m.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 [19 x i8] c"First element: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Last element: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"All elements: [\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"]\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 [5 x i32], align 16
%7 = 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
%8 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
store i32 2, ptr %8, align 16
%9 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
store i32 8, ptr %9, align 4
%10 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 2
store i32 -9, ptr %10, align 8
%11 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 3
store i32 100, ptr %11, align 4
%12 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 4
store i32 0, ptr %12, align 16
%13 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%14 = load i32, ptr %13, align 16
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 4
%17 = load i32, ptr %16, align 16
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i64 0, ptr %7, align 8
%20 = load i64, ptr %7, align 8
%21 = icmp ult i64 %20, 5
br i1 %21, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %22
22: ; preds = %.lr.ph, %27
%23 = load i64, ptr %7, align 8
%24 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
br label %27
27: ; preds = %22
%28 = load i64, ptr %7, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %7, align 8
%30 = load i64, ptr %7, align 8
%31 = icmp ult i64 %30, 5
br i1 %31, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %2
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
|
; ModuleID = '/tmp/tmp05z88t54.c'
source_filename = "/tmp/tmp05z88t54.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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @alloca(i32 noundef 1)
ret i32 0
}
declare i32 @alloca(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/tmp05z88t54.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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @alloca(i32 noundef 1)
ret i32 0
}
declare i32 @alloca(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/tmpom4hg7ph.c'
source_filename = "/tmp/tmpom4hg7ph.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 [48 x i8] c"--- STOP called - reason: %s - %s line %d ---\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error_stop(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef %8, ptr noundef %9, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { "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/tmpom4hg7ph.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 [48 x i8] c"--- STOP called - reason: %s - %s line %d ---\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error_stop(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef %8, ptr noundef %9, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { "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/tmpduv538nj.c'
source_filename = "/tmp/tmpduv538nj.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/tmpduv538nj.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/tmpg8e7l8na.c'
source_filename = "/tmp/tmpg8e7l8na.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/tmpg8e7l8na.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/tmp2gusnk60.c'
source_filename = "/tmp/tmp2gusnk60.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 @call_reg32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @put8(i32 noundef 255)
%4 = load i32, ptr %2, align 4
%5 = add i32 208, %4
%6 = call i32 @put8(i32 noundef %5)
ret void
}
declare i32 @put8(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/tmp2gusnk60.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 @call_reg32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @put8(i32 noundef 255)
%4 = load i32, ptr %2, align 4
%5 = add i32 208, %4
%6 = call i32 @put8(i32 noundef %5)
ret void
}
declare i32 @put8(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/tmpuhpoywwg.c'
source_filename = "/tmp/tmpuhpoywwg.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/tmpuhpoywwg.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/tmp9hqfoq1j.c'
source_filename = "/tmp/tmp9hqfoq1j.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 [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i64 @malloc(i64 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @fatal(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare i64 @malloc(i64 noundef) #1
declare i32 @fatal(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/tmp9hqfoq1j.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 [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i64 @malloc(i64 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @fatal(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare i64 @malloc(i64 noundef) #1
declare i32 @fatal(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/tmpo8va4izx.c'
source_filename = "/tmp/tmpo8va4izx.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 @ndens(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %5, align 8
%9 = fsub double %7, %8
%10 = load double, ptr %6, align 8
%11 = fdiv double %9, %10
%12 = call double @nordis(double noundef %11)
%13 = load double, ptr %6, align 8
%14 = fdiv double %12, %13
ret double %14
}
declare double @nordis(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/tmpo8va4izx.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 @ndens(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %5, align 8
%9 = fsub double %7, %8
%10 = load double, ptr %6, align 8
%11 = fdiv double %9, %10
%12 = call double @nordis(double noundef %11)
%13 = load double, ptr %6, align 8
%14 = fdiv double %12, %13
ret double %14
}
declare double @nordis(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/tmpp70xwxn9.c'
source_filename = "/tmp/tmpp70xwxn9.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.hostent = type { i32, i64 }
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_internet_address(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = call i32 @bzero(ptr noundef %9, i32 noundef 12)
%11 = load ptr, ptr %5, align 8
%12 = call ptr @gethostbyname(ptr noundef %11)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 -1, ptr %4, align 4
br label %34
16: ; preds = %3
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds %struct.hostent, ptr %17, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = inttoptr i64 %19 to ptr
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %21, i32 0, i32 2
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds %struct.hostent, ptr %23, i32 0, i32 0
%25 = load i32, ptr %24, align 8
%26 = call i32 @bcopy(ptr noundef %20, ptr noundef %22, i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = call i32 @htons(i32 noundef %27)
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %29, i32 0, i32 1
store i32 %28, ptr %30, align 4
%31 = load i32, ptr @AF_INET, align 4
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds %struct.sockaddr_in, ptr %32, i32 0, i32 0
store i32 %31, ptr %33, align 4
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %16, %15
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(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/tmpp70xwxn9.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.hostent = type { i32, i64 }
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_internet_address(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = call i32 @bzero(ptr noundef %9, i32 noundef 12)
%11 = load ptr, ptr %5, align 8
%12 = call ptr @gethostbyname(ptr noundef %11)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 -1, ptr %4, align 4
br label %34
16: ; preds = %3
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds %struct.hostent, ptr %17, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = inttoptr i64 %19 to ptr
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %21, i32 0, i32 2
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds %struct.hostent, ptr %23, i32 0, i32 0
%25 = load i32, ptr %24, align 8
%26 = call i32 @bcopy(ptr noundef %20, ptr noundef %22, i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = call i32 @htons(i32 noundef %27)
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %29, i32 0, i32 1
store i32 %28, ptr %30, align 4
%31 = load i32, ptr @AF_INET, align 4
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds %struct.sockaddr_in, ptr %32, i32 0, i32 0
store i32 %31, ptr %33, align 4
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %16, %15
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(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/tmpep3imiis.c'
source_filename = "/tmp/tmpep3imiis.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/tmpep3imiis.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/tmpwial1nqx.c'
source_filename = "/tmp/tmpwial1nqx.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 @is_substitutable_sequence(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
%11 = load ptr, ptr %7, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %46, %3
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %7, align 8
%18 = call i32 @strlen(ptr noundef %17)
%19 = icmp ult i32 %16, %18
br i1 %19, label %20, label %49
20: ; preds = %15
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %21, align 4
%23 = load i32, ptr %10, align 4
%24 = add i32 %22, %23
%25 = load i32, ptr %9, align 4
%26 = icmp uge i32 %24, %25
br i1 %26, label %44, label %27
27: ; preds = %20
%28 = load ptr, ptr %5, align 8
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr %10, align 4
%32 = add i32 %30, %31
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %28, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %10, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %36, %42
br i1 %43, label %44, label %45
44: ; preds = %27, %20
store i32 0, ptr %4, align 4
br label %55
45: ; preds = %27
br label %46
46: ; preds = %45
%47 = load i32, ptr %10, align 4
%48 = add i32 %47, 1
store i32 %48, ptr %10, align 4
br label %15, !llvm.loop !6
49: ; preds = %15
%50 = load i32, ptr %8, align 4
%51 = sub i32 %50, 1
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %52, align 4
%54 = add i32 %53, %51
store i32 %54, ptr %52, align 4
store i32 1, ptr %4, align 4
br label %55
55: ; preds = %49, %44
%56 = load i32, ptr %4, align 4
ret i32 %56
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwial1nqx.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 @is_substitutable_sequence(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
%11 = load ptr, ptr %7, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %9, align 4
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = load ptr, ptr %7, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = icmp ult i32 %15, %17
br i1 %18, label %.lr.ph, label %52
.lr.ph: ; preds = %3
br label %19
19: ; preds = %.lr.ph, %45
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %10, align 4
%23 = add i32 %21, %22
%24 = load i32, ptr %9, align 4
%25 = icmp uge i32 %23, %24
br i1 %25, label %43, label %26
26: ; preds = %19
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %28, align 4
%30 = load i32, ptr %10, align 4
%31 = add i32 %29, %30
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %27, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %10, align 4
%38 = zext 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 ne i32 %35, %41
br i1 %42, label %43, label %44
43: ; preds = %26, %19
store i32 0, ptr %4, align 4
br label %58
44: ; preds = %26
br label %45
45: ; preds = %44
%46 = load i32, ptr %10, align 4
%47 = add i32 %46, 1
store i32 %47, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = load ptr, ptr %7, align 8
%50 = call i32 @strlen(ptr noundef %49)
%51 = icmp ult i32 %48, %50
br i1 %51, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %52
52: ; preds = %._crit_edge, %3
%53 = load i32, ptr %8, align 4
%54 = sub i32 %53, 1
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %55, align 4
%57 = add i32 %56, %54
store i32 %57, ptr %55, align 4
store i32 1, ptr %4, align 4
br label %58
58: ; preds = %52, %43
%59 = load i32, ptr %4, align 4
ret i32 %59
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4_1_kch4.c'
source_filename = "/tmp/tmp4_1_kch4.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 @mc_base_name(ptr noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %13, %3
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
store i8 46, ptr %20, align 1
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
store i8 0, ptr %22, align 1
%23 = load ptr, ptr %5, align 8
store ptr %23, ptr %4, align 8
br label %101
24: ; preds = %13
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
%30 = getelementptr inbounds i8, ptr %29, i64 -1
store ptr %30, ptr %8, align 8
br label %31
31: ; preds = %44, %24
%32 = load ptr, ptr %8, align 8
%33 = load ptr, ptr %6, align 8
%34 = icmp ugt ptr %32, %33
br i1 %34, label %35, label %42
35: ; preds = %31
%36 = load ptr, ptr %8, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load i8, ptr %7, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %38, %40
br label %42
42: ; preds = %35, %31
%43 = phi i1 [ false, %31 ], [ %41, %35 ]
br i1 %43, label %44, label %47
44: ; preds = %42
%45 = load ptr, ptr %8, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 -1
store ptr %46, ptr %8, align 8
br label %31, !llvm.loop !6
47: ; preds = %42
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %6, align 8
%50 = icmp eq ptr %48, %49
br i1 %50, label %51, label %65
51: ; preds = %47
%52 = load ptr, ptr %8, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = load i8, ptr %7, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %54, %56
br i1 %57, label %58, label %65
58: ; preds = %51
%59 = load i8, ptr %7, align 1
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 0
store i8 %59, ptr %61, align 1
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 1
store i8 0, ptr %63, align 1
%64 = load ptr, ptr %5, align 8
store ptr %64, ptr %4, align 8
br label %101
65: ; preds = %51, %47
%66 = load ptr, ptr %8, align 8
store ptr %66, ptr %9, align 8
br label %67
67: ; preds = %81, %65
%68 = load ptr, ptr %9, align 8
%69 = load ptr, ptr %6, align 8
%70 = icmp ugt ptr %68, %69
br i1 %70, label %71, label %79
71: ; preds = %67
%72 = load ptr, ptr %9, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 -1
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = load i8, ptr %7, align 1
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %75, %77
br label %79
79: ; preds = %71, %67
%80 = phi i1 [ false, %67 ], [ %78, %71 ]
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load ptr, ptr %9, align 8
%83 = getelementptr inbounds i8, ptr %82, i32 -1
store ptr %83, ptr %9, align 8
br label %67, !llvm.loop !8
84: ; preds = %79
%85 = load ptr, ptr %8, align 8
%86 = load ptr, ptr %9, align 8
%87 = ptrtoint ptr %85 to i64
%88 = ptrtoint ptr %86 to i64
%89 = sub i64 %87, %88
%90 = add nsw i64 %89, 1
%91 = trunc i64 %90 to i32
store i32 %91, ptr %10, align 4
%92 = load ptr, ptr %5, align 8
%93 = load ptr, ptr %9, align 8
%94 = load i32, ptr %10, align 4
%95 = call i32 @strncpy(ptr noundef %92, ptr noundef %93, i32 noundef %94)
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %10, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
store i8 0, ptr %99, align 1
%100 = load ptr, ptr %5, align 8
store ptr %100, ptr %4, align 8
br label %101
101: ; preds = %84, %58, %18
%102 = load ptr, ptr %4, align 8
ret ptr %102
}
declare i32 @strlen(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4_1_kch4.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 @mc_base_name(ptr noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %13, %3
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
store i8 46, ptr %20, align 1
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
store i8 0, ptr %22, align 1
%23 = load ptr, ptr %5, align 8
store ptr %23, ptr %4, align 8
br label %101
24: ; preds = %13
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
%30 = getelementptr inbounds i8, ptr %29, i64 -1
store ptr %30, ptr %8, align 8
br label %31
31: ; preds = %44, %24
%32 = load ptr, ptr %8, align 8
%33 = load ptr, ptr %6, align 8
%34 = icmp ugt ptr %32, %33
br i1 %34, label %35, label %42
35: ; preds = %31
%36 = load ptr, ptr %8, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load i8, ptr %7, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %38, %40
br label %42
42: ; preds = %35, %31
%43 = phi i1 [ false, %31 ], [ %41, %35 ]
br i1 %43, label %44, label %47
44: ; preds = %42
%45 = load ptr, ptr %8, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 -1
store ptr %46, ptr %8, align 8
br label %31, !llvm.loop !6
47: ; preds = %42
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %6, align 8
%50 = icmp eq ptr %48, %49
br i1 %50, label %51, label %65
51: ; preds = %47
%52 = load ptr, ptr %8, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = load i8, ptr %7, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %54, %56
br i1 %57, label %58, label %65
58: ; preds = %51
%59 = load i8, ptr %7, align 1
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 0
store i8 %59, ptr %61, align 1
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 1
store i8 0, ptr %63, align 1
%64 = load ptr, ptr %5, align 8
store ptr %64, ptr %4, align 8
br label %101
65: ; preds = %51, %47
%66 = load ptr, ptr %8, align 8
store ptr %66, ptr %9, align 8
br label %67
67: ; preds = %81, %65
%68 = load ptr, ptr %9, align 8
%69 = load ptr, ptr %6, align 8
%70 = icmp ugt ptr %68, %69
br i1 %70, label %71, label %79
71: ; preds = %67
%72 = load ptr, ptr %9, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 -1
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = load i8, ptr %7, align 1
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %75, %77
br label %79
79: ; preds = %71, %67
%80 = phi i1 [ false, %67 ], [ %78, %71 ]
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load ptr, ptr %9, align 8
%83 = getelementptr inbounds i8, ptr %82, i32 -1
store ptr %83, ptr %9, align 8
br label %67, !llvm.loop !8
84: ; preds = %79
%85 = load ptr, ptr %8, align 8
%86 = load ptr, ptr %9, align 8
%87 = ptrtoint ptr %85 to i64
%88 = ptrtoint ptr %86 to i64
%89 = sub i64 %87, %88
%90 = add nsw i64 %89, 1
%91 = trunc i64 %90 to i32
store i32 %91, ptr %10, align 4
%92 = load ptr, ptr %5, align 8
%93 = load ptr, ptr %9, align 8
%94 = load i32, ptr %10, align 4
%95 = call i32 @strncpy(ptr noundef %92, ptr noundef %93, i32 noundef %94)
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %10, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
store i8 0, ptr %99, align 1
%100 = load ptr, ptr %5, align 8
store ptr %100, ptr %4, align 8
br label %101
101: ; preds = %84, %58, %18
%102 = load ptr, ptr %4, align 8
ret ptr %102
}
declare i32 @strlen(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0tqlad0t.c'
source_filename = "/tmp/tmp0tqlad0t.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 @allocateArrayF3(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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 ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = call i64 @calloc(i32 noundef %10, i32 noundef 8)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %9, align 8
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %45, %3
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %48
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = call i64 @calloc(i32 noundef %18, i32 noundef 8)
%20 = inttoptr i64 %19 to ptr
%21 = load ptr, ptr %9, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
store ptr %20, ptr %24, align 8
store i32 0, ptr %8, align 4
br label %25
25: ; preds = %41, %17
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %44
29: ; preds = %25
%30 = load i32, ptr %6, align 4
%31 = call i64 @calloc(i32 noundef %30, i32 noundef 4)
%32 = inttoptr i64 %31 to ptr
%33 = load ptr, ptr %9, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
store ptr %32, ptr %40, align 8
br label %41
41: ; preds = %29
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
br label %25, !llvm.loop !6
44: ; preds = %25
br label %45
45: ; preds = %44
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
br label %13, !llvm.loop !8
48: ; preds = %13
%49 = load ptr, ptr %9, align 8
ret ptr %49
}
declare i64 @calloc(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0tqlad0t.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 @allocateArrayF3(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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 ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = call i64 @calloc(i32 noundef %10, i32 noundef 8)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %9, align 8
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph2, label %52
.lr.ph2: ; preds = %3
br label %16
16: ; preds = %.lr.ph2, %46
%17 = load i32, ptr %5, align 4
%18 = call i64 @calloc(i32 noundef %17, i32 noundef 8)
%19 = inttoptr i64 %18 to ptr
%20 = load ptr, ptr %9, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
store ptr %19, ptr %23, align 8
store i32 0, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %45
.lr.ph: ; preds = %16
br label %27
27: ; preds = %.lr.ph, %39
%28 = load i32, ptr %6, align 4
%29 = call i64 @calloc(i32 noundef %28, i32 noundef 4)
%30 = inttoptr i64 %29 to ptr
%31 = load ptr, ptr %9, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
store ptr %30, ptr %38, align 8
br label %39
39: ; preds = %27
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %16
br label %46
46: ; preds = %45
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %4, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %52
52: ; preds = %._crit_edge3, %3
%53 = load ptr, ptr %9, align 8
ret ptr %53
}
declare i64 @calloc(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmphi4tiosc.c'
source_filename = "/tmp/tmphi4tiosc.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"
@stdin = dso_local global ptr null, align 8
!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/tmphi4tiosc.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"
@stdin = dso_local global ptr null, align 8
!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/tmpfyd78qj1.c'
source_filename = "/tmp/tmpfyd78qj1.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 (...) @dummy_function()
ret i32 0
}
declare i32 @dummy_function(...) #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/tmpfyd78qj1.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 (...) @dummy_function()
ret i32 0
}
declare i32 @dummy_function(...) #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/tmp5s6ap6wh.c'
source_filename = "/tmp/tmp5s6ap6wh.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"testing '%s'\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"float\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ftest() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @fcmp(i32 noundef 1, i32 noundef 2)
%3 = call i32 @fcmp(i32 noundef 2, i32 noundef 1)
%4 = call i32 @fcmp(i32 noundef 1, i32 noundef 1)
%5 = call i32 @ffcast(double noundef 2.346000e+02)
%6 = call i32 @ffcast(double noundef -2.334600e+03)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fcmp(i32 noundef, i32 noundef) #1
declare i32 @ffcast(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/tmp5s6ap6wh.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"testing '%s'\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"float\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ftest() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @fcmp(i32 noundef 1, i32 noundef 2)
%3 = call i32 @fcmp(i32 noundef 2, i32 noundef 1)
%4 = call i32 @fcmp(i32 noundef 1, i32 noundef 1)
%5 = call i32 @ffcast(double noundef 2.346000e+02)
%6 = call i32 @ffcast(double noundef -2.334600e+03)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fcmp(i32 noundef, i32 noundef) #1
declare i32 @ffcast(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/tmp14b_oysb.c'
source_filename = "/tmp/tmp14b_oysb.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 [8 x i8] c":STRIPS\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c":NEGATION\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c":EQUALITY\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c":TYPING\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c":CONDITIONAL-EFFECTS\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c":NEGATIVE-PRECONDITIONS\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c":DISJUNCTIVE-PRECONDITIONS\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c":EXISTENTIAL-PRECONDITIONS\00", align 1
@.str.8 = private unnamed_addr constant [25 x i8] c":UNIVERSAL-PRECONDITIONS\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c":QUANTIFIED-PRECONDITIONS\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c":ADL\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c":FLUENTS\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c":ACTION-COSTS\00", align 1
@__const.supported.sup = private unnamed_addr constant [14 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr null], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @supported(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [14 x ptr], align 16
store ptr %0, ptr %3, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.supported.sup, i64 112, i1 false)
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %22, %1
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [14 x ptr], ptr %5, i64 0, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr null, %10
br i1 %11, label %12, label %25
12: ; preds = %6
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [14 x ptr], ptr %5, i64 0, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = load ptr, ptr %3, align 8
%18 = call i64 @strcmp(ptr noundef %16, ptr noundef %17)
%19 = icmp eq i64 0, %18
br i1 %19, label %20, label %21
20: ; preds = %12
store i32 1, ptr %2, align 4
br label %26
21: ; preds = %12
br label %22
22: ; preds = %21
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %6, !llvm.loop !6
25: ; preds = %6
store i32 0, ptr %2, align 4
br label %26
26: ; preds = %25, %20
%27 = load i32, ptr %2, align 4
ret i32 %27
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i64 @strcmp(ptr noundef, ptr 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/tmp14b_oysb.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 [8 x i8] c":STRIPS\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c":NEGATION\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c":EQUALITY\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c":TYPING\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c":CONDITIONAL-EFFECTS\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c":NEGATIVE-PRECONDITIONS\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c":DISJUNCTIVE-PRECONDITIONS\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c":EXISTENTIAL-PRECONDITIONS\00", align 1
@.str.8 = private unnamed_addr constant [25 x i8] c":UNIVERSAL-PRECONDITIONS\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c":QUANTIFIED-PRECONDITIONS\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c":ADL\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c":FLUENTS\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c":ACTION-COSTS\00", align 1
@__const.supported.sup = private unnamed_addr constant [14 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr null], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @supported(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [14 x ptr], align 16
store ptr %0, ptr %3, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.supported.sup, i64 112, i1 false)
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [14 x ptr], ptr %5, i64 0, i64 %7
%9 = load ptr, ptr %8, align 8
%10 = icmp ne ptr null, %9
br i1 %10, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %21
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [14 x ptr], ptr %5, i64 0, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %3, align 8
%17 = call i64 @strcmp(ptr noundef %15, ptr noundef %16)
%18 = icmp eq i64 0, %17
br i1 %18, label %19, label %20
19: ; preds = %11
store i32 1, ptr %2, align 4
br label %30
20: ; preds = %11
br label %21
21: ; preds = %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [14 x ptr], ptr %5, i64 0, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = icmp ne ptr null, %27
br i1 %28, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %29
29: ; preds = %._crit_edge, %1
store i32 0, ptr %2, align 4
br label %30
30: ; preds = %29, %19
%31 = load i32, ptr %2, align 4
ret i32 %31
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i64 @strcmp(ptr noundef, ptr 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/tmpwla4v2kx.c'
source_filename = "/tmp/tmpwla4v2kx.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
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @call_sub(i32 noundef %3)
ret i32 0
}
declare i32 @call_sub(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/tmpwla4v2kx.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
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @call_sub(i32 noundef %3)
ret i32 0
}
declare i32 @call_sub(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/tmpfnfq3mb3.c'
source_filename = "/tmp/tmpfnfq3mb3.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 float @waveshaper_quadruple_sine(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load i32, ptr @M_PI, align 4
%6 = mul nsw i32 2, %5
%7 = sitofp i32 %6 to float
%8 = load float, ptr %4, align 4
%9 = fmul float %7, %8
%10 = load float, ptr %3, align 4
%11 = fmul float %9, %10
%12 = fptosi float %11 to i32
%13 = call float @sin(i32 noundef %12)
%14 = fmul float 5.000000e-01, %13
%15 = load i32, ptr @M_PI, align 4
%16 = mul nsw i32 4, %15
%17 = sitofp i32 %16 to float
%18 = load float, ptr %4, align 4
%19 = fmul float %17, %18
%20 = load float, ptr %3, align 4
%21 = fmul float %19, %20
%22 = fptosi float %21 to i32
%23 = call float @sin(i32 noundef %22)
%24 = fmul float %14, %23
%25 = load i32, ptr @M_PI, align 4
%26 = mul nsw i32 6, %25
%27 = sitofp i32 %26 to float
%28 = load float, ptr %4, align 4
%29 = fmul float %27, %28
%30 = load float, ptr %3, align 4
%31 = fmul float %29, %30
%32 = fptosi float %31 to i32
%33 = call float @sin(i32 noundef %32)
%34 = fmul float %24, %33
%35 = load i32, ptr @M_PI, align 4
%36 = mul nsw i32 8, %35
%37 = sitofp i32 %36 to float
%38 = load float, ptr %4, align 4
%39 = fmul float %37, %38
%40 = load float, ptr %3, align 4
%41 = fmul float %39, %40
%42 = fptosi float %41 to i32
%43 = call float @sin(i32 noundef %42)
%44 = call float @llvm.fmuladd.f32(float %34, float %43, float 5.000000e-01)
%45 = load float, ptr %3, align 4
%46 = fmul float %44, %45
store float %46, ptr %3, align 4
%47 = load float, ptr %3, align 4
ret float %47
}
declare float @sin(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfnfq3mb3.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 float @waveshaper_quadruple_sine(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load i32, ptr @M_PI, align 4
%6 = mul nsw i32 2, %5
%7 = sitofp i32 %6 to float
%8 = load float, ptr %4, align 4
%9 = fmul float %7, %8
%10 = load float, ptr %3, align 4
%11 = fmul float %9, %10
%12 = fptosi float %11 to i32
%13 = call float @sin(i32 noundef %12)
%14 = fmul float 5.000000e-01, %13
%15 = load i32, ptr @M_PI, align 4
%16 = mul nsw i32 4, %15
%17 = sitofp i32 %16 to float
%18 = load float, ptr %4, align 4
%19 = fmul float %17, %18
%20 = load float, ptr %3, align 4
%21 = fmul float %19, %20
%22 = fptosi float %21 to i32
%23 = call float @sin(i32 noundef %22)
%24 = fmul float %14, %23
%25 = load i32, ptr @M_PI, align 4
%26 = mul nsw i32 6, %25
%27 = sitofp i32 %26 to float
%28 = load float, ptr %4, align 4
%29 = fmul float %27, %28
%30 = load float, ptr %3, align 4
%31 = fmul float %29, %30
%32 = fptosi float %31 to i32
%33 = call float @sin(i32 noundef %32)
%34 = fmul float %24, %33
%35 = load i32, ptr @M_PI, align 4
%36 = mul nsw i32 8, %35
%37 = sitofp i32 %36 to float
%38 = load float, ptr %4, align 4
%39 = fmul float %37, %38
%40 = load float, ptr %3, align 4
%41 = fmul float %39, %40
%42 = fptosi float %41 to i32
%43 = call float @sin(i32 noundef %42)
%44 = call float @llvm.fmuladd.f32(float %34, float %43, float 5.000000e-01)
%45 = load float, ptr %3, align 4
%46 = fmul float %44, %45
store float %46, ptr %3, align 4
%47 = load float, ptr %3, align 4
ret float %47
}
declare float @sin(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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"}
|
; ModuleID = '/tmp/tmp7zgdujqr.c'
source_filename = "/tmp/tmp7zgdujqr.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"
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_UDP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"socket() failed: %s\0A.\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = 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
store i32 0, ptr %1, align 4
%3 = load i32, ptr @AF_INET, align 4
%4 = load i32, ptr @SOCK_DGRAM, align 4
%5 = load i32, ptr @IPPROTO_UDP, align 4
%6 = call i32 @socket(i32 noundef %3, i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %0
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr @errno, align 4
%11 = call ptr @strerror(i32 noundef %10)
%12 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %11)
%13 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %13, ptr %1, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %15, ptr %1, align 4
br label %16
16: ; preds = %14, %8
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(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/tmp7zgdujqr.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"
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_UDP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"socket() failed: %s\0A.\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = 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
store i32 0, ptr %1, align 4
%3 = load i32, ptr @AF_INET, align 4
%4 = load i32, ptr @SOCK_DGRAM, align 4
%5 = load i32, ptr @IPPROTO_UDP, align 4
%6 = call i32 @socket(i32 noundef %3, i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %0
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr @errno, align 4
%11 = call ptr @strerror(i32 noundef %10)
%12 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %11)
%13 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %13, ptr %1, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %15, ptr %1, align 4
br label %16
16: ; preds = %14, %8
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(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/tmpc_vfmbdg.c'
source_filename = "/tmp/tmpc_vfmbdg.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, i64 }
@.str = private unnamed_addr constant [13 x i8] c"Today is: %s\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"%02d/%02d/%04d %02d:%02d:%02d\0A\00", align 1
@daylight = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [31 x i8] c"Zone is %ld, its name is '%s'\0A\00", align 1
@timezone = dso_local global ptr null, align 8
@tzname = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [27 x i8] c"td = %ld, while tmp = %ld\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"Date: %s\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [18 x i8] c"Format='%s':\0A%s\0A\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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [64 x i8], align 16
%9 = alloca [128 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = 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
%13 = call i32 @time(ptr noundef %6)
%14 = call ptr @ctime(ptr noundef %6)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %14)
%16 = call ptr @localtime(ptr noundef %6)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds %struct.tm, ptr %17, i32 0, i32 0
%19 = load i32, ptr %18, align 8
%20 = add nsw i32 %19, 1
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds %struct.tm, ptr %21, i32 0, i32 1
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds %struct.tm, ptr %24, i32 0, i32 2
%26 = load i32, ptr %25, align 8
%27 = add nsw i32 %26, 1900
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds %struct.tm, ptr %28, i32 0, i32 3
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %7, align 8
%32 = getelementptr inbounds %struct.tm, ptr %31, i32 0, i32 4
%33 = load i32, ptr %32, align 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds %struct.tm, ptr %34, i32 0, i32 5
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %20, i32 noundef %23, i32 noundef %27, i32 noundef %30, i32 noundef %33, i32 noundef %36)
%38 = load ptr, ptr %7, align 8
%39 = call i32 @free(ptr noundef %38)
%40 = call ptr @gmtime(ptr noundef %6)
store ptr %40, ptr %7, align 8
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds %struct.tm, ptr %41, i32 0, i32 0
%43 = load i32, ptr %42, align 8
%44 = add nsw i32 %43, 1
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds %struct.tm, ptr %45, i32 0, i32 1
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds %struct.tm, ptr %48, i32 0, i32 2
%50 = load i32, ptr %49, align 8
%51 = add nsw i32 %50, 1900
%52 = load ptr, ptr %7, align 8
%53 = getelementptr inbounds %struct.tm, ptr %52, i32 0, i32 3
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds %struct.tm, ptr %55, i32 0, i32 4
%57 = load i32, ptr %56, align 8
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds %struct.tm, ptr %58, i32 0, i32 5
%60 = load i32, ptr %59, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %44, i32 noundef %47, i32 noundef %51, i32 noundef %54, i32 noundef %57, i32 noundef %60)
%62 = load ptr, ptr %7, align 8
%63 = call ptr @asctime(ptr noundef %62)
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %63)
%65 = load ptr, ptr %7, align 8
%66 = call i32 @free(ptr noundef %65)
%67 = call i32 (...) @tzset()
%68 = load i64, ptr @daylight, align 8
%69 = icmp ne i64 %68, 0
%70 = zext i1 %69 to i64
%71 = select i1 %69, i32 1, i32 0
store i32 %71, ptr %11, align 4
%72 = load ptr, ptr @timezone, align 8
%73 = load ptr, ptr @tzname, align 8
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds ptr, ptr %73, i64 %75
%77 = load ptr, ptr %76, align 8
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %72, ptr noundef %77)
%79 = call ptr @gmtime(ptr noundef %6)
store ptr %79, ptr %7, align 8
%80 = load ptr, ptr %7, align 8
%81 = call ptr @mktime(ptr noundef %80)
store ptr %81, ptr %12, align 8
%82 = load ptr, ptr %7, align 8
%83 = call i32 @free(ptr noundef %82)
%84 = load ptr, ptr %6, align 8
%85 = load ptr, ptr %12, align 8
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %84, ptr noundef %85)
%87 = call ptr @malloc(i32 noundef 32)
store ptr %87, ptr %7, align 8
%88 = load ptr, ptr %7, align 8
%89 = getelementptr inbounds %struct.tm, ptr %88, i32 0, i32 0
store i32 0, ptr %89, align 8
%90 = load ptr, ptr %7, align 8
%91 = getelementptr inbounds %struct.tm, ptr %90, i32 0, i32 1
store i32 1, ptr %91, align 4
%92 = load ptr, ptr %7, align 8
%93 = getelementptr inbounds %struct.tm, ptr %92, i32 0, i32 2
store i32 100, ptr %93, align 8
%94 = load ptr, ptr %7, align 8
%95 = getelementptr inbounds %struct.tm, ptr %94, i32 0, i32 3
store i32 0, ptr %95, align 4
%96 = load ptr, ptr %7, align 8
%97 = getelementptr inbounds %struct.tm, ptr %96, i32 0, i32 4
store i32 0, ptr %97, align 8
%98 = load ptr, ptr %7, align 8
%99 = getelementptr inbounds %struct.tm, ptr %98, i32 0, i32 5
store i32 0, ptr %99, align 4
%100 = load ptr, ptr %7, align 8
%101 = getelementptr inbounds %struct.tm, ptr %100, i32 0, i32 6
store i64 0, ptr %101, align 8
%102 = load ptr, ptr %7, align 8
%103 = call ptr @mktime(ptr noundef %102)
store ptr %103, ptr %6, align 8
%104 = call ptr @ctime(ptr noundef %6)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %104)
%106 = load ptr, ptr %7, align 8
%107 = call i32 @free(ptr noundef %106)
%108 = call ptr @malloc(i32 noundef 32)
store ptr %108, ptr %7, align 8
%109 = load ptr, ptr %7, align 8
%110 = getelementptr inbounds %struct.tm, ptr %109, i32 0, i32 0
store i32 3, ptr %110, align 8
%111 = load ptr, ptr %7, align 8
%112 = getelementptr inbounds %struct.tm, ptr %111, i32 0, i32 1
store i32 1, ptr %112, align 4
%113 = load ptr, ptr %7, align 8
%114 = getelementptr inbounds %struct.tm, ptr %113, i32 0, i32 2
store i32 100, ptr %114, align 8
%115 = load ptr, ptr %7, align 8
%116 = getelementptr inbounds %struct.tm, ptr %115, i32 0, i32 3
store i32 11, ptr %116, align 4
%117 = load ptr, ptr %7, align 8
%118 = getelementptr inbounds %struct.tm, ptr %117, i32 0, i32 4
store i32 59, ptr %118, align 8
%119 = load ptr, ptr %7, align 8
%120 = getelementptr inbounds %struct.tm, ptr %119, i32 0, i32 5
store i32 30, ptr %120, align 4
%121 = load ptr, ptr %7, align 8
%122 = getelementptr inbounds %struct.tm, ptr %121, i32 0, i32 6
store i64 0, ptr %122, align 8
%123 = load ptr, ptr %7, align 8
%124 = call ptr @mktime(ptr noundef %123)
store ptr %124, ptr %6, align 8
br label %125
125: ; preds = %136, %2
%126 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%127 = load i32, ptr @stdin, align 4
%128 = call ptr @fgets(ptr noundef %126, i32 noundef 128, i32 noundef %127)
%129 = icmp ne ptr %128, null
br i1 %129, label %130, label %144
130: ; preds = %125
%131 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%132 = call ptr @strchr(ptr noundef %131, i8 noundef signext 10)
store ptr %132, ptr %10, align 8
%133 = icmp ne ptr %132, null
br i1 %133, label %134, label %136
134: ; preds = %130
%135 = load ptr, ptr %10, align 8
store i8 0, ptr %135, align 1
br label %136
136: ; preds = %134, %130
%137 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%138 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%139 = load ptr, ptr %7, align 8
%140 = call i32 @strftime(ptr noundef %137, i32 noundef 64, ptr noundef %138, ptr noundef %139)
%141 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%142 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %141, ptr noundef %142)
br label %125, !llvm.loop !6
144: ; preds = %125
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @ctime(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @gmtime(ptr noundef) #1
declare ptr @asctime(ptr noundef) #1
declare i32 @tzset(...) #1
declare ptr @mktime(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @strftime(ptr noundef, i32 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/tmpc_vfmbdg.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, i64 }
@.str = private unnamed_addr constant [13 x i8] c"Today is: %s\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"%02d/%02d/%04d %02d:%02d:%02d\0A\00", align 1
@daylight = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [31 x i8] c"Zone is %ld, its name is '%s'\0A\00", align 1
@timezone = dso_local global ptr null, align 8
@tzname = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [27 x i8] c"td = %ld, while tmp = %ld\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"Date: %s\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [18 x i8] c"Format='%s':\0A%s\0A\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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [64 x i8], align 16
%9 = alloca [128 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = 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
%13 = call i32 @time(ptr noundef %6)
%14 = call ptr @ctime(ptr noundef %6)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %14)
%16 = call ptr @localtime(ptr noundef %6)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds %struct.tm, ptr %17, i32 0, i32 0
%19 = load i32, ptr %18, align 8
%20 = add nsw i32 %19, 1
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds %struct.tm, ptr %21, i32 0, i32 1
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds %struct.tm, ptr %24, i32 0, i32 2
%26 = load i32, ptr %25, align 8
%27 = add nsw i32 %26, 1900
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds %struct.tm, ptr %28, i32 0, i32 3
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %7, align 8
%32 = getelementptr inbounds %struct.tm, ptr %31, i32 0, i32 4
%33 = load i32, ptr %32, align 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds %struct.tm, ptr %34, i32 0, i32 5
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %20, i32 noundef %23, i32 noundef %27, i32 noundef %30, i32 noundef %33, i32 noundef %36)
%38 = load ptr, ptr %7, align 8
%39 = call i32 @free(ptr noundef %38)
%40 = call ptr @gmtime(ptr noundef %6)
store ptr %40, ptr %7, align 8
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds %struct.tm, ptr %41, i32 0, i32 0
%43 = load i32, ptr %42, align 8
%44 = add nsw i32 %43, 1
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds %struct.tm, ptr %45, i32 0, i32 1
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds %struct.tm, ptr %48, i32 0, i32 2
%50 = load i32, ptr %49, align 8
%51 = add nsw i32 %50, 1900
%52 = load ptr, ptr %7, align 8
%53 = getelementptr inbounds %struct.tm, ptr %52, i32 0, i32 3
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds %struct.tm, ptr %55, i32 0, i32 4
%57 = load i32, ptr %56, align 8
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds %struct.tm, ptr %58, i32 0, i32 5
%60 = load i32, ptr %59, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %44, i32 noundef %47, i32 noundef %51, i32 noundef %54, i32 noundef %57, i32 noundef %60)
%62 = load ptr, ptr %7, align 8
%63 = call ptr @asctime(ptr noundef %62)
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %63)
%65 = load ptr, ptr %7, align 8
%66 = call i32 @free(ptr noundef %65)
%67 = call i32 (...) @tzset()
%68 = load i64, ptr @daylight, align 8
%69 = icmp ne i64 %68, 0
%70 = zext i1 %69 to i64
%71 = select i1 %69, i32 1, i32 0
store i32 %71, ptr %11, align 4
%72 = load ptr, ptr @timezone, align 8
%73 = load ptr, ptr @tzname, align 8
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds ptr, ptr %73, i64 %75
%77 = load ptr, ptr %76, align 8
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %72, ptr noundef %77)
%79 = call ptr @gmtime(ptr noundef %6)
store ptr %79, ptr %7, align 8
%80 = load ptr, ptr %7, align 8
%81 = call ptr @mktime(ptr noundef %80)
store ptr %81, ptr %12, align 8
%82 = load ptr, ptr %7, align 8
%83 = call i32 @free(ptr noundef %82)
%84 = load ptr, ptr %6, align 8
%85 = load ptr, ptr %12, align 8
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %84, ptr noundef %85)
%87 = call ptr @malloc(i32 noundef 32)
store ptr %87, ptr %7, align 8
%88 = load ptr, ptr %7, align 8
%89 = getelementptr inbounds %struct.tm, ptr %88, i32 0, i32 0
store i32 0, ptr %89, align 8
%90 = load ptr, ptr %7, align 8
%91 = getelementptr inbounds %struct.tm, ptr %90, i32 0, i32 1
store i32 1, ptr %91, align 4
%92 = load ptr, ptr %7, align 8
%93 = getelementptr inbounds %struct.tm, ptr %92, i32 0, i32 2
store i32 100, ptr %93, align 8
%94 = load ptr, ptr %7, align 8
%95 = getelementptr inbounds %struct.tm, ptr %94, i32 0, i32 3
store i32 0, ptr %95, align 4
%96 = load ptr, ptr %7, align 8
%97 = getelementptr inbounds %struct.tm, ptr %96, i32 0, i32 4
store i32 0, ptr %97, align 8
%98 = load ptr, ptr %7, align 8
%99 = getelementptr inbounds %struct.tm, ptr %98, i32 0, i32 5
store i32 0, ptr %99, align 4
%100 = load ptr, ptr %7, align 8
%101 = getelementptr inbounds %struct.tm, ptr %100, i32 0, i32 6
store i64 0, ptr %101, align 8
%102 = load ptr, ptr %7, align 8
%103 = call ptr @mktime(ptr noundef %102)
store ptr %103, ptr %6, align 8
%104 = call ptr @ctime(ptr noundef %6)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %104)
%106 = load ptr, ptr %7, align 8
%107 = call i32 @free(ptr noundef %106)
%108 = call ptr @malloc(i32 noundef 32)
store ptr %108, ptr %7, align 8
%109 = load ptr, ptr %7, align 8
%110 = getelementptr inbounds %struct.tm, ptr %109, i32 0, i32 0
store i32 3, ptr %110, align 8
%111 = load ptr, ptr %7, align 8
%112 = getelementptr inbounds %struct.tm, ptr %111, i32 0, i32 1
store i32 1, ptr %112, align 4
%113 = load ptr, ptr %7, align 8
%114 = getelementptr inbounds %struct.tm, ptr %113, i32 0, i32 2
store i32 100, ptr %114, align 8
%115 = load ptr, ptr %7, align 8
%116 = getelementptr inbounds %struct.tm, ptr %115, i32 0, i32 3
store i32 11, ptr %116, align 4
%117 = load ptr, ptr %7, align 8
%118 = getelementptr inbounds %struct.tm, ptr %117, i32 0, i32 4
store i32 59, ptr %118, align 8
%119 = load ptr, ptr %7, align 8
%120 = getelementptr inbounds %struct.tm, ptr %119, i32 0, i32 5
store i32 30, ptr %120, align 4
%121 = load ptr, ptr %7, align 8
%122 = getelementptr inbounds %struct.tm, ptr %121, i32 0, i32 6
store i64 0, ptr %122, align 8
%123 = load ptr, ptr %7, align 8
%124 = call ptr @mktime(ptr noundef %123)
store ptr %124, ptr %6, align 8
%125 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%126 = load i32, ptr @stdin, align 4
%127 = call ptr @fgets(ptr noundef %125, i32 noundef 128, i32 noundef %126)
%128 = icmp ne ptr %127, null
br i1 %128, label %.lr.ph, label %146
.lr.ph: ; preds = %2
br label %129
129: ; preds = %.lr.ph, %135
%130 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%131 = call ptr @strchr(ptr noundef %130, i8 noundef signext 10)
store ptr %131, ptr %10, align 8
%132 = icmp ne ptr %131, null
br i1 %132, label %133, label %135
133: ; preds = %129
%134 = load ptr, ptr %10, align 8
store i8 0, ptr %134, align 1
br label %135
135: ; preds = %133, %129
%136 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%137 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%138 = load ptr, ptr %7, align 8
%139 = call i32 @strftime(ptr noundef %136, i32 noundef 64, ptr noundef %137, ptr noundef %138)
%140 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%141 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %140, ptr noundef %141)
%143 = load i32, ptr @stdin, align 4
%144 = call ptr @fgets(ptr noundef %125, i32 noundef 128, i32 noundef %143)
%145 = icmp ne ptr %144, null
br i1 %145, label %129, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %135
br label %146
146: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @ctime(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @gmtime(ptr noundef) #1
declare ptr @asctime(ptr noundef) #1
declare i32 @tzset(...) #1
declare ptr @mktime(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @strftime(ptr noundef, i32 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/tmplbo6766g.c'
source_filename = "/tmp/tmplbo6766g.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 [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recv_reply(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [1024 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [4 x i8], align 1
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
call void @llvm.memset.p0.i64(ptr align 1 %14, i8 0, i64 4, i1 false)
%15 = load i32, ptr %6, align 4
%16 = call ptr @fdopen(i32 noundef %15, ptr noundef @.str)
store ptr %16, ptr %11, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %4
store i32 -1, ptr %5, align 4
br label %81
19: ; preds = %4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %20
20: ; preds = %77, %19
%21 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%22 = load ptr, ptr %11, align 8
%23 = call i32 @fgets(ptr noundef %21, i32 noundef 1020, ptr noundef %22)
%24 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 3
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %28, label %37
28: ; preds = %20
%29 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %28
%34 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%35 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%36 = call i32 @strncpy(ptr noundef %34, ptr noundef %35, i32 noundef 3)
br label %37
37: ; preds = %33, %28, %20
%38 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 3
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 32
br i1 %41, label %42, label %56
42: ; preds = %37
%43 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %54
47: ; preds = %42
%48 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%49 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%50 = call i64 @strncmp(ptr noundef %48, ptr noundef %49, i32 noundef 3)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %47
store i32 1, ptr %13, align 4
br label %53
53: ; preds = %52, %47
br label %55
54: ; preds = %42
store i32 1, ptr %13, align 4
br label %55
55: ; preds = %54, %53
br label %56
56: ; preds = %55, %37
%57 = load ptr, ptr %7, align 8
%58 = load i32, ptr %12, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%62 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%63 = call i64 @strlen(ptr noundef %62)
%64 = call i32 @memcpy(ptr noundef %60, ptr noundef %61, i64 noundef %63)
%65 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%66 = call i64 @strlen(ptr noundef %65)
%67 = load i32, ptr %12, align 4
%68 = sext i32 %67 to i64
%69 = add nsw i64 %68, %66
%70 = trunc i64 %69 to i32
store i32 %70, ptr %12, align 4
br label %71
71: ; preds = %56
%72 = load i32, ptr %13, align 4
%73 = icmp ne i32 %72, 1
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load i32, ptr %12, align 4
%76 = icmp slt i32 %75, 1022
br label %77
77: ; preds = %74, %71
%78 = phi i1 [ false, %71 ], [ %76, %74 ]
br i1 %78, label %20, label %79, !llvm.loop !6
79: ; preds = %77
%80 = load i32, ptr %12, align 4
store i32 %80, ptr %5, align 4
br label %81
81: ; preds = %79, %18
%82 = load i32, ptr %5, align 4
ret i32 %82
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr 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 nounwind willreturn memory(argmem: write) }
attributes #2 = { "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/tmplbo6766g.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 [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recv_reply(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [1024 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [4 x i8], align 1
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
call void @llvm.memset.p0.i64(ptr align 1 %14, i8 0, i64 4, i1 false)
%15 = load i32, ptr %6, align 4
%16 = call ptr @fdopen(i32 noundef %15, ptr noundef @.str)
store ptr %16, ptr %11, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %4
store i32 -1, ptr %5, align 4
br label %81
19: ; preds = %4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %20
20: ; preds = %77, %19
%21 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%22 = load ptr, ptr %11, align 8
%23 = call i32 @fgets(ptr noundef %21, i32 noundef 1020, ptr noundef %22)
%24 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 3
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %28, label %37
28: ; preds = %20
%29 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %28
%34 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%35 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%36 = call i32 @strncpy(ptr noundef %34, ptr noundef %35, i32 noundef 3)
br label %37
37: ; preds = %33, %28, %20
%38 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 3
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 32
br i1 %41, label %42, label %56
42: ; preds = %37
%43 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %54
47: ; preds = %42
%48 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%49 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%50 = call i64 @strncmp(ptr noundef %48, ptr noundef %49, i32 noundef 3)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %47
store i32 1, ptr %13, align 4
br label %53
53: ; preds = %52, %47
br label %55
54: ; preds = %42
store i32 1, ptr %13, align 4
br label %55
55: ; preds = %54, %53
br label %56
56: ; preds = %55, %37
%57 = load ptr, ptr %7, align 8
%58 = load i32, ptr %12, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%62 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%63 = call i64 @strlen(ptr noundef %62)
%64 = call i32 @memcpy(ptr noundef %60, ptr noundef %61, i64 noundef %63)
%65 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%66 = call i64 @strlen(ptr noundef %65)
%67 = load i32, ptr %12, align 4
%68 = sext i32 %67 to i64
%69 = add nsw i64 %68, %66
%70 = trunc i64 %69 to i32
store i32 %70, ptr %12, align 4
br label %71
71: ; preds = %56
%72 = load i32, ptr %13, align 4
%73 = icmp ne i32 %72, 1
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load i32, ptr %12, align 4
%76 = icmp slt i32 %75, 1022
br label %77
77: ; preds = %74, %71
%78 = phi i1 [ false, %71 ], [ %76, %74 ]
br i1 %78, label %20, label %79, !llvm.loop !6
79: ; preds = %77
%80 = load i32, ptr %12, align 4
store i32 %80, ptr %5, align 4
br label %81
81: ; preds = %79, %18
%82 = load i32, ptr %5, align 4
ret i32 %82
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr 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 nounwind willreturn memory(argmem: write) }
attributes #2 = { "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/tmpre15ktig.c'
source_filename = "/tmp/tmpre15ktig.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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_call_async(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i32, ptr @EINVAL, align 4
%14 = sub nsw i32 0, %13
ret i32 %14
}
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/tmpre15ktig.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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_call_async(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i32, ptr @EINVAL, align 4
%14 = sub nsw i32 0, %13
ret i32 %14
}
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/tmpp943yp13.c'
source_filename = "/tmp/tmpp943yp13.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 @get_value(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %9, align 4
%15 = load ptr, ptr %8, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store ptr null, ptr %4, align 8
br label %160
18: ; preds = %3
br label %19
19: ; preds = %158, %18
br label %20
20: ; preds = %32, %19
%21 = load ptr, ptr %8, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = load ptr, ptr %8, align 8
%27 = load i8, ptr %26, align 1
%28 = call i64 @isspace(i8 noundef signext %27)
%29 = icmp ne i64 %28, 0
br label %30
30: ; preds = %25, %20
%31 = phi i1 [ false, %20 ], [ %29, %25 ]
br i1 %31, label %32, label %35
32: ; preds = %30
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %8, align 8
br label %20, !llvm.loop !6
35: ; preds = %30
%36 = load ptr, ptr %5, align 8
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %9, align 4
%39 = call i32 @cstrncasecmp(ptr noundef %36, ptr noundef %37, i32 noundef %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %137, label %41
41: ; preds = %35
%42 = load ptr, ptr %8, align 8
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 61
br i1 %48, label %49, label %137
49: ; preds = %41
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
store i32 0, ptr %11, align 4
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %9, 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
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp eq i32 %58, 34
br i1 %59, label %63, label %60
60: ; preds = %49
%61 = load i32, ptr %10, align 4
%62 = icmp eq i32 %61, 39
br i1 %62, label %63, label %98
63: ; preds = %60, %49
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
br label %66
66: ; preds = %85, %63
%67 = load ptr, ptr %8, align 8
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %83
74: ; preds = %66
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr %9, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = load i32, ptr %10, align 4
%82 = icmp ne i32 %80, %81
br label %83
83: ; preds = %74, %66
%84 = phi i1 [ false, %66 ], [ %82, %74 ]
br i1 %84, label %85, label %97
85: ; preds = %83
%86 = load ptr, ptr %8, align 8
%87 = load i32, ptr %9, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %9, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds i8, ptr %86, i64 %89
%91 = load i8, ptr %90, align 1
%92 = load ptr, ptr %7, align 8
%93 = load i32, ptr %11, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %11, align 4
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i8, ptr %92, i64 %95
store i8 %91, ptr %96, align 1
br label %66, !llvm.loop !8
97: ; preds = %83
br label %131
98: ; preds = %60
br label %99
99: ; preds = %118, %98
%100 = load ptr, ptr %8, align 8
%101 = load i32, ptr %9, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %116
107: ; preds = %99
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %9, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = call i64 @isspace(i8 noundef signext %112)
%114 = icmp ne i64 %113, 0
%115 = xor i1 %114, true
br label %116
116: ; preds = %107, %99
%117 = phi i1 [ false, %99 ], [ %115, %107 ]
br i1 %117, label %118, label %130
118: ; preds = %116
%119 = load ptr, ptr %8, align 8
%120 = load i32, ptr %9, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %9, align 4
%122 = sext i32 %120 to i64
%123 = getelementptr inbounds i8, ptr %119, i64 %122
%124 = load i8, ptr %123, align 1
%125 = load ptr, ptr %7, align 8
%126 = load i32, ptr %11, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %11, align 4
%128 = sext i32 %126 to i64
%129 = getelementptr inbounds i8, ptr %125, i64 %128
store i8 %124, ptr %129, align 1
br label %99, !llvm.loop !9
130: ; preds = %116
br label %131
131: ; preds = %130, %97
%132 = load ptr, ptr %7, align 8
%133 = load i32, ptr %11, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %132, i64 %134
store i8 0, ptr %135, align 1
%136 = load ptr, ptr %7, align 8
store ptr %136, ptr %4, align 8
br label %160
137: ; preds = %41, %35
br label %138
138: ; preds = %151, %137
%139 = load ptr, ptr %8, align 8
%140 = load i8, ptr %139, align 1
%141 = sext i8 %140 to i32
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %149
143: ; preds = %138
%144 = load ptr, ptr %8, align 8
%145 = load i8, ptr %144, align 1
%146 = call i64 @isspace(i8 noundef signext %145)
%147 = icmp ne i64 %146, 0
%148 = xor i1 %147, true
br label %149
149: ; preds = %143, %138
%150 = phi i1 [ false, %138 ], [ %148, %143 ]
br i1 %150, label %151, label %154
151: ; preds = %149
%152 = load ptr, ptr %8, align 8
%153 = getelementptr inbounds i8, ptr %152, i32 1
store ptr %153, ptr %8, align 8
br label %138, !llvm.loop !10
154: ; preds = %149
%155 = load ptr, ptr %8, align 8
%156 = load i8, ptr %155, align 1
%157 = icmp ne i8 %156, 0
br i1 %157, label %158, label %159
158: ; preds = %154
br label %19
159: ; preds = %154
store ptr null, ptr %4, align 8
br label %160
160: ; preds = %159, %131, %17
%161 = load ptr, ptr %4, align 8
ret ptr %161
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @cstrncasecmp(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"}
!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/tmpp943yp13.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 @get_value(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %9, align 4
%15 = load ptr, ptr %8, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store ptr null, ptr %4, align 8
br label %159
18: ; preds = %3
br label %19
19: ; preds = %154, %18
br label %20
20: ; preds = %32, %19
%21 = load ptr, ptr %8, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = load ptr, ptr %8, align 8
%27 = load i8, ptr %26, align 1
%28 = call i64 @isspace(i8 noundef signext %27)
%29 = icmp ne i64 %28, 0
br label %30
30: ; preds = %25, %20
%31 = phi i1 [ false, %20 ], [ %29, %25 ]
br i1 %31, label %32, label %35
32: ; preds = %30
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %8, align 8
br label %20, !llvm.loop !6
35: ; preds = %30
%36 = load ptr, ptr %5, align 8
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %9, align 4
%39 = call i32 @cstrncasecmp(ptr noundef %36, ptr noundef %37, i32 noundef %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %137, label %41
41: ; preds = %35
%42 = load ptr, ptr %8, align 8
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 61
br i1 %48, label %49, label %137
49: ; preds = %41
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
store i32 0, ptr %11, align 4
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %9, 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
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp eq i32 %58, 34
br i1 %59, label %63, label %60
60: ; preds = %49
%61 = load i32, ptr %10, align 4
%62 = icmp eq i32 %61, 39
br i1 %62, label %63, label %98
63: ; preds = %60, %49
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
br label %66
66: ; preds = %85, %63
%67 = load ptr, ptr %8, align 8
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %83
74: ; preds = %66
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr %9, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = load i32, ptr %10, align 4
%82 = icmp ne i32 %80, %81
br label %83
83: ; preds = %74, %66
%84 = phi i1 [ false, %66 ], [ %82, %74 ]
br i1 %84, label %85, label %97
85: ; preds = %83
%86 = load ptr, ptr %8, align 8
%87 = load i32, ptr %9, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %9, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds i8, ptr %86, i64 %89
%91 = load i8, ptr %90, align 1
%92 = load ptr, ptr %7, align 8
%93 = load i32, ptr %11, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %11, align 4
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i8, ptr %92, i64 %95
store i8 %91, ptr %96, align 1
br label %66, !llvm.loop !8
97: ; preds = %83
br label %131
98: ; preds = %60
br label %99
99: ; preds = %118, %98
%100 = load ptr, ptr %8, align 8
%101 = load i32, ptr %9, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %116
107: ; preds = %99
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %9, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = call i64 @isspace(i8 noundef signext %112)
%114 = icmp ne i64 %113, 0
%115 = xor i1 %114, true
br label %116
116: ; preds = %107, %99
%117 = phi i1 [ false, %99 ], [ %115, %107 ]
br i1 %117, label %118, label %130
118: ; preds = %116
%119 = load ptr, ptr %8, align 8
%120 = load i32, ptr %9, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %9, align 4
%122 = sext i32 %120 to i64
%123 = getelementptr inbounds i8, ptr %119, i64 %122
%124 = load i8, ptr %123, align 1
%125 = load ptr, ptr %7, align 8
%126 = load i32, ptr %11, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %11, align 4
%128 = sext i32 %126 to i64
%129 = getelementptr inbounds i8, ptr %125, i64 %128
store i8 %124, ptr %129, align 1
br label %99, !llvm.loop !9
130: ; preds = %116
br label %131
131: ; preds = %130, %97
%132 = load ptr, ptr %7, align 8
%133 = load i32, ptr %11, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %132, i64 %134
store i8 0, ptr %135, align 1
%136 = load ptr, ptr %7, align 8
store ptr %136, ptr %4, align 8
br label %159
137: ; preds = %41, %35
br label %138
138: ; preds = %151, %137
%139 = load ptr, ptr %8, align 8
%140 = load i8, ptr %139, align 1
%141 = sext i8 %140 to i32
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %149
143: ; preds = %138
%144 = load ptr, ptr %8, align 8
%145 = load i8, ptr %144, align 1
%146 = call i64 @isspace(i8 noundef signext %145)
%147 = icmp ne i64 %146, 0
%148 = xor i1 %147, true
br label %149
149: ; preds = %143, %138
%150 = phi i1 [ false, %138 ], [ %148, %143 ]
br i1 %150, label %151, label %154
151: ; preds = %149
%152 = load ptr, ptr %8, align 8
%153 = getelementptr inbounds i8, ptr %152, i32 1
store ptr %153, ptr %8, align 8
br label %138, !llvm.loop !10
154: ; preds = %149
%155 = load ptr, ptr %8, align 8
%156 = load i8, ptr %155, align 1
%157 = icmp ne i8 %156, 0
br i1 %157, label %19, label %158
158: ; preds = %154
store ptr null, ptr %4, align 8
br label %159
159: ; preds = %158, %131, %17
%160 = load ptr, ptr %4, align 8
ret ptr %160
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @cstrncasecmp(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpg0fp5_hv.c'
source_filename = "/tmp/tmpg0fp5_hv.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 @julian_display_yyyy_mm_dd(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call ptr @julian_to_yyyy_mm_dd(double noundef %3)
ret ptr %4
}
declare ptr @julian_to_yyyy_mm_dd(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/tmpg0fp5_hv.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 @julian_display_yyyy_mm_dd(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call ptr @julian_to_yyyy_mm_dd(double noundef %3)
ret ptr %4
}
declare ptr @julian_to_yyyy_mm_dd(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/tmpowqzk7wy.c'
source_filename = "/tmp/tmpowqzk7wy.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 @validate_name(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
store i64 %7, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %21
11: ; preds = %1
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = call i64 @isdigit(i8 noundef signext %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16, %11, %1
store i32 0, ptr %2, align 4
br label %40
22: ; preds = %16
br label %23
23: ; preds = %30, %22
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = call i32 @valid_name_char(i8 noundef signext %25)
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %23
store i32 0, ptr %2, align 4
br label %40
29: ; preds = %23
br label %30
30: ; preds = %29
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %5, align 8
%33 = load ptr, ptr %3, align 8
%34 = ptrtoint ptr %32 to i64
%35 = ptrtoint ptr %33 to i64
%36 = sub i64 %34, %35
%37 = load i64, ptr %4, align 8
%38 = icmp ult i64 %36, %37
br i1 %38, label %23, label %39, !llvm.loop !6
39: ; preds = %30
store i32 1, ptr %2, align 4
br label %40
40: ; preds = %39, %28, %21
%41 = load i32, ptr %2, align 4
ret i32 %41
}
declare i64 @strlen(ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @valid_name_char(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/tmpowqzk7wy.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 @validate_name(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
store i64 %7, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %21
11: ; preds = %1
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = call i64 @isdigit(i8 noundef signext %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16, %11, %1
store i32 0, ptr %2, align 4
br label %40
22: ; preds = %16
br label %23
23: ; preds = %30, %22
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = call i32 @valid_name_char(i8 noundef signext %25)
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %23
store i32 0, ptr %2, align 4
br label %40
29: ; preds = %23
br label %30
30: ; preds = %29
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %5, align 8
%33 = load ptr, ptr %3, align 8
%34 = ptrtoint ptr %32 to i64
%35 = ptrtoint ptr %33 to i64
%36 = sub i64 %34, %35
%37 = load i64, ptr %4, align 8
%38 = icmp ult i64 %36, %37
br i1 %38, label %23, label %39, !llvm.loop !6
39: ; preds = %30
store i32 1, ptr %2, align 4
br label %40
40: ; preds = %39, %28, %21
%41 = load i32, ptr %2, align 4
ret i32 %41
}
declare i64 @strlen(ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @valid_name_char(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/tmpi7w76c8u.c'
source_filename = "/tmp/tmpi7w76c8u.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 @SSIG0(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 @ROTR(i32 noundef %3, i32 noundef 7, i32 noundef 32)
%5 = load i32, ptr %2, align 4
%6 = call i32 @ROTR(i32 noundef %5, i32 noundef 18, i32 noundef 32)
%7 = xor i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = ashr i32 %8, 3
%10 = xor i32 %7, %9
ret i32 %10
}
declare i32 @ROTR(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/tmpi7w76c8u.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 @SSIG0(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 @ROTR(i32 noundef %3, i32 noundef 7, i32 noundef 32)
%5 = load i32, ptr %2, align 4
%6 = call i32 @ROTR(i32 noundef %5, i32 noundef 18, i32 noundef 32)
%7 = xor i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = ashr i32 %8, 3
%10 = xor i32 %7, %9
ret i32 %10
}
declare i32 @ROTR(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/tmpvxbkw9rs.c'
source_filename = "/tmp/tmpvxbkw9rs.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/tmpvxbkw9rs.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/tmp25ahzn47.c'
source_filename = "/tmp/tmp25ahzn47.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"%d%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = 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 i32, align 4
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %41, %0
%7 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %13, %10
%17 = phi i1 [ true, %10 ], [ %15, %13 ]
br label %18
18: ; preds = %16, %6
%19 = phi i1 [ false, %6 ], [ %17, %16 ]
br i1 %19, label %20, label %45
20: ; preds = %18
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i32, ptr %2, align 4
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %3, align 4
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %5, align 4
store i32 %27, ptr %3, align 4
br label %28
28: ; preds = %24, %20
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %32, %28
%30 = load i32, ptr %3, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %41
32: ; preds = %29
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %2, align 4
%35 = srem i32 %34, %33
store i32 %35, ptr %2, align 4
%36 = load i32, ptr %2, align 4
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %3, align 4
store i32 %37, ptr %2, align 4
%38 = load i32, ptr %5, align 4
store i32 %38, ptr %3, align 4
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
br label %29, !llvm.loop !6
41: ; preds = %29
%42 = load i32, ptr %2, align 4
%43 = load i32, ptr %4, align 4
%44 = call i32 @printf(ptr noundef @.str.1, i32 noundef %42, i32 noundef %43)
br label %6, !llvm.loop !8
45: ; preds = %18
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp25ahzn47.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"%d%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = 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 i32, align 4
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %42, %0
%7 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %13, %10
%17 = phi i1 [ true, %10 ], [ %15, %13 ]
br label %18
18: ; preds = %16, %6
%19 = phi i1 [ false, %6 ], [ %17, %16 ]
br i1 %19, label %20, label %46
20: ; preds = %18
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i32, ptr %2, align 4
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %3, align 4
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %5, align 4
store i32 %27, ptr %3, align 4
br label %28
28: ; preds = %24, %20
store i32 0, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %.lr.ph, label %42
.lr.ph: ; preds = %28
br label %31
31: ; preds = %.lr.ph, %31
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %2, align 4
%34 = srem i32 %33, %32
store i32 %34, ptr %2, align 4
%35 = load i32, ptr %2, align 4
store i32 %35, ptr %5, align 4
%36 = load i32, ptr %3, align 4
store i32 %36, ptr %2, align 4
%37 = load i32, ptr %5, align 4
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %42
42: ; preds = %._crit_edge, %28
%43 = load i32, ptr %2, align 4
%44 = load i32, ptr %4, align 4
%45 = call i32 @printf(ptr noundef @.str.1, i32 noundef %43, i32 noundef %44)
br label %6, !llvm.loop !8
46: ; preds = %18
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpwjhr1mzm.c'
source_filename = "/tmp/tmpwjhr1mzm.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/tmpwjhr1mzm.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/tmpqefri0ll.c'
source_filename = "/tmp/tmpqefri0ll.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/tmpqefri0ll.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/tmpd7onwar2.c'
source_filename = "/tmp/tmpd7onwar2.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"
@ENOENT = dso_local global i64 0, align 8
@O_WRONLY = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!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/tmpd7onwar2.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"
@ENOENT = dso_local global i64 0, align 8
@O_WRONLY = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!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/tmpsyb0bl78.c'
source_filename = "/tmp/tmpsyb0bl78.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 @rand_int64() #0 {
%1 = call i64 (...) @rand()
%2 = trunc i64 %1 to i32
%3 = shl i32 %2, 32
%4 = call i64 (...) @rand()
%5 = trunc i64 %4 to i32
%6 = or i32 %3, %5
ret i32 %6
}
declare i64 @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/tmpsyb0bl78.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 @rand_int64() #0 {
%1 = call i64 (...) @rand()
%2 = trunc i64 %1 to i32
%3 = shl i32 %2, 32
%4 = call i64 (...) @rand()
%5 = trunc i64 %4 to i32
%6 = or i32 %3, %5
ret i32 %6
}
declare i64 @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/tmp7q0hyq9r.c'
source_filename = "/tmp/tmp7q0hyq9r.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 @prepend_string(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 ptr, align 8
%9 = 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
%10 = load ptr, ptr %7, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %9, align 8
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = load i64, ptr %9, align 8
%15 = sub i64 0, %14
%16 = getelementptr inbounds i8, ptr %13, i64 %15
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp ult ptr %17, %18
br i1 %19, label %20, label %21
20: ; preds = %3
store i32 0, ptr %4, align 4
br label %30
21: ; preds = %3
%22 = load ptr, ptr %8, align 8
%23 = load ptr, ptr %7, align 8
%24 = load i64, ptr %9, align 8
%25 = call i32 @memcpy(ptr noundef %22, ptr noundef %23, i64 noundef %24)
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
store ptr %26, ptr %27, align 8
%28 = load i64, ptr %9, align 8
%29 = trunc i64 %28 to i32
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %21, %20
%31 = load i32, ptr %4, align 4
ret i32 %31
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7q0hyq9r.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 @prepend_string(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 ptr, align 8
%9 = 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
%10 = load ptr, ptr %7, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %9, align 8
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = load i64, ptr %9, align 8
%15 = sub i64 0, %14
%16 = getelementptr inbounds i8, ptr %13, i64 %15
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp ult ptr %17, %18
br i1 %19, label %20, label %21
20: ; preds = %3
store i32 0, ptr %4, align 4
br label %30
21: ; preds = %3
%22 = load ptr, ptr %8, align 8
%23 = load ptr, ptr %7, align 8
%24 = load i64, ptr %9, align 8
%25 = call i32 @memcpy(ptr noundef %22, ptr noundef %23, i64 noundef %24)
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
store ptr %26, ptr %27, align 8
%28 = load i64, ptr %9, align 8
%29 = trunc i64 %28 to i32
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %21, %20
%31 = load i32, ptr %4, align 4
ret i32 %31
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr 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"}
|
; ModuleID = '/tmp/tmp1880qrqr.c'
source_filename = "/tmp/tmp1880qrqr.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 [31 x i8] c"Enter a number between 1 - 30:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\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 0, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %18, %0
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 5
br i1 %6, label %7, label %22
7: ; preds = %4
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %10
10: ; preds = %15, %7
%11 = load i32, ptr %2, align 4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = call i32 @printf(ptr noundef @.str.2)
br label %15
15: ; preds = %13
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %2, align 4
br label %10, !llvm.loop !6
18: ; preds = %10
%19 = call i32 @printf(ptr noundef @.str.3)
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
br label %4, !llvm.loop !8
22: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1880qrqr.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 [31 x i8] c"Enter a number between 1 - 30:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\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 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 5
br i1 %5, label %.lr.ph2, label %24
.lr.ph2: ; preds = %0
br label %6
6: ; preds = %.lr.ph2, %18
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %.lr.ph, label %18
.lr.ph: ; preds = %6
br label %11
11: ; preds = %.lr.ph, %13
%12 = call i32 @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %6
%19 = call i32 @printf(ptr noundef @.str.3)
%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 ne i32 %22, 5
br i1 %23, label %6, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %18
br label %24
24: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(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}
|
; ModuleID = '/tmp/tmphbgh6wmn.c'
source_filename = "/tmp/tmphbgh6wmn.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/tmphbgh6wmn.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/tmpysfbnmec.c'
source_filename = "/tmp/tmpysfbnmec.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 @path2() #0 {
%1 = call i32 (...) @target()
ret void
}
declare i32 @target(...) #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/tmpysfbnmec.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 @path2() #0 {
%1 = call i32 (...) @target()
ret void
}
declare i32 @target(...) #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/tmpdbtwmph0.c'
source_filename = "/tmp/tmpdbtwmph0.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 @reverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %15, %1
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %3, align 4
%10 = sext i32 %8 to i64
%11 = getelementptr inbounds i8, ptr %7, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %6
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = call ptr @malloc(i32 noundef %19)
store ptr %20, ptr %5, align 8
br label %21
21: ; preds = %38, %16
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %41
25: ; preds = %21
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %4, align 4
%29 = sub nsw i32 %27, %28
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %26, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 %33, ptr %37, align 1
br label %38
38: ; preds = %25
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
br label %21, !llvm.loop !8
41: ; preds = %21
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 0, ptr %45, align 1
%46 = load ptr, ptr %5, align 8
ret ptr %46
}
declare ptr @malloc(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdbtwmph0.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 @reverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %6, %1
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %3, align 4
%10 = sext i32 %8 to i64
%11 = getelementptr inbounds i8, ptr %7, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %6, label %15, !llvm.loop !6
15: ; preds = %6
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = call ptr @malloc(i32 noundef %18)
store ptr %19, ptr %5, align 8
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %42
.lr.ph: ; preds = %15
br label %23
23: ; preds = %.lr.ph, %36
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = sub nsw i32 %25, %26
%28 = sub nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %24, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 %31, ptr %35, align 1
br label %36
36: ; preds = %23
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %23, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %15
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
store i8 0, ptr %46, align 1
%47 = load ptr, ptr %5, align 8
ret ptr %47
}
declare ptr @malloc(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}
|
; ModuleID = '/tmp/tmpb_hlb3by.c'
source_filename = "/tmp/tmpb_hlb3by.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 @isPalindrome(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %53
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 9
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 1, ptr %2, align 4
br label %53
16: ; preds = %12, %9
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 100
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load i32, ptr %3, align 4
%21 = srem i32 %20, 11
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 1, ptr %2, align 4
br label %53
24: ; preds = %19, %16
%25 = load i32, ptr %3, align 4
%26 = srem i32 %25, 10
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 0, ptr %2, align 4
br label %53
29: ; preds = %24
store i32 0, ptr %4, align 4
%30 = load i32, ptr %3, align 4
store i32 %30, ptr %5, align 4
br label %31
31: ; preds = %46, %29
%32 = load i32, ptr %5, align 4
%33 = icmp sge i32 %32, 1
br i1 %33, label %34, label %47
34: ; preds = %31
%35 = load i32, ptr %5, align 4
%36 = srem i32 %35, 10
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, %36
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %5, align 4
%40 = sdiv i32 %39, 10
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp sge i32 %41, 1
br i1 %42, label %43, label %46
43: ; preds = %34
%44 = load i32, ptr %4, align 4
%45 = mul nsw i32 %44, 10
store i32 %45, ptr %4, align 4
br label %46
46: ; preds = %43, %34
br label %31, !llvm.loop !6
47: ; preds = %31
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp eq i32 %48, %49
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 1, ptr %2, align 4
br label %53
52: ; preds = %47
store i32 0, ptr %2, align 4
br label %53
53: ; preds = %52, %51, %28, %23, %15, %8
%54 = load i32, ptr %2, align 4
ret i32 %54
}
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/tmpb_hlb3by.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 @isPalindrome(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %54
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 9
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 1, ptr %2, align 4
br label %54
16: ; preds = %12, %9
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 100
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load i32, ptr %3, align 4
%21 = srem i32 %20, 11
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 1, ptr %2, align 4
br label %54
24: ; preds = %19, %16
%25 = load i32, ptr %3, align 4
%26 = srem i32 %25, 10
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 0, ptr %2, align 4
br label %54
29: ; preds = %24
store i32 0, ptr %4, align 4
%30 = load i32, ptr %3, align 4
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp sge i32 %31, 1
br i1 %32, label %.lr.ph, label %48
.lr.ph: ; preds = %29
br label %33
33: ; preds = %.lr.ph, %45
%34 = load i32, ptr %5, align 4
%35 = srem i32 %34, 10
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, %35
store i32 %37, ptr %4, align 4
%38 = load i32, ptr %5, align 4
%39 = sdiv i32 %38, 10
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp sge i32 %40, 1
br i1 %41, label %42, label %45
42: ; preds = %33
%43 = load i32, ptr %4, align 4
%44 = mul nsw i32 %43, 10
store i32 %44, ptr %4, align 4
br label %45
45: ; preds = %42, %33
%46 = load i32, ptr %5, align 4
%47 = icmp sge i32 %46, 1
br i1 %47, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %48
48: ; preds = %._crit_edge, %29
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 1, ptr %2, align 4
br label %54
53: ; preds = %48
store i32 0, ptr %2, align 4
br label %54
54: ; preds = %53, %52, %28, %23, %15, %8
%55 = load i32, ptr %2, align 4
ret i32 %55
}
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/tmpz1y7k49z.c'
source_filename = "/tmp/tmpz1y7k49z.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 @prout(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 @proutn(ptr noundef %3)
%5 = call i32 @skip(i32 noundef 1)
ret void
}
declare i32 @proutn(ptr noundef) #1
declare i32 @skip(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/tmpz1y7k49z.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 @prout(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 @proutn(ptr noundef %3)
%5 = call i32 @skip(i32 noundef 1)
ret void
}
declare i32 @proutn(ptr noundef) #1
declare i32 @skip(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/tmp64kcmp1t.c'
source_filename = "/tmp/tmp64kcmp1t.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 [38 x i8] c"Reading sense from args to buffer...\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"\0A\0AInvalid character '%c' (%d) in sequence\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Missing a nibble!\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Decoding sense...\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 [256 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = 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
store i32 0, ptr %7, align 4
%12 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %9, align 4
store i32 1, ptr %8, align 4
br label %13
13: ; preds = %133, %2
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %136
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
store ptr %22, ptr %10, align 8
br label %23
23: ; preds = %129, %17
%24 = load ptr, ptr %10, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %132
28: ; preds = %23
%29 = load ptr, ptr %10, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp sge i32 %31, 48
br i1 %32, label %33, label %44
33: ; preds = %28
%34 = load ptr, ptr %10, align 8
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp sle i32 %36, 57
br i1 %37, label %38, label %44
38: ; preds = %33
%39 = load ptr, ptr %10, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = sub nsw i32 %41, 48
%43 = trunc i32 %42 to i8
store i8 %43, ptr %11, align 1
br label %105
44: ; preds = %33, %28
%45 = load ptr, ptr %10, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp sge i32 %47, 97
br i1 %48, label %49, label %61
49: ; preds = %44
%50 = load ptr, ptr %10, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp sle i32 %52, 102
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = load ptr, ptr %10, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = sub nsw i32 %57, 97
%59 = add nsw i32 %58, 10
%60 = trunc i32 %59 to i8
store i8 %60, ptr %11, align 1
br label %104
61: ; preds = %49, %44
%62 = load ptr, ptr %10, align 8
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp sge i32 %64, 65
br i1 %65, label %66, label %78
66: ; preds = %61
%67 = load ptr, ptr %10, align 8
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp sle i32 %69, 70
br i1 %70, label %71, label %78
71: ; preds = %66
%72 = load ptr, ptr %10, align 8
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = sub nsw i32 %74, 65
%76 = add nsw i32 %75, 10
%77 = trunc i32 %76 to i8
store i8 %77, ptr %11, align 1
br label %103
78: ; preds = %66, %61
%79 = load ptr, ptr %10, align 8
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 32
br i1 %82, label %93, label %83
83: ; preds = %78
%84 = load ptr, ptr %10, align 8
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 43
br i1 %87, label %93, label %88
88: ; preds = %83
%89 = load ptr, ptr %10, align 8
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 9
br i1 %92, label %93, label %94
93: ; preds = %88, %83, %78
br label %129
94: ; preds = %88
%95 = load i32, ptr @stderr, align 4
%96 = load ptr, ptr %10, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = load ptr, ptr %10, align 8
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %95, ptr noundef @.str.1, i32 noundef %98, i32 noundef %101)
store i32 1, ptr %3, align 4
br label %147
103: ; preds = %71
br label %104
104: ; preds = %103, %54
br label %105
105: ; preds = %104, %38
%106 = load i32, ptr %9, align 4
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %116
108: ; preds = %105
%109 = load i8, ptr %11, align 1
%110 = zext i8 %109 to i32
%111 = shl i32 %110, 4
%112 = trunc i32 %111 to i8
%113 = load i32, ptr %7, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %114
store i8 %112, ptr %115, align 1
store i32 0, ptr %9, align 4
br label %128
116: ; preds = %105
%117 = load i8, ptr %11, align 1
%118 = zext i8 %117 to i32
%119 = load i32, ptr %7, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %120
%122 = load i8, ptr %121, align 1
%123 = zext i8 %122 to i32
%124 = or i32 %123, %118
%125 = trunc i32 %124 to i8
store i8 %125, ptr %121, align 1
store i32 1, ptr %9, align 4
%126 = load i32, ptr %7, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %7, align 4
br label %128
128: ; preds = %116, %108
br label %129
129: ; preds = %128, %93
%130 = load ptr, ptr %10, align 8
%131 = getelementptr inbounds i8, ptr %130, i32 1
store ptr %131, ptr %10, align 8
br label %23, !llvm.loop !6
132: ; preds = %23
br label %133
133: ; preds = %132
%134 = load i32, ptr %8, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %8, align 4
br label %13, !llvm.loop !8
136: ; preds = %13
%137 = load i32, ptr %9, align 4
%138 = icmp ne i32 %137, 0
br i1 %138, label %142, label %139
139: ; preds = %136
%140 = load i32, ptr @stderr, align 4
%141 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %140, ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %147
142: ; preds = %136
%143 = call i32 @printf(ptr noundef @.str.3)
%144 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%145 = load i32, ptr %7, align 4
%146 = call i32 @sense_dump(ptr noundef %144, i32 noundef %145)
store i32 0, ptr %3, align 4
br label %147
147: ; preds = %142, %139, %94
%148 = load i32, ptr %3, align 4
ret i32 %148
}
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @sense_dump(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp64kcmp1t.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 [38 x i8] c"Reading sense from args to buffer...\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"\0A\0AInvalid character '%c' (%d) in sequence\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Missing a nibble!\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Decoding sense...\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 [256 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = 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
store i32 0, ptr %7, align 4
%12 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %9, align 4
store i32 1, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph2, label %141
.lr.ph2: ; preds = %2
br label %16
16: ; preds = %.lr.ph2, %135
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %10, align 8
%22 = load ptr, ptr %10, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %.lr.ph, label %134
.lr.ph: ; preds = %16
br label %26
26: ; preds = %.lr.ph, %127
%27 = load ptr, ptr %10, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp sge i32 %29, 48
br i1 %30, label %31, label %42
31: ; preds = %26
%32 = load ptr, ptr %10, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp sle i32 %34, 57
br i1 %35, label %36, label %42
36: ; preds = %31
%37 = load ptr, ptr %10, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = sub nsw i32 %39, 48
%41 = trunc i32 %40 to i8
store i8 %41, ptr %11, align 1
br label %103
42: ; preds = %31, %26
%43 = load ptr, ptr %10, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp sge i32 %45, 97
br i1 %46, label %47, label %59
47: ; preds = %42
%48 = load ptr, ptr %10, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp sle i32 %50, 102
br i1 %51, label %52, label %59
52: ; preds = %47
%53 = load ptr, ptr %10, align 8
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = sub nsw i32 %55, 97
%57 = add nsw i32 %56, 10
%58 = trunc i32 %57 to i8
store i8 %58, ptr %11, align 1
br label %102
59: ; preds = %47, %42
%60 = load ptr, ptr %10, align 8
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp sge i32 %62, 65
br i1 %63, label %64, label %76
64: ; preds = %59
%65 = load ptr, ptr %10, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp sle i32 %67, 70
br i1 %68, label %69, label %76
69: ; preds = %64
%70 = load ptr, ptr %10, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = sub nsw i32 %72, 65
%74 = add nsw i32 %73, 10
%75 = trunc i32 %74 to i8
store i8 %75, ptr %11, align 1
br label %101
76: ; preds = %64, %59
%77 = load ptr, ptr %10, align 8
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 32
br i1 %80, label %91, label %81
81: ; preds = %76
%82 = load ptr, ptr %10, align 8
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 43
br i1 %85, label %91, label %86
86: ; preds = %81
%87 = load ptr, ptr %10, align 8
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 9
br i1 %90, label %91, label %92
91: ; preds = %86, %81, %76
br label %127
92: ; preds = %86
%93 = load i32, ptr @stderr, align 4
%94 = load ptr, ptr %10, align 8
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = load ptr, ptr %10, align 8
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %93, ptr noundef @.str.1, i32 noundef %96, i32 noundef %99)
store i32 1, ptr %3, align 4
br label %152
101: ; preds = %69
br label %102
102: ; preds = %101, %52
br label %103
103: ; preds = %102, %36
%104 = load i32, ptr %9, align 4
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %114
106: ; preds = %103
%107 = load i8, ptr %11, align 1
%108 = zext i8 %107 to i32
%109 = shl i32 %108, 4
%110 = trunc i32 %109 to i8
%111 = load i32, ptr %7, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %112
store i8 %110, ptr %113, align 1
store i32 0, ptr %9, align 4
br label %126
114: ; preds = %103
%115 = load i8, ptr %11, align 1
%116 = zext i8 %115 to i32
%117 = load i32, ptr %7, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %118
%120 = load i8, ptr %119, align 1
%121 = zext i8 %120 to i32
%122 = or i32 %121, %116
%123 = trunc i32 %122 to i8
store i8 %123, ptr %119, align 1
store i32 1, ptr %9, align 4
%124 = load i32, ptr %7, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %7, align 4
br label %126
126: ; preds = %114, %106
br label %127
127: ; preds = %126, %91
%128 = load ptr, ptr %10, align 8
%129 = getelementptr inbounds i8, ptr %128, i32 1
store ptr %129, ptr %10, align 8
%130 = load ptr, ptr %10, align 8
%131 = load i8, ptr %130, align 1
%132 = sext i8 %131 to i32
%133 = icmp ne i32 %132, 0
br i1 %133, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %127
br label %134
134: ; preds = %._crit_edge, %16
br label %135
135: ; preds = %134
%136 = load i32, ptr %8, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %8, align 4
%138 = load i32, ptr %8, align 4
%139 = load i32, ptr %4, align 4
%140 = icmp slt i32 %138, %139
br i1 %140, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %135
br label %141
141: ; preds = %._crit_edge3, %2
%142 = load i32, ptr %9, align 4
%143 = icmp ne i32 %142, 0
br i1 %143, label %147, label %144
144: ; preds = %141
%145 = load i32, ptr @stderr, align 4
%146 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %145, ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %152
147: ; preds = %141
%148 = call i32 @printf(ptr noundef @.str.3)
%149 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%150 = load i32, ptr %7, align 4
%151 = call i32 @sense_dump(ptr noundef %149, i32 noundef %150)
store i32 0, ptr %3, align 4
br label %152
152: ; preds = %147, %144, %92
%153 = load i32, ptr %3, align 4
ret i32 %153
}
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @sense_dump(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_y647qew.c'
source_filename = "/tmp/tmp_y647qew.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.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = 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 %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = load i32, ptr @AF_INET, align 4
%7 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %6, ptr %7, align 4
%8 = call i32 (...) @getpid()
%9 = srem i32 %8, 32768
%10 = add nsw i32 %9, 11000
%11 = call i32 @htons(i32 noundef %10)
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @INADDR_ANY, align 4
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%15 = getelementptr inbounds %struct.TYPE_2__, ptr %14, i32 0, i32 0
store i32 %13, ptr %15, align 4
store i32 12, ptr %5, align 4
%16 = load i32, ptr @O_WRONLY, align 4
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %3, align 4
%18 = call i32 @accept(i32 noundef -1, ptr noundef %4, ptr noundef %5)
%19 = load i32, ptr %3, align 4
%20 = call i32 @accept(i32 noundef %19, ptr noundef %4, ptr noundef %5)
%21 = load i32, ptr @PF_INET, align 4
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = call i32 @bind(i32 noundef %24, ptr noundef %4, i32 noundef 12)
%26 = load i32, ptr %2, align 4
%27 = call i32 @accept(i32 noundef %26, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef %5)
%28 = load i32, ptr %2, align 4
%29 = call i32 @accept(i32 noundef %28, ptr noundef %4, ptr noundef inttoptr (i64 -1 to ptr))
%30 = load i32, ptr %2, align 4
%31 = call i32 @close(i32 noundef %30)
%32 = load i32, ptr %3, align 4
%33 = call i32 @close(i32 noundef %32)
ret i32 0
}
declare i32 @htons(i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
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/tmp_y647qew.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.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = 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 %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = load i32, ptr @AF_INET, align 4
%7 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %6, ptr %7, align 4
%8 = call i32 (...) @getpid()
%9 = srem i32 %8, 32768
%10 = add nsw i32 %9, 11000
%11 = call i32 @htons(i32 noundef %10)
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @INADDR_ANY, align 4
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%15 = getelementptr inbounds %struct.TYPE_2__, ptr %14, i32 0, i32 0
store i32 %13, ptr %15, align 4
store i32 12, ptr %5, align 4
%16 = load i32, ptr @O_WRONLY, align 4
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %3, align 4
%18 = call i32 @accept(i32 noundef -1, ptr noundef %4, ptr noundef %5)
%19 = load i32, ptr %3, align 4
%20 = call i32 @accept(i32 noundef %19, ptr noundef %4, ptr noundef %5)
%21 = load i32, ptr @PF_INET, align 4
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = call i32 @bind(i32 noundef %24, ptr noundef %4, i32 noundef 12)
%26 = load i32, ptr %2, align 4
%27 = call i32 @accept(i32 noundef %26, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef %5)
%28 = load i32, ptr %2, align 4
%29 = call i32 @accept(i32 noundef %28, ptr noundef %4, ptr noundef inttoptr (i64 -1 to ptr))
%30 = load i32, ptr %2, align 4
%31 = call i32 @close(i32 noundef %30)
%32 = load i32, ptr %3, align 4
%33 = call i32 @close(i32 noundef %32)
ret i32 0
}
declare i32 @htons(i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.