llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp0hcdsv_l.c'
source_filename = "/tmp/tmp0hcdsv_l.c"
target datalayout = "e-m:e-p270: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 @swr_fill_str(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store ptr null, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
%18 = call i32 @memcpy(ptr noundef %15, ptr noundef %16, i32 noundef %17)
br label %19
19: ; preds = %14, %2
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0hcdsv_l.c"
target datalayout = "e-m:e-p270: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 @swr_fill_str(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store ptr null, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
%18 = call i32 @memcpy(ptr noundef %15, ptr noundef %16, i32 noundef %17)
br label %19
19: ; preds = %14, %2
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmputujdi4b.c'
source_filename = "/tmp/tmputujdi4b.c"
target datalayout = "e-m:e-p270: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 @spline(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store double %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 -1, ptr %14, align 4
%15 = load double, ptr %8, align 8
%16 = fcmp olt double 0.000000e+00, %15
br i1 %16, label %17, label %21
17: ; preds = %6
%18 = load double, ptr %8, align 8
%19 = fcmp olt double %18, 2.000000e+00
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, ptr %14, align 4
br label %45
21: ; preds = %17, %6
%22 = load double, ptr %8, align 8
%23 = fcmp olt double 2.000000e+00, %22
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = load double, ptr %8, align 8
%26 = fcmp olt double %25, 3.000000e+00
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 2, ptr %14, align 4
br label %44
28: ; preds = %24, %21
%29 = load double, ptr %8, align 8
%30 = fcmp olt double 3.000000e+00, %29
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = load double, ptr %8, align 8
%33 = fcmp olt double %32, 5.000000e+00
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 3, ptr %14, align 4
br label %43
35: ; preds = %31, %28
%36 = load double, ptr %8, align 8
%37 = fcmp olt double 5.000000e+00, %36
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load double, ptr %8, align 8
%40 = fcmp olt double %39, 6.100000e+00
br i1 %40, label %41, label %42
41: ; preds = %38
store i32 4, ptr %14, align 4
br label %42
42: ; preds = %41, %38, %35
br label %43
43: ; preds = %42, %34
br label %44
44: ; preds = %43, %27
br label %45
45: ; preds = %44, %20
%46 = load i32, ptr %14, align 4
switch i32 %46, label %183 [
i32 1, label %47
i32 2, label %81
i32 3, label %115
i32 4, label %149
]
47: ; preds = %45
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds double, ptr %48, i64 0
%50 = load double, ptr %49, align 8
%51 = load double, ptr %8, align 8
%52 = load ptr, ptr %9, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load double, ptr %53, align 8
%55 = fsub double %51, %54
%56 = call double @pow(double noundef %55, i32 noundef 3)
%57 = load ptr, ptr %11, align 8
%58 = getelementptr inbounds double, ptr %57, i64 0
%59 = load double, ptr %58, align 8
%60 = load double, ptr %8, align 8
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds double, ptr %61, i64 0
%63 = load double, ptr %62, align 8
%64 = fsub double %60, %63
%65 = call double @pow(double noundef %64, i32 noundef 2)
%66 = fmul double %59, %65
%67 = call double @llvm.fmuladd.f64(double %50, double %56, double %66)
%68 = load ptr, ptr %12, align 8
%69 = getelementptr inbounds double, ptr %68, i64 0
%70 = load double, ptr %69, align 8
%71 = load double, ptr %8, align 8
%72 = load ptr, ptr %9, align 8
%73 = getelementptr inbounds double, ptr %72, i64 0
%74 = load double, ptr %73, align 8
%75 = fsub double %71, %74
%76 = call double @llvm.fmuladd.f64(double %70, double %75, double %67)
%77 = load ptr, ptr %13, align 8
%78 = getelementptr inbounds double, ptr %77, i64 0
%79 = load double, ptr %78, align 8
%80 = fadd double %76, %79
store double %80, ptr %7, align 8
br label %184
81: ; preds = %45
%82 = load ptr, ptr %10, align 8
%83 = getelementptr inbounds double, ptr %82, i64 1
%84 = load double, ptr %83, align 8
%85 = load double, ptr %8, align 8
%86 = load ptr, ptr %9, align 8
%87 = getelementptr inbounds double, ptr %86, i64 1
%88 = load double, ptr %87, align 8
%89 = fsub double %85, %88
%90 = call double @pow(double noundef %89, i32 noundef 3)
%91 = load ptr, ptr %11, align 8
%92 = getelementptr inbounds double, ptr %91, i64 1
%93 = load double, ptr %92, align 8
%94 = load double, ptr %8, align 8
%95 = load ptr, ptr %9, align 8
%96 = getelementptr inbounds double, ptr %95, i64 1
%97 = load double, ptr %96, align 8
%98 = fsub double %94, %97
%99 = call double @pow(double noundef %98, i32 noundef 2)
%100 = fmul double %93, %99
%101 = call double @llvm.fmuladd.f64(double %84, double %90, double %100)
%102 = load ptr, ptr %12, align 8
%103 = getelementptr inbounds double, ptr %102, i64 1
%104 = load double, ptr %103, align 8
%105 = load double, ptr %8, align 8
%106 = load ptr, ptr %9, align 8
%107 = getelementptr inbounds double, ptr %106, i64 1
%108 = load double, ptr %107, align 8
%109 = fsub double %105, %108
%110 = call double @llvm.fmuladd.f64(double %104, double %109, double %101)
%111 = load ptr, ptr %13, align 8
%112 = getelementptr inbounds double, ptr %111, i64 1
%113 = load double, ptr %112, align 8
%114 = fadd double %110, %113
store double %114, ptr %7, align 8
br label %184
115: ; preds = %45
%116 = load ptr, ptr %10, align 8
%117 = getelementptr inbounds double, ptr %116, i64 2
%118 = load double, ptr %117, align 8
%119 = load double, ptr %8, align 8
%120 = load ptr, ptr %9, align 8
%121 = getelementptr inbounds double, ptr %120, i64 2
%122 = load double, ptr %121, align 8
%123 = fsub double %119, %122
%124 = call double @pow(double noundef %123, i32 noundef 3)
%125 = load ptr, ptr %11, align 8
%126 = getelementptr inbounds double, ptr %125, i64 2
%127 = load double, ptr %126, align 8
%128 = load double, ptr %8, align 8
%129 = load ptr, ptr %9, align 8
%130 = getelementptr inbounds double, ptr %129, i64 2
%131 = load double, ptr %130, align 8
%132 = fsub double %128, %131
%133 = call double @pow(double noundef %132, i32 noundef 2)
%134 = fmul double %127, %133
%135 = call double @llvm.fmuladd.f64(double %118, double %124, double %134)
%136 = load ptr, ptr %12, align 8
%137 = getelementptr inbounds double, ptr %136, i64 2
%138 = load double, ptr %137, align 8
%139 = load double, ptr %8, align 8
%140 = load ptr, ptr %9, align 8
%141 = getelementptr inbounds double, ptr %140, i64 2
%142 = load double, ptr %141, align 8
%143 = fsub double %139, %142
%144 = call double @llvm.fmuladd.f64(double %138, double %143, double %135)
%145 = load ptr, ptr %13, align 8
%146 = getelementptr inbounds double, ptr %145, i64 2
%147 = load double, ptr %146, align 8
%148 = fadd double %144, %147
store double %148, ptr %7, align 8
br label %184
149: ; preds = %45
%150 = load ptr, ptr %10, align 8
%151 = getelementptr inbounds double, ptr %150, i64 3
%152 = load double, ptr %151, align 8
%153 = load double, ptr %8, align 8
%154 = load ptr, ptr %9, align 8
%155 = getelementptr inbounds double, ptr %154, i64 3
%156 = load double, ptr %155, align 8
%157 = fsub double %153, %156
%158 = call double @pow(double noundef %157, i32 noundef 3)
%159 = load ptr, ptr %11, align 8
%160 = getelementptr inbounds double, ptr %159, i64 3
%161 = load double, ptr %160, align 8
%162 = load double, ptr %8, align 8
%163 = load ptr, ptr %9, align 8
%164 = getelementptr inbounds double, ptr %163, i64 3
%165 = load double, ptr %164, align 8
%166 = fsub double %162, %165
%167 = call double @pow(double noundef %166, i32 noundef 2)
%168 = fmul double %161, %167
%169 = call double @llvm.fmuladd.f64(double %152, double %158, double %168)
%170 = load ptr, ptr %12, align 8
%171 = getelementptr inbounds double, ptr %170, i64 3
%172 = load double, ptr %171, align 8
%173 = load double, ptr %8, align 8
%174 = load ptr, ptr %9, align 8
%175 = getelementptr inbounds double, ptr %174, i64 3
%176 = load double, ptr %175, align 8
%177 = fsub double %173, %176
%178 = call double @llvm.fmuladd.f64(double %172, double %177, double %169)
%179 = load ptr, ptr %13, align 8
%180 = getelementptr inbounds double, ptr %179, i64 3
%181 = load double, ptr %180, align 8
%182 = fadd double %178, %181
store double %182, ptr %7, align 8
br label %184
183: ; preds = %45
br label %184
184: ; preds = %47, %81, %115, %149, %183
%185 = load double, ptr %7, align 8
ret double %185
}
declare double @pow(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmputujdi4b.c"
target datalayout = "e-m:e-p270: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 @spline(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store double %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 -1, ptr %14, align 4
%15 = load double, ptr %8, align 8
%16 = fcmp olt double 0.000000e+00, %15
br i1 %16, label %17, label %21
17: ; preds = %6
%18 = load double, ptr %8, align 8
%19 = fcmp olt double %18, 2.000000e+00
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, ptr %14, align 4
br label %45
21: ; preds = %17, %6
%22 = load double, ptr %8, align 8
%23 = fcmp olt double 2.000000e+00, %22
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = load double, ptr %8, align 8
%26 = fcmp olt double %25, 3.000000e+00
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 2, ptr %14, align 4
br label %44
28: ; preds = %24, %21
%29 = load double, ptr %8, align 8
%30 = fcmp olt double 3.000000e+00, %29
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = load double, ptr %8, align 8
%33 = fcmp olt double %32, 5.000000e+00
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 3, ptr %14, align 4
br label %43
35: ; preds = %31, %28
%36 = load double, ptr %8, align 8
%37 = fcmp olt double 5.000000e+00, %36
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load double, ptr %8, align 8
%40 = fcmp olt double %39, 6.100000e+00
br i1 %40, label %41, label %42
41: ; preds = %38
store i32 4, ptr %14, align 4
br label %42
42: ; preds = %41, %38, %35
br label %43
43: ; preds = %42, %34
br label %44
44: ; preds = %43, %27
br label %45
45: ; preds = %44, %20
%46 = load i32, ptr %14, align 4
switch i32 %46, label %183 [
i32 1, label %47
i32 2, label %81
i32 3, label %115
i32 4, label %149
]
47: ; preds = %45
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds double, ptr %48, i64 0
%50 = load double, ptr %49, align 8
%51 = load double, ptr %8, align 8
%52 = load ptr, ptr %9, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load double, ptr %53, align 8
%55 = fsub double %51, %54
%56 = call double @pow(double noundef %55, i32 noundef 3)
%57 = load ptr, ptr %11, align 8
%58 = getelementptr inbounds double, ptr %57, i64 0
%59 = load double, ptr %58, align 8
%60 = load double, ptr %8, align 8
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds double, ptr %61, i64 0
%63 = load double, ptr %62, align 8
%64 = fsub double %60, %63
%65 = call double @pow(double noundef %64, i32 noundef 2)
%66 = fmul double %59, %65
%67 = call double @llvm.fmuladd.f64(double %50, double %56, double %66)
%68 = load ptr, ptr %12, align 8
%69 = getelementptr inbounds double, ptr %68, i64 0
%70 = load double, ptr %69, align 8
%71 = load double, ptr %8, align 8
%72 = load ptr, ptr %9, align 8
%73 = getelementptr inbounds double, ptr %72, i64 0
%74 = load double, ptr %73, align 8
%75 = fsub double %71, %74
%76 = call double @llvm.fmuladd.f64(double %70, double %75, double %67)
%77 = load ptr, ptr %13, align 8
%78 = getelementptr inbounds double, ptr %77, i64 0
%79 = load double, ptr %78, align 8
%80 = fadd double %76, %79
store double %80, ptr %7, align 8
br label %184
81: ; preds = %45
%82 = load ptr, ptr %10, align 8
%83 = getelementptr inbounds double, ptr %82, i64 1
%84 = load double, ptr %83, align 8
%85 = load double, ptr %8, align 8
%86 = load ptr, ptr %9, align 8
%87 = getelementptr inbounds double, ptr %86, i64 1
%88 = load double, ptr %87, align 8
%89 = fsub double %85, %88
%90 = call double @pow(double noundef %89, i32 noundef 3)
%91 = load ptr, ptr %11, align 8
%92 = getelementptr inbounds double, ptr %91, i64 1
%93 = load double, ptr %92, align 8
%94 = load double, ptr %8, align 8
%95 = load ptr, ptr %9, align 8
%96 = getelementptr inbounds double, ptr %95, i64 1
%97 = load double, ptr %96, align 8
%98 = fsub double %94, %97
%99 = call double @pow(double noundef %98, i32 noundef 2)
%100 = fmul double %93, %99
%101 = call double @llvm.fmuladd.f64(double %84, double %90, double %100)
%102 = load ptr, ptr %12, align 8
%103 = getelementptr inbounds double, ptr %102, i64 1
%104 = load double, ptr %103, align 8
%105 = load double, ptr %8, align 8
%106 = load ptr, ptr %9, align 8
%107 = getelementptr inbounds double, ptr %106, i64 1
%108 = load double, ptr %107, align 8
%109 = fsub double %105, %108
%110 = call double @llvm.fmuladd.f64(double %104, double %109, double %101)
%111 = load ptr, ptr %13, align 8
%112 = getelementptr inbounds double, ptr %111, i64 1
%113 = load double, ptr %112, align 8
%114 = fadd double %110, %113
store double %114, ptr %7, align 8
br label %184
115: ; preds = %45
%116 = load ptr, ptr %10, align 8
%117 = getelementptr inbounds double, ptr %116, i64 2
%118 = load double, ptr %117, align 8
%119 = load double, ptr %8, align 8
%120 = load ptr, ptr %9, align 8
%121 = getelementptr inbounds double, ptr %120, i64 2
%122 = load double, ptr %121, align 8
%123 = fsub double %119, %122
%124 = call double @pow(double noundef %123, i32 noundef 3)
%125 = load ptr, ptr %11, align 8
%126 = getelementptr inbounds double, ptr %125, i64 2
%127 = load double, ptr %126, align 8
%128 = load double, ptr %8, align 8
%129 = load ptr, ptr %9, align 8
%130 = getelementptr inbounds double, ptr %129, i64 2
%131 = load double, ptr %130, align 8
%132 = fsub double %128, %131
%133 = call double @pow(double noundef %132, i32 noundef 2)
%134 = fmul double %127, %133
%135 = call double @llvm.fmuladd.f64(double %118, double %124, double %134)
%136 = load ptr, ptr %12, align 8
%137 = getelementptr inbounds double, ptr %136, i64 2
%138 = load double, ptr %137, align 8
%139 = load double, ptr %8, align 8
%140 = load ptr, ptr %9, align 8
%141 = getelementptr inbounds double, ptr %140, i64 2
%142 = load double, ptr %141, align 8
%143 = fsub double %139, %142
%144 = call double @llvm.fmuladd.f64(double %138, double %143, double %135)
%145 = load ptr, ptr %13, align 8
%146 = getelementptr inbounds double, ptr %145, i64 2
%147 = load double, ptr %146, align 8
%148 = fadd double %144, %147
store double %148, ptr %7, align 8
br label %184
149: ; preds = %45
%150 = load ptr, ptr %10, align 8
%151 = getelementptr inbounds double, ptr %150, i64 3
%152 = load double, ptr %151, align 8
%153 = load double, ptr %8, align 8
%154 = load ptr, ptr %9, align 8
%155 = getelementptr inbounds double, ptr %154, i64 3
%156 = load double, ptr %155, align 8
%157 = fsub double %153, %156
%158 = call double @pow(double noundef %157, i32 noundef 3)
%159 = load ptr, ptr %11, align 8
%160 = getelementptr inbounds double, ptr %159, i64 3
%161 = load double, ptr %160, align 8
%162 = load double, ptr %8, align 8
%163 = load ptr, ptr %9, align 8
%164 = getelementptr inbounds double, ptr %163, i64 3
%165 = load double, ptr %164, align 8
%166 = fsub double %162, %165
%167 = call double @pow(double noundef %166, i32 noundef 2)
%168 = fmul double %161, %167
%169 = call double @llvm.fmuladd.f64(double %152, double %158, double %168)
%170 = load ptr, ptr %12, align 8
%171 = getelementptr inbounds double, ptr %170, i64 3
%172 = load double, ptr %171, align 8
%173 = load double, ptr %8, align 8
%174 = load ptr, ptr %9, align 8
%175 = getelementptr inbounds double, ptr %174, i64 3
%176 = load double, ptr %175, align 8
%177 = fsub double %173, %176
%178 = call double @llvm.fmuladd.f64(double %172, double %177, double %169)
%179 = load ptr, ptr %13, align 8
%180 = getelementptr inbounds double, ptr %179, i64 3
%181 = load double, ptr %180, align 8
%182 = fadd double %178, %181
store double %182, ptr %7, align 8
br label %184
183: ; preds = %45
br label %184
184: ; preds = %183, %149, %115, %81, %47
%185 = load double, ptr %7, align 8
ret double %185
}
declare double @pow(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfhdfisd5.c'
source_filename = "/tmp/tmpfhdfisd5.c"
target datalayout = "e-m:e-p270: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 @fesetround(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = and i32 %5, -4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
9: ; preds = %1
%10 = load i32, ptr %4, align 4
%11 = call i32 @_FPU_GETCW(i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, -4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @_FPU_SETCW(i32 noundef %17)
store i32 1, ptr %2, align 4
br label %19
19: ; preds = %9, %8
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i32 @_FPU_GETCW(i32 noundef) #1
declare i32 @_FPU_SETCW(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/tmpfhdfisd5.c"
target datalayout = "e-m:e-p270: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 @fesetround(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = and i32 %5, -4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
9: ; preds = %1
%10 = load i32, ptr %4, align 4
%11 = call i32 @_FPU_GETCW(i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, -4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @_FPU_SETCW(i32 noundef %17)
store i32 1, ptr %2, align 4
br label %19
19: ; preds = %9, %8
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i32 @_FPU_GETCW(i32 noundef) #1
declare i32 @_FPU_SETCW(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/tmp9jr4twbl.c'
source_filename = "/tmp/tmp9jr4twbl.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [5 x i32] [i32 -42, i32 3, i32 7, i32 9, i32 11], align 16
@.str = private unnamed_addr constant [25 x i8] c"Found 11 at %d in array \00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Couldn't found 11 in array \00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Found -42 at %d in array \00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Couldn't found -42 in array \00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Found 3 at %d in array \00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Couldn't found 3 in array \00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"Found 100 at %d in array \00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"Couldn't found 100 in array \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 20, i1 false)
%7 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%8 = call i32 @linear_searchi(ptr noundef %7, i32 noundef 5, i32 noundef 11)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
br label %16
14: ; preds = %0
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %11
%17 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%18 = call i32 @printvinl(ptr noundef %17, i32 noundef 5)
%19 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%20 = call i32 @linear_searchi(ptr noundef %19, i32 noundef 5, i32 noundef -42)
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp sge i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = load i32, ptr %4, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
br label %28
26: ; preds = %16
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %23
%29 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%30 = call i32 @printvinl(ptr noundef %29, i32 noundef 5)
%31 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%32 = call i32 @linear_searchi(ptr noundef %31, i32 noundef 5, i32 noundef 3)
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %28
%36 = load i32, ptr %5, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %36)
br label %40
38: ; preds = %28
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %40
40: ; preds = %38, %35
%41 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%42 = call i32 @printvinl(ptr noundef %41, i32 noundef 5)
%43 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%44 = call i32 @linear_searchi(ptr noundef %43, i32 noundef 5, i32 noundef 100)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp sge i32 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %40
%48 = load i32, ptr %6, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %48)
br label %52
50: ; preds = %40
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %52
52: ; preds = %50, %47
%53 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%54 = call i32 @printvinl(ptr noundef %53, i32 noundef 5)
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 @linear_searchi(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @printvinl(ptr noundef, 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/tmp9jr4twbl.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [5 x i32] [i32 -42, i32 3, i32 7, i32 9, i32 11], align 16
@.str = private unnamed_addr constant [25 x i8] c"Found 11 at %d in array \00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Couldn't found 11 in array \00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Found -42 at %d in array \00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Couldn't found -42 in array \00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Found 3 at %d in array \00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Couldn't found 3 in array \00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"Found 100 at %d in array \00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"Couldn't found 100 in array \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 20, i1 false)
%7 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%8 = call i32 @linear_searchi(ptr noundef %7, i32 noundef 5, i32 noundef 11)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
br label %16
14: ; preds = %0
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %11
%17 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%18 = call i32 @printvinl(ptr noundef %17, i32 noundef 5)
%19 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%20 = call i32 @linear_searchi(ptr noundef %19, i32 noundef 5, i32 noundef -42)
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp sge i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = load i32, ptr %4, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
br label %28
26: ; preds = %16
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %23
%29 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%30 = call i32 @printvinl(ptr noundef %29, i32 noundef 5)
%31 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%32 = call i32 @linear_searchi(ptr noundef %31, i32 noundef 5, i32 noundef 3)
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %28
%36 = load i32, ptr %5, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %36)
br label %40
38: ; preds = %28
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %40
40: ; preds = %38, %35
%41 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%42 = call i32 @printvinl(ptr noundef %41, i32 noundef 5)
%43 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%44 = call i32 @linear_searchi(ptr noundef %43, i32 noundef 5, i32 noundef 100)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp sge i32 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %40
%48 = load i32, ptr %6, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %48)
br label %52
50: ; preds = %40
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %52
52: ; preds = %50, %47
%53 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%54 = call i32 @printvinl(ptr noundef %53, i32 noundef 5)
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 @linear_searchi(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @printvinl(ptr noundef, 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/tmp80ojxx3d.c'
source_filename = "/tmp/tmp80ojxx3d.c"
target datalayout = "e-m:e-p270: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/tmp80ojxx3d.c"
target datalayout = "e-m:e-p270: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/tmp6ax48u1y.c'
source_filename = "/tmp/tmp6ax48u1y.c"
target datalayout = "e-m:e-p270: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 @solve_sudoku(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
store i32 1, ptr %6, align 4
br label %8
8: ; preds = %20, %1
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i32, ptr %13, i32 1
store ptr %14, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp eq i32 %17, 82
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 0, ptr %2, align 4
br label %56
20: ; preds = %12
br label %8, !llvm.loop !6
21: ; preds = %8
%22 = load ptr, ptr %4, align 8
store i32 1, ptr %22, align 4
br label %23
23: ; preds = %36, %21
%24 = load ptr, ptr %3, align 8
%25 = call i64 @check_all(ptr noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %37
27: ; preds = %23
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %28, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %28, align 4
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %31, align 4
%33 = icmp eq i32 %32, 10
br i1 %33, label %34, label %36
34: ; preds = %27
%35 = load ptr, ptr %4, align 8
store i32 0, ptr %35, align 4
store i32 1, ptr %2, align 4
br label %56
36: ; preds = %27
br label %23, !llvm.loop !8
37: ; preds = %23
%38 = load ptr, ptr %3, align 8
%39 = call i32 @solve_sudoku(ptr noundef %38)
store i32 %39, ptr %6, align 4
br label %40
40: ; preds = %52, %37
%41 = load i32, ptr %6, align 4
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %55
43: ; preds = %40
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %44, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %44, align 4
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %47, align 4
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %52
50: ; preds = %43
%51 = load ptr, ptr %4, align 8
store i32 0, ptr %51, align 4
store i32 1, ptr %2, align 4
br label %56
52: ; preds = %43
%53 = load ptr, ptr %3, align 8
%54 = call i32 @solve_sudoku(ptr noundef %53)
store i32 %54, ptr %6, align 4
br label %40, !llvm.loop !9
55: ; preds = %40
store i32 0, ptr %2, align 4
br label %56
56: ; preds = %55, %50, %34, %19
%57 = load i32, ptr %2, align 4
ret i32 %57
}
declare i64 @check_all(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ax48u1y.c"
target datalayout = "e-m:e-p270: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 @solve_sudoku(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
store i32 1, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %15
11: ; preds = %15
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %12, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %._crit_edge, !llvm.loop !6
15: ; preds = %.lr.ph, %11
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i32, ptr %16, i32 1
store ptr %17, ptr %4, align 8
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %20, 82
br i1 %21, label %22, label %11
22: ; preds = %15
store i32 0, ptr %2, align 4
br label %61
._crit_edge: ; preds = %11
br label %23
23: ; preds = %._crit_edge, %1
%24 = load ptr, ptr %4, align 8
store i32 1, ptr %24, align 4
%25 = load ptr, ptr %3, align 8
%26 = call i64 @check_all(ptr noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %.lr.ph2, label %41
.lr.ph2: ; preds = %23
br label %32
28: ; preds = %32
%29 = load ptr, ptr %3, align 8
%30 = call i64 @check_all(ptr noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %._crit_edge3, !llvm.loop !8
32: ; preds = %.lr.ph2, %28
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %36, align 4
%38 = icmp eq i32 %37, 10
br i1 %38, label %39, label %28
39: ; preds = %32
%40 = load ptr, ptr %4, align 8
store i32 0, ptr %40, align 4
store i32 1, ptr %2, align 4
br label %61
._crit_edge3: ; preds = %28
br label %41
41: ; preds = %._crit_edge3, %23
%42 = load ptr, ptr %3, align 8
%43 = call i32 @solve_sudoku(ptr noundef %42)
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp eq i32 %44, 1
br i1 %45, label %.lr.ph5, label %60
.lr.ph5: ; preds = %41
br label %46
46: ; preds = %.lr.ph5, %55
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %47, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %47, align 4
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %50, align 4
%52 = icmp eq i32 %51, 10
br i1 %52, label %53, label %55
53: ; preds = %46
%54 = load ptr, ptr %4, align 8
store i32 0, ptr %54, align 4
store i32 1, ptr %2, align 4
br label %61
55: ; preds = %46
%56 = load ptr, ptr %3, align 8
%57 = call i32 @solve_sudoku(ptr noundef %56)
store i32 %57, ptr %6, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp eq i32 %58, 1
br i1 %59, label %46, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %55
br label %60
60: ; preds = %._crit_edge6, %41
store i32 0, ptr %2, align 4
br label %61
61: ; preds = %60, %53, %39, %22
%62 = load i32, ptr %2, align 4
ret i32 %62
}
declare i64 @check_all(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpjghw8vbb.c'
source_filename = "/tmp/tmpjghw8vbb.c"
target datalayout = "e-m:e-p270: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
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, ptr %2, align 4
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, ptr %3, align 4
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 10000
br i1 %9, label %10, label %40
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = icmp sge i32 %11, -10000
br i1 %12, label %13, label %40
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %14, 10000
br i1 %15, label %16, label %40
16: ; preds = %13
%17 = load i32, ptr %4, align 4
%18 = icmp sle i32 %17, 10000
br i1 %18, label %19, label %40
19: ; preds = %16
br label %20
20: ; preds = %35, %19
%21 = load i32, ptr %3, align 4
%22 = icmp sge i32 %21, 1
br i1 %22, label %23, label %39
23: ; preds = %20
%24 = load i32, ptr %2, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %2, align 4
br label %26
26: ; preds = %30, %23
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
%33 = load i32, ptr %4, align 4
%34 = sub nsw i32 %33, 1
store i32 %34, ptr %4, align 4
br label %26, !llvm.loop !6
35: ; preds = %26
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %36, %37
store i32 %38, ptr %3, align 4
br label %20, !llvm.loop !8
39: ; preds = %20
br label %40
40: ; preds = %39, %16, %13, %10, %0
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpjghw8vbb.c"
target datalayout = "e-m:e-p270: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
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, ptr %2, align 4
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, ptr %3, align 4
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 10000
br i1 %9, label %10, label %43
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = icmp sge i32 %11, -10000
br i1 %12, label %13, label %43
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %14, 10000
br i1 %15, label %16, label %43
16: ; preds = %13
%17 = load i32, ptr %4, align 4
%18 = icmp sle i32 %17, 10000
br i1 %18, label %19, label %43
19: ; preds = %16
%20 = load i32, ptr %3, align 4
%21 = icmp sge i32 %20, 1
br i1 %21, label %.lr.ph2, label %42
.lr.ph2: ; preds = %19
br label %22
22: ; preds = %.lr.ph2, %36
%23 = load i32, ptr %2, align 4
%24 = sub nsw i32 %23, 1
store i32 %24, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %36
.lr.ph: ; preds = %22
br label %28
28: ; preds = %.lr.ph, %28
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %4, align 4
%32 = sub nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %36
36: ; preds = %._crit_edge, %22
%37 = load i32, ptr %2, align 4
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %37, %38
store i32 %39, ptr %3, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp sge i32 %40, 1
br i1 %41, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %42
42: ; preds = %._crit_edge3, %19
br label %43
43: ; preds = %42, %16, %13, %10, %0
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp0pbmawuu.c'
source_filename = "/tmp/tmp0pbmawuu.c"
target datalayout = "e-m:e-p270: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_colour_only() #0 {
%1 = call i32 @get_mem(i32 noundef 323)
%2 = icmp eq i32 %1, 192
%3 = zext i1 %2 to i32
ret i32 %3
}
declare i32 @get_mem(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/tmp0pbmawuu.c"
target datalayout = "e-m:e-p270: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_colour_only() #0 {
%1 = call i32 @get_mem(i32 noundef 323)
%2 = icmp eq i32 %1, 192
%3 = zext i1 %2 to i32
ret i32 %3
}
declare i32 @get_mem(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/tmp4foi8ydp.c'
source_filename = "/tmp/tmp4foi8ydp.c"
target datalayout = "e-m:e-p270: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"index\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"\1B[1;36mMAPPER HELP\1B[0;37m\0D\0A\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"- Index\0D\0A- GettingStarted\0D\0A- Commands\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"gettingstarted\00", align 1
@.str.4 = private unnamed_addr constant [1107 x i8] c"\1B[1;36mMAPPER HELP\1B[0;37m - Getting started.\0D\0A\0D\0AGreetings. If you're reading this, then you obviously have a new\0D\0Amapper to play with.\0D\0A\0D\0AFirst thing you should do, is to check if it's working. Do so with a\0D\0Asimple 'look' command, in a common room. If the area name is not shown\0D\0Aafter the room title, then you must set the room title color. Do so\0D\0Awith 'map color'. When the color matches the one set on Imperian, and\0D\0Athe room you're currently in is mapped, all should work.\0D\0A\0D\0AIf the area name was shown, that means it now knows where it is, so\0D\0Athe 'map' command is available.\0D\0A\0D\0AYou will then most likely want to make a path to somewhere, and walk\0D\0Ato it. Do so by choosing a room to go to, and find its vnum (room's\0D\0Avirtual number). As an example, if you'd want to go to the Shuk, in\0D\0AAntioch, find its vnum with 'room find shuk'. In this case, the vnum\0D\0Ais 605, so a path to it would be made by 'map path 605'. Once the\0D\0Apath is built, use 'go' to start auto-walking, and 'stop' in the\0D\0Amiddle of an auto-walking to stop it.\0D\0A\0D\0AThese are the basics of showing a map, and going somewhere.\0D\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"commands\00", align 1
@.str.6 = private unnamed_addr constant [809 x i8] c"\1B[1;36mMAPPER HELP\1B[0;37m - Commands.\0D\0A\0D\0ABasics\0D\0A------\0D\0A\0D\0AThe mapper has four base commands, each having some subcommands. The\0D\0Abase commands are 'map', 'area', 'room' and 'exit'. Each base\0D\0Acommand has the subcommand 'help', which lists all other subcommands.\0D\0AAn example would be 'map help'.\0D\0A\0D\0AAbbreviating\0D\0A------------\0D\0A\0D\0AAs an example, use 'area list'. Base command is 'area', subcommand is\0D\0A'list'. The subcommand may be abbreviated to any number of letters,\0D\0Aso 'area lis', 'area li' and 'area l' all work. The base command may\0D\0Abe abbreviated only to the first letter, 'a l'. Also, as typing a\0D\0Adouble space ('m p 605') is sometimes hard, the base command letter\0D\0Amay be used as uppercase, with no space after it. As an example,\0D\0A'Mp 605' instead of 'map path 605' or 'm p 605' would work.\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [48 x i8] c"Use 'mhelp index', for a list of mhelp files.\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_old_mhelp(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 @strcmp(ptr noundef %3, ptr noundef @.str)
%5 = icmp ne i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = call i32 @clientf(ptr noundef @.str.1)
%8 = call i32 @clientf(ptr noundef @.str.2)
br label %25
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcmp(ptr noundef %10, ptr noundef @.str.3)
%12 = icmp ne i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = call i32 @clientf(ptr noundef @.str.4)
br label %24
15: ; preds = %9
%16 = load ptr, ptr %2, align 8
%17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str.5)
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %15
%20 = call i32 @clientf(ptr noundef @.str.6)
br label %23
21: ; preds = %15
%22 = call i32 @clientf(ptr noundef @.str.7)
br label %23
23: ; preds = %21, %19
br label %24
24: ; preds = %23, %13
br label %25
25: ; preds = %24, %6
ret void
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @clientf(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/tmp4foi8ydp.c"
target datalayout = "e-m:e-p270: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"index\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"\1B[1;36mMAPPER HELP\1B[0;37m\0D\0A\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"- Index\0D\0A- GettingStarted\0D\0A- Commands\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"gettingstarted\00", align 1
@.str.4 = private unnamed_addr constant [1107 x i8] c"\1B[1;36mMAPPER HELP\1B[0;37m - Getting started.\0D\0A\0D\0AGreetings. If you're reading this, then you obviously have a new\0D\0Amapper to play with.\0D\0A\0D\0AFirst thing you should do, is to check if it's working. Do so with a\0D\0Asimple 'look' command, in a common room. If the area name is not shown\0D\0Aafter the room title, then you must set the room title color. Do so\0D\0Awith 'map color'. When the color matches the one set on Imperian, and\0D\0Athe room you're currently in is mapped, all should work.\0D\0A\0D\0AIf the area name was shown, that means it now knows where it is, so\0D\0Athe 'map' command is available.\0D\0A\0D\0AYou will then most likely want to make a path to somewhere, and walk\0D\0Ato it. Do so by choosing a room to go to, and find its vnum (room's\0D\0Avirtual number). As an example, if you'd want to go to the Shuk, in\0D\0AAntioch, find its vnum with 'room find shuk'. In this case, the vnum\0D\0Ais 605, so a path to it would be made by 'map path 605'. Once the\0D\0Apath is built, use 'go' to start auto-walking, and 'stop' in the\0D\0Amiddle of an auto-walking to stop it.\0D\0A\0D\0AThese are the basics of showing a map, and going somewhere.\0D\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"commands\00", align 1
@.str.6 = private unnamed_addr constant [809 x i8] c"\1B[1;36mMAPPER HELP\1B[0;37m - Commands.\0D\0A\0D\0ABasics\0D\0A------\0D\0A\0D\0AThe mapper has four base commands, each having some subcommands. The\0D\0Abase commands are 'map', 'area', 'room' and 'exit'. Each base\0D\0Acommand has the subcommand 'help', which lists all other subcommands.\0D\0AAn example would be 'map help'.\0D\0A\0D\0AAbbreviating\0D\0A------------\0D\0A\0D\0AAs an example, use 'area list'. Base command is 'area', subcommand is\0D\0A'list'. The subcommand may be abbreviated to any number of letters,\0D\0Aso 'area lis', 'area li' and 'area l' all work. The base command may\0D\0Abe abbreviated only to the first letter, 'a l'. Also, as typing a\0D\0Adouble space ('m p 605') is sometimes hard, the base command letter\0D\0Amay be used as uppercase, with no space after it. As an example,\0D\0A'Mp 605' instead of 'map path 605' or 'm p 605' would work.\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [48 x i8] c"Use 'mhelp index', for a list of mhelp files.\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_old_mhelp(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 @strcmp(ptr noundef %3, ptr noundef @.str)
%5 = icmp ne i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = call i32 @clientf(ptr noundef @.str.1)
%8 = call i32 @clientf(ptr noundef @.str.2)
br label %25
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcmp(ptr noundef %10, ptr noundef @.str.3)
%12 = icmp ne i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = call i32 @clientf(ptr noundef @.str.4)
br label %24
15: ; preds = %9
%16 = load ptr, ptr %2, align 8
%17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str.5)
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %15
%20 = call i32 @clientf(ptr noundef @.str.6)
br label %23
21: ; preds = %15
%22 = call i32 @clientf(ptr noundef @.str.7)
br label %23
23: ; preds = %21, %19
br label %24
24: ; preds = %23, %13
br label %25
25: ; preds = %24, %6
ret void
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @clientf(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/tmp5vvwazfd.c'
source_filename = "/tmp/tmp5vvwazfd.c"
target datalayout = "e-m:e-p270: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"out/%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_fname(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @sprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6)
ret void
}
declare i32 @sprintf(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/tmp5vvwazfd.c"
target datalayout = "e-m:e-p270: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"out/%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_fname(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @sprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6)
ret void
}
declare i32 @sprintf(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/tmpkvct7ke2.c'
source_filename = "/tmp/tmpkvct7ke2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@base_name.path_buf = internal global [1024 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @base_name(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 ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %2
store i8 46, ptr @base_name.path_buf, align 16
store i8 0, ptr getelementptr inbounds ([1024 x i8], ptr @base_name.path_buf, i64 0, i64 1), align 1
%16 = load ptr, ptr %5, align 8
store ptr @base_name.path_buf, ptr %16, align 8
store i32 1, ptr %3, align 4
br label %87
17: ; preds = %2
%18 = load i32, ptr %9, align 4
%19 = icmp uge i32 %18, 1024
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 0, ptr %3, align 4
br label %87
21: ; preds = %17
%22 = load ptr, ptr %4, align 8
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = sub i32 %24, 1
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %23, i64 %26
store ptr %27, ptr %7, align 8
br label %28
28: ; preds = %40, %21
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %6, align 8
%31 = icmp ugt ptr %29, %30
br i1 %31, label %32, label %38
32: ; preds = %28
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 0
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 47
br label %38
38: ; preds = %32, %28
%39 = phi i1 [ false, %28 ], [ %37, %32 ]
br i1 %39, label %40, label %43
40: ; preds = %38
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 -1
store ptr %42, ptr %7, align 8
br label %28, !llvm.loop !6
43: ; preds = %38
%44 = load ptr, ptr %7, align 8
%45 = load ptr, ptr %6, align 8
%46 = icmp eq ptr %44, %45
br i1 %46, label %47, label %55
47: ; preds = %43
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 47
br i1 %52, label %53, label %55
53: ; preds = %47
store i8 47, ptr @base_name.path_buf, align 16
store i8 0, ptr getelementptr inbounds ([1024 x i8], ptr @base_name.path_buf, i64 0, i64 1), align 1
%54 = load ptr, ptr %5, align 8
store ptr @base_name.path_buf, ptr %54, align 8
store i32 1, ptr %3, align 4
br label %87
55: ; preds = %47, %43
%56 = load ptr, ptr %7, align 8
store ptr %56, ptr %8, align 8
br label %57
57: ; preds = %69, %55
%58 = load ptr, ptr %8, align 8
%59 = load ptr, ptr %6, align 8
%60 = icmp ugt ptr %58, %59
br i1 %60, label %61, label %67
61: ; preds = %57
%62 = load ptr, ptr %8, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 -1
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 47
br label %67
67: ; preds = %61, %57
%68 = phi i1 [ false, %57 ], [ %66, %61 ]
br i1 %68, label %69, label %72
69: ; preds = %67
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 -1
store ptr %71, ptr %8, align 8
br label %57, !llvm.loop !8
72: ; preds = %67
%73 = load ptr, ptr %7, align 8
%74 = load ptr, ptr %8, align 8
%75 = ptrtoint ptr %73 to i64
%76 = ptrtoint ptr %74 to i64
%77 = sub i64 %75, %76
%78 = add nsw i64 %77, 1
%79 = trunc i64 %78 to i32
store i32 %79, ptr %10, align 4
%80 = load ptr, ptr %8, align 8
%81 = load i32, ptr %10, align 4
%82 = call i32 @memcpy(ptr noundef @base_name.path_buf, ptr noundef %80, i32 noundef %81)
%83 = load i32, ptr %10, align 4
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds [1024 x i8], ptr @base_name.path_buf, i64 0, i64 %84
store i8 0, ptr %85, align 1
%86 = load ptr, ptr %5, align 8
store ptr @base_name.path_buf, ptr %86, align 8
store i32 1, ptr %3, align 4
br label %87
87: ; preds = %72, %53, %20, %15
%88 = load i32, ptr %3, align 4
ret i32 %88
}
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkvct7ke2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@base_name.path_buf = internal global [1024 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @base_name(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 ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %2
store i8 46, ptr @base_name.path_buf, align 16
store i8 0, ptr getelementptr inbounds ([1024 x i8], ptr @base_name.path_buf, i64 0, i64 1), align 1
%16 = load ptr, ptr %5, align 8
store ptr @base_name.path_buf, ptr %16, align 8
store i32 1, ptr %3, align 4
br label %87
17: ; preds = %2
%18 = load i32, ptr %9, align 4
%19 = icmp uge i32 %18, 1024
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 0, ptr %3, align 4
br label %87
21: ; preds = %17
%22 = load ptr, ptr %4, align 8
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = sub i32 %24, 1
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %23, i64 %26
store ptr %27, ptr %7, align 8
br label %28
28: ; preds = %40, %21
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %6, align 8
%31 = icmp ugt ptr %29, %30
br i1 %31, label %32, label %38
32: ; preds = %28
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 0
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 47
br label %38
38: ; preds = %32, %28
%39 = phi i1 [ false, %28 ], [ %37, %32 ]
br i1 %39, label %40, label %43
40: ; preds = %38
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 -1
store ptr %42, ptr %7, align 8
br label %28, !llvm.loop !6
43: ; preds = %38
%44 = load ptr, ptr %7, align 8
%45 = load ptr, ptr %6, align 8
%46 = icmp eq ptr %44, %45
br i1 %46, label %47, label %55
47: ; preds = %43
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 47
br i1 %52, label %53, label %55
53: ; preds = %47
store i8 47, ptr @base_name.path_buf, align 16
store i8 0, ptr getelementptr inbounds ([1024 x i8], ptr @base_name.path_buf, i64 0, i64 1), align 1
%54 = load ptr, ptr %5, align 8
store ptr @base_name.path_buf, ptr %54, align 8
store i32 1, ptr %3, align 4
br label %87
55: ; preds = %47, %43
%56 = load ptr, ptr %7, align 8
store ptr %56, ptr %8, align 8
br label %57
57: ; preds = %69, %55
%58 = load ptr, ptr %8, align 8
%59 = load ptr, ptr %6, align 8
%60 = icmp ugt ptr %58, %59
br i1 %60, label %61, label %67
61: ; preds = %57
%62 = load ptr, ptr %8, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 -1
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 47
br label %67
67: ; preds = %61, %57
%68 = phi i1 [ false, %57 ], [ %66, %61 ]
br i1 %68, label %69, label %72
69: ; preds = %67
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 -1
store ptr %71, ptr %8, align 8
br label %57, !llvm.loop !8
72: ; preds = %67
%73 = load ptr, ptr %7, align 8
%74 = load ptr, ptr %8, align 8
%75 = ptrtoint ptr %73 to i64
%76 = ptrtoint ptr %74 to i64
%77 = sub i64 %75, %76
%78 = add nsw i64 %77, 1
%79 = trunc i64 %78 to i32
store i32 %79, ptr %10, align 4
%80 = load ptr, ptr %8, align 8
%81 = load i32, ptr %10, align 4
%82 = call i32 @memcpy(ptr noundef @base_name.path_buf, ptr noundef %80, i32 noundef %81)
%83 = load i32, ptr %10, align 4
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds [1024 x i8], ptr @base_name.path_buf, i64 0, i64 %84
store i8 0, ptr %85, align 1
%86 = load ptr, ptr %5, align 8
store ptr @base_name.path_buf, ptr %86, align 8
store i32 1, ptr %3, align 4
br label %87
87: ; preds = %72, %53, %20, %15
%88 = load i32, ptr %3, align 4
ret i32 %88
}
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpof4s3r6q.c'
source_filename = "/tmp/tmpof4s3r6q.c"
target datalayout = "e-m:e-p270: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
%6 = 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
%7 = call ptr @malloc(i32 noundef 16)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store i8 0, ptr %9, align 1
%10 = load ptr, ptr %6, align 8
%11 = call i32 @printf(ptr noundef %10)
ret i32 0
}
declare ptr @malloc(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpof4s3r6q.c"
target datalayout = "e-m:e-p270: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
%6 = 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
%7 = call ptr @malloc(i32 noundef 16)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store i8 0, ptr %9, align 1
%10 = load ptr, ptr %6, align 8
%11 = call i32 @printf(ptr noundef %10)
ret i32 0
}
declare ptr @malloc(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"}
|
; ModuleID = '/tmp/tmp1ri6mz9s.c'
source_filename = "/tmp/tmp1ri6mz9s.c"
target datalayout = "e-m:e-p270: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 [72 x i8] c"Usage: rawspeed [-u unit] [-m max] [-t seconds] [-c] [-r limit] device\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c" -u unit = best sector multiple (default 2)\0A\00", align 1
@.str.2 = private unnamed_addr constant [77 x i8] c" -m max = read multiples of unit upto 'max' (default %d raw, %d file)\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c" -t seconds = time to run test (default 10)\0A\00", align 1
@.str.4 = private unnamed_addr constant [69 x i8] c" -c = cache test: rewind after each read or write of max size\0A\00", align 1
@.str.5 = private unnamed_addr constant [78 x i8] c" -r limit = random seeks upto sector 'limit' before reading or writing\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.2, i32 noundef 512, i32 noundef 64)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, 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/tmp1ri6mz9s.c"
target datalayout = "e-m:e-p270: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 [72 x i8] c"Usage: rawspeed [-u unit] [-m max] [-t seconds] [-c] [-r limit] device\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c" -u unit = best sector multiple (default 2)\0A\00", align 1
@.str.2 = private unnamed_addr constant [77 x i8] c" -m max = read multiples of unit upto 'max' (default %d raw, %d file)\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c" -t seconds = time to run test (default 10)\0A\00", align 1
@.str.4 = private unnamed_addr constant [69 x i8] c" -c = cache test: rewind after each read or write of max size\0A\00", align 1
@.str.5 = private unnamed_addr constant [78 x i8] c" -r limit = random seeks upto sector 'limit' before reading or writing\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.2, i32 noundef 512, i32 noundef 64)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, 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/tmpvv3_1wp9.c'
source_filename = "/tmp/tmpvv3_1wp9.c"
target datalayout = "e-m:e-p270: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 @ccnl_ccnb_addBlob(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @ccnl_ccnb_mkHeader(ptr noundef %8, i32 noundef %9, i32 noundef 5)
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i32 noundef %16)
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, %18
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
ret i32 %21
}
declare i32 @ccnl_ccnb_mkHeader(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvv3_1wp9.c"
target datalayout = "e-m:e-p270: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 @ccnl_ccnb_addBlob(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @ccnl_ccnb_mkHeader(ptr noundef %8, i32 noundef %9, i32 noundef 5)
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i32 noundef %16)
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, %18
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
ret i32 %21
}
declare i32 @ccnl_ccnb_mkHeader(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr8ofvowr.c'
source_filename = "/tmp/tmpr8ofvowr.c"
target datalayout = "e-m:e-p270: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 @_select_starting_player(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 i64 @utils_get_random_int(i32 noundef 0, i32 noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @utils_get_random_int(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/tmpr8ofvowr.c"
target datalayout = "e-m:e-p270: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 @_select_starting_player(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 i64 @utils_get_random_int(i32 noundef 0, i32 noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @utils_get_random_int(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/tmpl82vd0k5.c'
source_filename = "/tmp/tmpl82vd0k5.c"
target datalayout = "e-m:e-p270: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"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handle_interrupt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @restore_input_buffering()
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @exit(i32 noundef -2) #3
unreachable
}
declare i32 @restore_input_buffering(...) #1
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/tmpl82vd0k5.c"
target datalayout = "e-m:e-p270: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"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handle_interrupt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @restore_input_buffering()
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @exit(i32 noundef -2) #3
unreachable
}
declare i32 @restore_input_buffering(...) #1
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/tmp56xbgsop.c'
source_filename = "/tmp/tmp56xbgsop.c"
target datalayout = "e-m:e-p270: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 @runtime_write(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %18, %2
%7 = load i32, ptr %5, align 4
%8 = sext i32 %7 to i64
%9 = load i64, ptr %3, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %6
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @putchar(i8 noundef signext %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
ret void
}
declare i32 @putchar(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/tmp56xbgsop.c"
target datalayout = "e-m:e-p270: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 @runtime_write(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = sext i32 %6 to i64
%8 = load i64, ptr %3, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i32 @putchar(i8 noundef signext %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = load i64, ptr %3, align 8
%23 = icmp ult i64 %21, %22
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %24
24: ; preds = %._crit_edge, %2
ret void
}
declare i32 @putchar(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/tmpo5xp17cf.c'
source_filename = "/tmp/tmpo5xp17cf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ouch.logged = internal global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"OUCH! - I got signal %d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ouch(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @ouch.logged, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
store i32 1, ptr @ouch.logged, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr @stdout, align 4
%9 = call i32 @fflush(i32 noundef %8)
br label %10
10: ; preds = %5, %1
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fflush(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/tmpo5xp17cf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ouch.logged = internal global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"OUCH! - I got signal %d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ouch(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @ouch.logged, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
store i32 1, ptr @ouch.logged, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr @stdout, align 4
%9 = call i32 @fflush(i32 noundef %8)
br label %10
10: ; preds = %5, %1
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fflush(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/tmp5723w865.c'
source_filename = "/tmp/tmp5723w865.c"
target datalayout = "e-m:e-p270: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 weak dso_local void @Reserved42_IRQHandler() #0 {
%1 = call i32 (...) @Reserved42_DriverIRQHandler()
ret void
}
declare i32 @Reserved42_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp5723w865.c"
target datalayout = "e-m:e-p270: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 weak dso_local void @Reserved42_IRQHandler() #0 {
%1 = call i32 (...) @Reserved42_DriverIRQHandler()
ret void
}
declare i32 @Reserved42_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpe4c6br7t.c'
source_filename = "/tmp/tmpe4c6br7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpe4c6br7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp0z14petj.c'
source_filename = "/tmp/tmp0z14petj.c"
target datalayout = "e-m:e-p270: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 @wait3(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @waitpid(i32 noundef -1, ptr noundef %7, i32 noundef %8)
ret i32 %9
}
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp0z14petj.c"
target datalayout = "e-m:e-p270: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 @wait3(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @waitpid(i32 noundef -1, ptr noundef %7, i32 noundef %8)
ret i32 %9
}
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpfj54hv7w.c'
source_filename = "/tmp/tmpfj54hv7w.c"
target datalayout = "e-m:e-p270: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 @SensorGetReg_MT9V111(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
%5 = load i8, ptr %3, align 1
%6 = load ptr, ptr %4, align 8
%7 = call i32 @VIM_SIF_I2cReadWord(i8 noundef zeroext %5, ptr noundef %6)
ret void
}
declare i32 @VIM_SIF_I2cReadWord(i8 noundef zeroext, 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/tmpfj54hv7w.c"
target datalayout = "e-m:e-p270: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 @SensorGetReg_MT9V111(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
%5 = load i8, ptr %3, align 1
%6 = load ptr, ptr %4, align 8
%7 = call i32 @VIM_SIF_I2cReadWord(i8 noundef zeroext %5, ptr noundef %6)
ret void
}
declare i32 @VIM_SIF_I2cReadWord(i8 noundef zeroext, 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/tmp025zm3wx.c'
source_filename = "/tmp/tmp025zm3wx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @magic() #0 {
%1 = alloca i64, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i64 0, ptr %1, align 8
store i32 100, ptr %2, align 4
br label %5
5: ; preds = %34, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 1000
br i1 %7, label %8, label %37
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %30, %8
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 1000
br i1 %13, label %14, label %33
14: ; preds = %11
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %16, %18
store i64 %19, ptr %4, align 8
%20 = load i64, ptr %4, align 8
%21 = load i64, ptr %1, align 8
%22 = icmp ugt i64 %20, %21
br i1 %22, label %23, label %29
23: ; preds = %14
%24 = load i64, ptr %4, align 8
%25 = call i64 @is_palindrome(i64 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = load i64, ptr %4, align 8
store i64 %28, ptr %1, align 8
br label %29
29: ; preds = %27, %23, %14
br label %30
30: ; preds = %29
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %11, !llvm.loop !6
33: ; preds = %11
br label %34
34: ; preds = %33
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
br label %5, !llvm.loop !8
37: ; preds = %5
%38 = load i64, ptr %1, align 8
ret i64 %38
}
declare i64 @is_palindrome(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp025zm3wx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @magic() #0 {
%1 = alloca i64, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i64 0, ptr %1, align 8
store i32 100, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 1000
br i1 %6, label %.lr.ph2, label %39
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %34
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %10, 1000
br i1 %11, label %.lr.ph, label %33
.lr.ph: ; preds = %7
br label %12
12: ; preds = %.lr.ph, %28
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %14, %16
store i64 %17, ptr %4, align 8
%18 = load i64, ptr %4, align 8
%19 = load i64, ptr %1, align 8
%20 = icmp ugt i64 %18, %19
br i1 %20, label %21, label %27
21: ; preds = %12
%22 = load i64, ptr %4, align 8
%23 = call i64 @is_palindrome(i64 noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = load i64, ptr %4, align 8
store i64 %26, ptr %1, align 8
br label %27
27: ; preds = %25, %21, %12
br label %28
28: ; preds = %27
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp slt i32 %31, 1000
br i1 %32, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %7
br label %34
34: ; preds = %33
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp slt i32 %37, 1000
br i1 %38, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %39
39: ; preds = %._crit_edge3, %0
%40 = load i64, ptr %1, align 8
ret i64 %40
}
declare i64 @is_palindrome(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}
|
; ModuleID = '/tmp/tmpyynqusy1.c'
source_filename = "/tmp/tmpyynqusy1.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [10 x i32] [i32 7, i32 45, i32 3, i32 36, i32 0, i32 56, i32 -29, i32 284, i32 63, i32 13], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = 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 [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 40, i1 false)
store i32 10, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %15, %0
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %9, label %18
9: ; preds = %5
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
br label %5, !llvm.loop !6
18: ; preds = %5
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%21 = load i32, ptr %3, align 4
%22 = call i32 @bubble_sort(ptr noundef %20, i32 noundef %21)
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %33, %18
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %36
27: ; preds = %23
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %31)
br label %33
33: ; preds = %27
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
br label %23, !llvm.loop !8
36: ; preds = %23
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @printf(ptr noundef, ...) #2
declare i32 @bubble_sort(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyynqusy1.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [10 x i32] [i32 7, i32 45, i32 3, i32 36, i32 0, i32 56, i32 -29, i32 284, i32 63, i32 13], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = 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 [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 40, i1 false)
store i32 10, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %14
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
br label %14
14: ; preds = %8
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%22 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%23 = load i32, ptr %3, align 4
%24 = call i32 @bubble_sort(ptr noundef %22, i32 noundef %23)
store i32 0, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph2, label %40
.lr.ph2: ; preds = %20
br label %28
28: ; preds = %.lr.ph2, %34
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %32)
br label %34
34: ; preds = %28
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %40
40: ; preds = %._crit_edge3, %20
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @printf(ptr noundef, ...) #2
declare i32 @bubble_sort(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0z97aego.c'
source_filename = "/tmp/tmp0z97aego.c"
target datalayout = "e-m:e-p270: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 double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @poly_ctrlat(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %115, %3
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %118
20: ; preds = %16
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
%24 = srem i32 %22, %23
store i32 %24, ptr %9, align 4
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %25, i64 %27
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %30, i64 %32
%34 = load double, ptr %33, align 8
%35 = fsub double %29, %34
store double %35, ptr %10, align 8
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
store double %40, ptr %14, align 8
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %41, i64 %43
%45 = load double, ptr %44, align 8
store double %45, ptr %15, align 8
%46 = load double, ptr %15, align 8
%47 = load double, ptr %14, align 8
%48 = fsub double %46, %47
store double %48, ptr %11, align 8
%49 = load double, ptr %11, align 8
%50 = fmul double %49, 5.000000e-01
store double %50, ptr %13, align 8
%51 = load double, ptr %14, align 8
%52 = load double, ptr %15, align 8
%53 = fadd double %51, %52
%54 = fmul double %53, 5.000000e-01
store double %54, ptr %12, align 8
%55 = load double, ptr %10, align 8
%56 = fcmp oeq double %55, 0.000000e+00
br i1 %56, label %57, label %58
57: ; preds = %20
br label %115
58: ; preds = %20
%59 = load double, ptr %10, align 8
%60 = load double, ptr @M_PI, align 8
%61 = fcmp ogt double %59, %60
br i1 %61, label %62, label %66
62: ; preds = %58
%63 = load double, ptr %10, align 8
%64 = load double, ptr @M_PI, align 8
%65 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %64, double %63)
store double %65, ptr %10, align 8
br label %66
66: ; preds = %62, %58
%67 = load double, ptr %10, align 8
%68 = load double, ptr @M_PI, align 8
%69 = fneg double %68
%70 = fcmp olt double %67, %69
br i1 %70, label %71, label %75
71: ; preds = %66
%72 = load double, ptr %10, align 8
%73 = load double, ptr @M_PI, align 8
%74 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %73, double %72)
store double %74, ptr %10, align 8
br label %75
75: ; preds = %71, %66
%76 = load double, ptr %13, align 8
%77 = call double @llvm.fabs.f64(double %76)
%78 = fcmp olt double %77, 1.000000e-10
br i1 %78, label %79, label %94
79: ; preds = %75
%80 = load double, ptr %10, align 8
%81 = load double, ptr %12, align 8
%82 = call double @cos(double noundef %81) #3
%83 = load double, ptr %15, align 8
%84 = load double, ptr %12, align 8
%85 = call double @sin(double noundef %84) #3
%86 = fmul double %83, %85
%87 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %82, double %86)
%88 = load double, ptr %14, align 8
%89 = call double @cos(double noundef %88) #3
%90 = fsub double %87, %89
%91 = load double, ptr %7, align 8
%92 = fneg double %80
%93 = call double @llvm.fmuladd.f64(double %92, double %90, double %91)
store double %93, ptr %7, align 8
br label %114
94: ; preds = %75
%95 = load double, ptr %10, align 8
%96 = load double, ptr %13, align 8
%97 = call double @sin(double noundef %96) #3
%98 = load double, ptr %13, align 8
%99 = fdiv double %97, %98
%100 = load double, ptr %12, align 8
%101 = call double @cos(double noundef %100) #3
%102 = load double, ptr %15, align 8
%103 = load double, ptr %12, align 8
%104 = call double @sin(double noundef %103) #3
%105 = fmul double %102, %104
%106 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %101, double %105)
%107 = load double, ptr %14, align 8
%108 = call double @cos(double noundef %107) #3
%109 = fneg double %108
%110 = call double @llvm.fmuladd.f64(double %99, double %106, double %109)
%111 = load double, ptr %7, align 8
%112 = fneg double %95
%113 = call double @llvm.fmuladd.f64(double %112, double %110, double %111)
store double %113, ptr %7, align 8
br label %114
114: ; preds = %94, %79
br label %115
115: ; preds = %114, %57
%116 = load i32, ptr %8, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %8, align 4
br label %16, !llvm.loop !6
118: ; preds = %16
%119 = load double, ptr %7, align 8
%120 = fmul double %119, 6.371000e+06
%121 = fmul double %120, 6.371000e+06
ret double %121
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0z97aego.c"
target datalayout = "e-m:e-p270: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 double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @poly_ctrlat(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %7, align 8
store i32 0, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %120
.lr.ph: ; preds = %3
br label %19
19: ; preds = %.lr.ph, %114
%20 = load i32, ptr %8, align 4
%21 = add nsw i32 %20, 1
%22 = load i32, ptr %6, align 4
%23 = srem i32 %21, %22
store i32 %23, ptr %9, align 4
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = load double, ptr %32, align 8
%34 = fsub double %28, %33
store double %34, ptr %10, align 8
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, ptr %35, i64 %37
%39 = load double, ptr %38, align 8
store double %39, ptr %14, align 8
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %40, i64 %42
%44 = load double, ptr %43, align 8
store double %44, ptr %15, align 8
%45 = load double, ptr %15, align 8
%46 = load double, ptr %14, align 8
%47 = fsub double %45, %46
store double %47, ptr %11, align 8
%48 = load double, ptr %11, align 8
%49 = fmul double %48, 5.000000e-01
store double %49, ptr %13, align 8
%50 = load double, ptr %14, align 8
%51 = load double, ptr %15, align 8
%52 = fadd double %50, %51
%53 = fmul double %52, 5.000000e-01
store double %53, ptr %12, align 8
%54 = load double, ptr %10, align 8
%55 = fcmp oeq double %54, 0.000000e+00
br i1 %55, label %56, label %57
56: ; preds = %19
br label %114
57: ; preds = %19
%58 = load double, ptr %10, align 8
%59 = load double, ptr @M_PI, align 8
%60 = fcmp ogt double %58, %59
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = load double, ptr %10, align 8
%63 = load double, ptr @M_PI, align 8
%64 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %63, double %62)
store double %64, ptr %10, align 8
br label %65
65: ; preds = %61, %57
%66 = load double, ptr %10, align 8
%67 = load double, ptr @M_PI, align 8
%68 = fneg double %67
%69 = fcmp olt double %66, %68
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load double, ptr %10, align 8
%72 = load double, ptr @M_PI, align 8
%73 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %72, double %71)
store double %73, ptr %10, align 8
br label %74
74: ; preds = %70, %65
%75 = load double, ptr %13, align 8
%76 = call double @llvm.fabs.f64(double %75)
%77 = fcmp olt double %76, 1.000000e-10
br i1 %77, label %78, label %93
78: ; preds = %74
%79 = load double, ptr %10, align 8
%80 = load double, ptr %12, align 8
%81 = call double @cos(double noundef %80) #3
%82 = load double, ptr %15, align 8
%83 = load double, ptr %12, align 8
%84 = call double @sin(double noundef %83) #3
%85 = fmul double %82, %84
%86 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %81, double %85)
%87 = load double, ptr %14, align 8
%88 = call double @cos(double noundef %87) #3
%89 = fsub double %86, %88
%90 = load double, ptr %7, align 8
%91 = fneg double %79
%92 = call double @llvm.fmuladd.f64(double %91, double %89, double %90)
store double %92, ptr %7, align 8
br label %113
93: ; preds = %74
%94 = load double, ptr %10, align 8
%95 = load double, ptr %13, align 8
%96 = call double @sin(double noundef %95) #3
%97 = load double, ptr %13, align 8
%98 = fdiv double %96, %97
%99 = load double, ptr %12, align 8
%100 = call double @cos(double noundef %99) #3
%101 = load double, ptr %15, align 8
%102 = load double, ptr %12, align 8
%103 = call double @sin(double noundef %102) #3
%104 = fmul double %101, %103
%105 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %100, double %104)
%106 = load double, ptr %14, align 8
%107 = call double @cos(double noundef %106) #3
%108 = fneg double %107
%109 = call double @llvm.fmuladd.f64(double %98, double %105, double %108)
%110 = load double, ptr %7, align 8
%111 = fneg double %94
%112 = call double @llvm.fmuladd.f64(double %111, double %109, double %110)
store double %112, ptr %7, align 8
br label %113
113: ; preds = %93, %78
br label %114
114: ; preds = %113, %56
%115 = load i32, ptr %8, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %8, align 4
%117 = load i32, ptr %8, align 4
%118 = load i32, ptr %6, align 4
%119 = icmp slt i32 %117, %118
br i1 %119, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %114
br label %120
120: ; preds = %._crit_edge, %3
%121 = load double, ptr %7, align 8
%122 = fmul double %121, 6.371000e+06
%123 = fmul double %122, 6.371000e+06
ret double %123
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgd302jfy.c'
source_filename = "/tmp/tmpgd302jfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"d(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @d(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %2, align 4
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = sub nsw i32 %10, 1
%12 = call i32 @e(i32 noundef %11)
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %9, %1
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @e(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/tmpgd302jfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"d(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @d(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %2, align 4
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = sub nsw i32 %10, 1
%12 = call i32 @e(i32 noundef %11)
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %9, %1
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @e(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/tmpnm491lyn.c'
source_filename = "/tmp/tmpnm491lyn.c"
target datalayout = "e-m:e-p270: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 @sleep_on1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @cli()
%4 = load ptr, ptr %2, align 8
%5 = call i32 @sleep_on(ptr noundef %4)
%6 = call i32 (...) @sti()
ret void
}
declare i32 @cli(...) #1
declare i32 @sleep_on(ptr noundef) #1
declare i32 @sti(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpnm491lyn.c"
target datalayout = "e-m:e-p270: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 @sleep_on1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @cli()
%4 = load ptr, ptr %2, align 8
%5 = call i32 @sleep_on(ptr noundef %4)
%6 = call i32 (...) @sti()
ret void
}
declare i32 @cli(...) #1
declare i32 @sleep_on(ptr noundef) #1
declare i32 @sti(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpbr4gziy7.c'
source_filename = "/tmp/tmpbr4gziy7.c"
target datalayout = "e-m:e-p270: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 @makeUnion(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = call i32 @doFind(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %8, align 4
%17 = call i32 @doFind(ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %4
br label %80
22: ; preds = %4
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %30
26: ; preds = %22
%27 = load i32, ptr %10, align 4
store i32 %27, ptr %11, align 4
%28 = load i32, ptr %9, align 4
store i32 %28, ptr %10, align 4
%29 = load i32, ptr %11, align 4
store i32 %29, ptr %9, align 4
br label %30
30: ; preds = %26, %22
br label %31
31: ; preds = %30
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %9, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
%42 = icmp slt i32 %36, %41
br i1 %42, label %43, label %49
43: ; preds = %31
%44 = load i32, ptr %10, align 4
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
store i32 %44, ptr %48, align 4
br label %80
49: ; preds = %31
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %10, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
%59 = load i32, ptr %58, align 4
%60 = icmp sgt i32 %54, %59
br i1 %60, label %61, label %67
61: ; preds = %49
%62 = load i32, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
store i32 %62, ptr %66, align 4
br label %79
67: ; preds = %49
%68 = load i32, ptr %9, align 4
%69 = load ptr, ptr %5, align 8
%70 = load i32, ptr %10, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
store i32 %68, ptr %72, align 4
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %9, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %76, align 4
br label %79
79: ; preds = %67, %61
br label %80
80: ; preds = %21, %79, %43
ret void
}
declare i32 @doFind(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/tmpbr4gziy7.c"
target datalayout = "e-m:e-p270: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 @makeUnion(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = call i32 @doFind(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %8, align 4
%17 = call i32 @doFind(ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %4
br label %80
22: ; preds = %4
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %30
26: ; preds = %22
%27 = load i32, ptr %10, align 4
store i32 %27, ptr %11, align 4
%28 = load i32, ptr %9, align 4
store i32 %28, ptr %10, align 4
%29 = load i32, ptr %11, align 4
store i32 %29, ptr %9, align 4
br label %30
30: ; preds = %26, %22
br label %31
31: ; preds = %30
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %9, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
%42 = icmp slt i32 %36, %41
br i1 %42, label %43, label %49
43: ; preds = %31
%44 = load i32, ptr %10, align 4
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
store i32 %44, ptr %48, align 4
br label %80
49: ; preds = %31
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %10, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
%59 = load i32, ptr %58, align 4
%60 = icmp sgt i32 %54, %59
br i1 %60, label %61, label %67
61: ; preds = %49
%62 = load i32, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
store i32 %62, ptr %66, align 4
br label %79
67: ; preds = %49
%68 = load i32, ptr %9, align 4
%69 = load ptr, ptr %5, align 8
%70 = load i32, ptr %10, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
store i32 %68, ptr %72, align 4
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %9, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %76, align 4
br label %79
79: ; preds = %67, %61
br label %80
80: ; preds = %79, %43, %21
ret void
}
declare i32 @doFind(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/tmpoqf7wpe1.c'
source_filename = "/tmp/tmpoqf7wpe1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"*\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 [50 x i32], align 16
%3 = alloca [50 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
br label %9
9: ; preds = %18, %0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%11 = call signext i8 (...) @getchar()
store i8 %11, ptr %8, align 1
br label %12
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 20
br label %18
18: ; preds = %15, %12
%19 = phi i1 [ true, %12 ], [ %17, %15 ]
br i1 %19, label %9, label %20, !llvm.loop !6
20: ; preds = %18
store i32 0, ptr %5, align 4
br label %21
21: ; preds = %41, %20
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %44
25: ; preds = %21
%26 = call signext i8 (...) @getchar()
store i8 %26, ptr %8, align 1
%27 = load i8, ptr %8, align 1
%28 = sext i8 %27 to i32
%29 = sub nsw i32 %28, 48
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 %31
store i32 %29, ptr %32, align 4
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %38
store i32 %36, ptr %39, align 4
%40 = call signext i8 (...) @getchar()
store i8 %40, ptr %8, align 1
br label %41
41: ; preds = %25
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %5, align 4
br label %21, !llvm.loop !8
44: ; preds = %21
store i32 0, ptr %6, align 4
br label %45
45: ; preds = %91, %44
%46 = load i32, ptr %6, align 4
%47 = icmp slt i32 %46, 1000
br i1 %47, label %48, label %94
48: ; preds = %45
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
br label %49
49: ; preds = %78, %48
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %81
53: ; preds = %49
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load i32, ptr %5, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 %59
store i32 %57, ptr %60, align 4
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %68
66: ; preds = %53
%67 = call i32 @printf(ptr noundef @.str.1)
store i32 1, ptr %7, align 4
br label %77
68: ; preds = %53
%69 = load i32, ptr %5, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %68
%75 = call i32 @printf(ptr noundef @.str.2)
br label %76
76: ; preds = %74, %68
br label %77
77: ; preds = %76, %66
br label %78
78: ; preds = %77
%79 = load i32, ptr %5, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %5, align 4
br label %49, !llvm.loop !9
81: ; preds = %49
%82 = call i32 @printf(ptr noundef @.str.3)
%83 = load i32, ptr %7, align 4
%84 = icmp ne i32 %83, 0
br i1 %84, label %86, label %85
85: ; preds = %81
br label %94
86: ; preds = %81
%87 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 0
%88 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%89 = load i32, ptr %4, align 4
%90 = call i32 @next_generation(ptr noundef %87, ptr noundef %88, i32 noundef %89)
br label %91
91: ; preds = %86
%92 = load i32, ptr %6, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %6, align 4
br label %45, !llvm.loop !10
94: ; preds = %85, %45
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @next_generation(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/tmpoqf7wpe1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"*\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 [50 x i32], align 16
%3 = alloca [50 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
br label %9
9: ; preds = %18, %0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%11 = call signext i8 (...) @getchar()
store i8 %11, ptr %8, align 1
br label %12
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 20
br label %18
18: ; preds = %15, %12
%19 = phi i1 [ true, %12 ], [ %17, %15 ]
br i1 %19, label %9, label %20, !llvm.loop !6
20: ; preds = %18
store i32 0, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %46
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %40
%25 = call signext i8 (...) @getchar()
store i8 %25, ptr %8, align 1
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 48
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 %30
store i32 %28, ptr %31, align 4
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %37
store i32 %35, ptr %38, align 4
%39 = call signext i8 (...) @getchar()
store i8 %39, ptr %8, align 1
br label %40
40: ; preds = %24
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %4, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %24, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %20
store i32 0, ptr %6, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %47, 1000
br i1 %48, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %46
br label %49
49: ; preds = %.lr.ph5, %94
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph2, label %84
.lr.ph2: ; preds = %49
br label %53
53: ; preds = %.lr.ph2, %78
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load i32, ptr %5, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 %59
store i32 %57, ptr %60, align 4
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %68
66: ; preds = %53
%67 = call i32 @printf(ptr noundef @.str.1)
store i32 1, ptr %7, align 4
br label %77
68: ; preds = %53
%69 = load i32, ptr %5, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %68
%75 = call i32 @printf(ptr noundef @.str.2)
br label %76
76: ; preds = %74, %68
br label %77
77: ; preds = %76, %66
br label %78
78: ; preds = %77
%79 = load i32, ptr %5, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %5, align 4
%81 = load i32, ptr %5, align 4
%82 = load i32, ptr %4, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %53, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %78
br label %84
84: ; preds = %._crit_edge3, %49
%85 = call i32 @printf(ptr noundef @.str.3)
%86 = load i32, ptr %7, align 4
%87 = icmp ne i32 %86, 0
br i1 %87, label %89, label %88
88: ; preds = %84
br label %99
89: ; preds = %84
%90 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 0
%91 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%92 = load i32, ptr %4, align 4
%93 = call i32 @next_generation(ptr noundef %90, ptr noundef %91, i32 noundef %92)
br label %94
94: ; preds = %89
%95 = load i32, ptr %6, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %6, align 4
%97 = load i32, ptr %6, align 4
%98 = icmp slt i32 %97, 1000
br i1 %98, label %49, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %94
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %46
br label %99
99: ; preds = %.loopexit, %88
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @next_generation(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/tmp9paouo_a.c'
source_filename = "/tmp/tmp9paouo_a.c"
target datalayout = "e-m:e-p270: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/tmp9paouo_a.c"
target datalayout = "e-m:e-p270: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/tmpltiwpg0m.c'
source_filename = "/tmp/tmpltiwpg0m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %36
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
store i64 %29, ptr %9, align 8
%30 = load i64, ptr %9, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %32
store i64 %30, ptr %33, align 8
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
br label %19, !llvm.loop !6
36: ; preds = %19
%37 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%38 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%39 = call i32 @RandomFunc(ptr noundef %37, ptr noundef %38)
%40 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%41 = load i64, ptr %40, align 8
%42 = icmp eq i64 %41, -398443609
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %46
45: ; preds = %36
br label %46
46: ; preds = %45, %43
store i32 0, ptr %10, align 4
br label %47
47: ; preds = %50, %46
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %50, label %58
50: ; preds = %47
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
br label %47, !llvm.loop !8
58: ; preds = %47
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpltiwpg0m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %37
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
store i64 %28, ptr %9, align 8
%29 = load i64, ptr %9, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %31
store i64 %29, ptr %32, align 8
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %35, 1
br i1 %36, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %37
37: ; preds = %._crit_edge, %18
%38 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%42 = load i64, ptr %41, align 8
%43 = icmp eq i64 %42, -398443609
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %.lr.ph2, label %60
.lr.ph2: ; preds = %47
br label %50
50: ; preds = %.lr.ph2, %50
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp slt i32 %58, 1
br i1 %59, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %60
60: ; preds = %._crit_edge3, %47
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjf8k6wub.c'
source_filename = "/tmp/tmpjf8k6wub.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"_PRIV_ALLOC(\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @priv_alloc_begin(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 @fprintf(ptr noundef %3, ptr noundef @.str)
ret void
}
declare i32 @fprintf(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/tmpjf8k6wub.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"_PRIV_ALLOC(\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @priv_alloc_begin(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 @fprintf(ptr noundef %3, ptr noundef @.str)
ret void
}
declare i32 @fprintf(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/tmp5tur2y7g.c'
source_filename = "/tmp/tmp5tur2y7g.c"
target datalayout = "e-m:e-p270: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.TYPE_9__ = type { i32, i32, i32, i32, i32 }
%struct.TYPE_10__ = type { i64, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Could not connect to %s.\0A\00", align 1
@False = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [35 x i8] c"OpenGL not supported by X server.\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"display: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"using GLX version: %d.%d\0A\0A\00", align 1
@VisualScreenMask = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [63 x i8] c" visual bf lv rg d st r g b a ax dp st accum buffs\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c" id dep cl sz l ci b ro sz sz sz sz bf th cl r g b a\0A\00", align 1
@.str.6 = private unnamed_addr constant [63 x i8] c"-------------------------------------------------------------\0A\00", align 1
@GLX_USE_GL = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [12 x i8] c"0x%x %2d %s\00", align 1
@GLX_BUFFER_SIZE = dso_local global i32 0, align 4
@GLX_LEVEL = dso_local global i32 0, align 4
@GLX_RGBA = dso_local global i32 0, align 4
@GLX_DOUBLEBUFFER = dso_local global i32 0, align 4
@GLX_STEREO = dso_local global i32 0, align 4
@GLX_AUX_BUFFERS = dso_local global i32 0, align 4
@GLX_RED_SIZE = dso_local global i32 0, align 4
@GLX_GREEN_SIZE = dso_local global i32 0, align 4
@GLX_BLUE_SIZE = dso_local global i32 0, align 4
@GLX_ALPHA_SIZE = dso_local global i32 0, align 4
@GLX_DEPTH_SIZE = dso_local global i32 0, align 4
@GLX_STENCIL_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_RED_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_GREEN_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_BLUE_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_ALPHA_SIZE = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [27 x i8] c" %2s %2s %1s %1s %1s \00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"c\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.13 = private unnamed_addr constant [17 x i8] c"%2s %2s %2s %2s \00", align 1
@.str.14 = private unnamed_addr constant [28 x i8] c"%2s %2s %2s %2s %2s %2s %2s\00", align 1
@.str.15 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@GL_TRUE = dso_local global i32 0, align 4
@AllocNone = dso_local global i32 0, align 4
@InputOutput = dso_local global i32 0, align 4
@CWBorderPixel = dso_local global i32 0, align 4
@CWColormap = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [26 x i8] c"OpenGL vendor string: %s\0A\00", align 1
@GL_VENDOR = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [28 x i8] c"OpenGL renderer string: %s\0A\00", align 1
@GL_RENDERER = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [27 x i8] c"OpenGL version string: %s\0A\00", align 1
@GL_VERSION = dso_local global i32 0, align 4
@.str.19 = private unnamed_addr constant [29 x i8] c"direct rendering: supported\0A\00", align 1
@.str.20 = private unnamed_addr constant [22 x i8] c"GL extensions: '%s'\0A\0A\00", align 1
@GL_EXTENSIONS = dso_local global i32 0, align 4
@.str.21 = private unnamed_addr constant [25 x i8] c"No GLX-capable visuals!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca %struct.TYPE_9__, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca %struct.TYPE_10__, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%36 = call ptr @XOpenDisplay(ptr noundef null)
store ptr %36, ptr %5, align 8
%37 = load ptr, ptr %5, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %44, label %39
39: ; preds = %2
%40 = load i32, ptr @stderr, align 4
%41 = call ptr @XDisplayName(ptr noundef null)
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str, ptr noundef %41)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %2
%45 = load ptr, ptr %5, align 8
%46 = call i64 @glXQueryExtension(ptr noundef %45, ptr noundef %10, ptr noundef %11)
%47 = load i64, ptr @False, align 8
%48 = icmp eq i64 %46, %47
br i1 %48, label %49, label %53
49: ; preds = %44
%50 = load i32, ptr @stderr, align 4
%51 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.1)
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %44
%54 = load ptr, ptr %5, align 8
%55 = call i32 @glXQueryVersion(ptr noundef %54, ptr noundef %12, ptr noundef %13)
%56 = call ptr @XDisplayName(ptr noundef null)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %56)
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr %13, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %58, i32 noundef %59)
%61 = load ptr, ptr %5, align 8
%62 = call i32 @DefaultScreen(ptr noundef %61)
%63 = getelementptr inbounds %struct.TYPE_9__, ptr %6, i32 0, i32 3
store i32 %62, ptr %63, align 4
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr @VisualScreenMask, align 4
%66 = call ptr @XGetVisualInfo(ptr noundef %64, i32 noundef %65, ptr noundef %6, ptr noundef %14)
store ptr %66, ptr %7, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store ptr null, ptr %9, align 8
%70 = load ptr, ptr %7, align 8
store ptr %70, ptr %8, align 8
br label %71
71: ; preds = %201, %53
%72 = load i32, ptr %14, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %206
74: ; preds = %71
%75 = load ptr, ptr %5, align 8
%76 = load ptr, ptr %8, align 8
%77 = load i32, ptr @GLX_USE_GL, align 4
%78 = call i32 @glXGetConfig(ptr noundef %75, ptr noundef %76, i32 noundef %77, ptr noundef %15)
%79 = load i32, ptr %15, align 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %200
81: ; preds = %74
%82 = load ptr, ptr %8, align 8
%83 = getelementptr inbounds %struct.TYPE_9__, ptr %82, i32 0, i32 0
%84 = load i32, ptr %83, align 4
%85 = load ptr, ptr %8, align 8
%86 = getelementptr inbounds %struct.TYPE_9__, ptr %85, i32 0, i32 1
%87 = load i32, ptr %86, align 4
%88 = load ptr, ptr %8, align 8
%89 = getelementptr inbounds %struct.TYPE_9__, ptr %88, i32 0, i32 4
%90 = load i32, ptr %89, align 4
%91 = call ptr @ClassOf(i32 noundef %90)
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %84, i32 noundef %87, ptr noundef %91)
%93 = load ptr, ptr %5, align 8
%94 = load ptr, ptr %8, align 8
%95 = load i32, ptr @GLX_BUFFER_SIZE, align 4
%96 = call i32 @glXGetConfig(ptr noundef %93, ptr noundef %94, i32 noundef %95, ptr noundef %16)
%97 = load ptr, ptr %5, align 8
%98 = load ptr, ptr %8, align 8
%99 = load i32, ptr @GLX_LEVEL, align 4
%100 = call i32 @glXGetConfig(ptr noundef %97, ptr noundef %98, i32 noundef %99, ptr noundef %17)
%101 = load ptr, ptr %5, align 8
%102 = load ptr, ptr %8, align 8
%103 = load i32, ptr @GLX_RGBA, align 4
%104 = call i32 @glXGetConfig(ptr noundef %101, ptr noundef %102, i32 noundef %103, ptr noundef %18)
%105 = load ptr, ptr %5, align 8
%106 = load ptr, ptr %8, align 8
%107 = load i32, ptr @GLX_DOUBLEBUFFER, align 4
%108 = call i32 @glXGetConfig(ptr noundef %105, ptr noundef %106, i32 noundef %107, ptr noundef %19)
%109 = load ptr, ptr %5, align 8
%110 = load ptr, ptr %8, align 8
%111 = load i32, ptr @GLX_STEREO, align 4
%112 = call i32 @glXGetConfig(ptr noundef %109, ptr noundef %110, i32 noundef %111, ptr noundef %20)
%113 = load ptr, ptr %5, align 8
%114 = load ptr, ptr %8, align 8
%115 = load i32, ptr @GLX_AUX_BUFFERS, align 4
%116 = call i32 @glXGetConfig(ptr noundef %113, ptr noundef %114, i32 noundef %115, ptr noundef %21)
%117 = load ptr, ptr %5, align 8
%118 = load ptr, ptr %8, align 8
%119 = load i32, ptr @GLX_RED_SIZE, align 4
%120 = call i32 @glXGetConfig(ptr noundef %117, ptr noundef %118, i32 noundef %119, ptr noundef %22)
%121 = load ptr, ptr %5, align 8
%122 = load ptr, ptr %8, align 8
%123 = load i32, ptr @GLX_GREEN_SIZE, align 4
%124 = call i32 @glXGetConfig(ptr noundef %121, ptr noundef %122, i32 noundef %123, ptr noundef %23)
%125 = load ptr, ptr %5, align 8
%126 = load ptr, ptr %8, align 8
%127 = load i32, ptr @GLX_BLUE_SIZE, align 4
%128 = call i32 @glXGetConfig(ptr noundef %125, ptr noundef %126, i32 noundef %127, ptr noundef %24)
%129 = load ptr, ptr %5, align 8
%130 = load ptr, ptr %8, align 8
%131 = load i32, ptr @GLX_ALPHA_SIZE, align 4
%132 = call i32 @glXGetConfig(ptr noundef %129, ptr noundef %130, i32 noundef %131, ptr noundef %25)
%133 = load ptr, ptr %5, align 8
%134 = load ptr, ptr %8, align 8
%135 = load i32, ptr @GLX_DEPTH_SIZE, align 4
%136 = call i32 @glXGetConfig(ptr noundef %133, ptr noundef %134, i32 noundef %135, ptr noundef %26)
%137 = load ptr, ptr %5, align 8
%138 = load ptr, ptr %8, align 8
%139 = load i32, ptr @GLX_STENCIL_SIZE, align 4
%140 = call i32 @glXGetConfig(ptr noundef %137, ptr noundef %138, i32 noundef %139, ptr noundef %27)
%141 = load ptr, ptr %5, align 8
%142 = load ptr, ptr %8, align 8
%143 = load i32, ptr @GLX_ACCUM_RED_SIZE, align 4
%144 = call i32 @glXGetConfig(ptr noundef %141, ptr noundef %142, i32 noundef %143, ptr noundef %28)
%145 = load ptr, ptr %5, align 8
%146 = load ptr, ptr %8, align 8
%147 = load i32, ptr @GLX_ACCUM_GREEN_SIZE, align 4
%148 = call i32 @glXGetConfig(ptr noundef %145, ptr noundef %146, i32 noundef %147, ptr noundef %29)
%149 = load ptr, ptr %5, align 8
%150 = load ptr, ptr %8, align 8
%151 = load i32, ptr @GLX_ACCUM_BLUE_SIZE, align 4
%152 = call i32 @glXGetConfig(ptr noundef %149, ptr noundef %150, i32 noundef %151, ptr noundef %30)
%153 = load ptr, ptr %5, align 8
%154 = load ptr, ptr %8, align 8
%155 = load i32, ptr @GLX_ACCUM_ALPHA_SIZE, align 4
%156 = call i32 @glXGetConfig(ptr noundef %153, ptr noundef %154, i32 noundef %155, ptr noundef %31)
%157 = load i32, ptr %16, align 4
%158 = call ptr @Format(i32 noundef %157, i32 noundef 2)
%159 = load i32, ptr %17, align 4
%160 = call ptr @Format(i32 noundef %159, i32 noundef 2)
%161 = load i32, ptr %18, align 4
%162 = icmp ne i32 %161, 0
%163 = zext i1 %162 to i64
%164 = select i1 %162, ptr @.str.9, ptr @.str.10
%165 = load i32, ptr %19, align 4
%166 = icmp ne i32 %165, 0
%167 = zext i1 %166 to i64
%168 = select i1 %166, ptr @.str.11, ptr @.str.12
%169 = load i32, ptr %20, align 4
%170 = icmp ne i32 %169, 0
%171 = zext i1 %170 to i64
%172 = select i1 %170, ptr @.str.11, ptr @.str.12
%173 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %158, ptr noundef %160, ptr noundef %164, ptr noundef %168, ptr noundef %172)
%174 = load i32, ptr %22, align 4
%175 = call ptr @Format(i32 noundef %174, i32 noundef 2)
%176 = load i32, ptr %23, align 4
%177 = call ptr @Format(i32 noundef %176, i32 noundef 2)
%178 = load i32, ptr %24, align 4
%179 = call ptr @Format(i32 noundef %178, i32 noundef 2)
%180 = load i32, ptr %25, align 4
%181 = call ptr @Format(i32 noundef %180, i32 noundef 2)
%182 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %175, ptr noundef %177, ptr noundef %179, ptr noundef %181)
%183 = load i32, ptr %21, align 4
%184 = call ptr @Format(i32 noundef %183, i32 noundef 2)
%185 = load i32, ptr %26, align 4
%186 = call ptr @Format(i32 noundef %185, i32 noundef 2)
%187 = load i32, ptr %27, align 4
%188 = call ptr @Format(i32 noundef %187, i32 noundef 2)
%189 = load i32, ptr %28, align 4
%190 = call ptr @Format(i32 noundef %189, i32 noundef 2)
%191 = load i32, ptr %29, align 4
%192 = call ptr @Format(i32 noundef %191, i32 noundef 2)
%193 = load i32, ptr %30, align 4
%194 = call ptr @Format(i32 noundef %193, i32 noundef 2)
%195 = load i32, ptr %31, align 4
%196 = call ptr @Format(i32 noundef %195, i32 noundef 2)
%197 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %184, ptr noundef %186, ptr noundef %188, ptr noundef %190, ptr noundef %192, ptr noundef %194, ptr noundef %196)
%198 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%199 = load ptr, ptr %8, align 8
store ptr %199, ptr %9, align 8
br label %200
200: ; preds = %81, %74
br label %201
201: ; preds = %200
%202 = load i32, ptr %14, align 4
%203 = add nsw i32 %202, -1
store i32 %203, ptr %14, align 4
%204 = load ptr, ptr %8, align 8
%205 = getelementptr inbounds %struct.TYPE_9__, ptr %204, i32 1
store ptr %205, ptr %8, align 8
br label %71, !llvm.loop !6
206: ; preds = %71
%207 = load ptr, ptr %9, align 8
%208 = icmp ne ptr %207, null
br i1 %208, label %209, label %269
209: ; preds = %206
%210 = load ptr, ptr %5, align 8
%211 = load ptr, ptr %9, align 8
%212 = load i32, ptr @GL_TRUE, align 4
%213 = call i32 @glXCreateContext(ptr noundef %210, ptr noundef %211, i32 noundef 0, i32 noundef %212)
store i32 %213, ptr %32, align 4
%214 = load ptr, ptr %5, align 8
%215 = load ptr, ptr %5, align 8
%216 = load ptr, ptr %9, align 8
%217 = getelementptr inbounds %struct.TYPE_9__, ptr %216, i32 0, i32 3
%218 = load i32, ptr %217, align 4
%219 = call i32 @RootWindow(ptr noundef %215, i32 noundef %218)
%220 = load ptr, ptr %9, align 8
%221 = getelementptr inbounds %struct.TYPE_9__, ptr %220, i32 0, i32 2
%222 = load i32, ptr %221, align 4
%223 = load i32, ptr @AllocNone, align 4
%224 = call i32 @XCreateColormap(ptr noundef %214, i32 noundef %219, i32 noundef %222, i32 noundef %223)
store i32 %224, ptr %34, align 4
%225 = load i32, ptr %34, align 4
%226 = getelementptr inbounds %struct.TYPE_10__, ptr %35, i32 0, i32 1
store i32 %225, ptr %226, align 8
%227 = getelementptr inbounds %struct.TYPE_10__, ptr %35, i32 0, i32 0
store i64 0, ptr %227, align 8
%228 = load ptr, ptr %5, align 8
%229 = load ptr, ptr %5, align 8
%230 = load ptr, ptr %9, align 8
%231 = getelementptr inbounds %struct.TYPE_9__, ptr %230, i32 0, i32 3
%232 = load i32, ptr %231, align 4
%233 = call i32 @RootWindow(ptr noundef %229, i32 noundef %232)
%234 = load ptr, ptr %9, align 8
%235 = getelementptr inbounds %struct.TYPE_9__, ptr %234, i32 0, i32 1
%236 = load i32, ptr %235, align 4
%237 = load i32, ptr @InputOutput, align 4
%238 = load ptr, ptr %9, align 8
%239 = getelementptr inbounds %struct.TYPE_9__, ptr %238, i32 0, i32 2
%240 = load i32, ptr %239, align 4
%241 = load i32, ptr @CWBorderPixel, align 4
%242 = load i32, ptr @CWColormap, align 4
%243 = or i32 %241, %242
%244 = call i32 @XCreateWindow(ptr noundef %228, i32 noundef %233, i32 noundef 0, i32 noundef 0, i32 noundef 100, i32 noundef 100, i32 noundef 0, i32 noundef %236, i32 noundef %237, i32 noundef %240, i32 noundef %243, ptr noundef %35)
store i32 %244, ptr %33, align 4
%245 = load ptr, ptr %5, align 8
%246 = load i32, ptr %33, align 4
%247 = load i32, ptr %32, align 4
%248 = call i32 @glXMakeCurrent(ptr noundef %245, i32 noundef %246, i32 noundef %247)
%249 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%250 = load i32, ptr @GL_VENDOR, align 4
%251 = call ptr @glGetString(i32 noundef %250)
%252 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %251)
%253 = load i32, ptr @GL_RENDERER, align 4
%254 = call ptr @glGetString(i32 noundef %253)
%255 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %254)
%256 = load i32, ptr @GL_VERSION, align 4
%257 = call ptr @glGetString(i32 noundef %256)
%258 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %257)
%259 = load ptr, ptr %5, align 8
%260 = load i32, ptr %32, align 4
%261 = call i64 @glXIsDirect(ptr noundef %259, i32 noundef %260)
%262 = icmp ne i64 %261, 0
br i1 %262, label %263, label %265
263: ; preds = %209
%264 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %265
265: ; preds = %263, %209
%266 = load i32, ptr @GL_EXTENSIONS, align 4
%267 = call ptr @glGetString(i32 noundef %266)
%268 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, ptr noundef %267)
br label %271
269: ; preds = %206
%270 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
br label %271
271: ; preds = %269, %265
%272 = load ptr, ptr %7, align 8
%273 = call i32 @XFree(ptr noundef %272)
ret void
}
declare ptr @XOpenDisplay(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @XDisplayName(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @glXQueryExtension(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @glXQueryVersion(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @DefaultScreen(ptr noundef) #1
declare ptr @XGetVisualInfo(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @glXGetConfig(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @ClassOf(i32 noundef) #1
declare ptr @Format(i32 noundef, i32 noundef) #1
declare i32 @glXCreateContext(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @XCreateColormap(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @RootWindow(ptr noundef, i32 noundef) #1
declare i32 @XCreateWindow(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @glXMakeCurrent(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @glGetString(i32 noundef) #1
declare i64 @glXIsDirect(ptr noundef, i32 noundef) #1
declare i32 @XFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5tur2y7g.c"
target datalayout = "e-m:e-p270: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.TYPE_9__ = type { i32, i32, i32, i32, i32 }
%struct.TYPE_10__ = type { i64, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Could not connect to %s.\0A\00", align 1
@False = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [35 x i8] c"OpenGL not supported by X server.\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"display: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"using GLX version: %d.%d\0A\0A\00", align 1
@VisualScreenMask = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [63 x i8] c" visual bf lv rg d st r g b a ax dp st accum buffs\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c" id dep cl sz l ci b ro sz sz sz sz bf th cl r g b a\0A\00", align 1
@.str.6 = private unnamed_addr constant [63 x i8] c"-------------------------------------------------------------\0A\00", align 1
@GLX_USE_GL = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [12 x i8] c"0x%x %2d %s\00", align 1
@GLX_BUFFER_SIZE = dso_local global i32 0, align 4
@GLX_LEVEL = dso_local global i32 0, align 4
@GLX_RGBA = dso_local global i32 0, align 4
@GLX_DOUBLEBUFFER = dso_local global i32 0, align 4
@GLX_STEREO = dso_local global i32 0, align 4
@GLX_AUX_BUFFERS = dso_local global i32 0, align 4
@GLX_RED_SIZE = dso_local global i32 0, align 4
@GLX_GREEN_SIZE = dso_local global i32 0, align 4
@GLX_BLUE_SIZE = dso_local global i32 0, align 4
@GLX_ALPHA_SIZE = dso_local global i32 0, align 4
@GLX_DEPTH_SIZE = dso_local global i32 0, align 4
@GLX_STENCIL_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_RED_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_GREEN_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_BLUE_SIZE = dso_local global i32 0, align 4
@GLX_ACCUM_ALPHA_SIZE = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [27 x i8] c" %2s %2s %1s %1s %1s \00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"c\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.13 = private unnamed_addr constant [17 x i8] c"%2s %2s %2s %2s \00", align 1
@.str.14 = private unnamed_addr constant [28 x i8] c"%2s %2s %2s %2s %2s %2s %2s\00", align 1
@.str.15 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@GL_TRUE = dso_local global i32 0, align 4
@AllocNone = dso_local global i32 0, align 4
@InputOutput = dso_local global i32 0, align 4
@CWBorderPixel = dso_local global i32 0, align 4
@CWColormap = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [26 x i8] c"OpenGL vendor string: %s\0A\00", align 1
@GL_VENDOR = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [28 x i8] c"OpenGL renderer string: %s\0A\00", align 1
@GL_RENDERER = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [27 x i8] c"OpenGL version string: %s\0A\00", align 1
@GL_VERSION = dso_local global i32 0, align 4
@.str.19 = private unnamed_addr constant [29 x i8] c"direct rendering: supported\0A\00", align 1
@.str.20 = private unnamed_addr constant [22 x i8] c"GL extensions: '%s'\0A\0A\00", align 1
@GL_EXTENSIONS = dso_local global i32 0, align 4
@.str.21 = private unnamed_addr constant [25 x i8] c"No GLX-capable visuals!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca %struct.TYPE_9__, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca %struct.TYPE_10__, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%36 = call ptr @XOpenDisplay(ptr noundef null)
store ptr %36, ptr %5, align 8
%37 = load ptr, ptr %5, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %44, label %39
39: ; preds = %2
%40 = load i32, ptr @stderr, align 4
%41 = call ptr @XDisplayName(ptr noundef null)
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str, ptr noundef %41)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %2
%45 = load ptr, ptr %5, align 8
%46 = call i64 @glXQueryExtension(ptr noundef %45, ptr noundef %10, ptr noundef %11)
%47 = load i64, ptr @False, align 8
%48 = icmp eq i64 %46, %47
br i1 %48, label %49, label %53
49: ; preds = %44
%50 = load i32, ptr @stderr, align 4
%51 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.1)
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %44
%54 = load ptr, ptr %5, align 8
%55 = call i32 @glXQueryVersion(ptr noundef %54, ptr noundef %12, ptr noundef %13)
%56 = call ptr @XDisplayName(ptr noundef null)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %56)
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr %13, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %58, i32 noundef %59)
%61 = load ptr, ptr %5, align 8
%62 = call i32 @DefaultScreen(ptr noundef %61)
%63 = getelementptr inbounds %struct.TYPE_9__, ptr %6, i32 0, i32 3
store i32 %62, ptr %63, align 4
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr @VisualScreenMask, align 4
%66 = call ptr @XGetVisualInfo(ptr noundef %64, i32 noundef %65, ptr noundef %6, ptr noundef %14)
store ptr %66, ptr %7, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store ptr null, ptr %9, align 8
%70 = load ptr, ptr %7, align 8
store ptr %70, ptr %8, align 8
%71 = load i32, ptr %14, align 4
%72 = icmp sgt i32 %71, 0
br i1 %72, label %.lr.ph, label %207
.lr.ph: ; preds = %53
br label %73
73: ; preds = %.lr.ph, %200
%74 = load ptr, ptr %5, align 8
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr @GLX_USE_GL, align 4
%77 = call i32 @glXGetConfig(ptr noundef %74, ptr noundef %75, i32 noundef %76, ptr noundef %15)
%78 = load i32, ptr %15, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %199
80: ; preds = %73
%81 = load ptr, ptr %8, align 8
%82 = getelementptr inbounds %struct.TYPE_9__, ptr %81, i32 0, i32 0
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %8, align 8
%85 = getelementptr inbounds %struct.TYPE_9__, ptr %84, i32 0, i32 1
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %8, align 8
%88 = getelementptr inbounds %struct.TYPE_9__, ptr %87, i32 0, i32 4
%89 = load i32, ptr %88, align 4
%90 = call ptr @ClassOf(i32 noundef %89)
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %83, i32 noundef %86, ptr noundef %90)
%92 = load ptr, ptr %5, align 8
%93 = load ptr, ptr %8, align 8
%94 = load i32, ptr @GLX_BUFFER_SIZE, align 4
%95 = call i32 @glXGetConfig(ptr noundef %92, ptr noundef %93, i32 noundef %94, ptr noundef %16)
%96 = load ptr, ptr %5, align 8
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr @GLX_LEVEL, align 4
%99 = call i32 @glXGetConfig(ptr noundef %96, ptr noundef %97, i32 noundef %98, ptr noundef %17)
%100 = load ptr, ptr %5, align 8
%101 = load ptr, ptr %8, align 8
%102 = load i32, ptr @GLX_RGBA, align 4
%103 = call i32 @glXGetConfig(ptr noundef %100, ptr noundef %101, i32 noundef %102, ptr noundef %18)
%104 = load ptr, ptr %5, align 8
%105 = load ptr, ptr %8, align 8
%106 = load i32, ptr @GLX_DOUBLEBUFFER, align 4
%107 = call i32 @glXGetConfig(ptr noundef %104, ptr noundef %105, i32 noundef %106, ptr noundef %19)
%108 = load ptr, ptr %5, align 8
%109 = load ptr, ptr %8, align 8
%110 = load i32, ptr @GLX_STEREO, align 4
%111 = call i32 @glXGetConfig(ptr noundef %108, ptr noundef %109, i32 noundef %110, ptr noundef %20)
%112 = load ptr, ptr %5, align 8
%113 = load ptr, ptr %8, align 8
%114 = load i32, ptr @GLX_AUX_BUFFERS, align 4
%115 = call i32 @glXGetConfig(ptr noundef %112, ptr noundef %113, i32 noundef %114, ptr noundef %21)
%116 = load ptr, ptr %5, align 8
%117 = load ptr, ptr %8, align 8
%118 = load i32, ptr @GLX_RED_SIZE, align 4
%119 = call i32 @glXGetConfig(ptr noundef %116, ptr noundef %117, i32 noundef %118, ptr noundef %22)
%120 = load ptr, ptr %5, align 8
%121 = load ptr, ptr %8, align 8
%122 = load i32, ptr @GLX_GREEN_SIZE, align 4
%123 = call i32 @glXGetConfig(ptr noundef %120, ptr noundef %121, i32 noundef %122, ptr noundef %23)
%124 = load ptr, ptr %5, align 8
%125 = load ptr, ptr %8, align 8
%126 = load i32, ptr @GLX_BLUE_SIZE, align 4
%127 = call i32 @glXGetConfig(ptr noundef %124, ptr noundef %125, i32 noundef %126, ptr noundef %24)
%128 = load ptr, ptr %5, align 8
%129 = load ptr, ptr %8, align 8
%130 = load i32, ptr @GLX_ALPHA_SIZE, align 4
%131 = call i32 @glXGetConfig(ptr noundef %128, ptr noundef %129, i32 noundef %130, ptr noundef %25)
%132 = load ptr, ptr %5, align 8
%133 = load ptr, ptr %8, align 8
%134 = load i32, ptr @GLX_DEPTH_SIZE, align 4
%135 = call i32 @glXGetConfig(ptr noundef %132, ptr noundef %133, i32 noundef %134, ptr noundef %26)
%136 = load ptr, ptr %5, align 8
%137 = load ptr, ptr %8, align 8
%138 = load i32, ptr @GLX_STENCIL_SIZE, align 4
%139 = call i32 @glXGetConfig(ptr noundef %136, ptr noundef %137, i32 noundef %138, ptr noundef %27)
%140 = load ptr, ptr %5, align 8
%141 = load ptr, ptr %8, align 8
%142 = load i32, ptr @GLX_ACCUM_RED_SIZE, align 4
%143 = call i32 @glXGetConfig(ptr noundef %140, ptr noundef %141, i32 noundef %142, ptr noundef %28)
%144 = load ptr, ptr %5, align 8
%145 = load ptr, ptr %8, align 8
%146 = load i32, ptr @GLX_ACCUM_GREEN_SIZE, align 4
%147 = call i32 @glXGetConfig(ptr noundef %144, ptr noundef %145, i32 noundef %146, ptr noundef %29)
%148 = load ptr, ptr %5, align 8
%149 = load ptr, ptr %8, align 8
%150 = load i32, ptr @GLX_ACCUM_BLUE_SIZE, align 4
%151 = call i32 @glXGetConfig(ptr noundef %148, ptr noundef %149, i32 noundef %150, ptr noundef %30)
%152 = load ptr, ptr %5, align 8
%153 = load ptr, ptr %8, align 8
%154 = load i32, ptr @GLX_ACCUM_ALPHA_SIZE, align 4
%155 = call i32 @glXGetConfig(ptr noundef %152, ptr noundef %153, i32 noundef %154, ptr noundef %31)
%156 = load i32, ptr %16, align 4
%157 = call ptr @Format(i32 noundef %156, i32 noundef 2)
%158 = load i32, ptr %17, align 4
%159 = call ptr @Format(i32 noundef %158, i32 noundef 2)
%160 = load i32, ptr %18, align 4
%161 = icmp ne i32 %160, 0
%162 = zext i1 %161 to i64
%163 = select i1 %161, ptr @.str.9, ptr @.str.10
%164 = load i32, ptr %19, align 4
%165 = icmp ne i32 %164, 0
%166 = zext i1 %165 to i64
%167 = select i1 %165, ptr @.str.11, ptr @.str.12
%168 = load i32, ptr %20, align 4
%169 = icmp ne i32 %168, 0
%170 = zext i1 %169 to i64
%171 = select i1 %169, ptr @.str.11, ptr @.str.12
%172 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %157, ptr noundef %159, ptr noundef %163, ptr noundef %167, ptr noundef %171)
%173 = load i32, ptr %22, align 4
%174 = call ptr @Format(i32 noundef %173, i32 noundef 2)
%175 = load i32, ptr %23, align 4
%176 = call ptr @Format(i32 noundef %175, i32 noundef 2)
%177 = load i32, ptr %24, align 4
%178 = call ptr @Format(i32 noundef %177, i32 noundef 2)
%179 = load i32, ptr %25, align 4
%180 = call ptr @Format(i32 noundef %179, i32 noundef 2)
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %174, ptr noundef %176, ptr noundef %178, ptr noundef %180)
%182 = load i32, ptr %21, align 4
%183 = call ptr @Format(i32 noundef %182, i32 noundef 2)
%184 = load i32, ptr %26, align 4
%185 = call ptr @Format(i32 noundef %184, i32 noundef 2)
%186 = load i32, ptr %27, align 4
%187 = call ptr @Format(i32 noundef %186, i32 noundef 2)
%188 = load i32, ptr %28, align 4
%189 = call ptr @Format(i32 noundef %188, i32 noundef 2)
%190 = load i32, ptr %29, align 4
%191 = call ptr @Format(i32 noundef %190, i32 noundef 2)
%192 = load i32, ptr %30, align 4
%193 = call ptr @Format(i32 noundef %192, i32 noundef 2)
%194 = load i32, ptr %31, align 4
%195 = call ptr @Format(i32 noundef %194, i32 noundef 2)
%196 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %183, ptr noundef %185, ptr noundef %187, ptr noundef %189, ptr noundef %191, ptr noundef %193, ptr noundef %195)
%197 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%198 = load ptr, ptr %8, align 8
store ptr %198, ptr %9, align 8
br label %199
199: ; preds = %80, %73
br label %200
200: ; preds = %199
%201 = load i32, ptr %14, align 4
%202 = add nsw i32 %201, -1
store i32 %202, ptr %14, align 4
%203 = load ptr, ptr %8, align 8
%204 = getelementptr inbounds %struct.TYPE_9__, ptr %203, i32 1
store ptr %204, ptr %8, align 8
%205 = load i32, ptr %14, align 4
%206 = icmp sgt i32 %205, 0
br i1 %206, label %73, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %200
br label %207
207: ; preds = %._crit_edge, %53
%208 = load ptr, ptr %9, align 8
%209 = icmp ne ptr %208, null
br i1 %209, label %210, label %270
210: ; preds = %207
%211 = load ptr, ptr %5, align 8
%212 = load ptr, ptr %9, align 8
%213 = load i32, ptr @GL_TRUE, align 4
%214 = call i32 @glXCreateContext(ptr noundef %211, ptr noundef %212, i32 noundef 0, i32 noundef %213)
store i32 %214, ptr %32, align 4
%215 = load ptr, ptr %5, align 8
%216 = load ptr, ptr %5, align 8
%217 = load ptr, ptr %9, align 8
%218 = getelementptr inbounds %struct.TYPE_9__, ptr %217, i32 0, i32 3
%219 = load i32, ptr %218, align 4
%220 = call i32 @RootWindow(ptr noundef %216, i32 noundef %219)
%221 = load ptr, ptr %9, align 8
%222 = getelementptr inbounds %struct.TYPE_9__, ptr %221, i32 0, i32 2
%223 = load i32, ptr %222, align 4
%224 = load i32, ptr @AllocNone, align 4
%225 = call i32 @XCreateColormap(ptr noundef %215, i32 noundef %220, i32 noundef %223, i32 noundef %224)
store i32 %225, ptr %34, align 4
%226 = load i32, ptr %34, align 4
%227 = getelementptr inbounds %struct.TYPE_10__, ptr %35, i32 0, i32 1
store i32 %226, ptr %227, align 8
%228 = getelementptr inbounds %struct.TYPE_10__, ptr %35, i32 0, i32 0
store i64 0, ptr %228, align 8
%229 = load ptr, ptr %5, align 8
%230 = load ptr, ptr %5, align 8
%231 = load ptr, ptr %9, align 8
%232 = getelementptr inbounds %struct.TYPE_9__, ptr %231, i32 0, i32 3
%233 = load i32, ptr %232, align 4
%234 = call i32 @RootWindow(ptr noundef %230, i32 noundef %233)
%235 = load ptr, ptr %9, align 8
%236 = getelementptr inbounds %struct.TYPE_9__, ptr %235, i32 0, i32 1
%237 = load i32, ptr %236, align 4
%238 = load i32, ptr @InputOutput, align 4
%239 = load ptr, ptr %9, align 8
%240 = getelementptr inbounds %struct.TYPE_9__, ptr %239, i32 0, i32 2
%241 = load i32, ptr %240, align 4
%242 = load i32, ptr @CWBorderPixel, align 4
%243 = load i32, ptr @CWColormap, align 4
%244 = or i32 %242, %243
%245 = call i32 @XCreateWindow(ptr noundef %229, i32 noundef %234, i32 noundef 0, i32 noundef 0, i32 noundef 100, i32 noundef 100, i32 noundef 0, i32 noundef %237, i32 noundef %238, i32 noundef %241, i32 noundef %244, ptr noundef %35)
store i32 %245, ptr %33, align 4
%246 = load ptr, ptr %5, align 8
%247 = load i32, ptr %33, align 4
%248 = load i32, ptr %32, align 4
%249 = call i32 @glXMakeCurrent(ptr noundef %246, i32 noundef %247, i32 noundef %248)
%250 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%251 = load i32, ptr @GL_VENDOR, align 4
%252 = call ptr @glGetString(i32 noundef %251)
%253 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %252)
%254 = load i32, ptr @GL_RENDERER, align 4
%255 = call ptr @glGetString(i32 noundef %254)
%256 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %255)
%257 = load i32, ptr @GL_VERSION, align 4
%258 = call ptr @glGetString(i32 noundef %257)
%259 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %258)
%260 = load ptr, ptr %5, align 8
%261 = load i32, ptr %32, align 4
%262 = call i64 @glXIsDirect(ptr noundef %260, i32 noundef %261)
%263 = icmp ne i64 %262, 0
br i1 %263, label %264, label %266
264: ; preds = %210
%265 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %266
266: ; preds = %264, %210
%267 = load i32, ptr @GL_EXTENSIONS, align 4
%268 = call ptr @glGetString(i32 noundef %267)
%269 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, ptr noundef %268)
br label %272
270: ; preds = %207
%271 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
br label %272
272: ; preds = %270, %266
%273 = load ptr, ptr %7, align 8
%274 = call i32 @XFree(ptr noundef %273)
ret void
}
declare ptr @XOpenDisplay(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @XDisplayName(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @glXQueryExtension(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @glXQueryVersion(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @DefaultScreen(ptr noundef) #1
declare ptr @XGetVisualInfo(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @glXGetConfig(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @ClassOf(i32 noundef) #1
declare ptr @Format(i32 noundef, i32 noundef) #1
declare i32 @glXCreateContext(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @XCreateColormap(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @RootWindow(ptr noundef, i32 noundef) #1
declare i32 @XCreateWindow(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @glXMakeCurrent(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @glGetString(i32 noundef) #1
declare i64 @glXIsDirect(ptr noundef, i32 noundef) #1
declare i32 @XFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzty9mqhl.c'
source_filename = "/tmp/tmpzty9mqhl.c"
target datalayout = "e-m:e-p270: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/tmpzty9mqhl.c"
target datalayout = "e-m:e-p270: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/tmpnz0y34ne.c'
source_filename = "/tmp/tmpnz0y34ne.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EWOULDBLOCK = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"the peer socket is closed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @writen_nonblock(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %9, align 8
%11 = load i64, ptr %6, align 8
store i64 %11, ptr %7, align 8
br label %12
12: ; preds = %43, %3
%13 = load i64, ptr %7, align 8
%14 = icmp ugt i64 %13, 0
br i1 %14, label %15, label %50
15: ; preds = %12
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %9, align 8
%18 = load i64, ptr %7, align 8
%19 = call i64 @write(i32 noundef %16, ptr noundef %17, i64 noundef %18)
store i64 %19, ptr %8, align 8
%20 = icmp sle i64 %19, 0
br i1 %20, label %21, label %43
21: ; preds = %15
%22 = load i64, ptr @errno, align 8
%23 = load i64, ptr @EINTR, align 8
%24 = icmp eq i64 %22, %23
br i1 %24, label %33, label %25
25: ; preds = %21
%26 = load i64, ptr @errno, align 8
%27 = load i64, ptr @EWOULDBLOCK, align 8
%28 = icmp eq i64 %26, %27
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = load i64, ptr @errno, align 8
%31 = load i64, ptr @EAGAIN, align 8
%32 = icmp eq i64 %30, %31
br i1 %32, label %33, label %34
33: ; preds = %29, %25, %21
store i64 0, ptr %8, align 8
br label %42
34: ; preds = %29
%35 = load i64, ptr %8, align 8
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @perror(ptr noundef @.str)
br label %41
39: ; preds = %34
%40 = call i32 @printf(ptr noundef @.str.1)
br label %41
41: ; preds = %39, %37
br label %50
42: ; preds = %33
br label %43
43: ; preds = %42, %15
%44 = load i64, ptr %8, align 8
%45 = load i64, ptr %7, align 8
%46 = sub i64 %45, %44
store i64 %46, ptr %7, align 8
%47 = load i64, ptr %8, align 8
%48 = load ptr, ptr %9, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 %47
store ptr %49, ptr %9, align 8
br label %12, !llvm.loop !6
50: ; preds = %41, %12
%51 = load i64, ptr %6, align 8
%52 = load i64, ptr %7, align 8
%53 = sub i64 %51, %52
ret i64 %53
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnz0y34ne.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EWOULDBLOCK = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"the peer socket is closed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @writen_nonblock(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %9, align 8
%11 = load i64, ptr %6, align 8
store i64 %11, ptr %7, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp ugt i64 %12, 0
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %42
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %9, align 8
%17 = load i64, ptr %7, align 8
%18 = call i64 @write(i32 noundef %15, ptr noundef %16, i64 noundef %17)
store i64 %18, ptr %8, align 8
%19 = icmp sle i64 %18, 0
br i1 %19, label %20, label %42
20: ; preds = %14
%21 = load i64, ptr @errno, align 8
%22 = load i64, ptr @EINTR, align 8
%23 = icmp eq i64 %21, %22
br i1 %23, label %32, label %24
24: ; preds = %20
%25 = load i64, ptr @errno, align 8
%26 = load i64, ptr @EWOULDBLOCK, align 8
%27 = icmp eq i64 %25, %26
br i1 %27, label %32, label %28
28: ; preds = %24
%29 = load i64, ptr @errno, align 8
%30 = load i64, ptr @EAGAIN, align 8
%31 = icmp eq i64 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %28, %24, %20
store i64 0, ptr %8, align 8
br label %41
33: ; preds = %28
%34 = load i64, ptr %8, align 8
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @perror(ptr noundef @.str)
br label %40
38: ; preds = %33
%39 = call i32 @printf(ptr noundef @.str.1)
br label %40
40: ; preds = %38, %36
br label %51
41: ; preds = %32
br label %42
42: ; preds = %41, %14
%43 = load i64, ptr %8, align 8
%44 = load i64, ptr %7, align 8
%45 = sub i64 %44, %43
store i64 %45, ptr %7, align 8
%46 = load i64, ptr %8, align 8
%47 = load ptr, ptr %9, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 %46
store ptr %48, ptr %9, align 8
%49 = load i64, ptr %7, align 8
%50 = icmp ugt i64 %49, 0
br i1 %50, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %42
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %51
51: ; preds = %.loopexit, %40
%52 = load i64, ptr %6, align 8
%53 = load i64, ptr %7, align 8
%54 = sub i64 %52, %53
ret i64 %54
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo3t55fty.c'
source_filename = "/tmp/tmpo3t55fty.c"
target datalayout = "e-m:e-p270: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 @test2(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 @busy_loop(ptr noundef %3)
ret void
}
declare i32 @busy_loop(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/tmpo3t55fty.c"
target datalayout = "e-m:e-p270: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 @test2(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 @busy_loop(ptr noundef %3)
ret void
}
declare i32 @busy_loop(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/tmp6c67kk63.c'
source_filename = "/tmp/tmp6c67kk63.c"
target datalayout = "e-m:e-p270: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 @my_putnbr_base(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 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = call i32 @my_putchar(i8 noundef signext 45)
%9 = load i32, ptr %3, align 4
%10 = mul nsw i32 %9, -1
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %7, %2
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @my_strlen(ptr noundef %13)
%15 = sub nsw i32 %14, 1
%16 = icmp sge i32 %12, %15
br i1 %16, label %17, label %24
17: ; preds = %11
%18 = load i32, ptr %3, align 4
%19 = load ptr, ptr %4, align 8
%20 = call i32 @my_strlen(ptr noundef %19)
%21 = sdiv i32 %18, %20
%22 = load ptr, ptr %4, align 8
%23 = call i32 @my_putnbr_base(i32 noundef %21, ptr noundef %22)
br label %24
24: ; preds = %17, %11
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %3, align 4
%27 = load ptr, ptr %4, align 8
%28 = call i32 @my_strlen(ptr noundef %27)
%29 = srem i32 %26, %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %25, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call i32 @my_putchar(i8 noundef signext %32)
ret i32 1
}
declare i32 @my_putchar(i8 noundef signext) #1
declare i32 @my_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6c67kk63.c"
target datalayout = "e-m:e-p270: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 @my_putnbr_base(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 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = call i32 @my_putchar(i8 noundef signext 45)
%9 = load i32, ptr %3, align 4
%10 = mul nsw i32 %9, -1
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %7, %2
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @my_strlen(ptr noundef %13)
%15 = sub nsw i32 %14, 1
%16 = icmp sge i32 %12, %15
br i1 %16, label %17, label %24
17: ; preds = %11
%18 = load i32, ptr %3, align 4
%19 = load ptr, ptr %4, align 8
%20 = call i32 @my_strlen(ptr noundef %19)
%21 = sdiv i32 %18, %20
%22 = load ptr, ptr %4, align 8
%23 = call i32 @my_putnbr_base(i32 noundef %21, ptr noundef %22)
br label %24
24: ; preds = %17, %11
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %3, align 4
%27 = load ptr, ptr %4, align 8
%28 = call i32 @my_strlen(ptr noundef %27)
%29 = srem i32 %26, %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %25, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call i32 @my_putchar(i8 noundef signext %32)
ret i32 1
}
declare i32 @my_putchar(i8 noundef signext) #1
declare i32 @my_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwu_75ai9.c'
source_filename = "/tmp/tmpwu_75ai9.c"
target datalayout = "e-m:e-p270: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/tmpwu_75ai9.c"
target datalayout = "e-m:e-p270: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/tmpx_nfhfeb.c'
source_filename = "/tmp/tmpx_nfhfeb.c"
target datalayout = "e-m:e-p270: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.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xcrossing_same_screen(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %6, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i32 0, i32 0
store i32 %5, ptr %8, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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_nfhfeb.c"
target datalayout = "e-m:e-p270: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.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xcrossing_same_screen(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %6, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i32 0, i32 0
store i32 %5, ptr %8, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp7cfr6qbw.c'
source_filename = "/tmp/tmp7cfr6qbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@_IONBF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RunTests(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stdout, align 4
%4 = load i32, ptr @_IONBF, align 4
%5 = call i32 @setvbuf(i32 noundef %3, ptr noundef null, i32 noundef %4, i32 noundef 0)
%6 = load ptr, ptr %2, align 8
%7 = call i32 %6()
ret i32 %7
}
declare i32 @setvbuf(i32 noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7cfr6qbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@_IONBF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RunTests(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stdout, align 4
%4 = load i32, ptr @_IONBF, align 4
%5 = call i32 @setvbuf(i32 noundef %3, ptr noundef null, i32 noundef %4, i32 noundef 0)
%6 = load ptr, ptr %2, align 8
%7 = call i32 %6()
ret i32 %7
}
declare i32 @setvbuf(i32 noundef, 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"}
|
; ModuleID = '/tmp/tmp625o3izt.c'
source_filename = "/tmp/tmp625o3izt.c"
target datalayout = "e-m:e-p270: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/tmp625o3izt.c"
target datalayout = "e-m:e-p270: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/tmpzbskmlrg.c'
source_filename = "/tmp/tmpzbskmlrg.c"
target datalayout = "e-m:e-p270: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.target_y.coeff = private unnamed_addr constant [8 x float] [float 0xBF72F75260000000, float 0xC00E2561E0000000, float 0xC042FDF520000000, float 0x4018BFAC40000000, float 0x404FBBA720000000, float 0xBFA74E0F40000000, float 0x3FB0F5EA00000000, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @target_y(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca [10 x float], align 16
%10 = alloca [10 x float], align 16
%11 = alloca [10 x float], align 16
%12 = alloca [8 x float], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
%24 = alloca float, align 4
%25 = alloca float, align 4
%26 = alloca float, align 4
%27 = alloca float, align 4
%28 = alloca float, align 4
%29 = alloca float, align 4
%30 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 7, ptr %7, align 4
store float 0xBFF5E933A0000000, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 40, i1 false)
%31 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 0
store float -1.500000e+01, ptr %31, align 16
%32 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 1
store float -1.500000e+01, ptr %32, align 4
%33 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 2
store float 0xC0320147A0000000, ptr %33, align 8
%34 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 3
store float 0xC032020C40000000, ptr %34, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
%35 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 0
store float 1.500000e+01, ptr %35, align 16
%36 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 1
store float 1.500000e+01, ptr %36, align 4
%37 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 2
store float 0x403200C4A0000000, ptr %37, align 8
%38 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 3
store float 0x4032004180000000, ptr %38, align 4
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.target_y.coeff, i64 32, i1 false)
store i32 0, ptr %13, align 4
%39 = load i32, ptr %13, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %77
41: ; preds = %3
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %42
42: ; preds = %73, %41
%43 = load i32, ptr %14, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %76
46: ; preds = %42
%47 = load i32, ptr %14, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %48
%50 = load float, ptr %49, align 4
%51 = load i32, ptr %14, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %52
%54 = load float, ptr %53, align 4
%55 = fcmp oeq float %50, %54
br i1 %55, label %56, label %57
56: ; preds = %46
br label %73
57: ; preds = %46
%58 = load i32, ptr %14, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %59
%61 = load float, ptr %60, align 4
%62 = load i32, ptr %14, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %63
%65 = load float, ptr %64, align 4
%66 = fsub float %61, %65
%67 = fpext float %66 to double
%68 = fdiv double 2.000000e+00, %67
%69 = fptrunc double %68 to float
%70 = load i32, ptr %14, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 %71
store float %69, ptr %72, align 4
br label %73
73: ; preds = %57, %56
%74 = load i32, ptr %14, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %14, align 4
br label %42, !llvm.loop !6
76: ; preds = %42
br label %77
77: ; preds = %76, %3
%78 = load ptr, ptr %4, align 8
%79 = getelementptr inbounds float, ptr %78, i64 0
%80 = load float, ptr %79, align 4
%81 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 0
%82 = load float, ptr %81, align 16
%83 = fsub float %80, %82
%84 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%85 = load float, ptr %84, align 16
%86 = fmul float %83, %85
%87 = fpext float %86 to double
%88 = fadd double 1.000000e+00, %87
%89 = fptrunc double %88 to float
store float %89, ptr %15, align 4
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds float, ptr %90, i64 0
%92 = load float, ptr %91, align 4
%93 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%94 = load float, ptr %93, align 16
%95 = fmul float %92, %94
store float %95, ptr %16, align 4
%96 = load ptr, ptr %4, align 8
%97 = getelementptr inbounds float, ptr %96, i64 1
%98 = load float, ptr %97, align 4
%99 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 1
%100 = load float, ptr %99, align 4
%101 = fsub float %98, %100
%102 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%103 = load float, ptr %102, align 4
%104 = fmul float %101, %103
%105 = fpext float %104 to double
%106 = fadd double 1.000000e+00, %105
%107 = fptrunc double %106 to float
store float %107, ptr %17, align 4
%108 = load ptr, ptr %5, align 8
%109 = getelementptr inbounds float, ptr %108, i64 1
%110 = load float, ptr %109, align 4
%111 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%112 = load float, ptr %111, align 4
%113 = fmul float %110, %112
store float %113, ptr %18, align 4
%114 = load ptr, ptr %4, align 8
%115 = getelementptr inbounds float, ptr %114, i64 2
%116 = load float, ptr %115, align 4
%117 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 2
%118 = load float, ptr %117, align 8
%119 = fsub float %116, %118
%120 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%121 = load float, ptr %120, align 8
%122 = fmul float %119, %121
%123 = fpext float %122 to double
%124 = fadd double 1.000000e+00, %123
%125 = fptrunc double %124 to float
store float %125, ptr %19, align 4
%126 = load ptr, ptr %5, align 8
%127 = getelementptr inbounds float, ptr %126, i64 2
%128 = load float, ptr %127, align 4
%129 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%130 = load float, ptr %129, align 8
%131 = fmul float %128, %130
store float %131, ptr %20, align 4
%132 = load ptr, ptr %4, align 8
%133 = getelementptr inbounds float, ptr %132, i64 3
%134 = load float, ptr %133, align 4
%135 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 3
%136 = load float, ptr %135, align 4
%137 = fsub float %134, %136
%138 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%139 = load float, ptr %138, align 4
%140 = fmul float %137, %139
%141 = fpext float %140 to double
%142 = fadd double 1.000000e+00, %141
%143 = fptrunc double %142 to float
store float %143, ptr %21, align 4
%144 = load ptr, ptr %5, align 8
%145 = getelementptr inbounds float, ptr %144, i64 3
%146 = load float, ptr %145, align 4
%147 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%148 = load float, ptr %147, align 4
%149 = fmul float %146, %148
store float %149, ptr %22, align 4
%150 = load float, ptr %15, align 4
store float %150, ptr %23, align 4
%151 = load float, ptr %17, align 4
store float %151, ptr %24, align 4
%152 = load float, ptr %19, align 4
store float %152, ptr %25, align 4
%153 = load float, ptr %25, align 4
%154 = load float, ptr %19, align 4
%155 = fmul float %153, %154
store float %155, ptr %26, align 4
%156 = load float, ptr %21, align 4
store float %156, ptr %27, align 4
%157 = load float, ptr %8, align 4
%158 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 0
%159 = load float, ptr %158, align 16
%160 = fadd float %157, %159
%161 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 1
%162 = load float, ptr %161, align 4
%163 = load float, ptr %23, align 4
%164 = call float @llvm.fmuladd.f32(float %162, float %163, float %160)
%165 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 2
%166 = load float, ptr %165, align 8
%167 = load float, ptr %24, align 4
%168 = call float @llvm.fmuladd.f32(float %166, float %167, float %164)
%169 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 3
%170 = load float, ptr %169, align 4
%171 = load float, ptr %25, align 4
%172 = call float @llvm.fmuladd.f32(float %170, float %171, float %168)
%173 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 4
%174 = load float, ptr %173, align 16
%175 = load float, ptr %27, align 4
%176 = call float @llvm.fmuladd.f32(float %174, float %175, float %172)
%177 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 5
%178 = load float, ptr %177, align 4
%179 = load float, ptr %23, align 4
%180 = fmul float %178, %179
%181 = load float, ptr %25, align 4
%182 = call float @llvm.fmuladd.f32(float %180, float %181, float %176)
%183 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 6
%184 = load float, ptr %183, align 8
%185 = load float, ptr %26, align 4
%186 = call float @llvm.fmuladd.f32(float %184, float %185, float %182)
store float %186, ptr %28, align 4
%187 = load float, ptr %16, align 4
%188 = fadd float 0.000000e+00, %187
%189 = load float, ptr %18, align 4
%190 = fadd float %188, %189
%191 = load float, ptr %20, align 4
%192 = fadd float %190, %191
%193 = load float, ptr %22, align 4
%194 = fadd float %192, %193
store float %194, ptr %29, align 4
%195 = load float, ptr %29, align 4
%196 = fcmp oeq float %195, 0.000000e+00
br i1 %196, label %197, label %198
197: ; preds = %77
br label %245
198: ; preds = %77
%199 = load float, ptr %16, align 4
%200 = load float, ptr %16, align 4
%201 = fmul float %199, %200
%202 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 1
%203 = load float, ptr %202, align 4
%204 = fadd float 0.000000e+00, %203
%205 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 5
%206 = load float, ptr %205, align 4
%207 = load float, ptr %25, align 4
%208 = call float @llvm.fmuladd.f32(float %206, float %207, float %204)
%209 = call float @pow(float noundef %208, i32 noundef 2)
%210 = load float, ptr %18, align 4
%211 = load float, ptr %18, align 4
%212 = fmul float %210, %211
%213 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 2
%214 = load float, ptr %213, align 8
%215 = fadd float 0.000000e+00, %214
%216 = call float @pow(float noundef %215, i32 noundef 2)
%217 = fmul float %212, %216
%218 = call float @llvm.fmuladd.f32(float %201, float %209, float %217)
%219 = load float, ptr %20, align 4
%220 = load float, ptr %20, align 4
%221 = fmul float %219, %220
%222 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 3
%223 = load float, ptr %222, align 4
%224 = fadd float 0.000000e+00, %223
%225 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 5
%226 = load float, ptr %225, align 4
%227 = load float, ptr %23, align 4
%228 = call float @llvm.fmuladd.f32(float %226, float %227, float %224)
%229 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 6
%230 = load float, ptr %229, align 8
%231 = fmul float 2.000000e+00, %230
%232 = load float, ptr %25, align 4
%233 = call float @llvm.fmuladd.f32(float %231, float %232, float %228)
%234 = call float @pow(float noundef %233, i32 noundef 2)
%235 = call float @llvm.fmuladd.f32(float %221, float %234, float %218)
%236 = load float, ptr %22, align 4
%237 = load float, ptr %22, align 4
%238 = fmul float %236, %237
%239 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 4
%240 = load float, ptr %239, align 16
%241 = fadd float 0.000000e+00, %240
%242 = call float @pow(float noundef %241, i32 noundef 2)
%243 = call float @llvm.fmuladd.f32(float %238, float %242, float %235)
%244 = call float @sqrt(float noundef %243)
br label %245
245: ; preds = %198, %197
%246 = phi float [ 0.000000e+00, %197 ], [ %244, %198 ]
store float %246, ptr %30, align 4
%247 = load float, ptr %30, align 4
%248 = load ptr, ptr %5, align 8
%249 = getelementptr inbounds float, ptr %248, i64 0
store float %247, ptr %249, align 4
%250 = load float, ptr %28, align 4
ret float %250
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; 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) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare float @sqrt(float noundef) #4
declare float @pow(float noundef, i32 noundef) #4
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpzbskmlrg.c"
target datalayout = "e-m:e-p270: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.target_y.coeff = private unnamed_addr constant [8 x float] [float 0xBF72F75260000000, float 0xC00E2561E0000000, float 0xC042FDF520000000, float 0x4018BFAC40000000, float 0x404FBBA720000000, float 0xBFA74E0F40000000, float 0x3FB0F5EA00000000, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @target_y(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca [10 x float], align 16
%10 = alloca [10 x float], align 16
%11 = alloca [10 x float], align 16
%12 = alloca [8 x float], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
%24 = alloca float, align 4
%25 = alloca float, align 4
%26 = alloca float, align 4
%27 = alloca float, align 4
%28 = alloca float, align 4
%29 = alloca float, align 4
%30 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 7, ptr %7, align 4
store float 0xBFF5E933A0000000, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 40, i1 false)
%31 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 0
store float -1.500000e+01, ptr %31, align 16
%32 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 1
store float -1.500000e+01, ptr %32, align 4
%33 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 2
store float 0xC0320147A0000000, ptr %33, align 8
%34 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 3
store float 0xC032020C40000000, ptr %34, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
%35 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 0
store float 1.500000e+01, ptr %35, align 16
%36 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 1
store float 1.500000e+01, ptr %36, align 4
%37 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 2
store float 0x403200C4A0000000, ptr %37, align 8
%38 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 3
store float 0x4032004180000000, ptr %38, align 4
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.target_y.coeff, i64 32, i1 false)
store i32 0, ptr %13, align 4
%39 = load i32, ptr %13, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %79
41: ; preds = %3
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
%42 = load i32, ptr %14, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph, label %78
.lr.ph: ; preds = %41
br label %45
45: ; preds = %.lr.ph, %72
%46 = load i32, ptr %14, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %47
%49 = load float, ptr %48, align 4
%50 = load i32, ptr %14, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %51
%53 = load float, ptr %52, align 4
%54 = fcmp oeq float %49, %53
br i1 %54, label %55, label %56
55: ; preds = %45
br label %72
56: ; preds = %45
%57 = load i32, ptr %14, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %58
%60 = load float, ptr %59, align 4
%61 = load i32, ptr %14, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %62
%64 = load float, ptr %63, align 4
%65 = fsub float %60, %64
%66 = fpext float %65 to double
%67 = fdiv double 2.000000e+00, %66
%68 = fptrunc double %67 to float
%69 = load i32, ptr %14, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 %70
store float %68, ptr %71, align 4
br label %72
72: ; preds = %56, %55
%73 = load i32, ptr %14, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %14, align 4
%75 = load i32, ptr %14, align 4
%76 = load i32, ptr %6, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %78
78: ; preds = %._crit_edge, %41
br label %79
79: ; preds = %78, %3
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds float, ptr %80, i64 0
%82 = load float, ptr %81, align 4
%83 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 0
%84 = load float, ptr %83, align 16
%85 = fsub float %82, %84
%86 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%87 = load float, ptr %86, align 16
%88 = fmul float %85, %87
%89 = fpext float %88 to double
%90 = fadd double 1.000000e+00, %89
%91 = fptrunc double %90 to float
store float %91, ptr %15, align 4
%92 = load ptr, ptr %5, align 8
%93 = getelementptr inbounds float, ptr %92, i64 0
%94 = load float, ptr %93, align 4
%95 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%96 = load float, ptr %95, align 16
%97 = fmul float %94, %96
store float %97, ptr %16, align 4
%98 = load ptr, ptr %4, align 8
%99 = getelementptr inbounds float, ptr %98, i64 1
%100 = load float, ptr %99, align 4
%101 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 1
%102 = load float, ptr %101, align 4
%103 = fsub float %100, %102
%104 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%105 = load float, ptr %104, align 4
%106 = fmul float %103, %105
%107 = fpext float %106 to double
%108 = fadd double 1.000000e+00, %107
%109 = fptrunc double %108 to float
store float %109, ptr %17, align 4
%110 = load ptr, ptr %5, align 8
%111 = getelementptr inbounds float, ptr %110, i64 1
%112 = load float, ptr %111, align 4
%113 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%114 = load float, ptr %113, align 4
%115 = fmul float %112, %114
store float %115, ptr %18, align 4
%116 = load ptr, ptr %4, align 8
%117 = getelementptr inbounds float, ptr %116, i64 2
%118 = load float, ptr %117, align 4
%119 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 2
%120 = load float, ptr %119, align 8
%121 = fsub float %118, %120
%122 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%123 = load float, ptr %122, align 8
%124 = fmul float %121, %123
%125 = fpext float %124 to double
%126 = fadd double 1.000000e+00, %125
%127 = fptrunc double %126 to float
store float %127, ptr %19, align 4
%128 = load ptr, ptr %5, align 8
%129 = getelementptr inbounds float, ptr %128, i64 2
%130 = load float, ptr %129, align 4
%131 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%132 = load float, ptr %131, align 8
%133 = fmul float %130, %132
store float %133, ptr %20, align 4
%134 = load ptr, ptr %4, align 8
%135 = getelementptr inbounds float, ptr %134, i64 3
%136 = load float, ptr %135, align 4
%137 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 3
%138 = load float, ptr %137, align 4
%139 = fsub float %136, %138
%140 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%141 = load float, ptr %140, align 4
%142 = fmul float %139, %141
%143 = fpext float %142 to double
%144 = fadd double 1.000000e+00, %143
%145 = fptrunc double %144 to float
store float %145, ptr %21, align 4
%146 = load ptr, ptr %5, align 8
%147 = getelementptr inbounds float, ptr %146, i64 3
%148 = load float, ptr %147, align 4
%149 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%150 = load float, ptr %149, align 4
%151 = fmul float %148, %150
store float %151, ptr %22, align 4
%152 = load float, ptr %15, align 4
store float %152, ptr %23, align 4
%153 = load float, ptr %17, align 4
store float %153, ptr %24, align 4
%154 = load float, ptr %19, align 4
store float %154, ptr %25, align 4
%155 = load float, ptr %25, align 4
%156 = load float, ptr %19, align 4
%157 = fmul float %155, %156
store float %157, ptr %26, align 4
%158 = load float, ptr %21, align 4
store float %158, ptr %27, align 4
%159 = load float, ptr %8, align 4
%160 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 0
%161 = load float, ptr %160, align 16
%162 = fadd float %159, %161
%163 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 1
%164 = load float, ptr %163, align 4
%165 = load float, ptr %23, align 4
%166 = call float @llvm.fmuladd.f32(float %164, float %165, float %162)
%167 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 2
%168 = load float, ptr %167, align 8
%169 = load float, ptr %24, align 4
%170 = call float @llvm.fmuladd.f32(float %168, float %169, float %166)
%171 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 3
%172 = load float, ptr %171, align 4
%173 = load float, ptr %25, align 4
%174 = call float @llvm.fmuladd.f32(float %172, float %173, float %170)
%175 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 4
%176 = load float, ptr %175, align 16
%177 = load float, ptr %27, align 4
%178 = call float @llvm.fmuladd.f32(float %176, float %177, float %174)
%179 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 5
%180 = load float, ptr %179, align 4
%181 = load float, ptr %23, align 4
%182 = fmul float %180, %181
%183 = load float, ptr %25, align 4
%184 = call float @llvm.fmuladd.f32(float %182, float %183, float %178)
%185 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 6
%186 = load float, ptr %185, align 8
%187 = load float, ptr %26, align 4
%188 = call float @llvm.fmuladd.f32(float %186, float %187, float %184)
store float %188, ptr %28, align 4
%189 = load float, ptr %16, align 4
%190 = fadd float 0.000000e+00, %189
%191 = load float, ptr %18, align 4
%192 = fadd float %190, %191
%193 = load float, ptr %20, align 4
%194 = fadd float %192, %193
%195 = load float, ptr %22, align 4
%196 = fadd float %194, %195
store float %196, ptr %29, align 4
%197 = load float, ptr %29, align 4
%198 = fcmp oeq float %197, 0.000000e+00
br i1 %198, label %199, label %200
199: ; preds = %79
br label %247
200: ; preds = %79
%201 = load float, ptr %16, align 4
%202 = load float, ptr %16, align 4
%203 = fmul float %201, %202
%204 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 1
%205 = load float, ptr %204, align 4
%206 = fadd float 0.000000e+00, %205
%207 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 5
%208 = load float, ptr %207, align 4
%209 = load float, ptr %25, align 4
%210 = call float @llvm.fmuladd.f32(float %208, float %209, float %206)
%211 = call float @pow(float noundef %210, i32 noundef 2)
%212 = load float, ptr %18, align 4
%213 = load float, ptr %18, align 4
%214 = fmul float %212, %213
%215 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 2
%216 = load float, ptr %215, align 8
%217 = fadd float 0.000000e+00, %216
%218 = call float @pow(float noundef %217, i32 noundef 2)
%219 = fmul float %214, %218
%220 = call float @llvm.fmuladd.f32(float %203, float %211, float %219)
%221 = load float, ptr %20, align 4
%222 = load float, ptr %20, align 4
%223 = fmul float %221, %222
%224 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 3
%225 = load float, ptr %224, align 4
%226 = fadd float 0.000000e+00, %225
%227 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 5
%228 = load float, ptr %227, align 4
%229 = load float, ptr %23, align 4
%230 = call float @llvm.fmuladd.f32(float %228, float %229, float %226)
%231 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 6
%232 = load float, ptr %231, align 8
%233 = fmul float 2.000000e+00, %232
%234 = load float, ptr %25, align 4
%235 = call float @llvm.fmuladd.f32(float %233, float %234, float %230)
%236 = call float @pow(float noundef %235, i32 noundef 2)
%237 = call float @llvm.fmuladd.f32(float %223, float %236, float %220)
%238 = load float, ptr %22, align 4
%239 = load float, ptr %22, align 4
%240 = fmul float %238, %239
%241 = getelementptr inbounds [8 x float], ptr %12, i64 0, i64 4
%242 = load float, ptr %241, align 16
%243 = fadd float 0.000000e+00, %242
%244 = call float @pow(float noundef %243, i32 noundef 2)
%245 = call float @llvm.fmuladd.f32(float %240, float %244, float %237)
%246 = call float @sqrt(float noundef %245)
br label %247
247: ; preds = %200, %199
%248 = phi float [ 0.000000e+00, %199 ], [ %246, %200 ]
store float %248, ptr %30, align 4
%249 = load float, ptr %30, align 4
%250 = load ptr, ptr %5, align 8
%251 = getelementptr inbounds float, ptr %250, i64 0
store float %249, ptr %251, align 4
%252 = load float, ptr %28, align 4
ret float %252
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; 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) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare float @sqrt(float noundef) #4
declare float @pow(float noundef, i32 noundef) #4
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpfxf1juxo.c'
source_filename = "/tmp/tmpfxf1juxo.c"
target datalayout = "e-m:e-p270: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 @interp2_k_tsinc6(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
%4 = load double, ptr %2, align 8
%5 = fcmp oge double %4, 0.000000e+00
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load double, ptr %2, align 8
%8 = fcmp olt double %7, 3.000000e+00
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load double, ptr %2, align 8
%11 = call double @interp2_k_sinc(double noundef %10)
store double %11, ptr %3, align 8
br label %12
12: ; preds = %9, %6, %1
%13 = load double, ptr %3, align 8
ret double %13
}
declare double @interp2_k_sinc(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/tmpfxf1juxo.c"
target datalayout = "e-m:e-p270: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 @interp2_k_tsinc6(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
%4 = load double, ptr %2, align 8
%5 = fcmp oge double %4, 0.000000e+00
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load double, ptr %2, align 8
%8 = fcmp olt double %7, 3.000000e+00
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load double, ptr %2, align 8
%11 = call double @interp2_k_sinc(double noundef %10)
store double %11, ptr %3, align 8
br label %12
12: ; preds = %9, %6, %1
%13 = load double, ptr %3, align 8
ret double %13
}
declare double @interp2_k_sinc(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/tmp2qa151p4.c'
source_filename = "/tmp/tmp2qa151p4.c"
target datalayout = "e-m:e-p270: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/tmp2qa151p4.c"
target datalayout = "e-m:e-p270: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/tmpah724nf9.c'
source_filename = "/tmp/tmpah724nf9.c"
target datalayout = "e-m:e-p270: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 @op_not_a(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @one_complement(ptr noundef %9)
ret void
}
declare i32 @one_complement(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/tmpah724nf9.c"
target datalayout = "e-m:e-p270: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 @op_not_a(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @one_complement(ptr noundef %9)
ret void
}
declare i32 @one_complement(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/tmpry68crqp.c'
source_filename = "/tmp/tmpry68crqp.c"
target datalayout = "e-m:e-p270: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/tmpry68crqp.c"
target datalayout = "e-m:e-p270: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/tmpjaotkrxz.c'
source_filename = "/tmp/tmpjaotkrxz.c"
target datalayout = "e-m:e-p270: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"Move disk %d from %c to %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @TH(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = load i32, ptr %5, align 4
%13 = load i8, ptr %6, align 1
%14 = load i8, ptr %7, align 1
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i8 noundef signext %13, i8 noundef signext %14)
br label %31
16: ; preds = %4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %17, 1
%19 = load i8, ptr %6, align 1
%20 = load i8, ptr %8, align 1
%21 = load i8, ptr %7, align 1
call void @TH(i32 noundef %18, i8 noundef signext %19, i8 noundef signext %20, i8 noundef signext %21)
%22 = load i32, ptr %5, align 4
%23 = load i8, ptr %6, align 1
%24 = load i8, ptr %7, align 1
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %22, i8 noundef signext %23, i8 noundef signext %24)
%26 = load i32, ptr %5, align 4
%27 = sub nsw i32 %26, 1
%28 = load i8, ptr %8, align 1
%29 = load i8, ptr %7, align 1
%30 = load i8, ptr %6, align 1
call void @TH(i32 noundef %27, i8 noundef signext %28, i8 noundef signext %29, i8 noundef signext %30)
br label %31
31: ; preds = %16, %11
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjaotkrxz.c"
target datalayout = "e-m:e-p270: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"Move disk %d from %c to %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @TH(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = load i32, ptr %5, align 4
%13 = load i8, ptr %6, align 1
%14 = load i8, ptr %7, align 1
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i8 noundef signext %13, i8 noundef signext %14)
br label %31
16: ; preds = %4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %17, 1
%19 = load i8, ptr %6, align 1
%20 = load i8, ptr %8, align 1
%21 = load i8, ptr %7, align 1
call void @TH(i32 noundef %18, i8 noundef signext %19, i8 noundef signext %20, i8 noundef signext %21)
%22 = load i32, ptr %5, align 4
%23 = load i8, ptr %6, align 1
%24 = load i8, ptr %7, align 1
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %22, i8 noundef signext %23, i8 noundef signext %24)
%26 = load i32, ptr %5, align 4
%27 = sub nsw i32 %26, 1
%28 = load i8, ptr %8, align 1
%29 = load i8, ptr %7, align 1
%30 = load i8, ptr %6, align 1
call void @TH(i32 noundef %27, i8 noundef signext %28, i8 noundef signext %29, i8 noundef signext %30)
br label %31
31: ; preds = %16, %11
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, 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"}
|
; ModuleID = '/tmp/tmperosy1dk.c'
source_filename = "/tmp/tmperosy1dk.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @opt_err(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @opt_err_pfx()
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 (...) @opt_name()
%7 = call i32 @fprintf(i32 noundef %4, ptr noundef %5, i32 noundef %6)
%8 = call i32 (...) @opt_err_sfx()
ret void
}
declare i32 @opt_err_pfx(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @opt_name(...) #1
declare i32 @opt_err_sfx(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmperosy1dk.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @opt_err(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @opt_err_pfx()
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 (...) @opt_name()
%7 = call i32 @fprintf(i32 noundef %4, ptr noundef %5, i32 noundef %6)
%8 = call i32 (...) @opt_err_sfx()
ret void
}
declare i32 @opt_err_pfx(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @opt_name(...) #1
declare i32 @opt_err_sfx(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpe4fo0hnt.c'
source_filename = "/tmp/tmpe4fo0hnt.c"
target datalayout = "e-m:e-p270: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 @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 = load i32, ptr %2, align 4
%8 = call i32 @bound_var(i32 noundef %7)
%9 = load i32, ptr %1, align 4
%10 = call i32 @bounding_var(i32 noundef %9)
%11 = load i32, ptr %1, align 4
%12 = icmp sge i32 %11, 0
%13 = zext i1 %12 to i32
%14 = call i32 @assume(i32 noundef %13)
%15 = load i32, ptr %1, align 4
%16 = icmp sle i32 %15, 200
%17 = zext i1 %16 to i32
%18 = call i32 @assume(i32 noundef %17)
ret void
}
declare i32 @bound_var(i32 noundef) #1
declare i32 @bounding_var(i32 noundef) #1
declare i32 @assume(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/tmpe4fo0hnt.c"
target datalayout = "e-m:e-p270: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 @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 = load i32, ptr %2, align 4
%8 = call i32 @bound_var(i32 noundef %7)
%9 = load i32, ptr %1, align 4
%10 = call i32 @bounding_var(i32 noundef %9)
%11 = load i32, ptr %1, align 4
%12 = icmp sge i32 %11, 0
%13 = zext i1 %12 to i32
%14 = call i32 @assume(i32 noundef %13)
%15 = load i32, ptr %1, align 4
%16 = icmp sle i32 %15, 200
%17 = zext i1 %16 to i32
%18 = call i32 @assume(i32 noundef %17)
ret void
}
declare i32 @bound_var(i32 noundef) #1
declare i32 @bounding_var(i32 noundef) #1
declare i32 @assume(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/tmpyrdye77n.c'
source_filename = "/tmp/tmpyrdye77n.c"
target datalayout = "e-m:e-p270: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/tmpyrdye77n.c"
target datalayout = "e-m:e-p270: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/tmpammb3nlc.c'
source_filename = "/tmp/tmpammb3nlc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.array = internal global <{ i8, [1048575 x i8] }> <{ i8 1, [1048575 x i8] zeroinitializer }>, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %48, %2
%11 = load i32, ptr %7, align 4
%12 = zext i32 %11 to i64
%13 = icmp ult i64 %12, 1048576
br i1 %13, label %14, label %51
14: ; preds = %10
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %44, %14
%16 = load i32, ptr %8, align 4
%17 = zext i32 %16 to i64
%18 = icmp ult i64 %17, 1048576
br i1 %18, label %19, label %47
19: ; preds = %15
store i32 0, ptr %9, align 4
br label %20
20: ; preds = %40, %19
%21 = load i32, ptr %9, align 4
%22 = zext i32 %21 to i64
%23 = icmp ult i64 %22, 1048576
br i1 %23, label %24, label %43
24: ; preds = %20
%25 = load i32, ptr %8, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds [1048576 x i8], ptr @main.array, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = load i32, ptr %9, align 4
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds [1048576 x i8], ptr @main.array, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = add nsw i32 %29, %34
%36 = trunc i32 %35 to i8
%37 = load i32, ptr %7, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds [1048576 x i8], ptr @main.array, i64 0, i64 %38
store i8 %36, ptr %39, align 1
br label %40
40: ; preds = %24
%41 = load i32, ptr %9, align 4
%42 = add i32 %41, 1
store i32 %42, ptr %9, align 4
br label %20, !llvm.loop !6
43: ; preds = %20
br label %44
44: ; preds = %43
%45 = load i32, ptr %8, align 4
%46 = add i32 %45, 1
store i32 %46, ptr %8, align 4
br label %15, !llvm.loop !8
47: ; preds = %15
br label %48
48: ; preds = %47
%49 = load i32, ptr %7, align 4
%50 = add i32 %49, 1
store i32 %50, ptr %7, align 4
br label %10, !llvm.loop !9
51: ; preds = %10
%52 = load i32, ptr %6, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %51
br label %58
55: ; preds = %51
%56 = load i8, ptr getelementptr inbounds ([1048576 x i8], ptr @main.array, i64 0, i64 100), align 4
%57 = sext i8 %56 to i32
store i32 %57, ptr %3, align 4
br label %60
58: ; preds = %54
%59 = call i32 (...) @__VERIFIER_error()
store i32 1, ptr %3, align 4
br label %60
60: ; preds = %58, %55
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @__VERIFIER_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpammb3nlc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.array = internal global <{ i8, [1048575 x i8] }> <{ i8 1, [1048575 x i8] zeroinitializer }>, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = zext i32 %10 to i64
%12 = icmp ult i64 %11, 1048576
br i1 %12, label %.lr.ph5, label %57
.lr.ph5: ; preds = %2
br label %13
13: ; preds = %.lr.ph5, %51
store i32 0, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = zext i32 %14 to i64
%16 = icmp ult i64 %15, 1048576
br i1 %16, label %.lr.ph2, label %50
.lr.ph2: ; preds = %13
br label %17
17: ; preds = %.lr.ph2, %44
store i32 0, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = zext i32 %18 to i64
%20 = icmp ult i64 %19, 1048576
br i1 %20, label %.lr.ph, label %43
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %37
%22 = load i32, ptr %8, align 4
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds [1048576 x i8], ptr @main.array, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load i32, ptr %9, align 4
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds [1048576 x i8], ptr @main.array, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = add nsw i32 %26, %31
%33 = trunc i32 %32 to i8
%34 = load i32, ptr %7, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds [1048576 x i8], ptr @main.array, i64 0, i64 %35
store i8 %33, ptr %36, align 1
br label %37
37: ; preds = %21
%38 = load i32, ptr %9, align 4
%39 = add i32 %38, 1
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = zext i32 %40 to i64
%42 = icmp ult i64 %41, 1048576
br i1 %42, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %17
br label %44
44: ; preds = %43
%45 = load i32, ptr %8, align 4
%46 = add i32 %45, 1
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %8, align 4
%48 = zext i32 %47 to i64
%49 = icmp ult i64 %48, 1048576
br i1 %49, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %44
br label %50
50: ; preds = %._crit_edge3, %13
br label %51
51: ; preds = %50
%52 = load i32, ptr %7, align 4
%53 = add i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %7, align 4
%55 = zext i32 %54 to i64
%56 = icmp ult i64 %55, 1048576
br i1 %56, label %13, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %51
br label %57
57: ; preds = %._crit_edge6, %2
%58 = load i32, ptr %6, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %57
br label %64
61: ; preds = %57
%62 = load i8, ptr getelementptr inbounds ([1048576 x i8], ptr @main.array, i64 0, i64 100), align 4
%63 = sext i8 %62 to i32
store i32 %63, ptr %3, align 4
br label %66
64: ; preds = %60
%65 = call i32 (...) @__VERIFIER_error()
store i32 1, ptr %3, align 4
br label %66
66: ; preds = %64, %61
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @__VERIFIER_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpxmxoabzz.c'
source_filename = "/tmp/tmpxmxoabzz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpxmxoabzz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpkbjtj2ao.c'
source_filename = "/tmp/tmpkbjtj2ao.c"
target datalayout = "e-m:e-p270: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 @atan2d(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = fcmp oeq double %6, 0.000000e+00
br i1 %7, label %8, label %18
8: ; preds = %2
%9 = load double, ptr %5, align 8
%10 = fcmp oge double %9, 0.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %8
store double 0.000000e+00, ptr %3, align 8
br label %38
12: ; preds = %8
%13 = load double, ptr %5, align 8
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %15, label %16
15: ; preds = %12
store double 1.800000e+02, ptr %3, align 8
br label %38
16: ; preds = %12
br label %17
17: ; preds = %16
br label %32
18: ; preds = %2
%19 = load double, ptr %5, align 8
%20 = fcmp oeq double %19, 0.000000e+00
br i1 %20, label %21, label %31
21: ; preds = %18
%22 = load double, ptr %4, align 8
%23 = fcmp ogt double %22, 0.000000e+00
br i1 %23, label %24, label %25
24: ; preds = %21
store double 9.000000e+01, ptr %3, align 8
br label %38
25: ; preds = %21
%26 = load double, ptr %4, align 8
%27 = fcmp olt double %26, 0.000000e+00
br i1 %27, label %28, label %29
28: ; preds = %25
store double -9.000000e+01, ptr %3, align 8
br label %38
29: ; preds = %25
br label %30
30: ; preds = %29
br label %31
31: ; preds = %30, %18
br label %32
32: ; preds = %31, %17
%33 = load double, ptr %4, align 8
%34 = load double, ptr %5, align 8
%35 = call double @atan2(double noundef %33, double noundef %34) #2
%36 = fmul double %35, 1.800000e+02
%37 = fdiv double %36, 0x400921FB54442D18
store double %37, ptr %3, align 8
br label %38
38: ; preds = %32, %28, %24, %15, %11
%39 = load double, ptr %3, align 8
ret double %39
}
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkbjtj2ao.c"
target datalayout = "e-m:e-p270: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 @atan2d(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = fcmp oeq double %6, 0.000000e+00
br i1 %7, label %8, label %18
8: ; preds = %2
%9 = load double, ptr %5, align 8
%10 = fcmp oge double %9, 0.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %8
store double 0.000000e+00, ptr %3, align 8
br label %38
12: ; preds = %8
%13 = load double, ptr %5, align 8
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %15, label %16
15: ; preds = %12
store double 1.800000e+02, ptr %3, align 8
br label %38
16: ; preds = %12
br label %17
17: ; preds = %16
br label %32
18: ; preds = %2
%19 = load double, ptr %5, align 8
%20 = fcmp oeq double %19, 0.000000e+00
br i1 %20, label %21, label %31
21: ; preds = %18
%22 = load double, ptr %4, align 8
%23 = fcmp ogt double %22, 0.000000e+00
br i1 %23, label %24, label %25
24: ; preds = %21
store double 9.000000e+01, ptr %3, align 8
br label %38
25: ; preds = %21
%26 = load double, ptr %4, align 8
%27 = fcmp olt double %26, 0.000000e+00
br i1 %27, label %28, label %29
28: ; preds = %25
store double -9.000000e+01, ptr %3, align 8
br label %38
29: ; preds = %25
br label %30
30: ; preds = %29
br label %31
31: ; preds = %30, %18
br label %32
32: ; preds = %31, %17
%33 = load double, ptr %4, align 8
%34 = load double, ptr %5, align 8
%35 = call double @atan2(double noundef %33, double noundef %34) #2
%36 = fmul double %35, 1.800000e+02
%37 = fdiv double %36, 0x400921FB54442D18
store double %37, ptr %3, align 8
br label %38
38: ; preds = %32, %28, %24, %15, %11
%39 = load double, ptr %3, align 8
ret double %39
}
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpezh1mkg6.c'
source_filename = "/tmp/tmpezh1mkg6.c"
target datalayout = "e-m:e-p270: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/tmpezh1mkg6.c"
target datalayout = "e-m:e-p270: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/tmpsbqy704b.c'
source_filename = "/tmp/tmpsbqy704b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"Insert the number of intervals do consider: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.2 = private unnamed_addr constant [66 x i8] c"Insert first and second elements of the interval [e.g.: 33 453]: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%u%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%13 = alloca i32, align 4
%14 = 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
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 1, ptr %8, align 4
br label %15
15: ; preds = %66, %2
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %69
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = getelementptr inbounds ptr, ptr %23, i64 0
%25 = load ptr, ptr %24, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 45
br i1 %28, label %29, label %65
29: ; preds = %19
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 1
%36 = call i32 @strlen(ptr noundef %35)
store i32 %36, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %37
37: ; preds = %61, %29
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %10, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %64
41: ; preds = %37
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 1
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
store i8 %51, ptr %12, align 1
%52 = load i8, ptr %12, align 1
%53 = sext i8 %52 to i32
switch i32 %53, label %59 [
i32 105, label %54
i32 104, label %55
i32 115, label %58
]
54: ; preds = %41
store i32 1, ptr %13, align 4
br label %60
55: ; preds = %41
%56 = call i32 (...) @print_help()
%57 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %57, ptr %3, align 4
br label %106
58: ; preds = %41
store i32 1, ptr %14, align 4
br label %60
59: ; preds = %41
br label %60
60: ; preds = %59, %58, %54
br label %61
61: ; preds = %60
%62 = load i32, ptr %9, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %9, align 4
br label %37, !llvm.loop !6
64: ; preds = %37
br label %65
65: ; preds = %64, %19
br label %66
66: ; preds = %65
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
br label %15, !llvm.loop !8
69: ; preds = %15
%70 = load i32, ptr %13, align 4
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 @printf(ptr noundef @.str)
br label %74
74: ; preds = %72, %69
%75 = load i32, ptr @stdin, align 4
%76 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %75, ptr noundef @.str.1, ptr noundef %11)
store i32 0, ptr %8, align 4
br label %77
77: ; preds = %101, %74
%78 = load i32, ptr %8, align 4
%79 = load i32, ptr %11, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %104
81: ; preds = %77
%82 = load i32, ptr %13, align 4
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %81
%85 = call i32 @printf(ptr noundef @.str.2)
br label %86
86: ; preds = %84, %81
%87 = load i32, ptr @stdin, align 4
%88 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %87, ptr noundef @.str.3, ptr noundef %6, ptr noundef %7)
%89 = load i32, ptr %14, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %95
91: ; preds = %86
%92 = load i32, ptr %6, align 4
%93 = load i32, ptr %7, align 4
%94 = call i32 @calc_freq_base(i32 noundef %92, i32 noundef %93)
br label %99
95: ; preds = %86
%96 = load i32, ptr %6, align 4
%97 = load i32, ptr %7, align 4
%98 = call i32 @calc_freq(i32 noundef %96, i32 noundef %97)
br label %99
99: ; preds = %95, %91
%100 = call i32 (...) @print_most_frequent()
br label %101
101: ; preds = %99
%102 = load i32, ptr %8, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %8, align 4
br label %77, !llvm.loop !9
104: ; preds = %77
%105 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %105, ptr %3, align 4
br label %106
106: ; preds = %104, %55
%107 = load i32, ptr %3, align 4
ret i32 %107
}
declare i32 @strlen(ptr noundef) #1
declare i32 @print_help(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fscanf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @calc_freq_base(i32 noundef, i32 noundef) #1
declare i32 @calc_freq(i32 noundef, i32 noundef) #1
declare i32 @print_most_frequent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpsbqy704b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"Insert the number of intervals do consider: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.2 = private unnamed_addr constant [66 x i8] c"Insert first and second elements of the interval [e.g.: 33 453]: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%u%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%13 = alloca i32, align 4
%14 = 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
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 1, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph2, label %73
.lr.ph2: ; preds = %2
br label %18
18: ; preds = %.lr.ph2, %67
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%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 %66
28: ; preds = %18
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = call i32 @strlen(ptr noundef %34)
store i32 %35, ptr %10, align 4
store i32 0, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %10, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph, label %65
.lr.ph: ; preds = %28
br label %39
39: ; preds = %.lr.ph, %59
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %40, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 1
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
store i8 %49, ptr %12, align 1
%50 = load i8, ptr %12, align 1
%51 = sext i8 %50 to i32
switch i32 %51, label %57 [
i32 105, label %52
i32 104, label %53
i32 115, label %56
]
52: ; preds = %39
store i32 1, ptr %13, align 4
br label %58
53: ; preds = %39
%54 = call i32 (...) @print_help()
%55 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %55, ptr %3, align 4
br label %112
56: ; preds = %39
store i32 1, ptr %14, align 4
br label %58
57: ; preds = %39
br label %58
58: ; preds = %57, %56, %52
br label %59
59: ; preds = %58
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %9, align 4
%62 = load i32, ptr %9, align 4
%63 = load i32, ptr %10, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %28
br label %66
66: ; preds = %65, %18
br label %67
67: ; preds = %66
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %4, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %73
73: ; preds = %._crit_edge3, %2
%74 = load i32, ptr %13, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %73
%77 = call i32 @printf(ptr noundef @.str)
br label %78
78: ; preds = %76, %73
%79 = load i32, ptr @stdin, align 4
%80 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %79, ptr noundef @.str.1, ptr noundef %11)
store i32 0, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr %11, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %.lr.ph5, label %110
.lr.ph5: ; preds = %78
br label %84
84: ; preds = %.lr.ph5, %104
%85 = load i32, ptr %13, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %84
%88 = call i32 @printf(ptr noundef @.str.2)
br label %89
89: ; preds = %87, %84
%90 = load i32, ptr @stdin, align 4
%91 = call i32 (i32, ptr, ptr, ...) @fscanf(i32 noundef %90, ptr noundef @.str.3, ptr noundef %6, ptr noundef %7)
%92 = load i32, ptr %14, align 4
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %98
94: ; preds = %89
%95 = load i32, ptr %6, align 4
%96 = load i32, ptr %7, align 4
%97 = call i32 @calc_freq_base(i32 noundef %95, i32 noundef %96)
br label %102
98: ; preds = %89
%99 = load i32, ptr %6, align 4
%100 = load i32, ptr %7, align 4
%101 = call i32 @calc_freq(i32 noundef %99, i32 noundef %100)
br label %102
102: ; preds = %98, %94
%103 = call i32 (...) @print_most_frequent()
br label %104
104: ; preds = %102
%105 = load i32, ptr %8, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %8, align 4
%107 = load i32, ptr %8, align 4
%108 = load i32, ptr %11, align 4
%109 = icmp slt i32 %107, %108
br i1 %109, label %84, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %104
br label %110
110: ; preds = %._crit_edge6, %78
%111 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %111, ptr %3, align 4
br label %112
112: ; preds = %110, %53
%113 = load i32, ptr %3, align 4
ret i32 %113
}
declare i32 @strlen(ptr noundef) #1
declare i32 @print_help(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fscanf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @calc_freq_base(i32 noundef, i32 noundef) #1
declare i32 @calc_freq(i32 noundef, i32 noundef) #1
declare i32 @print_most_frequent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4sczjc7o.c'
source_filename = "/tmp/tmp4sczjc7o.c"
target datalayout = "e-m:e-p270: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 @strconcat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = trunc i64 %10 to i32
store i32 %11, ptr %5, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = trunc i64 %13 to i32
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %15, %16
%18 = add nsw i32 %17, 1
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 1, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %29
27: ; preds = %2
%28 = call i32 (...) @memError()
br label %29
29: ; preds = %27, %2
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %5, align 4
%33 = call i32 @memcpy(ptr noundef %30, ptr noundef %31, i32 noundef %32)
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %6, align 4
%40 = call i32 @memcpy(ptr noundef %37, ptr noundef %38, i32 noundef %39)
%41 = load ptr, ptr %8, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = getelementptr inbounds i8, ptr %44, i64 -1
store i8 0, ptr %45, align 1
%46 = load ptr, ptr %8, align 8
ret ptr %46
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memError(...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4sczjc7o.c"
target datalayout = "e-m:e-p270: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 @strconcat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = trunc i64 %10 to i32
store i32 %11, ptr %5, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = trunc i64 %13 to i32
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %15, %16
%18 = add nsw i32 %17, 1
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 1, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %29
27: ; preds = %2
%28 = call i32 (...) @memError()
br label %29
29: ; preds = %27, %2
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %5, align 4
%33 = call i32 @memcpy(ptr noundef %30, ptr noundef %31, i32 noundef %32)
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %6, align 4
%40 = call i32 @memcpy(ptr noundef %37, ptr noundef %38, i32 noundef %39)
%41 = load ptr, ptr %8, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = getelementptr inbounds i8, ptr %44, i64 -1
store i8 0, ptr %45, align 1
%46 = load ptr, ptr %8, align 8
ret ptr %46
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memError(...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd7k2_pss.c'
source_filename = "/tmp/tmpd7k2_pss.c"
target datalayout = "e-m:e-p270: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/tmpd7k2_pss.c"
target datalayout = "e-m:e-p270: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/tmpniuwjzda.c'
source_filename = "/tmp/tmpniuwjzda.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @maxCor(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store float 0.000000e+00, ptr %15, align 4
store float 0.000000e+00, ptr %16, align 4
store i32 0, ptr %11, align 4
br label %17
17: ; preds = %46, %5
%18 = load i32, ptr %11, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %49
21: ; preds = %17
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %11, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, ptr %22, i64 %24
%26 = load float, ptr %25, align 4
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %11, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, ptr %27, i64 %29
%31 = load float, ptr %30, align 4
%32 = load float, ptr %15, align 4
%33 = call float @llvm.fmuladd.f32(float %26, float %31, float %32)
store float %33, ptr %15, align 4
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %11, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, ptr %34, i64 %36
%38 = load float, ptr %37, align 4
%39 = load ptr, ptr %7, align 8
%40 = load i32, ptr %11, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds float, ptr %39, i64 %41
%43 = load float, ptr %42, align 4
%44 = load float, ptr %16, align 4
%45 = call float @llvm.fmuladd.f32(float %38, float %43, float %44)
store float %45, ptr %16, align 4
br label %46
46: ; preds = %21
%47 = load i32, ptr %11, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %11, align 4
br label %17, !llvm.loop !6
49: ; preds = %17
%50 = load i32, ptr %8, align 4
%51 = mul nsw i32 2, %50
store i32 %51, ptr %12, align 4
%52 = load i32, ptr %8, align 4
%53 = load ptr, ptr %6, align 8
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %12, align 4
%56 = call ptr @crscrl(i32 noundef %52, ptr noundef %53, ptr noundef %54, i32 noundef %55)
store ptr %56, ptr %13, align 8
%57 = load float, ptr @FLT_MAX, align 4
%58 = fneg float %57
store float %58, ptr %14, align 4
store i32 0, ptr %11, align 4
br label %59
59: ; preds = %80, %49
%60 = load i32, ptr %11, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp sle i32 %60, %61
br i1 %62, label %63, label %83
63: ; preds = %59
%64 = load float, ptr %14, align 4
%65 = load ptr, ptr %13, align 8
%66 = load i32, ptr %11, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds float, ptr %65, i64 %67
%69 = load float, ptr %68, align 4
%70 = fcmp olt float %64, %69
br i1 %70, label %71, label %79
71: ; preds = %63
%72 = load ptr, ptr %13, align 8
%73 = load i32, ptr %11, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, ptr %72, i64 %74
%76 = load float, ptr %75, align 4
store float %76, ptr %14, align 4
%77 = load i32, ptr %11, align 4
%78 = load ptr, ptr %9, align 8
store i32 %77, ptr %78, align 4
br label %79
79: ; preds = %71, %63
br label %80
80: ; preds = %79
%81 = load i32, ptr %11, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %11, align 4
br label %59, !llvm.loop !8
83: ; preds = %59
%84 = load ptr, ptr %13, align 8
%85 = call i32 @free(ptr noundef %84)
%86 = load i32, ptr %8, align 4
%87 = load ptr, ptr %9, align 8
%88 = load i32, ptr %87, align 4
%89 = sub nsw i32 %88, %86
store i32 %89, ptr %87, align 4
%90 = load float, ptr %14, align 4
%91 = load float, ptr %16, align 4
%92 = fdiv float %90, %91
%93 = load ptr, ptr %10, align 8
store float %92, ptr %93, align 4
%94 = load float, ptr %14, align 4
%95 = load float, ptr %15, align 4
%96 = load float, ptr %16, align 4
%97 = fmul float %95, %96
%98 = call float @sqrt(float noundef %97)
%99 = fdiv float %94, %98
ret float %99
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare ptr @crscrl(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
declare float @sqrt(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpniuwjzda.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @maxCor(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store float 0.000000e+00, ptr %15, align 4
store float 0.000000e+00, ptr %16, align 4
store i32 0, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %51
.lr.ph: ; preds = %5
br label %20
20: ; preds = %.lr.ph, %45
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %11, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds float, ptr %21, i64 %23
%25 = load float, ptr %24, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %11, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float, ptr %26, i64 %28
%30 = load float, ptr %29, align 4
%31 = load float, ptr %15, align 4
%32 = call float @llvm.fmuladd.f32(float %25, float %30, float %31)
store float %32, ptr %15, align 4
%33 = load ptr, ptr %7, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds float, ptr %33, i64 %35
%37 = load float, ptr %36, align 4
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %11, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds float, ptr %38, i64 %40
%42 = load float, ptr %41, align 4
%43 = load float, ptr %16, align 4
%44 = call float @llvm.fmuladd.f32(float %37, float %42, float %43)
store float %44, ptr %16, align 4
br label %45
45: ; preds = %20
%46 = load i32, ptr %11, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %11, align 4
%48 = load i32, ptr %11, align 4
%49 = load i32, ptr %8, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %51
51: ; preds = %._crit_edge, %5
%52 = load i32, ptr %8, align 4
%53 = mul nsw i32 2, %52
store i32 %53, ptr %12, align 4
%54 = load i32, ptr %8, align 4
%55 = load ptr, ptr %6, align 8
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %12, align 4
%58 = call ptr @crscrl(i32 noundef %54, ptr noundef %55, ptr noundef %56, i32 noundef %57)
store ptr %58, ptr %13, align 8
%59 = load float, ptr @FLT_MAX, align 4
%60 = fneg float %59
store float %60, ptr %14, align 4
store i32 0, ptr %11, align 4
%61 = load i32, ptr %11, align 4
%62 = load i32, ptr %12, align 4
%63 = icmp sle i32 %61, %62
br i1 %63, label %.lr.ph2, label %87
.lr.ph2: ; preds = %51
br label %64
64: ; preds = %.lr.ph2, %81
%65 = load float, ptr %14, align 4
%66 = load ptr, ptr %13, align 8
%67 = load i32, ptr %11, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, ptr %66, i64 %68
%70 = load float, ptr %69, align 4
%71 = fcmp olt float %65, %70
br i1 %71, label %72, label %80
72: ; preds = %64
%73 = load ptr, ptr %13, align 8
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds float, ptr %73, i64 %75
%77 = load float, ptr %76, align 4
store float %77, ptr %14, align 4
%78 = load i32, ptr %11, align 4
%79 = load ptr, ptr %9, align 8
store i32 %78, ptr %79, align 4
br label %80
80: ; preds = %72, %64
br label %81
81: ; preds = %80
%82 = load i32, ptr %11, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %11, align 4
%84 = load i32, ptr %11, align 4
%85 = load i32, ptr %12, align 4
%86 = icmp sle i32 %84, %85
br i1 %86, label %64, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %87
87: ; preds = %._crit_edge3, %51
%88 = load ptr, ptr %13, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load i32, ptr %8, align 4
%91 = load ptr, ptr %9, align 8
%92 = load i32, ptr %91, align 4
%93 = sub nsw i32 %92, %90
store i32 %93, ptr %91, align 4
%94 = load float, ptr %14, align 4
%95 = load float, ptr %16, align 4
%96 = fdiv float %94, %95
%97 = load ptr, ptr %10, align 8
store float %96, ptr %97, align 4
%98 = load float, ptr %14, align 4
%99 = load float, ptr %15, align 4
%100 = load float, ptr %16, align 4
%101 = fmul float %99, %100
%102 = call float @sqrt(float noundef %101)
%103 = fdiv float %98, %102
ret float %103
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare ptr @crscrl(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
declare float @sqrt(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpgfbyo51s.c'
source_filename = "/tmp/tmpgfbyo51s.c"
target datalayout = "e-m:e-p270: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 [36 x i8] c"Usage: %s commande [arg] [arg] ...\0A\00", align 1
@SIGHUP = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIG_ERR = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"signal\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"execvp\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 %15
8: ; preds = %2
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
%16 = load i32, ptr @SIGHUP, align 4
%17 = load i32, ptr @SIG_IGN, align 4
%18 = call i64 @signal(i32 noundef %16, i32 noundef %17)
%19 = load i64, ptr @SIG_ERR, align 8
%20 = icmp eq i64 %18, %19
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = call i32 @perror(ptr noundef @.str.1)
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
24: ; preds = %15
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = call i32 @execvp(ptr noundef %27, ptr noundef %29)
%31 = call i32 @perror(ptr noundef @.str.2)
%32 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @signal(i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgfbyo51s.c"
target datalayout = "e-m:e-p270: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 [36 x i8] c"Usage: %s commande [arg] [arg] ...\0A\00", align 1
@SIGHUP = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIG_ERR = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"signal\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"execvp\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 %15
8: ; preds = %2
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
%16 = load i32, ptr @SIGHUP, align 4
%17 = load i32, ptr @SIG_IGN, align 4
%18 = call i64 @signal(i32 noundef %16, i32 noundef %17)
%19 = load i64, ptr @SIG_ERR, align 8
%20 = icmp eq i64 %18, %19
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = call i32 @perror(ptr noundef @.str.1)
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
24: ; preds = %15
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = call i32 @execvp(ptr noundef %27, ptr noundef %29)
%31 = call i32 @perror(ptr noundef @.str.2)
%32 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @signal(i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzgg26k9d.c'
source_filename = "/tmp/tmpzgg26k9d.c"
target datalayout = "e-m:e-p270: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/tmpzgg26k9d.c"
target datalayout = "e-m:e-p270: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/tmpwdtymepc.c'
source_filename = "/tmp/tmpwdtymepc.c"
target datalayout = "e-m:e-p270: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 @emit_set_gz32(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @emit_cmpimm(i32 noundef %5, i32 noundef 1)
%7 = load i32, ptr %4, align 4
%8 = call i32 @emit_movimm(i32 noundef 1, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 @emit_cmovl_imm(i32 noundef 0, i32 noundef %9)
ret void
}
declare i32 @emit_cmpimm(i32 noundef, i32 noundef) #1
declare i32 @emit_movimm(i32 noundef, i32 noundef) #1
declare i32 @emit_cmovl_imm(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/tmpwdtymepc.c"
target datalayout = "e-m:e-p270: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 @emit_set_gz32(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @emit_cmpimm(i32 noundef %5, i32 noundef 1)
%7 = load i32, ptr %4, align 4
%8 = call i32 @emit_movimm(i32 noundef 1, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 @emit_cmovl_imm(i32 noundef 0, i32 noundef %9)
ret void
}
declare i32 @emit_cmpimm(i32 noundef, i32 noundef) #1
declare i32 @emit_movimm(i32 noundef, i32 noundef) #1
declare i32 @emit_cmovl_imm(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/tmp1wdh81bh.c'
source_filename = "/tmp/tmp1wdh81bh.c"
target datalayout = "e-m:e-p270: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 { ptr }
%struct.in_addr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @dhsocket_resolvename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call ptr @gethostbyname(ptr noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %1
store ptr null, ptr %2, align 8
br label %49
14: ; preds = %1
%15 = call i64 @malloc(i64 noundef 1025)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %4, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %20
19: ; preds = %14
store ptr null, ptr %2, align 8
br label %49
20: ; preds = %14
store i32 0, ptr %5, align 4
br label %21
21: ; preds = %31, %20
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds %struct.hostent, ptr %22, i32 0, i32 0
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %34
30: ; preds = %21
br label %31
31: ; preds = %30
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %21, !llvm.loop !6
34: ; preds = %21
store i32 0, ptr %6, align 4
%35 = load ptr, ptr %4, align 8
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds %struct.hostent, ptr %36, i32 0, i32 0
%38 = load ptr, ptr %37, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds %struct.in_addr, ptr %42, i32 0, i32 0
%44 = load i32, ptr %43, align 4
%45 = call i64 @inet_ntoa(i32 %44)
%46 = inttoptr i64 %45 to ptr
%47 = call i32 @strcpy(ptr noundef %35, ptr noundef %46)
%48 = load ptr, ptr %4, align 8
store ptr %48, ptr %2, align 8
br label %49
49: ; preds = %34, %19, %13
%50 = load ptr, ptr %2, align 8
ret ptr %50
}
declare ptr @gethostbyname(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @inet_ntoa(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1wdh81bh.c"
target datalayout = "e-m:e-p270: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 { ptr }
%struct.in_addr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @dhsocket_resolvename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call ptr @gethostbyname(ptr noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %1
store ptr null, ptr %2, align 8
br label %55
14: ; preds = %1
%15 = call i64 @malloc(i64 noundef 1025)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %4, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %20
19: ; preds = %14
store ptr null, ptr %2, align 8
br label %55
20: ; preds = %14
store i32 0, ptr %5, align 4
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %.lr.ph, label %40
.lr.ph: ; preds = %20
br label %28
28: ; preds = %.lr.ph, %29
br label %29
29: ; preds = %28
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds %struct.hostent, ptr %32, i32 0, i32 0
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %34, i64 %36
%38 = load ptr, ptr %37, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %40
40: ; preds = %._crit_edge, %20
store i32 0, ptr %6, align 4
%41 = load ptr, ptr %4, align 8
%42 = load ptr, ptr %7, align 8
%43 = getelementptr inbounds %struct.hostent, ptr %42, i32 0, i32 0
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds %struct.in_addr, ptr %48, i32 0, i32 0
%50 = load i32, ptr %49, align 4
%51 = call i64 @inet_ntoa(i32 %50)
%52 = inttoptr i64 %51 to ptr
%53 = call i32 @strcpy(ptr noundef %41, ptr noundef %52)
%54 = load ptr, ptr %4, align 8
store ptr %54, ptr %2, align 8
br label %55
55: ; preds = %40, %19, %13
%56 = load ptr, ptr %2, align 8
ret ptr %56
}
declare ptr @gethostbyname(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @inet_ntoa(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpig3ut_g4.c'
source_filename = "/tmp/tmpig3ut_g4.c"
target datalayout = "e-m:e-p270: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"\1B\08 \0Apq\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kb_getpress(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [5 x i8], align 1
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 1 %4, i8 0, i64 5, i1 false)
%6 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @kb_readkey(ptr noundef %6)
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %52
10: ; preds = %1
%11 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%12 = load i32, ptr %3, align 4
%13 = call i32 @transl_input(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load i32, ptr %5, align 4
store i32 %16, ptr %2, align 4
br label %52
17: ; preds = %10
%18 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 1
%19 = load i8, ptr %18, align 1
%20 = icmp ne i8 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
store i32 %24, ptr %5, align 4
br label %34
25: ; preds = %17
%26 = load i32, ptr %3, align 4
%27 = and i32 %26, 256
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 28, ptr %5, align 4
br label %33
30: ; preds = %25
%31 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%32 = call i32 @kb_toascii(ptr noundef %31)
store i32 %32, ptr %5, align 4
br label %33
33: ; preds = %30, %29
br label %34
34: ; preds = %33, %21
%35 = load i32, ptr %3, align 4
%36 = and i32 %35, 256
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, ptr %5, align 4
%40 = icmp ule i32 %39, 4
br i1 %40, label %41, label %43
41: ; preds = %38, %34
%42 = load i32, ptr %5, align 4
store i32 %42, ptr %2, align 4
br label %52
43: ; preds = %38
%44 = load i32, ptr %5, align 4
%45 = call i64 @strchr(ptr noundef @.str, i32 noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load i32, ptr %5, align 4
store i32 %48, ptr %2, align 4
br label %52
49: ; preds = %43
%50 = load i32, ptr %3, align 4
%51 = call i32 @kb_getpress(i32 noundef %50)
store i32 %51, ptr %2, align 4
br label %52
52: ; preds = %49, %47, %41, %15, %9
%53 = load i32, ptr %2, align 4
ret i32 %53
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @kb_readkey(ptr noundef) #2
declare i32 @transl_input(ptr noundef, i32 noundef) #2
declare i32 @kb_toascii(ptr noundef) #2
declare i64 @strchr(ptr noundef, 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: 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpig3ut_g4.c"
target datalayout = "e-m:e-p270: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"\1B\08 \0Apq\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kb_getpress(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [5 x i8], align 1
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 1 %4, i8 0, i64 5, i1 false)
%6 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @kb_readkey(ptr noundef %6)
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %52
10: ; preds = %1
%11 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%12 = load i32, ptr %3, align 4
%13 = call i32 @transl_input(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load i32, ptr %5, align 4
store i32 %16, ptr %2, align 4
br label %52
17: ; preds = %10
%18 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 1
%19 = load i8, ptr %18, align 1
%20 = icmp ne i8 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
store i32 %24, ptr %5, align 4
br label %34
25: ; preds = %17
%26 = load i32, ptr %3, align 4
%27 = and i32 %26, 256
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 28, ptr %5, align 4
br label %33
30: ; preds = %25
%31 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%32 = call i32 @kb_toascii(ptr noundef %31)
store i32 %32, ptr %5, align 4
br label %33
33: ; preds = %30, %29
br label %34
34: ; preds = %33, %21
%35 = load i32, ptr %3, align 4
%36 = and i32 %35, 256
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, ptr %5, align 4
%40 = icmp ule i32 %39, 4
br i1 %40, label %41, label %43
41: ; preds = %38, %34
%42 = load i32, ptr %5, align 4
store i32 %42, ptr %2, align 4
br label %52
43: ; preds = %38
%44 = load i32, ptr %5, align 4
%45 = call i64 @strchr(ptr noundef @.str, i32 noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load i32, ptr %5, align 4
store i32 %48, ptr %2, align 4
br label %52
49: ; preds = %43
%50 = load i32, ptr %3, align 4
%51 = call i32 @kb_getpress(i32 noundef %50)
store i32 %51, ptr %2, align 4
br label %52
52: ; preds = %49, %47, %41, %15, %9
%53 = load i32, ptr %2, align 4
ret i32 %53
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @kb_readkey(ptr noundef) #2
declare i32 @transl_input(ptr noundef, i32 noundef) #2
declare i32 @kb_toascii(ptr noundef) #2
declare i64 @strchr(ptr noundef, 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: 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"}
|
; ModuleID = '/tmp/tmp4pedee9q.c'
source_filename = "/tmp/tmp4pedee9q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_DEPTH_TEST = dso_local global i32 0, align 4
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Init() #0 {
%1 = call i32 (...) @ConfigPoint()
%2 = call i32 @glClearColor(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%3 = call i32 @glPointSize(double noundef 1.000000e+00)
%4 = load i32, ptr @GL_DEPTH_TEST, align 4
%5 = call i32 @glEnable(i32 noundef %4)
%6 = load i32, ptr @GL_PROJECTION, align 4
%7 = call i32 @glMatrixMode(i32 noundef %6)
%8 = call i32 (...) @glLoadIdentity()
%9 = call i32 @glOrtho(i32 noundef -12, i32 noundef 12, i32 noundef -12, i32 noundef 12, i32 noundef -12, i32 noundef 12)
%10 = load i32, ptr @GL_MODELVIEW, align 4
%11 = call i32 @glMatrixMode(i32 noundef %10)
%12 = call i32 (...) @glLoadIdentity()
ret void
}
declare i32 @ConfigPoint(...) #1
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glPointSize(double noundef) #1
declare i32 @glEnable(i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @glOrtho(i32 noundef, i32 noundef, i32 noundef, 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/tmp4pedee9q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_DEPTH_TEST = dso_local global i32 0, align 4
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Init() #0 {
%1 = call i32 (...) @ConfigPoint()
%2 = call i32 @glClearColor(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%3 = call i32 @glPointSize(double noundef 1.000000e+00)
%4 = load i32, ptr @GL_DEPTH_TEST, align 4
%5 = call i32 @glEnable(i32 noundef %4)
%6 = load i32, ptr @GL_PROJECTION, align 4
%7 = call i32 @glMatrixMode(i32 noundef %6)
%8 = call i32 (...) @glLoadIdentity()
%9 = call i32 @glOrtho(i32 noundef -12, i32 noundef 12, i32 noundef -12, i32 noundef 12, i32 noundef -12, i32 noundef 12)
%10 = load i32, ptr @GL_MODELVIEW, align 4
%11 = call i32 @glMatrixMode(i32 noundef %10)
%12 = call i32 (...) @glLoadIdentity()
ret void
}
declare i32 @ConfigPoint(...) #1
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glPointSize(double noundef) #1
declare i32 @glEnable(i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @glOrtho(i32 noundef, i32 noundef, i32 noundef, 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/tmpeeenrkmp.c'
source_filename = "/tmp/tmpeeenrkmp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@IPC_PRIVATE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Create message queue failed\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Message queue id: %d\0A\00", align 1
@IPC_RMID = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [31 x i8] c"Delete message queue id failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
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 %6, align 4
%8 = load i32, ptr @S_IRUSR, align 4
%9 = load i32, ptr @S_IWUSR, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @S_IWGRP, align 4
%12 = or i32 %10, %11
store i32 %12, ptr %7, align 4
%13 = load i32, ptr @IPC_PRIVATE, align 4
%14 = load i32, ptr %7, align 4
%15 = call i32 @msgget(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %24
18: ; preds = %2
br label %19
19: ; preds = %18
%20 = call i32 @perror(ptr noundef @.str)
%21 = load i32, ptr @EXIT_FAILURE, align 4
%22 = call i32 @exit(i32 noundef %21) #3
unreachable
23: ; No predecessors!
br label %24
24: ; preds = %23, %2
%25 = load i32, ptr %6, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr @IPC_RMID, align 4
%29 = call i32 @msgctl(i32 noundef %27, i32 noundef %28, ptr noundef null)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %24
br label %32
32: ; preds = %31
%33 = call i32 @perror(ptr noundef @.str.2)
%34 = load i32, ptr @EXIT_FAILURE, align 4
%35 = call i32 @exit(i32 noundef %34) #3
unreachable
36: ; No predecessors!
br label %37
37: ; preds = %36, %24
ret i32 0
}
declare i32 @msgget(i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @msgctl(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" }
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/tmpeeenrkmp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@IPC_PRIVATE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Create message queue failed\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Message queue id: %d\0A\00", align 1
@IPC_RMID = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [31 x i8] c"Delete message queue id failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
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 %6, align 4
%8 = load i32, ptr @S_IRUSR, align 4
%9 = load i32, ptr @S_IWUSR, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @S_IWGRP, align 4
%12 = or i32 %10, %11
store i32 %12, ptr %7, align 4
%13 = load i32, ptr @IPC_PRIVATE, align 4
%14 = load i32, ptr %7, align 4
%15 = call i32 @msgget(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %24
18: ; preds = %2
br label %19
19: ; preds = %18
%20 = call i32 @perror(ptr noundef @.str)
%21 = load i32, ptr @EXIT_FAILURE, align 4
%22 = call i32 @exit(i32 noundef %21) #3
unreachable
23: ; No predecessors!
br label %24
24: ; preds = %23, %2
%25 = load i32, ptr %6, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr @IPC_RMID, align 4
%29 = call i32 @msgctl(i32 noundef %27, i32 noundef %28, ptr noundef null)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %24
br label %32
32: ; preds = %31
%33 = call i32 @perror(ptr noundef @.str.2)
%34 = load i32, ptr @EXIT_FAILURE, align 4
%35 = call i32 @exit(i32 noundef %34) #3
unreachable
36: ; No predecessors!
br label %37
37: ; preds = %36, %24
ret i32 0
}
declare i32 @msgget(i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @msgctl(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" }
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/tmph2j6ck12.c'
source_filename = "/tmp/tmph2j6ck12.c"
target datalayout = "e-m:e-p270: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.y = private unnamed_addr constant [8 x i32] [i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [8 x i32], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.y, i64 32, i1 false)
%5 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%6 = call i32 @foo(ptr noundef %2, ptr noundef %5)
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 8
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @abort() #4
unreachable
11: ; preds = %0
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %26, %11
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 8
br i1 %14, label %15, label %29
15: ; preds = %12
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 9, %20
%22 = icmp ne i32 %19, %21
br i1 %22, label %23, label %25
23: ; preds = %15
%24 = call i32 (...) @abort() #4
unreachable
25: ; preds = %15
br label %26
26: ; preds = %25
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
br label %12, !llvm.loop !6
29: ; preds = %12
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 @foo(ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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" }
attributes #3 = { 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 #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph2j6ck12.c"
target datalayout = "e-m:e-p270: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.y = private unnamed_addr constant [8 x i32] [i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [8 x i32], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.y, i64 32, i1 false)
%5 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%6 = call i32 @foo(ptr noundef %2, ptr noundef %5)
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 8
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @abort() #4
unreachable
11: ; preds = %0
store i32 0, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 8
br i1 %13, label %.lr.ph, label %30
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %25
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 9, %19
%21 = icmp ne i32 %18, %20
br i1 %21, label %22, label %24
22: ; preds = %14
%23 = call i32 (...) @abort() #4
unreachable
24: ; preds = %14
br label %25
25: ; preds = %24
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %28, 8
br i1 %29, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %11
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 @foo(ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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" }
attributes #3 = { 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 #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9kgy57k3.c'
source_filename = "/tmp/tmp9kgy57k3.c"
target datalayout = "e-m:e-p270: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/tmp9kgy57k3.c"
target datalayout = "e-m:e-p270: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/tmpky4ao05k.c'
source_filename = "/tmp/tmpky4ao05k.c"
target datalayout = "e-m:e-p270: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"eiffel\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" --comment\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"comment\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"--comment\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_eiffel_comment_entities() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_entity(i32 noundef %1, ptr noundef @.str.2, ptr noundef @.str.3)
ret void
}
declare i32 @test_parser_verify_entity(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @test_parser_sourcefile(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/tmpky4ao05k.c"
target datalayout = "e-m:e-p270: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"eiffel\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" --comment\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"comment\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"--comment\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_eiffel_comment_entities() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_entity(i32 noundef %1, ptr noundef @.str.2, ptr noundef @.str.3)
ret void
}
declare i32 @test_parser_verify_entity(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @test_parser_sourcefile(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/tmp92e78s05.c'
source_filename = "/tmp/tmp92e78s05.c"
target datalayout = "e-m:e-p270: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 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @test()
store volatile i32 %2, ptr %1, align 4
ret void
}
declare i32 @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/tmp92e78s05.c"
target datalayout = "e-m:e-p270: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 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @test()
store volatile i32 %2, ptr %1, align 4
ret void
}
declare i32 @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/tmp5708gfm_.c'
source_filename = "/tmp/tmp5708gfm_.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"Test string@\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"MONKEY BALLS\00", align 1
@.str.2 = private unnamed_addr constant [99 x i8] c"It looks like that's either the wrong password, or the file is not encrypted with our encryption!\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"You want to encrypt %s!\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"You want to decrypt %s!\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Unknown function -%c.\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 ptr, align 8
%9 = alloca i8, align 1
%10 = 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
store ptr @.str, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = call ptr @Encrypt(ptr noundef %11, i32 noundef 73, ptr noundef @.str.1)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = call ptr @Decrypt(ptr noundef %13, i32 noundef 105, ptr noundef @.str.1)
store ptr %14, ptr %8, align 8
%15 = load ptr, ptr %8, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %57
19: ; preds = %2
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 3
br i1 %21, label %29, label %22
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strlen(ptr noundef %25)
%27 = trunc i64 %26 to i32
%28 = icmp ne i32 %27, 2
br i1 %28, label %29, label %30
29: ; preds = %22, %19
store i32 1, ptr %3, align 4
br label %57
30: ; preds = %22
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1
%36 = call signext i8 @tolower(i8 noundef signext %35)
store i8 %36, ptr %9, align 1
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 2
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %10, align 8
%40 = load i8, ptr %9, align 1
%41 = sext i8 %40 to i32
switch i32 %41, label %48 [
i32 101, label %42
i32 100, label %45
]
42: ; preds = %30
%43 = load ptr, ptr %10, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %43)
br label %56
45: ; preds = %30
%46 = load ptr, ptr %10, align 8
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %46)
br label %56
48: ; preds = %30
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 1
%51 = load ptr, ptr %50, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 1
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %54)
br label %56
56: ; preds = %48, %45, %42
store i32 0, ptr %3, align 4
br label %57
57: ; preds = %56, %29, %17
%58 = load i32, ptr %3, align 4
ret i32 %58
}
declare ptr @Encrypt(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @Decrypt(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
declare signext i8 @tolower(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5708gfm_.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"Test string@\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"MONKEY BALLS\00", align 1
@.str.2 = private unnamed_addr constant [99 x i8] c"It looks like that's either the wrong password, or the file is not encrypted with our encryption!\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"You want to encrypt %s!\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"You want to decrypt %s!\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Unknown function -%c.\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 ptr, align 8
%9 = alloca i8, align 1
%10 = 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
store ptr @.str, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = call ptr @Encrypt(ptr noundef %11, i32 noundef 73, ptr noundef @.str.1)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = call ptr @Decrypt(ptr noundef %13, i32 noundef 105, ptr noundef @.str.1)
store ptr %14, ptr %8, align 8
%15 = load ptr, ptr %8, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %57
19: ; preds = %2
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 3
br i1 %21, label %29, label %22
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strlen(ptr noundef %25)
%27 = trunc i64 %26 to i32
%28 = icmp ne i32 %27, 2
br i1 %28, label %29, label %30
29: ; preds = %22, %19
store i32 1, ptr %3, align 4
br label %57
30: ; preds = %22
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1
%36 = call signext i8 @tolower(i8 noundef signext %35)
store i8 %36, ptr %9, align 1
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 2
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %10, align 8
%40 = load i8, ptr %9, align 1
%41 = sext i8 %40 to i32
switch i32 %41, label %48 [
i32 101, label %42
i32 100, label %45
]
42: ; preds = %30
%43 = load ptr, ptr %10, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %43)
br label %56
45: ; preds = %30
%46 = load ptr, ptr %10, align 8
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %46)
br label %56
48: ; preds = %30
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 1
%51 = load ptr, ptr %50, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 1
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %54)
br label %56
56: ; preds = %48, %45, %42
store i32 0, ptr %3, align 4
br label %57
57: ; preds = %56, %29, %17
%58 = load i32, ptr %3, align 4
ret i32 %58
}
declare ptr @Encrypt(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @Decrypt(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
declare signext i8 @tolower(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"}
|
; ModuleID = '/tmp/tmp5mjrsmv5.c'
source_filename = "/tmp/tmp5mjrsmv5.c"
target datalayout = "e-m:e-p270: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 @strieq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %27, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %6
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %11, %6
%17 = phi i1 [ false, %6 ], [ %15, %11 ]
br i1 %17, label %18, label %32
18: ; preds = %16
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = call i64 @tolower(i8 noundef signext %20)
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = call i64 @tolower(i8 noundef signext %23)
%25 = icmp ne i64 %21, %24
br i1 %25, label %26, label %27
26: ; preds = %18
store i32 0, ptr %3, align 4
br label %44
27: ; preds = %18
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %5, align 8
br label %6, !llvm.loop !6
32: ; preds = %16
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 0
br i1 %36, label %42, label %37
37: ; preds = %32
%38 = load ptr, ptr %5, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %37, %32
store i32 0, ptr %3, align 4
br label %44
43: ; preds = %37
store i32 1, ptr %3, align 4
br label %44
44: ; preds = %43, %42, %26
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i64 @tolower(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/tmp5mjrsmv5.c"
target datalayout = "e-m:e-p270: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 @strieq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %27, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %6
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %11, %6
%17 = phi i1 [ false, %6 ], [ %15, %11 ]
br i1 %17, label %18, label %32
18: ; preds = %16
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = call i64 @tolower(i8 noundef signext %20)
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = call i64 @tolower(i8 noundef signext %23)
%25 = icmp ne i64 %21, %24
br i1 %25, label %26, label %27
26: ; preds = %18
store i32 0, ptr %3, align 4
br label %44
27: ; preds = %18
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %5, align 8
br label %6, !llvm.loop !6
32: ; preds = %16
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 0
br i1 %36, label %42, label %37
37: ; preds = %32
%38 = load ptr, ptr %5, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %37, %32
store i32 0, ptr %3, align 4
br label %44
43: ; preds = %37
store i32 1, ptr %3, align 4
br label %44
44: ; preds = %43, %42, %26
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i64 @tolower(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/tmpr895fino.c'
source_filename = "/tmp/tmpr895fino.c"
target datalayout = "e-m:e-p270: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.spwd = type { ptr, ptr, i64, i64, i64, i64, i64, i64, i64 }
@EINVAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%s:%s:\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld:\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putspent(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds %struct.spwd, ptr %7, i32 0, i32 0
%9 = load ptr, ptr %8, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %23, label %11
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.spwd, ptr %12, i32 0, i32 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @__nss_valid_field(ptr noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %11
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds %struct.spwd, ptr %18, i32 0, i32 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @__nss_valid_field(ptr noundef %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %17, %11, %2
%24 = load i32, ptr @EINVAL, align 4
%25 = call i32 @__set_errno(i32 noundef %24)
store i32 -1, ptr %3, align 4
br label %229
26: ; preds = %17
%27 = load ptr, ptr %5, align 8
%28 = call i32 @_IO_flockfile(ptr noundef %27)
%29 = load ptr, ptr %5, align 8
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds %struct.spwd, ptr %30, i32 0, i32 0
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds %struct.spwd, ptr %33, i32 0, i32 1
%35 = load ptr, ptr %34, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %26
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds %struct.spwd, ptr %38, i32 0, i32 1
%40 = load ptr, ptr %39, align 8
br label %42
41: ; preds = %26
br label %42
42: ; preds = %41, %37
%43 = phi ptr [ %40, %37 ], [ @.str.1, %41 ]
%44 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str, ptr noundef %32, ptr noundef %43)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %6, align 4
br label %49
49: ; preds = %46, %42
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds %struct.spwd, ptr %50, i32 0, i32 2
%52 = load i64, ptr %51, align 8
%53 = icmp ne i64 %52, -1
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = load ptr, ptr %5, align 8
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds %struct.spwd, ptr %56, i32 0, i32 2
%58 = load i64, ptr %57, align 8
%59 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.2, i64 noundef %58)
%60 = icmp slt i64 %59, 0
br i1 %60, label %71, label %61
61: ; preds = %54, %49
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds %struct.spwd, ptr %62, i32 0, i32 2
%64 = load i64, ptr %63, align 8
%65 = icmp eq i64 %64, -1
br i1 %65, label %66, label %74
66: ; preds = %61
%67 = load ptr, ptr %5, align 8
%68 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %67)
%69 = load i64, ptr @EOF, align 8
%70 = icmp eq i64 %68, %69
br i1 %70, label %71, label %74
71: ; preds = %66, %54
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %6, align 4
br label %74
74: ; preds = %71, %66, %61
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds %struct.spwd, ptr %75, i32 0, i32 3
%77 = load i64, ptr %76, align 8
%78 = icmp ne i64 %77, -1
br i1 %78, label %79, label %86
79: ; preds = %74
%80 = load ptr, ptr %5, align 8
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds %struct.spwd, ptr %81, i32 0, i32 3
%83 = load i64, ptr %82, align 8
%84 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.2, i64 noundef %83)
%85 = icmp slt i64 %84, 0
br i1 %85, label %96, label %86
86: ; preds = %79, %74
%87 = load ptr, ptr %4, align 8
%88 = getelementptr inbounds %struct.spwd, ptr %87, i32 0, i32 3
%89 = load i64, ptr %88, align 8
%90 = icmp eq i64 %89, -1
br i1 %90, label %91, label %99
91: ; preds = %86
%92 = load ptr, ptr %5, align 8
%93 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %92)
%94 = load i64, ptr @EOF, align 8
%95 = icmp eq i64 %93, %94
br i1 %95, label %96, label %99
96: ; preds = %91, %79
%97 = load i32, ptr %6, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %6, align 4
br label %99
99: ; preds = %96, %91, %86
%100 = load ptr, ptr %4, align 8
%101 = getelementptr inbounds %struct.spwd, ptr %100, i32 0, i32 4
%102 = load i64, ptr %101, align 8
%103 = icmp ne i64 %102, -1
br i1 %103, label %104, label %111
104: ; preds = %99
%105 = load ptr, ptr %5, align 8
%106 = load ptr, ptr %4, align 8
%107 = getelementptr inbounds %struct.spwd, ptr %106, i32 0, i32 4
%108 = load i64, ptr %107, align 8
%109 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.2, i64 noundef %108)
%110 = icmp slt i64 %109, 0
br i1 %110, label %121, label %111
111: ; preds = %104, %99
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds %struct.spwd, ptr %112, i32 0, i32 4
%114 = load i64, ptr %113, align 8
%115 = icmp eq i64 %114, -1
br i1 %115, label %116, label %124
116: ; preds = %111
%117 = load ptr, ptr %5, align 8
%118 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %117)
%119 = load i64, ptr @EOF, align 8
%120 = icmp eq i64 %118, %119
br i1 %120, label %121, label %124
121: ; preds = %116, %104
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %6, align 4
br label %124
124: ; preds = %121, %116, %111
%125 = load ptr, ptr %4, align 8
%126 = getelementptr inbounds %struct.spwd, ptr %125, i32 0, i32 5
%127 = load i64, ptr %126, align 8
%128 = icmp ne i64 %127, -1
br i1 %128, label %129, label %136
129: ; preds = %124
%130 = load ptr, ptr %5, align 8
%131 = load ptr, ptr %4, align 8
%132 = getelementptr inbounds %struct.spwd, ptr %131, i32 0, i32 5
%133 = load i64, ptr %132, align 8
%134 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.2, i64 noundef %133)
%135 = icmp slt i64 %134, 0
br i1 %135, label %146, label %136
136: ; preds = %129, %124
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds %struct.spwd, ptr %137, i32 0, i32 5
%139 = load i64, ptr %138, align 8
%140 = icmp eq i64 %139, -1
br i1 %140, label %141, label %149
141: ; preds = %136
%142 = load ptr, ptr %5, align 8
%143 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %142)
%144 = load i64, ptr @EOF, align 8
%145 = icmp eq i64 %143, %144
br i1 %145, label %146, label %149
146: ; preds = %141, %129
%147 = load i32, ptr %6, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %6, align 4
br label %149
149: ; preds = %146, %141, %136
%150 = load ptr, ptr %4, align 8
%151 = getelementptr inbounds %struct.spwd, ptr %150, i32 0, i32 6
%152 = load i64, ptr %151, align 8
%153 = icmp ne i64 %152, -1
br i1 %153, label %154, label %161
154: ; preds = %149
%155 = load ptr, ptr %5, align 8
%156 = load ptr, ptr %4, align 8
%157 = getelementptr inbounds %struct.spwd, ptr %156, i32 0, i32 6
%158 = load i64, ptr %157, align 8
%159 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str.2, i64 noundef %158)
%160 = icmp slt i64 %159, 0
br i1 %160, label %171, label %161
161: ; preds = %154, %149
%162 = load ptr, ptr %4, align 8
%163 = getelementptr inbounds %struct.spwd, ptr %162, i32 0, i32 6
%164 = load i64, ptr %163, align 8
%165 = icmp eq i64 %164, -1
br i1 %165, label %166, label %174
166: ; preds = %161
%167 = load ptr, ptr %5, align 8
%168 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %167)
%169 = load i64, ptr @EOF, align 8
%170 = icmp eq i64 %168, %169
br i1 %170, label %171, label %174
171: ; preds = %166, %154
%172 = load i32, ptr %6, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %6, align 4
br label %174
174: ; preds = %171, %166, %161
%175 = load ptr, ptr %4, align 8
%176 = getelementptr inbounds %struct.spwd, ptr %175, i32 0, i32 7
%177 = load i64, ptr %176, align 8
%178 = icmp ne i64 %177, -1
br i1 %178, label %179, label %186
179: ; preds = %174
%180 = load ptr, ptr %5, align 8
%181 = load ptr, ptr %4, align 8
%182 = getelementptr inbounds %struct.spwd, ptr %181, i32 0, i32 7
%183 = load i64, ptr %182, align 8
%184 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.2, i64 noundef %183)
%185 = icmp slt i64 %184, 0
br i1 %185, label %196, label %186
186: ; preds = %179, %174
%187 = load ptr, ptr %4, align 8
%188 = getelementptr inbounds %struct.spwd, ptr %187, i32 0, i32 7
%189 = load i64, ptr %188, align 8
%190 = icmp eq i64 %189, -1
br i1 %190, label %191, label %199
191: ; preds = %186
%192 = load ptr, ptr %5, align 8
%193 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %192)
%194 = load i64, ptr @EOF, align 8
%195 = icmp eq i64 %193, %194
br i1 %195, label %196, label %199
196: ; preds = %191, %179
%197 = load i32, ptr %6, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %6, align 4
br label %199
199: ; preds = %196, %191, %186
%200 = load ptr, ptr %4, align 8
%201 = getelementptr inbounds %struct.spwd, ptr %200, i32 0, i32 8
%202 = load i64, ptr %201, align 8
%203 = icmp ne i64 %202, -1
br i1 %203, label %204, label %214
204: ; preds = %199
%205 = load ptr, ptr %5, align 8
%206 = load ptr, ptr %4, align 8
%207 = getelementptr inbounds %struct.spwd, ptr %206, i32 0, i32 8
%208 = load i64, ptr %207, align 8
%209 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.3, i64 noundef %208)
%210 = icmp slt i64 %209, 0
br i1 %210, label %211, label %214
211: ; preds = %204
%212 = load i32, ptr %6, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %6, align 4
br label %214
214: ; preds = %211, %204, %199
%215 = load ptr, ptr %5, align 8
%216 = call i64 @putc_unlocked(i8 noundef signext 10, ptr noundef %215)
%217 = load i64, ptr @EOF, align 8
%218 = icmp eq i64 %216, %217
br i1 %218, label %219, label %222
219: ; preds = %214
%220 = load i32, ptr %6, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %6, align 4
br label %222
222: ; preds = %219, %214
%223 = load ptr, ptr %5, align 8
%224 = call i32 @_IO_funlockfile(ptr noundef %223)
%225 = load i32, ptr %6, align 4
%226 = icmp ne i32 %225, 0
%227 = zext i1 %226 to i64
%228 = select i1 %226, i32 -1, i32 0
store i32 %228, ptr %3, align 4
br label %229
229: ; preds = %222, %23
%230 = load i32, ptr %3, align 4
ret i32 %230
}
declare i32 @__nss_valid_field(ptr noundef) #1
declare i32 @__set_errno(i32 noundef) #1
declare i32 @_IO_flockfile(ptr noundef) #1
declare i64 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @putc_unlocked(i8 noundef signext, ptr noundef) #1
declare i32 @_IO_funlockfile(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/tmpr895fino.c"
target datalayout = "e-m:e-p270: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.spwd = type { ptr, ptr, i64, i64, i64, i64, i64, i64, i64 }
@EINVAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%s:%s:\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld:\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putspent(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds %struct.spwd, ptr %7, i32 0, i32 0
%9 = load ptr, ptr %8, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %23, label %11
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.spwd, ptr %12, i32 0, i32 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @__nss_valid_field(ptr noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %11
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds %struct.spwd, ptr %18, i32 0, i32 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @__nss_valid_field(ptr noundef %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %17, %11, %2
%24 = load i32, ptr @EINVAL, align 4
%25 = call i32 @__set_errno(i32 noundef %24)
store i32 -1, ptr %3, align 4
br label %229
26: ; preds = %17
%27 = load ptr, ptr %5, align 8
%28 = call i32 @_IO_flockfile(ptr noundef %27)
%29 = load ptr, ptr %5, align 8
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds %struct.spwd, ptr %30, i32 0, i32 0
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds %struct.spwd, ptr %33, i32 0, i32 1
%35 = load ptr, ptr %34, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %26
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds %struct.spwd, ptr %38, i32 0, i32 1
%40 = load ptr, ptr %39, align 8
br label %42
41: ; preds = %26
br label %42
42: ; preds = %41, %37
%43 = phi ptr [ %40, %37 ], [ @.str.1, %41 ]
%44 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str, ptr noundef %32, ptr noundef %43)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %6, align 4
br label %49
49: ; preds = %46, %42
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds %struct.spwd, ptr %50, i32 0, i32 2
%52 = load i64, ptr %51, align 8
%53 = icmp ne i64 %52, -1
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = load ptr, ptr %5, align 8
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds %struct.spwd, ptr %56, i32 0, i32 2
%58 = load i64, ptr %57, align 8
%59 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.2, i64 noundef %58)
%60 = icmp slt i64 %59, 0
br i1 %60, label %71, label %61
61: ; preds = %54, %49
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds %struct.spwd, ptr %62, i32 0, i32 2
%64 = load i64, ptr %63, align 8
%65 = icmp eq i64 %64, -1
br i1 %65, label %66, label %74
66: ; preds = %61
%67 = load ptr, ptr %5, align 8
%68 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %67)
%69 = load i64, ptr @EOF, align 8
%70 = icmp eq i64 %68, %69
br i1 %70, label %71, label %74
71: ; preds = %66, %54
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %6, align 4
br label %74
74: ; preds = %71, %66, %61
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds %struct.spwd, ptr %75, i32 0, i32 3
%77 = load i64, ptr %76, align 8
%78 = icmp ne i64 %77, -1
br i1 %78, label %79, label %86
79: ; preds = %74
%80 = load ptr, ptr %5, align 8
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds %struct.spwd, ptr %81, i32 0, i32 3
%83 = load i64, ptr %82, align 8
%84 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.2, i64 noundef %83)
%85 = icmp slt i64 %84, 0
br i1 %85, label %96, label %86
86: ; preds = %79, %74
%87 = load ptr, ptr %4, align 8
%88 = getelementptr inbounds %struct.spwd, ptr %87, i32 0, i32 3
%89 = load i64, ptr %88, align 8
%90 = icmp eq i64 %89, -1
br i1 %90, label %91, label %99
91: ; preds = %86
%92 = load ptr, ptr %5, align 8
%93 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %92)
%94 = load i64, ptr @EOF, align 8
%95 = icmp eq i64 %93, %94
br i1 %95, label %96, label %99
96: ; preds = %91, %79
%97 = load i32, ptr %6, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %6, align 4
br label %99
99: ; preds = %96, %91, %86
%100 = load ptr, ptr %4, align 8
%101 = getelementptr inbounds %struct.spwd, ptr %100, i32 0, i32 4
%102 = load i64, ptr %101, align 8
%103 = icmp ne i64 %102, -1
br i1 %103, label %104, label %111
104: ; preds = %99
%105 = load ptr, ptr %5, align 8
%106 = load ptr, ptr %4, align 8
%107 = getelementptr inbounds %struct.spwd, ptr %106, i32 0, i32 4
%108 = load i64, ptr %107, align 8
%109 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.2, i64 noundef %108)
%110 = icmp slt i64 %109, 0
br i1 %110, label %121, label %111
111: ; preds = %104, %99
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds %struct.spwd, ptr %112, i32 0, i32 4
%114 = load i64, ptr %113, align 8
%115 = icmp eq i64 %114, -1
br i1 %115, label %116, label %124
116: ; preds = %111
%117 = load ptr, ptr %5, align 8
%118 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %117)
%119 = load i64, ptr @EOF, align 8
%120 = icmp eq i64 %118, %119
br i1 %120, label %121, label %124
121: ; preds = %116, %104
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %6, align 4
br label %124
124: ; preds = %121, %116, %111
%125 = load ptr, ptr %4, align 8
%126 = getelementptr inbounds %struct.spwd, ptr %125, i32 0, i32 5
%127 = load i64, ptr %126, align 8
%128 = icmp ne i64 %127, -1
br i1 %128, label %129, label %136
129: ; preds = %124
%130 = load ptr, ptr %5, align 8
%131 = load ptr, ptr %4, align 8
%132 = getelementptr inbounds %struct.spwd, ptr %131, i32 0, i32 5
%133 = load i64, ptr %132, align 8
%134 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.2, i64 noundef %133)
%135 = icmp slt i64 %134, 0
br i1 %135, label %146, label %136
136: ; preds = %129, %124
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds %struct.spwd, ptr %137, i32 0, i32 5
%139 = load i64, ptr %138, align 8
%140 = icmp eq i64 %139, -1
br i1 %140, label %141, label %149
141: ; preds = %136
%142 = load ptr, ptr %5, align 8
%143 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %142)
%144 = load i64, ptr @EOF, align 8
%145 = icmp eq i64 %143, %144
br i1 %145, label %146, label %149
146: ; preds = %141, %129
%147 = load i32, ptr %6, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %6, align 4
br label %149
149: ; preds = %146, %141, %136
%150 = load ptr, ptr %4, align 8
%151 = getelementptr inbounds %struct.spwd, ptr %150, i32 0, i32 6
%152 = load i64, ptr %151, align 8
%153 = icmp ne i64 %152, -1
br i1 %153, label %154, label %161
154: ; preds = %149
%155 = load ptr, ptr %5, align 8
%156 = load ptr, ptr %4, align 8
%157 = getelementptr inbounds %struct.spwd, ptr %156, i32 0, i32 6
%158 = load i64, ptr %157, align 8
%159 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str.2, i64 noundef %158)
%160 = icmp slt i64 %159, 0
br i1 %160, label %171, label %161
161: ; preds = %154, %149
%162 = load ptr, ptr %4, align 8
%163 = getelementptr inbounds %struct.spwd, ptr %162, i32 0, i32 6
%164 = load i64, ptr %163, align 8
%165 = icmp eq i64 %164, -1
br i1 %165, label %166, label %174
166: ; preds = %161
%167 = load ptr, ptr %5, align 8
%168 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %167)
%169 = load i64, ptr @EOF, align 8
%170 = icmp eq i64 %168, %169
br i1 %170, label %171, label %174
171: ; preds = %166, %154
%172 = load i32, ptr %6, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %6, align 4
br label %174
174: ; preds = %171, %166, %161
%175 = load ptr, ptr %4, align 8
%176 = getelementptr inbounds %struct.spwd, ptr %175, i32 0, i32 7
%177 = load i64, ptr %176, align 8
%178 = icmp ne i64 %177, -1
br i1 %178, label %179, label %186
179: ; preds = %174
%180 = load ptr, ptr %5, align 8
%181 = load ptr, ptr %4, align 8
%182 = getelementptr inbounds %struct.spwd, ptr %181, i32 0, i32 7
%183 = load i64, ptr %182, align 8
%184 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.2, i64 noundef %183)
%185 = icmp slt i64 %184, 0
br i1 %185, label %196, label %186
186: ; preds = %179, %174
%187 = load ptr, ptr %4, align 8
%188 = getelementptr inbounds %struct.spwd, ptr %187, i32 0, i32 7
%189 = load i64, ptr %188, align 8
%190 = icmp eq i64 %189, -1
br i1 %190, label %191, label %199
191: ; preds = %186
%192 = load ptr, ptr %5, align 8
%193 = call i64 @putc_unlocked(i8 noundef signext 58, ptr noundef %192)
%194 = load i64, ptr @EOF, align 8
%195 = icmp eq i64 %193, %194
br i1 %195, label %196, label %199
196: ; preds = %191, %179
%197 = load i32, ptr %6, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %6, align 4
br label %199
199: ; preds = %196, %191, %186
%200 = load ptr, ptr %4, align 8
%201 = getelementptr inbounds %struct.spwd, ptr %200, i32 0, i32 8
%202 = load i64, ptr %201, align 8
%203 = icmp ne i64 %202, -1
br i1 %203, label %204, label %214
204: ; preds = %199
%205 = load ptr, ptr %5, align 8
%206 = load ptr, ptr %4, align 8
%207 = getelementptr inbounds %struct.spwd, ptr %206, i32 0, i32 8
%208 = load i64, ptr %207, align 8
%209 = call i64 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.3, i64 noundef %208)
%210 = icmp slt i64 %209, 0
br i1 %210, label %211, label %214
211: ; preds = %204
%212 = load i32, ptr %6, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %6, align 4
br label %214
214: ; preds = %211, %204, %199
%215 = load ptr, ptr %5, align 8
%216 = call i64 @putc_unlocked(i8 noundef signext 10, ptr noundef %215)
%217 = load i64, ptr @EOF, align 8
%218 = icmp eq i64 %216, %217
br i1 %218, label %219, label %222
219: ; preds = %214
%220 = load i32, ptr %6, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %6, align 4
br label %222
222: ; preds = %219, %214
%223 = load ptr, ptr %5, align 8
%224 = call i32 @_IO_funlockfile(ptr noundef %223)
%225 = load i32, ptr %6, align 4
%226 = icmp ne i32 %225, 0
%227 = zext i1 %226 to i64
%228 = select i1 %226, i32 -1, i32 0
store i32 %228, ptr %3, align 4
br label %229
229: ; preds = %222, %23
%230 = load i32, ptr %3, align 4
ret i32 %230
}
declare i32 @__nss_valid_field(ptr noundef) #1
declare i32 @__set_errno(i32 noundef) #1
declare i32 @_IO_flockfile(ptr noundef) #1
declare i64 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @putc_unlocked(i8 noundef signext, ptr noundef) #1
declare i32 @_IO_funlockfile(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/tmpum43ve2v.c'
source_filename = "/tmp/tmpum43ve2v.c"
target datalayout = "e-m:e-p270: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/tmpum43ve2v.c"
target datalayout = "e-m:e-p270: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/tmpid1__2m6.c'
source_filename = "/tmp/tmpid1__2m6.c"
target datalayout = "e-m:e-p270: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 (...) @test_hello_world_success()
%3 = call i32 (...) @test_hello_world_fail()
ret i32 0
}
declare i32 @test_hello_world_success(...) #1
declare i32 @test_hello_world_fail(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpid1__2m6.c"
target datalayout = "e-m:e-p270: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 (...) @test_hello_world_success()
%3 = call i32 (...) @test_hello_world_fail()
ret i32 0
}
declare i32 @test_hello_world_success(...) #1
declare i32 @test_hello_world_fail(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpaqdvxl7r.c'
source_filename = "/tmp/tmpaqdvxl7r.c"
target datalayout = "e-m:e-p270: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"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @process_char(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 32
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @putchar(i8 noundef signext 43)
br label %46
8: ; preds = %1
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = icmp sgt i32 %10, 47
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = icmp slt i32 %14, 58
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i8, ptr %2, align 1
%18 = call i32 @putchar(i8 noundef signext %17)
br label %46
19: ; preds = %12, %8
%20 = load i8, ptr %2, align 1
%21 = sext i8 %20 to i32
%22 = icmp sgt i32 %21, 64
br i1 %22, label %23, label %30
23: ; preds = %19
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = icmp slt i32 %25, 91
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i8, ptr %2, align 1
%29 = call i32 @putchar(i8 noundef signext %28)
br label %46
30: ; preds = %23, %19
%31 = load i8, ptr %2, align 1
%32 = sext i8 %31 to i32
%33 = icmp sgt i32 %32, 96
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i8, ptr %2, align 1
%36 = sext i8 %35 to i32
%37 = icmp slt i32 %36, 123
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i8, ptr %2, align 1
%40 = call i32 @putchar(i8 noundef signext %39)
br label %46
41: ; preds = %34, %30
%42 = call i32 @putchar(i8 noundef signext 37)
%43 = load i8, ptr %2, align 1
%44 = sext i8 %43 to i32
%45 = call i32 @printf(ptr noundef @.str, i32 noundef %44)
br label %46
46: ; preds = %41, %38, %27, %16, %6
ret void
}
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaqdvxl7r.c"
target datalayout = "e-m:e-p270: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"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @process_char(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 32
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @putchar(i8 noundef signext 43)
br label %46
8: ; preds = %1
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = icmp sgt i32 %10, 47
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = icmp slt i32 %14, 58
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i8, ptr %2, align 1
%18 = call i32 @putchar(i8 noundef signext %17)
br label %46
19: ; preds = %12, %8
%20 = load i8, ptr %2, align 1
%21 = sext i8 %20 to i32
%22 = icmp sgt i32 %21, 64
br i1 %22, label %23, label %30
23: ; preds = %19
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = icmp slt i32 %25, 91
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i8, ptr %2, align 1
%29 = call i32 @putchar(i8 noundef signext %28)
br label %46
30: ; preds = %23, %19
%31 = load i8, ptr %2, align 1
%32 = sext i8 %31 to i32
%33 = icmp sgt i32 %32, 96
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i8, ptr %2, align 1
%36 = sext i8 %35 to i32
%37 = icmp slt i32 %36, 123
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i8, ptr %2, align 1
%40 = call i32 @putchar(i8 noundef signext %39)
br label %46
41: ; preds = %34, %30
%42 = call i32 @putchar(i8 noundef signext 37)
%43 = load i8, ptr %2, align 1
%44 = sext i8 %43 to i32
%45 = call i32 @printf(ptr noundef @.str, i32 noundef %44)
br label %46
46: ; preds = %41, %38, %27, %16, %6
ret void
}
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpijp623c9.c'
source_filename = "/tmp/tmpijp623c9.c"
target datalayout = "e-m:e-p270: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"i:: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ElemanEkle(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %10, align 4
store i32 0, ptr %11, align 4
br label %15
15: ; preds = %70, %4
%16 = load i32, ptr %11, align 4
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %17, align 4
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load i32, ptr %9, align 4
%22 = icmp ne i32 %21, 0
%23 = xor i1 %22, true
br label %24
24: ; preds = %20, %15
%25 = phi i1 [ false, %15 ], [ %23, %20 ]
br i1 %25, label %26, label %71
26: ; preds = %24
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %11, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %52
34: ; preds = %26
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %11, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %47
41: ; preds = %34
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %11, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
store i32 %42, ptr %46, align 4
store i32 1, ptr %9, align 4
br label %51
47: ; preds = %34
%48 = load i32, ptr %11, align 4
%49 = mul nsw i32 2, %48
%50 = add nsw i32 %49, 1
store i32 %50, ptr %11, align 4
br label %51
51: ; preds = %47, %41
br label %70
52: ; preds = %26
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %11, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %65
59: ; preds = %52
%60 = load i32, ptr %7, align 4
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
store i32 1, ptr %9, align 4
br label %69
65: ; preds = %52
%66 = load i32, ptr %11, align 4
%67 = mul nsw i32 2, %66
%68 = add nsw i32 %67, 2
store i32 %68, ptr %11, align 4
br label %69
69: ; preds = %65, %59
br label %70
70: ; preds = %69, %51
br label %15, !llvm.loop !6
71: ; preds = %24
%72 = load i32, ptr %11, align 4
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %73, align 4
%75 = icmp sge i32 %72, %74
br i1 %75, label %76, label %115
76: ; preds = %71
%77 = load i32, ptr %9, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %115, label %79
79: ; preds = %76
%80 = load i32, ptr %8, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %8, align 4
%82 = load i32, ptr %8, align 4
%83 = add nsw i32 %82, 1
%84 = call i32 @UsAl(i32 noundef 2, i32 noundef %83)
%85 = sub nsw i32 %84, 1
%86 = load ptr, ptr %6, align 8
store i32 %85, ptr %86, align 4
%87 = load ptr, ptr %5, align 8
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %88, align 4
%90 = sext i32 %89 to i64
%91 = mul i64 %90, 4
%92 = trunc i64 %91 to i32
%93 = call i64 @realloc(ptr noundef %87, i32 noundef %92)
%94 = inttoptr i64 %93 to ptr
store ptr %94, ptr %5, align 8
%95 = load i32, ptr %10, align 4
store i32 %95, ptr %12, align 4
br label %96
96: ; preds = %106, %79
%97 = load i32, ptr %12, align 4
%98 = load ptr, ptr %6, align 8
%99 = load i32, ptr %98, align 4
%100 = icmp slt i32 %97, %99
br i1 %100, label %101, label %109
101: ; preds = %96
%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
store i32 -1, ptr %105, align 4
br label %106
106: ; preds = %101
%107 = load i32, ptr %12, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %12, align 4
br label %96, !llvm.loop !8
109: ; preds = %96
%110 = load i32, ptr %7, align 4
%111 = load ptr, ptr %5, align 8
%112 = load i32, ptr %11, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, ptr %111, i64 %113
store i32 %110, ptr %114, align 4
br label %115
115: ; preds = %109, %76, %71
%116 = load i32, ptr %11, align 4
%117 = call i32 @printf(ptr noundef @.str, i32 noundef %116)
ret void
}
declare i32 @UsAl(i32 noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpijp623c9.c"
target datalayout = "e-m:e-p270: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"i:: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ElemanEkle(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %10, align 4
store i32 0, ptr %11, align 4
br label %15
15: ; preds = %70, %4
%16 = load i32, ptr %11, align 4
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %17, align 4
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load i32, ptr %9, align 4
%22 = icmp ne i32 %21, 0
%23 = xor i1 %22, true
br label %24
24: ; preds = %20, %15
%25 = phi i1 [ false, %15 ], [ %23, %20 ]
br i1 %25, label %26, label %71
26: ; preds = %24
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %11, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %52
34: ; preds = %26
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %11, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %47
41: ; preds = %34
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %11, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
store i32 %42, ptr %46, align 4
store i32 1, ptr %9, align 4
br label %51
47: ; preds = %34
%48 = load i32, ptr %11, align 4
%49 = mul nsw i32 2, %48
%50 = add nsw i32 %49, 1
store i32 %50, ptr %11, align 4
br label %51
51: ; preds = %47, %41
br label %70
52: ; preds = %26
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %11, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %65
59: ; preds = %52
%60 = load i32, ptr %7, align 4
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
store i32 1, ptr %9, align 4
br label %69
65: ; preds = %52
%66 = load i32, ptr %11, align 4
%67 = mul nsw i32 2, %66
%68 = add nsw i32 %67, 2
store i32 %68, ptr %11, align 4
br label %69
69: ; preds = %65, %59
br label %70
70: ; preds = %69, %51
br label %15, !llvm.loop !6
71: ; preds = %24
%72 = load i32, ptr %11, align 4
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %73, align 4
%75 = icmp sge i32 %72, %74
br i1 %75, label %76, label %118
76: ; preds = %71
%77 = load i32, ptr %9, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %118, label %79
79: ; preds = %76
%80 = load i32, ptr %8, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %8, align 4
%82 = load i32, ptr %8, align 4
%83 = add nsw i32 %82, 1
%84 = call i32 @UsAl(i32 noundef 2, i32 noundef %83)
%85 = sub nsw i32 %84, 1
%86 = load ptr, ptr %6, align 8
store i32 %85, ptr %86, align 4
%87 = load ptr, ptr %5, align 8
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %88, align 4
%90 = sext i32 %89 to i64
%91 = mul i64 %90, 4
%92 = trunc i64 %91 to i32
%93 = call i64 @realloc(ptr noundef %87, i32 noundef %92)
%94 = inttoptr i64 %93 to ptr
store ptr %94, ptr %5, align 8
%95 = load i32, ptr %10, align 4
store i32 %95, ptr %12, align 4
%96 = load i32, ptr %12, align 4
%97 = load ptr, ptr %6, align 8
%98 = load i32, ptr %97, align 4
%99 = icmp slt i32 %96, %98
br i1 %99, label %.lr.ph, label %112
.lr.ph: ; preds = %79
br label %100
100: ; preds = %.lr.ph, %105
%101 = load ptr, ptr %5, align 8
%102 = load i32, ptr %12, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
store i32 -1, ptr %104, align 4
br label %105
105: ; preds = %100
%106 = load i32, ptr %12, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %12, align 4
%108 = load i32, ptr %12, align 4
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr %109, align 4
%111 = icmp slt i32 %108, %110
br i1 %111, label %100, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %105
br label %112
112: ; preds = %._crit_edge, %79
%113 = load i32, ptr %7, align 4
%114 = load ptr, ptr %5, align 8
%115 = load i32, ptr %11, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, ptr %114, i64 %116
store i32 %113, ptr %117, align 4
br label %118
118: ; preds = %112, %76, %71
%119 = load i32, ptr %11, align 4
%120 = call i32 @printf(ptr noundef @.str, i32 noundef %119)
ret void
}
declare i32 @UsAl(i32 noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3oa5n_7l.c'
source_filename = "/tmp/tmp3oa5n_7l.c"
target datalayout = "e-m:e-p270: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 @Suffix(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %26
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = sub i64 0, %21
%23 = getelementptr inbounds i8, ptr %19, i64 %22
%24 = load ptr, ptr %5, align 8
%25 = call i32 @strcmp(ptr noundef %23, ptr noundef %24)
store i32 %25, ptr %3, align 4
br label %27
26: ; preds = %2
store i32 -1, ptr %3, align 4
br label %27
27: ; preds = %26, %15
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3oa5n_7l.c"
target datalayout = "e-m:e-p270: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 @Suffix(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %26
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = sub i64 0, %21
%23 = getelementptr inbounds i8, ptr %19, i64 %22
%24 = load ptr, ptr %5, align 8
%25 = call i32 @strcmp(ptr noundef %23, ptr noundef %24)
store i32 %25, ptr %3, align 4
br label %27
26: ; preds = %2
store i32 -1, ptr %3, align 4
br label %27
27: ; preds = %26, %15
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpokihxn_l.c'
source_filename = "/tmp/tmpokihxn_l.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"/sys/class/gpio/gpio%d/value\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"gpio/get-value\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_get_value(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [64 x i8], align 16
%7 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @snprintf(ptr noundef %8, i32 noundef 64, ptr noundef @.str, i32 noundef %9)
%11 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 0
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @error_exit(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %2
%19 = load i32, ptr %5, align 4
%20 = call i32 @read(i32 noundef %19, ptr noundef %7, i32 noundef 1)
%21 = load i8, ptr %7, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 48
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = load ptr, ptr %4, align 8
store i32 1, ptr %25, align 4
br label %28
26: ; preds = %18
%27 = load ptr, ptr %4, align 8
store i32 0, ptr %27, align 4
br label %28
28: ; preds = %26, %24
%29 = load i32, ptr %5, align 4
%30 = call i32 @close(i32 noundef %29)
ret i32 0
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @error_exit(ptr 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/tmpokihxn_l.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"/sys/class/gpio/gpio%d/value\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"gpio/get-value\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_get_value(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [64 x i8], align 16
%7 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @snprintf(ptr noundef %8, i32 noundef 64, ptr noundef @.str, i32 noundef %9)
%11 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 0
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @error_exit(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %2
%19 = load i32, ptr %5, align 4
%20 = call i32 @read(i32 noundef %19, ptr noundef %7, i32 noundef 1)
%21 = load i8, ptr %7, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 48
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = load ptr, ptr %4, align 8
store i32 1, ptr %25, align 4
br label %28
26: ; preds = %18
%27 = load ptr, ptr %4, align 8
store i32 0, ptr %27, align 4
br label %28
28: ; preds = %26, %24
%29 = load i32, ptr %5, align 4
%30 = call i32 @close(i32 noundef %29)
ret i32 0
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @error_exit(ptr 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/tmp6d5ao9uy.c'
source_filename = "/tmp/tmp6d5ao9uy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_bit(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %41
13: ; preds = %2
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %34, %13
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %39
18: ; preds = %14
store i32 7, ptr %8, align 4
br label %19
19: ; preds = %30, %18
%20 = load i32, ptr %8, align 4
%21 = icmp sge i32 %20, 0
br i1 %21, label %22, label %33
22: ; preds = %19
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = load i32, ptr %8, align 4
%27 = ashr i32 %25, %26
%28 = and i32 %27, 1
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %28)
br label %30
30: ; preds = %22
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %8, align 4
br label %19, !llvm.loop !6
33: ; preds = %19
br label %34
34: ; preds = %33
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %6, align 8
br label %14, !llvm.loop !8
39: ; preds = %14
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %41
41: ; preds = %39, %12
%42 = load i32, ptr %3, align 4
ret i32 %42
}
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/tmp6d5ao9uy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_bit(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %44
13: ; preds = %2
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph2, label %42
.lr.ph2: ; preds = %13
br label %17
17: ; preds = %.lr.ph2, %34
store i32 7, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp sge i32 %18, 0
br i1 %19, label %.lr.ph, label %33
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %28
%21 = load ptr, ptr %6, align 8
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = load i32, ptr %8, align 4
%25 = ashr i32 %23, %24
%26 = and i32 %25, 1
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %26)
br label %28
28: ; preds = %20
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp sge i32 %31, 0
br i1 %32, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %17
br label %34
34: ; preds = %33
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %6, align 8
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %42
42: ; preds = %._crit_edge3, %13
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %44
44: ; preds = %42, %12
%45 = load i32, ptr %3, align 4
ret i32 %45
}
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/tmpm_j9hu46.c'
source_filename = "/tmp/tmpm_j9hu46.c"
target datalayout = "e-m:e-p270: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/tmpm_j9hu46.c"
target datalayout = "e-m:e-p270: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/tmplmpdnekt.c'
source_filename = "/tmp/tmplmpdnekt.c"
target datalayout = "e-m:e-p270: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 @myrand() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @rand()
%3 = and i32 %2, 255
%4 = load i32, ptr %1, align 4
%5 = add i32 %4, %3
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = shl i32 %6, 8
store i32 %7, ptr %1, align 4
%8 = call i32 (...) @rand()
%9 = and i32 %8, 255
%10 = load i32, ptr %1, align 4
%11 = add i32 %10, %9
store i32 %11, ptr %1, align 4
%12 = load i32, ptr %1, align 4
%13 = shl i32 %12, 8
store i32 %13, ptr %1, align 4
%14 = call i32 (...) @rand()
%15 = and i32 %14, 255
%16 = load i32, ptr %1, align 4
%17 = add i32 %16, %15
store i32 %17, ptr %1, align 4
%18 = load i32, ptr %1, align 4
%19 = shl i32 %18, 8
store i32 %19, ptr %1, align 4
%20 = call i32 (...) @rand()
%21 = and i32 %20, 255
%22 = load i32, ptr %1, align 4
%23 = add i32 %22, %21
store i32 %23, ptr %1, align 4
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplmpdnekt.c"
target datalayout = "e-m:e-p270: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 @myrand() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @rand()
%3 = and i32 %2, 255
%4 = load i32, ptr %1, align 4
%5 = add i32 %4, %3
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = shl i32 %6, 8
store i32 %7, ptr %1, align 4
%8 = call i32 (...) @rand()
%9 = and i32 %8, 255
%10 = load i32, ptr %1, align 4
%11 = add i32 %10, %9
store i32 %11, ptr %1, align 4
%12 = load i32, ptr %1, align 4
%13 = shl i32 %12, 8
store i32 %13, ptr %1, align 4
%14 = call i32 (...) @rand()
%15 = and i32 %14, 255
%16 = load i32, ptr %1, align 4
%17 = add i32 %16, %15
store i32 %17, ptr %1, align 4
%18 = load i32, ptr %1, align 4
%19 = shl i32 %18, 8
store i32 %19, ptr %1, align 4
%20 = call i32 (...) @rand()
%21 = and i32 %20, 255
%22 = load i32, ptr %1, align 4
%23 = add i32 %22, %21
store i32 %23, ptr %1, align 4
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpygewrj3j.c'
source_filename = "/tmp/tmpygewrj3j.c"
target datalayout = "e-m:e-p270: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 @fileutils___read_permission_p(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 @read_permission_p(ptr noundef %3)
ret i32 %4
}
declare i32 @read_permission_p(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/tmpygewrj3j.c"
target datalayout = "e-m:e-p270: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 @fileutils___read_permission_p(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 @read_permission_p(ptr noundef %3)
ret i32 %4
}
declare i32 @read_permission_p(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/tmp9m9rgt34.c'
source_filename = "/tmp/tmp9m9rgt34.c"
target datalayout = "e-m:e-p270: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 @Cat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @Malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strcat(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @Malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmp9m9rgt34.c"
target datalayout = "e-m:e-p270: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 @Cat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @Malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strcat(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @Malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpa_kgrefe.c'
source_filename = "/tmp/tmpa_kgrefe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @getPerformanceFrequency() #0 {
ret i64 1000000000
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpa_kgrefe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @getPerformanceFrequency() #0 {
ret i64 1000000000
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp6urfaa17.c'
source_filename = "/tmp/tmp6urfaa17.c"
target datalayout = "e-m:e-p270: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"1\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
br label %9
9: ; preds = %28, %2
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 10
br i1 %14, label %19, label %15
15: ; preds = %12, %9
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp eq i32 %16, %17
br label %19
19: ; preds = %15, %12
%20 = phi i1 [ true, %12 ], [ %18, %15 ]
br i1 %20, label %21, label %29
21: ; preds = %19
%22 = call i32 @printf(ptr noundef @.str)
br label %23
23: ; preds = %26, %21
%24 = load i32, ptr %8, align 4
%25 = icmp slt i32 %24, 20
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(ptr noundef @.str.1)
br label %23, !llvm.loop !6
28: ; preds = %23
br label %9, !llvm.loop !8
29: ; preds = %19
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6urfaa17.c"
target datalayout = "e-m:e-p270: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"1\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
br label %9
9: ; preds = %29, %2
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 10
br i1 %14, label %19, label %15
15: ; preds = %12, %9
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp eq i32 %16, %17
br label %19
19: ; preds = %15, %12
%20 = phi i1 [ true, %12 ], [ %18, %15 ]
br i1 %20, label %21, label %30
21: ; preds = %19
%22 = call i32 @printf(ptr noundef @.str)
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 20
br i1 %24, label %.lr.ph, label %29
.lr.ph: ; preds = %21
br label %25
25: ; preds = %.lr.ph, %25
%26 = call i32 @printf(ptr noundef @.str.1)
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %27, 20
br i1 %28, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %29
29: ; preds = %._crit_edge, %21
br label %9, !llvm.loop !8
30: ; preds = %19
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpn10lg42n.c'
source_filename = "/tmp/tmpn10lg42n.c"
target datalayout = "e-m:e-p270: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"=\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_fset(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @strstr(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %4, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %5, align 8
store i32 1, ptr %6, align 4
%14 = load ptr, ptr %3, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %30
16: ; preds = %1
%17 = trunc i64 %11 to i32
%18 = call i32 @memset(ptr noundef %13, i32 noundef 0, i32 noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %2, align 8
%22 = ptrtoint ptr %20 to i64
%23 = ptrtoint ptr %21 to i64
%24 = sub i64 %22, %23
%25 = trunc i64 %24 to i32
%26 = call i32 @strncpy(ptr noundef %13, ptr noundef %19, i32 noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = call i32 @nvram_fset(ptr noundef %13, ptr noundef %28)
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %16, %1
%31 = load i32, ptr %6, align 4
%32 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %32)
ret i32 %31
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @nvram_fset(ptr noundef, ptr noundef) #1
; 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn10lg42n.c"
target datalayout = "e-m:e-p270: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"=\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_fset(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @strstr(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %4, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %5, align 8
store i32 1, ptr %6, align 4
%14 = load ptr, ptr %3, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %30
16: ; preds = %1
%17 = trunc i64 %11 to i32
%18 = call i32 @memset(ptr noundef %13, i32 noundef 0, i32 noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %2, align 8
%22 = ptrtoint ptr %20 to i64
%23 = ptrtoint ptr %21 to i64
%24 = sub i64 %22, %23
%25 = trunc i64 %24 to i32
%26 = call i32 @strncpy(ptr noundef %13, ptr noundef %19, i32 noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = call i32 @nvram_fset(ptr noundef %13, ptr noundef %28)
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %16, %1
%31 = load i32, ptr %6, align 4
%32 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %32)
ret i32 %31
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @nvram_fset(ptr noundef, ptr noundef) #1
; 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"}
|
; ModuleID = '/tmp/tmpel1l5h1t.c'
source_filename = "/tmp/tmpel1l5h1t.c"
target datalayout = "e-m:e-p270: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 [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isbdigit should be 0 for 0xc4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isbdigit_0xc4() #0 {
%1 = call i64 @isbdigit(i32 noundef 196)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 985, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isbdigit(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/tmpel1l5h1t.c"
target datalayout = "e-m:e-p270: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 [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isbdigit should be 0 for 0xc4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isbdigit_0xc4() #0 {
%1 = call i64 @isbdigit(i32 noundef 196)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 985, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isbdigit(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/tmpqnsm3u8y.c'
source_filename = "/tmp/tmpqnsm3u8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @pluscczexta(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = add i32 %6, %7
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ult i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @abort() #2
unreachable
14: ; preds = %2
%15 = load i32, ptr %5, align 4
%16 = zext i32 %15 to i64
ret i64 %16
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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/tmpqnsm3u8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @pluscczexta(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = add i32 %6, %7
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ult i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @abort() #2
unreachable
14: ; preds = %2
%15 = load i32, ptr %5, align 4
%16 = zext i32 %15 to i64
ret i64 %16
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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/tmp2r2otdcl.c'
source_filename = "/tmp/tmp2r2otdcl.c"
target datalayout = "e-m:e-p270: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"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pragvalue() #0 {
%1 = alloca [511 x i8], align 16
%2 = getelementptr inbounds [511 x i8], ptr %1, i64 0, i64 0
%3 = call i64 (...) @eval()
%4 = call i32 @sprintf(ptr noundef %2, ptr noundef @.str, i64 noundef %3)
%5 = getelementptr inbounds [511 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @pbstr(ptr noundef %5)
%7 = call i32 @pushback(i8 noundef signext 10)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @eval(...) #1
declare i32 @pbstr(ptr noundef) #1
declare i32 @pushback(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2r2otdcl.c"
target datalayout = "e-m:e-p270: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"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pragvalue() #0 {
%1 = alloca [511 x i8], align 16
%2 = getelementptr inbounds [511 x i8], ptr %1, i64 0, i64 0
%3 = call i64 (...) @eval()
%4 = call i32 @sprintf(ptr noundef %2, ptr noundef @.str, i64 noundef %3)
%5 = getelementptr inbounds [511 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @pbstr(ptr noundef %5)
%7 = call i32 @pushback(i8 noundef signext 10)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @eval(...) #1
declare i32 @pbstr(ptr noundef) #1
declare i32 @pushback(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"}
|
; ModuleID = '/tmp/tmpwq12sgmw.c'
source_filename = "/tmp/tmpwq12sgmw.c"
target datalayout = "e-m:e-p270: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 @handle_scrolling(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 4000
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load i32, ptr %3, align 4
store i32 %9, ptr %2, align 4
br label %44
10: ; preds = %1
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %23, %10
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 25
br i1 %13, label %14, label %26
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = call ptr @get_screen_offset(i32 noundef 0, i32 noundef %15)
%17 = getelementptr inbounds i8, ptr %16, i64 753664
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 1
%20 = call ptr @get_screen_offset(i32 noundef 0, i32 noundef %19)
%21 = getelementptr inbounds i8, ptr %20, i64 753664
%22 = call i32 @memory_copy(ptr noundef %17, ptr noundef %21, i32 noundef 160)
br label %23
23: ; preds = %14
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %11, !llvm.loop !6
26: ; preds = %11
%27 = call ptr @get_screen_offset(i32 noundef 0, i32 noundef 24)
%28 = getelementptr inbounds i8, ptr %27, i64 753664
store ptr %28, ptr %5, align 8
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %37, %26
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 160
br i1 %31, label %32, label %40
32: ; preds = %29
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 0, ptr %36, align 1
br label %37
37: ; preds = %32
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
br label %29, !llvm.loop !8
40: ; preds = %29
%41 = load i32, ptr %3, align 4
%42 = sub nsw i32 %41, 160
store i32 %42, ptr %3, align 4
%43 = load i32, ptr %3, align 4
store i32 %43, ptr %2, align 4
br label %44
44: ; preds = %40, %8
%45 = load i32, ptr %2, align 4
ret i32 %45
}
declare i32 @memory_copy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @get_screen_offset(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/tmpwq12sgmw.c"
target datalayout = "e-m:e-p270: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 @handle_scrolling(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 4000
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load i32, ptr %3, align 4
store i32 %9, ptr %2, align 4
br label %46
10: ; preds = %1
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 25
br i1 %12, label %.lr.ph, label %27
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %22
%14 = load i32, ptr %4, align 4
%15 = call ptr @get_screen_offset(i32 noundef 0, i32 noundef %14)
%16 = getelementptr inbounds i8, ptr %15, i64 753664
%17 = load i32, ptr %4, align 4
%18 = sub nsw i32 %17, 1
%19 = call ptr @get_screen_offset(i32 noundef 0, i32 noundef %18)
%20 = getelementptr inbounds i8, ptr %19, i64 753664
%21 = call i32 @memory_copy(ptr noundef %16, ptr noundef %20, i32 noundef 160)
br label %22
22: ; preds = %13
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %25, 25
br i1 %26, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %10
%28 = call ptr @get_screen_offset(i32 noundef 0, i32 noundef 24)
%29 = getelementptr inbounds i8, ptr %28, i64 753664
store ptr %29, ptr %5, align 8
store i32 0, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 160
br i1 %31, label %.lr.ph2, label %42
.lr.ph2: ; preds = %27
br label %32
32: ; preds = %.lr.ph2, %37
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 0, ptr %36, align 1
br label %37
37: ; preds = %32
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = icmp slt i32 %40, 160
br i1 %41, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %42
42: ; preds = %._crit_edge3, %27
%43 = load i32, ptr %3, align 4
%44 = sub nsw i32 %43, 160
store i32 %44, ptr %3, align 4
%45 = load i32, ptr %3, align 4
store i32 %45, ptr %2, align 4
br label %46
46: ; preds = %42, %8
%47 = load i32, ptr %2, align 4
ret i32 %47
}
declare i32 @memory_copy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @get_screen_offset(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/tmpetmk5nxf.c'
source_filename = "/tmp/tmpetmk5nxf.c"
target datalayout = "e-m:e-p270: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"AbCdEfGhIjKlMnOpQrStUvWxYz\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Uppercase : %c, Lowercase : %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %21, %0
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 26
br i1 %6, label %7, label %24
7: ; preds = %4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = call i32 @to_upper(i8 noundef signext %12)
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i32 @to_lower(i8 noundef signext %18)
%20 = call i32 @printf(ptr noundef @.str.1, i32 noundef %13, i32 noundef %19)
br label %21
21: ; preds = %7
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
br label %4, !llvm.loop !6
24: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @to_upper(i8 noundef signext) #1
declare i32 @to_lower(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/tmpetmk5nxf.c"
target datalayout = "e-m:e-p270: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"AbCdEfGhIjKlMnOpQrStUvWxYz\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Uppercase : %c, Lowercase : %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 26
br i1 %5, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %20
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = call i32 @to_upper(i8 noundef signext %11)
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @to_lower(i8 noundef signext %17)
%19 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %18)
br label %20
20: ; preds = %6
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %23, 26
br i1 %24, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @to_upper(i8 noundef signext) #1
declare i32 @to_lower(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/tmpynmku43f.c'
source_filename = "/tmp/tmpynmku43f.c"
target datalayout = "e-m:e-p270: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/tmpynmku43f.c"
target datalayout = "e-m:e-p270: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/tmpddoj81ok.c'
source_filename = "/tmp/tmpddoj81ok.c"
target datalayout = "e-m:e-p270: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 @tick(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 @gettimeofday(ptr noundef %3, ptr noundef null)
ret void
}
declare i32 @gettimeofday(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/tmpddoj81ok.c"
target datalayout = "e-m:e-p270: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 @tick(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 @gettimeofday(ptr noundef %3, ptr noundef null)
ret void
}
declare i32 @gettimeofday(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/tmpegoxz24y.c'
source_filename = "/tmp/tmpegoxz24y.c"
target datalayout = "e-m:e-p270: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 @wCopyString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @wMalloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %3, align 8
ret ptr %12
}
declare i64 @wMalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmpegoxz24y.c"
target datalayout = "e-m:e-p270: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 @wCopyString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @wMalloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %3, align 8
ret ptr %12
}
declare i64 @wMalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmpbj9namga.c'
source_filename = "/tmp/tmpbj9namga.c"
target datalayout = "e-m:e-p270: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"zero512.bin\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i64 512, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = call ptr @malloc(i64 noundef %6)
store ptr %7, ptr %4, align 8
store i64 0, ptr %2, align 8
br label %8
8: ; preds = %16, %0
%9 = load i64, ptr %2, align 8
%10 = load i64, ptr %3, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i64, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
store i8 48, ptr %15, align 1
br label %16
16: ; preds = %12
%17 = load i64, ptr %2, align 8
%18 = add i64 %17, 1
store i64 %18, ptr %2, align 8
br label %8, !llvm.loop !6
19: ; preds = %8
%20 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %3, align 8
%23 = load ptr, ptr %5, align 8
%24 = call i32 @fwrite(ptr noundef %21, i32 noundef 1, i64 noundef %22, ptr noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = call i32 @fclose(ptr noundef %25)
%27 = load ptr, ptr %4, align 8
%28 = call i32 @free(ptr noundef %27)
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare ptr @malloc(i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr 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/tmpbj9namga.c"
target datalayout = "e-m:e-p270: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"zero512.bin\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i64 512, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = call ptr @malloc(i64 noundef %6)
store ptr %7, ptr %4, align 8
store i64 0, ptr %2, align 8
%8 = load i64, ptr %2, align 8
%9 = load i64, ptr %3, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %15
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
store i8 48, ptr %14, align 1
br label %15
15: ; preds = %11
%16 = load i64, ptr %2, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %2, align 8
%18 = load i64, ptr %2, align 8
%19 = load i64, ptr %3, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %0
%22 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %22, ptr %5, align 8
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %3, align 8
%25 = load ptr, ptr %5, align 8
%26 = call i32 @fwrite(ptr noundef %23, i32 noundef 1, i64 noundef %24, ptr noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = call i32 @fclose(ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = call i32 @free(ptr noundef %29)
%31 = load i32, ptr %1, align 4
ret i32 %31
}
declare ptr @malloc(i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr 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/tmpz6_b2sw1.c'
source_filename = "/tmp/tmpz6_b2sw1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"The meaning is %d.\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
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 42, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz6_b2sw1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"The meaning is %d.\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
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 42, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp994uiojw.c'
source_filename = "/tmp/tmp994uiojw.c"
target datalayout = "e-m:e-p270: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 @mydpotrf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = call i32 @dpotrf_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef 1)
ret void
}
declare i32 @dpotrf_(ptr noundef, ptr noundef, ptr noundef, 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/tmp994uiojw.c"
target datalayout = "e-m:e-p270: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 @mydpotrf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = call i32 @dpotrf_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef 1)
ret void
}
declare i32 @dpotrf_(ptr noundef, ptr noundef, ptr noundef, 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/tmpm9d_q08o.c'
source_filename = "/tmp/tmpm9d_q08o.c"
target datalayout = "e-m:e-p270: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"----\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%4s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"Q\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printChessboard(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %32, %1
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %35
9: ; preds = %6
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %27, %9
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %30
13: ; preds = %10
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = icmp eq i32 %22, 1
%24 = zext i1 %23 to i64
%25 = select i1 %23, ptr @.str.2, ptr @.str.3
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %25)
br label %27
27: ; preds = %13
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %10, !llvm.loop !6
30: ; preds = %10
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %32
32: ; preds = %30
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
br label %6, !llvm.loop !8
35: ; preds = %6
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm9d_q08o.c"
target datalayout = "e-m:e-p270: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"----\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%4s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"Q\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printChessboard(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %.lr.ph2, label %37
.lr.ph2: ; preds = %1
br label %8
8: ; preds = %.lr.ph2, %32
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 8
br i1 %10, label %.lr.ph, label %30
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %25
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = icmp eq i32 %20, 1
%22 = zext i1 %21 to i64
%23 = select i1 %21, ptr @.str.2, ptr @.str.3
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %23)
br label %25
25: ; preds = %11
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %28, 8
br i1 %29, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %32
32: ; preds = %30
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 8
br i1 %36, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %37
37: ; preds = %._crit_edge3, %1
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp11bvmuv_.c'
source_filename = "/tmp/tmp11bvmuv_.c"
target datalayout = "e-m:e-p270: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/tmp11bvmuv_.c"
target datalayout = "e-m:e-p270: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/tmpwyqgbnau.c'
source_filename = "/tmp/tmpwyqgbnau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"mario\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @signalhandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGINT, align 4
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = call i32 @remove(ptr noundef @.str)
%8 = call i32 @exit(i32 noundef 0) #3
unreachable
9: ; preds = %1
ret void
}
declare i32 @remove(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/tmpwyqgbnau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"mario\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @signalhandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGINT, align 4
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = call i32 @remove(ptr noundef @.str)
%8 = call i32 @exit(i32 noundef 0) #3
unreachable
9: ; preds = %1
ret void
}
declare i32 @remove(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.