llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpqm5e928d.c'
source_filename = "/tmp/tmpqm5e928d.c"
target datalayout = "e-m:e-p270: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 @readFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call ptr @malloc(i32 noundef 65536)
store ptr %6, ptr %3, align 8
store i32 65536, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %22, %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @feof(ptr noundef %8)
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
br i1 %11, label %12, label %33
12: ; preds = %7
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %22
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = mul nsw i32 %17, 2
store i32 %18, ptr %4, align 4
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = call ptr @realloc(ptr noundef %19, i32 noundef %20)
store ptr %21, ptr %3, align 8
br label %22
22: ; preds = %16, %12
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load ptr, ptr %2, align 8
%28 = call i64 @fread(ptr noundef %26, i32 noundef 1, i32 noundef 65536, ptr noundef %27)
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = add nsw i64 %30, %28
%32 = trunc i64 %31 to i32
store i32 %32, ptr %5, align 4
br label %7, !llvm.loop !6
33: ; preds = %7
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
%37 = call ptr @realloc(ptr noundef %34, i32 noundef %36)
store ptr %37, ptr %3, align 8
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %3, align 8
ret ptr %42
}
declare ptr @malloc(i32 noundef) #1
declare i32 @feof(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqm5e928d.c"
target datalayout = "e-m:e-p270: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 @readFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call ptr @malloc(i32 noundef 65536)
store ptr %6, ptr %3, align 8
store i32 65536, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @feof(ptr noundef %7)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br i1 %10, label %.lr.ph, label %36
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %21
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %21
15: ; preds = %11
%16 = load i32, ptr %4, align 4
%17 = mul nsw i32 %16, 2
store i32 %17, ptr %4, align 4
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = call ptr @realloc(ptr noundef %18, i32 noundef %19)
store ptr %20, ptr %3, align 8
br label %21
21: ; preds = %15, %11
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load ptr, ptr %2, align 8
%27 = call i64 @fread(ptr noundef %25, i32 noundef 1, i32 noundef 65536, ptr noundef %26)
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, ptr %5, align 4
%32 = load ptr, ptr %2, align 8
%33 = call i32 @feof(ptr noundef %32)
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
br i1 %35, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %36
36: ; preds = %._crit_edge, %1
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
%40 = call ptr @realloc(ptr noundef %37, i32 noundef %39)
store ptr %40, ptr %3, align 8
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
store i8 0, ptr %44, align 1
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare ptr @malloc(i32 noundef) #1
declare i32 @feof(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnfdyavq_.c'
source_filename = "/tmp/tmpnfdyavq_.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"Cannot allocate a in getTukey, ndat=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @getTukey(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 10, ptr %10, align 4
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 4, %21
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %19, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %32
27: ; preds = %4
%28 = load i32, ptr @stderr, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str, i32 noundef %29)
%31 = call i32 @exit(i32 noundef -1) #4
unreachable
32: ; preds = %4
%33 = load ptr, ptr %19, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 4, %36
%38 = trunc i64 %37 to i32
%39 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = load ptr, ptr %19, align 8
%42 = load i32, ptr %6, align 4
%43 = sub nsw i32 %42, 1
%44 = sitofp i32 %43 to float
%45 = fpext float %44 to double
%46 = fmul double %45, 5.000000e-01
%47 = fptrunc double %46 to float
%48 = call float @nth(i32 noundef %40, ptr noundef %41, float noundef %47)
%49 = load ptr, ptr %8, align 8
store float %48, ptr %49, align 4
store i32 0, ptr %12, align 4
br label %50
50: ; preds = %70, %32
%51 = load i32, ptr %12, align 4
%52 = load i32, ptr %6, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %73
54: ; preds = %50
%55 = load ptr, ptr %19, align 8
%56 = load i32, ptr %12, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds float, ptr %55, i64 %57
%59 = load float, ptr %58, align 4
%60 = load ptr, ptr %8, align 8
%61 = load float, ptr %60, align 4
%62 = fsub float %59, %61
%63 = fpext float %62 to double
%64 = call i64 @fabs(double noundef %63)
%65 = sitofp i64 %64 to float
%66 = load ptr, ptr %19, align 8
%67 = load i32, ptr %12, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, ptr %66, i64 %68
store float %65, ptr %69, align 4
br label %70
70: ; preds = %54
%71 = load i32, ptr %12, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %12, align 4
br label %50, !llvm.loop !6
73: ; preds = %50
%74 = load i32, ptr %6, align 4
%75 = load ptr, ptr %19, align 8
%76 = load i32, ptr %6, align 4
%77 = sub nsw i32 %76, 1
%78 = sitofp i32 %77 to float
%79 = fpext float %78 to double
%80 = fmul double %79, 5.000000e-01
%81 = fptrunc double %80 to float
%82 = call float @nth(i32 noundef %74, ptr noundef %75, float noundef %81)
%83 = load ptr, ptr %9, align 8
store float %82, ptr %83, align 4
%84 = load ptr, ptr %19, align 8
%85 = call i32 @free(ptr noundef %84)
%86 = load ptr, ptr %9, align 8
%87 = load float, ptr %86, align 4
%88 = fpext float %87 to double
%89 = fdiv double %88, 6.745000e-01
%90 = fptrunc double %89 to float
store float %90, ptr %15, align 4
%91 = load ptr, ptr %8, align 8
%92 = load float, ptr %91, align 4
store float %92, ptr %13, align 4
store float 6.000000e+00, ptr %14, align 4
%93 = load ptr, ptr %9, align 8
%94 = load float, ptr %93, align 4
%95 = fpext float %94 to double
%96 = fcmp olt double %95, 1.000000e-02
br i1 %96, label %97, label %99
97: ; preds = %73
%98 = load float, ptr %13, align 4
store float %98, ptr %5, align 4
br label %183
99: ; preds = %73
store i32 0, ptr %11, align 4
br label %100
100: ; preds = %178, %99
%101 = load i32, ptr %11, align 4
%102 = load i32, ptr %10, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %181
104: ; preds = %100
store double 0.000000e+00, ptr %18, align 8
store double 0.000000e+00, ptr %17, align 8
store i32 0, ptr %12, align 4
br label %105
105: ; preds = %161, %104
%106 = load i32, ptr %12, align 4
%107 = load i32, ptr %6, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %164
109: ; preds = %105
%110 = load ptr, ptr %7, align 8
%111 = load i32, ptr %12, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds float, ptr %110, i64 %112
%114 = load float, ptr %113, align 4
%115 = load float, ptr %13, align 4
%116 = fsub float %114, %115
%117 = load float, ptr %14, align 4
%118 = load float, ptr %15, align 4
%119 = fmul float %117, %118
%120 = fdiv float %116, %119
store float %120, ptr %16, align 4
%121 = load float, ptr %16, align 4
%122 = fpext float %121 to double
%123 = fcmp olt double %122, 1.000000e+00
br i1 %123, label %124, label %160
124: ; preds = %109
%125 = load float, ptr %16, align 4
%126 = fpext float %125 to double
%127 = fcmp ogt double %126, -1.000000e+00
br i1 %127, label %128, label %160
128: ; preds = %124
%129 = load ptr, ptr %7, align 8
%130 = load i32, ptr %12, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds float, ptr %129, i64 %131
%133 = load float, ptr %132, align 4
%134 = fpext float %133 to double
%135 = load float, ptr %16, align 4
%136 = load float, ptr %16, align 4
%137 = fmul float %135, %136
%138 = fpext float %137 to double
%139 = fsub double 1.000000e+00, %138
%140 = fmul double %134, %139
%141 = load float, ptr %16, align 4
%142 = load float, ptr %16, align 4
%143 = fmul float %141, %142
%144 = fpext float %143 to double
%145 = fsub double 1.000000e+00, %144
%146 = load double, ptr %18, align 8
%147 = call double @llvm.fmuladd.f64(double %140, double %145, double %146)
store double %147, ptr %18, align 8
%148 = load float, ptr %16, align 4
%149 = load float, ptr %16, align 4
%150 = fmul float %148, %149
%151 = fpext float %150 to double
%152 = fsub double 1.000000e+00, %151
%153 = load float, ptr %16, align 4
%154 = load float, ptr %16, align 4
%155 = fmul float %153, %154
%156 = fpext float %155 to double
%157 = fsub double 1.000000e+00, %156
%158 = load double, ptr %17, align 8
%159 = call double @llvm.fmuladd.f64(double %152, double %157, double %158)
store double %159, ptr %17, align 8
br label %160
160: ; preds = %128, %124, %109
br label %161
161: ; preds = %160
%162 = load i32, ptr %12, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %12, align 4
br label %105, !llvm.loop !8
164: ; preds = %105
%165 = load double, ptr %17, align 8
%166 = fcmp une double %165, 0.000000e+00
br i1 %166, label %167, label %172
167: ; preds = %164
%168 = load double, ptr %18, align 8
%169 = load double, ptr %17, align 8
%170 = fdiv double %168, %169
%171 = fptrunc double %170 to float
store float %171, ptr %13, align 4
br label %177
172: ; preds = %164
%173 = load float, ptr %14, align 4
%174 = fpext float %173 to double
%175 = fmul double %174, 1.100000e+00
%176 = fptrunc double %175 to float
store float %176, ptr %14, align 4
br label %177
177: ; preds = %172, %167
br label %178
178: ; preds = %177
%179 = load i32, ptr %11, align 4
%180 = add nsw i32 %179, 1
store i32 %180, ptr %11, align 4
br label %100, !llvm.loop !9
181: ; preds = %100
%182 = load float, ptr %13, align 4
store float %182, ptr %5, align 4
br label %183
183: ; preds = %181, %97
%184 = load float, ptr %5, align 4
ret float %184
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare float @nth(i32 noundef, ptr noundef, float noundef) #1
declare i64 @fabs(double noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnfdyavq_.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"Cannot allocate a in getTukey, ndat=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @getTukey(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 10, ptr %10, align 4
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 4, %21
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %19, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %32
27: ; preds = %4
%28 = load i32, ptr @stderr, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str, i32 noundef %29)
%31 = call i32 @exit(i32 noundef -1) #4
unreachable
32: ; preds = %4
%33 = load ptr, ptr %19, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 4, %36
%38 = trunc i64 %37 to i32
%39 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = load ptr, ptr %19, align 8
%42 = load i32, ptr %6, align 4
%43 = sub nsw i32 %42, 1
%44 = sitofp i32 %43 to float
%45 = fpext float %44 to double
%46 = fmul double %45, 5.000000e-01
%47 = fptrunc double %46 to float
%48 = call float @nth(i32 noundef %40, ptr noundef %41, float noundef %47)
%49 = load ptr, ptr %8, align 8
store float %48, ptr %49, align 4
store i32 0, ptr %12, align 4
%50 = load i32, ptr %12, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph, label %75
.lr.ph: ; preds = %32
br label %53
53: ; preds = %.lr.ph, %69
%54 = load ptr, ptr %19, align 8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %54, i64 %56
%58 = load float, ptr %57, align 4
%59 = load ptr, ptr %8, align 8
%60 = load float, ptr %59, align 4
%61 = fsub float %58, %60
%62 = fpext float %61 to double
%63 = call i64 @fabs(double noundef %62)
%64 = sitofp i64 %63 to float
%65 = load ptr, ptr %19, align 8
%66 = load i32, ptr %12, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds float, ptr %65, i64 %67
store float %64, ptr %68, align 4
br label %69
69: ; preds = %53
%70 = load i32, ptr %12, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %12, align 4
%72 = load i32, ptr %12, align 4
%73 = load i32, ptr %6, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %75
75: ; preds = %._crit_edge, %32
%76 = load i32, ptr %6, align 4
%77 = load ptr, ptr %19, align 8
%78 = load i32, ptr %6, align 4
%79 = sub nsw i32 %78, 1
%80 = sitofp i32 %79 to float
%81 = fpext float %80 to double
%82 = fmul double %81, 5.000000e-01
%83 = fptrunc double %82 to float
%84 = call float @nth(i32 noundef %76, ptr noundef %77, float noundef %83)
%85 = load ptr, ptr %9, align 8
store float %84, ptr %85, align 4
%86 = load ptr, ptr %19, align 8
%87 = call i32 @free(ptr noundef %86)
%88 = load ptr, ptr %9, align 8
%89 = load float, ptr %88, align 4
%90 = fpext float %89 to double
%91 = fdiv double %90, 6.745000e-01
%92 = fptrunc double %91 to float
store float %92, ptr %15, align 4
%93 = load ptr, ptr %8, align 8
%94 = load float, ptr %93, align 4
store float %94, ptr %13, align 4
store float 6.000000e+00, ptr %14, align 4
%95 = load ptr, ptr %9, align 8
%96 = load float, ptr %95, align 4
%97 = fpext float %96 to double
%98 = fcmp olt double %97, 1.000000e-02
br i1 %98, label %99, label %101
99: ; preds = %75
%100 = load float, ptr %13, align 4
store float %100, ptr %5, align 4
br label %189
101: ; preds = %75
store i32 0, ptr %11, align 4
%102 = load i32, ptr %11, align 4
%103 = load i32, ptr %10, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph5, label %187
.lr.ph5: ; preds = %101
br label %105
105: ; preds = %.lr.ph5, %181
store double 0.000000e+00, ptr %18, align 8
store double 0.000000e+00, ptr %17, align 8
store i32 0, ptr %12, align 4
%106 = load i32, ptr %12, align 4
%107 = load i32, ptr %6, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %.lr.ph2, label %167
.lr.ph2: ; preds = %105
br label %109
109: ; preds = %.lr.ph2, %161
%110 = load ptr, ptr %7, align 8
%111 = load i32, ptr %12, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds float, ptr %110, i64 %112
%114 = load float, ptr %113, align 4
%115 = load float, ptr %13, align 4
%116 = fsub float %114, %115
%117 = load float, ptr %14, align 4
%118 = load float, ptr %15, align 4
%119 = fmul float %117, %118
%120 = fdiv float %116, %119
store float %120, ptr %16, align 4
%121 = load float, ptr %16, align 4
%122 = fpext float %121 to double
%123 = fcmp olt double %122, 1.000000e+00
br i1 %123, label %124, label %160
124: ; preds = %109
%125 = load float, ptr %16, align 4
%126 = fpext float %125 to double
%127 = fcmp ogt double %126, -1.000000e+00
br i1 %127, label %128, label %160
128: ; preds = %124
%129 = load ptr, ptr %7, align 8
%130 = load i32, ptr %12, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds float, ptr %129, i64 %131
%133 = load float, ptr %132, align 4
%134 = fpext float %133 to double
%135 = load float, ptr %16, align 4
%136 = load float, ptr %16, align 4
%137 = fmul float %135, %136
%138 = fpext float %137 to double
%139 = fsub double 1.000000e+00, %138
%140 = fmul double %134, %139
%141 = load float, ptr %16, align 4
%142 = load float, ptr %16, align 4
%143 = fmul float %141, %142
%144 = fpext float %143 to double
%145 = fsub double 1.000000e+00, %144
%146 = load double, ptr %18, align 8
%147 = call double @llvm.fmuladd.f64(double %140, double %145, double %146)
store double %147, ptr %18, align 8
%148 = load float, ptr %16, align 4
%149 = load float, ptr %16, align 4
%150 = fmul float %148, %149
%151 = fpext float %150 to double
%152 = fsub double 1.000000e+00, %151
%153 = load float, ptr %16, align 4
%154 = load float, ptr %16, align 4
%155 = fmul float %153, %154
%156 = fpext float %155 to double
%157 = fsub double 1.000000e+00, %156
%158 = load double, ptr %17, align 8
%159 = call double @llvm.fmuladd.f64(double %152, double %157, double %158)
store double %159, ptr %17, align 8
br label %160
160: ; preds = %128, %124, %109
br label %161
161: ; preds = %160
%162 = load i32, ptr %12, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %12, align 4
%164 = load i32, ptr %12, align 4
%165 = load i32, ptr %6, align 4
%166 = icmp slt i32 %164, %165
br i1 %166, label %109, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %161
br label %167
167: ; preds = %._crit_edge3, %105
%168 = load double, ptr %17, align 8
%169 = fcmp une double %168, 0.000000e+00
br i1 %169, label %170, label %175
170: ; preds = %167
%171 = load double, ptr %18, align 8
%172 = load double, ptr %17, align 8
%173 = fdiv double %171, %172
%174 = fptrunc double %173 to float
store float %174, ptr %13, align 4
br label %180
175: ; preds = %167
%176 = load float, ptr %14, align 4
%177 = fpext float %176 to double
%178 = fmul double %177, 1.100000e+00
%179 = fptrunc double %178 to float
store float %179, ptr %14, align 4
br label %180
180: ; preds = %175, %170
br label %181
181: ; preds = %180
%182 = load i32, ptr %11, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %11, align 4
%184 = load i32, ptr %11, align 4
%185 = load i32, ptr %10, align 4
%186 = icmp slt i32 %184, %185
br i1 %186, label %105, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %181
br label %187
187: ; preds = %._crit_edge6, %101
%188 = load float, ptr %13, align 4
store float %188, ptr %5, align 4
br label %189
189: ; preds = %187, %99
%190 = load float, ptr %5, align 4
ret float %190
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare float @nth(i32 noundef, ptr noundef, float noundef) #1
declare i64 @fabs(double noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpk_hvc5b4.c'
source_filename = "/tmp/tmpk_hvc5b4.c"
target datalayout = "e-m:e-p270: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 @ftello(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @flockfile(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @ftello_unlocked(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = call i32 @funlockfile(ptr noundef %8)
%10 = load i32, ptr %3, align 4
ret i32 %10
}
declare i32 @flockfile(ptr noundef) #1
declare i32 @ftello_unlocked(ptr noundef) #1
declare i32 @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/tmpk_hvc5b4.c"
target datalayout = "e-m:e-p270: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 @ftello(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @flockfile(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @ftello_unlocked(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = call i32 @funlockfile(ptr noundef %8)
%10 = load i32, ptr %3, align 4
ret i32 %10
}
declare i32 @flockfile(ptr noundef) #1
declare i32 @ftello_unlocked(ptr noundef) #1
declare i32 @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/tmpmp_ln297.c'
source_filename = "/tmp/tmpmp_ln297.c"
target datalayout = "e-m:e-p270: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/tmpmp_ln297.c"
target datalayout = "e-m:e-p270: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/tmp7yn0huy3.c'
source_filename = "/tmp/tmp7yn0huy3.c"
target datalayout = "e-m:e-p270: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 @movePlayer(i8 noundef signext %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i8, ptr %4, align 1
%8 = sext i8 %7 to i32
switch i32 %8, label %45 [
i32 119, label %9
i32 97, label %18
i32 115, label %27
i32 100, label %36
]
9: ; preds = %3
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 @mvaddch(i32 noundef %11, i32 noundef %13, i8 noundef signext 46)
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %15, align 4
%17 = sub nsw i32 %16, 1
store i32 %17, ptr %15, align 4
br label %46
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %21, align 4
%23 = call i32 @mvaddch(i32 noundef %20, i32 noundef %22, i8 noundef signext 46)
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %24, align 4
%26 = sub nsw i32 %25, 1
store i32 %26, ptr %24, align 4
br label %46
27: ; preds = %3
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %30, align 4
%32 = call i32 @mvaddch(i32 noundef %29, i32 noundef %31, i8 noundef signext 46)
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4
br label %46
36: ; preds = %3
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %39, align 4
%41 = call i32 @mvaddch(i32 noundef %38, i32 noundef %40, i8 noundef signext 46)
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %42, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %42, align 4
br label %46
45: ; preds = %3
br label %57
46: ; preds = %36, %27, %18, %9
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %47, align 4
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %49, align 4
%51 = call i32 @mvaddch(i32 noundef %48, i32 noundef %50, i8 noundef signext 64)
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %52, align 4
%54 = load ptr, ptr %6, align 8
%55 = load i32, ptr %54, align 4
%56 = call i32 @move(i32 noundef %53, i32 noundef %55)
br label %57
57: ; preds = %46, %45
ret void
}
declare i32 @mvaddch(i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @move(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/tmp7yn0huy3.c"
target datalayout = "e-m:e-p270: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 @movePlayer(i8 noundef signext %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i8, ptr %4, align 1
%8 = sext i8 %7 to i32
switch i32 %8, label %45 [
i32 119, label %9
i32 97, label %18
i32 115, label %27
i32 100, label %36
]
9: ; preds = %3
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 @mvaddch(i32 noundef %11, i32 noundef %13, i8 noundef signext 46)
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %15, align 4
%17 = sub nsw i32 %16, 1
store i32 %17, ptr %15, align 4
br label %46
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %21, align 4
%23 = call i32 @mvaddch(i32 noundef %20, i32 noundef %22, i8 noundef signext 46)
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %24, align 4
%26 = sub nsw i32 %25, 1
store i32 %26, ptr %24, align 4
br label %46
27: ; preds = %3
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %30, align 4
%32 = call i32 @mvaddch(i32 noundef %29, i32 noundef %31, i8 noundef signext 46)
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4
br label %46
36: ; preds = %3
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %39, align 4
%41 = call i32 @mvaddch(i32 noundef %38, i32 noundef %40, i8 noundef signext 46)
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %42, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %42, align 4
br label %46
45: ; preds = %3
br label %57
46: ; preds = %36, %27, %18, %9
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %47, align 4
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %49, align 4
%51 = call i32 @mvaddch(i32 noundef %48, i32 noundef %50, i8 noundef signext 64)
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %52, align 4
%54 = load ptr, ptr %6, align 8
%55 = load i32, ptr %54, align 4
%56 = call i32 @move(i32 noundef %53, i32 noundef %55)
br label %57
57: ; preds = %46, %45
ret void
}
declare i32 @mvaddch(i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @move(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/tmp5jy8zplw.c'
source_filename = "/tmp/tmp5jy8zplw.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"XSetCloseDownMode called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @XSetCloseDownMode() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5jy8zplw.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"XSetCloseDownMode called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @XSetCloseDownMode() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptlzmw3sp.c'
source_filename = "/tmp/tmptlzmw3sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@SIZE_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sshbuf_dtob64(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @sshbuf_len(ptr noundef %9)
store i64 %10, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = call ptr @sshbuf_ptr(ptr noundef %11)
store ptr %12, ptr %6, align 8
%13 = load i64, ptr %4, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = call ptr @strdup(ptr noundef @.str)
store ptr %16, ptr %2, align 8
br label %48
17: ; preds = %1
%18 = load i64, ptr %4, align 8
%19 = add i64 %18, 2
%20 = udiv i64 %19, 3
%21 = mul i64 %20, 4
%22 = add i64 %21, 1
store i64 %22, ptr %5, align 8
%23 = load i32, ptr @SIZE_MAX, align 4
%24 = sdiv i32 %23, 2
%25 = sext i32 %24 to i64
%26 = load i64, ptr %4, align 8
%27 = icmp ule i64 %25, %26
br i1 %27, label %32, label %28
28: ; preds = %17
%29 = load i64, ptr %5, align 8
%30 = call ptr @malloc(i64 noundef %29)
store ptr %30, ptr %7, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %33
32: ; preds = %28, %17
store ptr null, ptr %2, align 8
br label %48
33: ; preds = %28
%34 = load ptr, ptr %6, align 8
%35 = load i64, ptr %4, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i64, ptr %5, align 8
%38 = call i32 @b64_ntop(ptr noundef %34, i64 noundef %35, ptr noundef %36, i64 noundef %37)
store i32 %38, ptr %8, align 4
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %46
40: ; preds = %33
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %5, align 8
%43 = call i32 @bzero(ptr noundef %41, i64 noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = call i32 @free(ptr noundef %44)
store ptr null, ptr %2, align 8
br label %48
46: ; preds = %33
%47 = load ptr, ptr %7, align 8
store ptr %47, ptr %2, align 8
br label %48
48: ; preds = %46, %40, %32, %15
%49 = load ptr, ptr %2, align 8
ret ptr %49
}
declare i64 @sshbuf_len(ptr noundef) #1
declare ptr @sshbuf_ptr(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @b64_ntop(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @bzero(ptr noundef, i64 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptlzmw3sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@SIZE_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sshbuf_dtob64(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @sshbuf_len(ptr noundef %9)
store i64 %10, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = call ptr @sshbuf_ptr(ptr noundef %11)
store ptr %12, ptr %6, align 8
%13 = load i64, ptr %4, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = call ptr @strdup(ptr noundef @.str)
store ptr %16, ptr %2, align 8
br label %48
17: ; preds = %1
%18 = load i64, ptr %4, align 8
%19 = add i64 %18, 2
%20 = udiv i64 %19, 3
%21 = mul i64 %20, 4
%22 = add i64 %21, 1
store i64 %22, ptr %5, align 8
%23 = load i32, ptr @SIZE_MAX, align 4
%24 = sdiv i32 %23, 2
%25 = sext i32 %24 to i64
%26 = load i64, ptr %4, align 8
%27 = icmp ule i64 %25, %26
br i1 %27, label %32, label %28
28: ; preds = %17
%29 = load i64, ptr %5, align 8
%30 = call ptr @malloc(i64 noundef %29)
store ptr %30, ptr %7, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %33
32: ; preds = %28, %17
store ptr null, ptr %2, align 8
br label %48
33: ; preds = %28
%34 = load ptr, ptr %6, align 8
%35 = load i64, ptr %4, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i64, ptr %5, align 8
%38 = call i32 @b64_ntop(ptr noundef %34, i64 noundef %35, ptr noundef %36, i64 noundef %37)
store i32 %38, ptr %8, align 4
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %46
40: ; preds = %33
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %5, align 8
%43 = call i32 @bzero(ptr noundef %41, i64 noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = call i32 @free(ptr noundef %44)
store ptr null, ptr %2, align 8
br label %48
46: ; preds = %33
%47 = load ptr, ptr %7, align 8
store ptr %47, ptr %2, align 8
br label %48
48: ; preds = %46, %40, %32, %15
%49 = load ptr, ptr %2, align 8
ret ptr %49
}
declare i64 @sshbuf_len(ptr noundef) #1
declare ptr @sshbuf_ptr(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @b64_ntop(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @bzero(ptr noundef, i64 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"}
|
; ModuleID = '/tmp/tmpr7og9l42.c'
source_filename = "/tmp/tmpr7og9l42.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fputs(ptr noundef %4, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fputc(i8 noundef signext 10, i32 noundef %7)
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, 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/tmpr7og9l42.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fputs(ptr noundef %4, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fputc(i8 noundef signext 10, i32 noundef %7)
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, 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/tmpkr3asg7l.c'
source_filename = "/tmp/tmpkr3asg7l.c"
target datalayout = "e-m:e-p270: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 [8 x double] [double -2.000000e+01, double -1.000000e+00, double 2.000000e+00, double 4.000000e+00, double 1.000000e+01, double 1.000000e+02, double 0.000000e+00, double -0.000000e+00], align 16
@.str = private unnamed_addr constant [15 x i8] c"y[ %i ] = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x double], align 16
%3 = alloca [8 x double], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 64, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 64, i1 false)
store i32 4, ptr %4, align 4
store i32 2, ptr %5, align 4
store i32 2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 0
%10 = load i32, ptr %5, align 4
%11 = getelementptr inbounds [8 x double], ptr %3, i64 0, i64 0
%12 = load i32, ptr %6, align 4
%13 = call i32 @stdlib_strided_dinv(i32 noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %12)
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %24, %0
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %15, 8
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [8 x double], ptr %3, i64 0, i64 %20
%22 = load double, ptr %21, align 8
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %18, double noundef %22)
br label %24
24: ; preds = %17
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %14, !llvm.loop !6
27: ; preds = %14
%28 = load i32, ptr %1, align 4
ret i32 %28
}
; 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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @stdlib_strided_dinv(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpkr3asg7l.c"
target datalayout = "e-m:e-p270: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 [8 x double] [double -2.000000e+01, double -1.000000e+00, double 2.000000e+00, double 4.000000e+00, double 1.000000e+01, double 1.000000e+02, double 0.000000e+00, double -0.000000e+00], align 16
@.str = private unnamed_addr constant [15 x i8] c"y[ %i ] = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x double], align 16
%3 = alloca [8 x double], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 64, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 64, i1 false)
store i32 4, ptr %4, align 4
store i32 2, ptr %5, align 4
store i32 2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 0
%10 = load i32, ptr %5, align 4
%11 = getelementptr inbounds [8 x double], ptr %3, i64 0, i64 0
%12 = load i32, ptr %6, align 4
%13 = call i32 @stdlib_strided_dinv(i32 noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %12)
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 8
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %23
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [8 x double], ptr %3, i64 0, i64 %19
%21 = load double, ptr %20, align 8
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %17, double noundef %21)
br label %23
23: ; preds = %16
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %26, 8
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
%29 = load i32, ptr %1, align 4
ret i32 %29
}
; 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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @stdlib_strided_dinv(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3nwfjrx5.c'
source_filename = "/tmp/tmp3nwfjrx5.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"TRACE_SIZE: %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 4)
%3 = call i32 (...) @trace_print()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @trace_print(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp3nwfjrx5.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"TRACE_SIZE: %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 4)
%3 = call i32 (...) @trace_print()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @trace_print(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpqvubjcs0.c'
source_filename = "/tmp/tmpqvubjcs0.c"
target datalayout = "e-m:e-p270: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 [21 x i8] c"Bad param for %s: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @positive_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @atoi(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = call i32 @error(i32 noundef 1, ptr noundef @.str, ptr noundef %11, i32 noundef %12)
br label %14
14: ; preds = %10, %2
%15 = load i32, ptr %5, align 4
ret i32 %15
}
declare i32 @atoi(ptr noundef) #1
declare i32 @error(i32 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/tmpqvubjcs0.c"
target datalayout = "e-m:e-p270: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 [21 x i8] c"Bad param for %s: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @positive_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @atoi(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = call i32 @error(i32 noundef 1, ptr noundef @.str, ptr noundef %11, i32 noundef %12)
br label %14
14: ; preds = %10, %2
%15 = load i32, ptr %5, align 4
ret i32 %15
}
declare i32 @atoi(ptr noundef) #1
declare i32 @error(i32 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/tmphxj8fhzb.c'
source_filename = "/tmp/tmphxj8fhzb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"start\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"end\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"\7FELF\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"lseek\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [36 x i8] c"Not ELF nor a.out. Don't blame me.\0A\00", align 1
@.str.6 = private unnamed_addr constant [48 x i8] c"Couldn't find headers signature in the kernel.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"close\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca %struct.stat, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 3
%22 = load ptr, ptr %21, align 8
%23 = call i64 @stat(ptr noundef %22, ptr noundef %16)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 3
%28 = load ptr, ptr %27, align 8
%29 = call i32 @die(ptr noundef %28)
br label %30
30: ; preds = %25, %2
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call ptr @fopen(ptr noundef %33, ptr noundef @.str)
store ptr %34, ptr %15, align 8
%35 = load ptr, ptr %15, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %42, label %37
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @die(ptr noundef %40)
br label %42
42: ; preds = %37, %30
br label %43
43: ; preds = %65, %42
%44 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%45 = load ptr, ptr %15, align 8
%46 = call i64 @fgets(ptr noundef %44, i32 noundef 1024, ptr noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %66
48: ; preds = %43
%49 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%50 = getelementptr inbounds i8, ptr %49, i64 11
%51 = call i32 @strcmp(ptr noundef %50, ptr noundef @.str.1)
%52 = icmp ne i32 %51, 0
br i1 %52, label %56, label %53
53: ; preds = %48
%54 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%55 = call i32 @strtoul(ptr noundef %54, ptr noundef null, i32 noundef 16)
store i32 %55, ptr %12, align 4
br label %65
56: ; preds = %48
%57 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%58 = getelementptr inbounds i8, ptr %57, i64 11
%59 = call i32 @strcmp(ptr noundef %58, ptr noundef @.str.2)
%60 = icmp ne i32 %59, 0
br i1 %60, label %64, label %61
61: ; preds = %56
%62 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%63 = call i32 @strtoul(ptr noundef %62, ptr noundef null, i32 noundef 16)
store i32 %63, ptr %13, align 4
br label %64
64: ; preds = %61, %56
br label %65
65: ; preds = %64, %53
br label %43, !llvm.loop !6
66: ; preds = %43
%67 = load ptr, ptr %15, align 8
%68 = call i32 @fclose(ptr noundef %67)
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 1
%71 = load ptr, ptr %70, align 8
%72 = load i32, ptr @O_RDWR, align 4
%73 = call i32 @open(ptr noundef %71, i32 noundef %72)
store i32 %73, ptr %17, align 4
%74 = icmp slt i32 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %66
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds ptr, ptr %76, i64 1
%78 = load ptr, ptr %77, align 8
%79 = call i32 @die(ptr noundef %78)
br label %80
80: ; preds = %75, %66
%81 = load i32, ptr %17, align 4
%82 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%83 = call i32 @read(i32 noundef %81, ptr noundef %82, i32 noundef 512)
%84 = icmp ne i32 %83, 512
br i1 %84, label %85, label %90
85: ; preds = %80
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 1
%88 = load ptr, ptr %87, align 8
%89 = call i32 @die(ptr noundef %88)
br label %90
90: ; preds = %85, %80
%91 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%92 = call i32 @memcmp(ptr noundef %91, ptr noundef @.str.3, i32 noundef 4)
%93 = icmp ne i32 %92, 0
br i1 %93, label %129, label %94
94: ; preds = %90
%95 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%96 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%97 = getelementptr inbounds i8, ptr %96, i64 28
%98 = load i32, ptr %97, align 4
%99 = zext i32 %98 to i64
%100 = getelementptr inbounds i8, ptr %95, i64 %99
store ptr %100, ptr %19, align 8
%101 = load ptr, ptr %19, align 8
%102 = getelementptr inbounds i32, ptr %101, i64 1
%103 = load i32, ptr %102, align 4
%104 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%105 = getelementptr inbounds i8, ptr %104, i64 24
%106 = load i32, ptr %105, align 4
%107 = add i32 %103, %106
%108 = load ptr, ptr %19, align 8
%109 = getelementptr inbounds i32, ptr %108, i64 2
%110 = load i32, ptr %109, align 4
%111 = sub i32 %107, %110
store i32 %111, ptr %9, align 4
%112 = load i32, ptr %17, align 4
%113 = load i32, ptr %9, align 4
%114 = call i64 @lseek(i32 noundef %112, i32 noundef %113, i32 noundef 0)
%115 = icmp slt i64 %114, 0
br i1 %115, label %116, label %118
116: ; preds = %94
%117 = call i32 @die(ptr noundef @.str.4)
br label %118
118: ; preds = %116, %94
%119 = load i32, ptr %17, align 4
%120 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%121 = call i32 @read(i32 noundef %119, ptr noundef %120, i32 noundef 512)
%122 = icmp ne i32 %121, 512
br i1 %122, label %123, label %128
123: ; preds = %118
%124 = load ptr, ptr %5, align 8
%125 = getelementptr inbounds ptr, ptr %124, i64 1
%126 = load ptr, ptr %125, align 8
%127 = call i32 @die(ptr noundef %126)
br label %128
128: ; preds = %123, %118
store i32 0, ptr %10, align 4
br label %139
129: ; preds = %90
%130 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%131 = load i32, ptr %130, align 16
%132 = icmp eq i32 %131, 16974087
br i1 %132, label %133, label %134
133: ; preds = %129
store i32 32, ptr %10, align 4
store i32 32, ptr %9, align 4
br label %138
134: ; preds = %129
%135 = load i32, ptr @stderr, align 4
%136 = call i32 @fprintf(i32 noundef %135, ptr noundef @.str.5)
%137 = call i32 @exit(i32 noundef 1) #3
unreachable
138: ; preds = %133
br label %139
139: ; preds = %138, %128
%140 = load i32, ptr %9, align 4
store i32 %140, ptr %11, align 4
%141 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%142 = load i32, ptr %10, align 4
%143 = zext i32 %142 to i64
%144 = getelementptr inbounds i8, ptr %141, i64 %143
%145 = getelementptr inbounds i8, ptr %144, i64 2
%146 = load i16, ptr %145, align 2
%147 = zext i16 %146 to i32
%148 = shl i32 %147, 2
%149 = sub nsw i32 %148, 512
%150 = load i32, ptr %9, align 4
%151 = add i32 %150, %149
store i32 %151, ptr %9, align 4
%152 = load i32, ptr %17, align 4
%153 = load i32, ptr %9, align 4
%154 = call i64 @lseek(i32 noundef %152, i32 noundef %153, i32 noundef 0)
%155 = icmp slt i64 %154, 0
br i1 %155, label %156, label %158
156: ; preds = %139
%157 = call i32 @die(ptr noundef @.str.4)
br label %158
158: ; preds = %156, %139
%159 = load i32, ptr %17, align 4
%160 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%161 = call i32 @read(i32 noundef %159, ptr noundef %160, i32 noundef 1024)
%162 = icmp ne i32 %161, 1024
br i1 %162, label %163, label %168
163: ; preds = %158
%164 = load ptr, ptr %5, align 8
%165 = getelementptr inbounds ptr, ptr %164, i64 1
%166 = load ptr, ptr %165, align 8
%167 = call i32 @die(ptr noundef %166)
br label %168
168: ; preds = %163, %158
%169 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store ptr %169, ptr %7, align 8
%170 = load ptr, ptr %7, align 8
%171 = getelementptr inbounds i8, ptr %170, i64 512
store ptr %171, ptr %8, align 8
br label %172
172: ; preds = %201, %168
%173 = load ptr, ptr %7, align 8
%174 = load ptr, ptr %8, align 8
%175 = icmp ult ptr %173, %174
br i1 %175, label %176, label %204
176: ; preds = %172
%177 = load ptr, ptr %7, align 8
%178 = load i8, ptr %177, align 1
%179 = sext i8 %178 to i32
%180 = icmp eq i32 %179, 72
br i1 %180, label %181, label %200
181: ; preds = %176
%182 = load ptr, ptr %7, align 8
%183 = getelementptr inbounds i8, ptr %182, i64 1
%184 = load i8, ptr %183, align 1
%185 = sext i8 %184 to i32
%186 = icmp eq i32 %185, 100
br i1 %186, label %187, label %200
187: ; preds = %181
%188 = load ptr, ptr %7, align 8
%189 = getelementptr inbounds i8, ptr %188, i64 2
%190 = load i8, ptr %189, align 1
%191 = sext i8 %190 to i32
%192 = icmp eq i32 %191, 114
br i1 %192, label %193, label %200
193: ; preds = %187
%194 = load ptr, ptr %7, align 8
%195 = getelementptr inbounds i8, ptr %194, i64 3
%196 = load i8, ptr %195, align 1
%197 = sext i8 %196 to i32
%198 = icmp eq i32 %197, 83
br i1 %198, label %199, label %200
199: ; preds = %193
br label %204
200: ; preds = %193, %187, %181, %176
br label %201
201: ; preds = %200
%202 = load ptr, ptr %7, align 8
%203 = getelementptr inbounds i8, ptr %202, i64 4
store ptr %203, ptr %7, align 8
br label %172, !llvm.loop !8
204: ; preds = %199, %172
%205 = load ptr, ptr %7, align 8
%206 = load ptr, ptr %8, align 8
%207 = icmp eq ptr %205, %206
br i1 %207, label %208, label %212
208: ; preds = %204
%209 = load i32, ptr @stderr, align 4
%210 = call i32 @fprintf(i32 noundef %209, ptr noundef @.str.6)
%211 = call i32 @exit(i32 noundef 1) #3
unreachable
212: ; preds = %204
%213 = load i32, ptr %9, align 4
%214 = zext i32 %213 to i64
%215 = load ptr, ptr %7, align 8
%216 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%217 = ptrtoint ptr %215 to i64
%218 = ptrtoint ptr %216 to i64
%219 = sub i64 %217, %218
%220 = add nsw i64 %214, %219
%221 = add nsw i64 %220, 10
%222 = trunc i64 %221 to i32
store i32 %222, ptr %14, align 4
%223 = load i32, ptr %17, align 4
%224 = load i32, ptr %14, align 4
%225 = call i64 @lseek(i32 noundef %223, i32 noundef %224, i32 noundef 0)
%226 = icmp slt i64 %225, 0
br i1 %226, label %227, label %229
227: ; preds = %212
%228 = call i32 @die(ptr noundef @.str.4)
br label %229
229: ; preds = %227, %212
%230 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store i32 0, ptr %230, align 16
%231 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%232 = getelementptr inbounds i8, ptr %231, i64 4
store i32 16777216, ptr %232, align 4
%233 = load i32, ptr %13, align 4
%234 = add i32 %233, 32
%235 = add i32 %234, 4095
%236 = and i32 %235, -4096
%237 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%238 = getelementptr inbounds i8, ptr %237, i64 8
store i32 %236, ptr %238, align 4
%239 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%240 = load i32, ptr %239, align 4
%241 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%242 = getelementptr inbounds i8, ptr %241, i64 12
store i32 %240, ptr %242, align 4
%243 = load i32, ptr %17, align 4
%244 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%245 = getelementptr inbounds i8, ptr %244, i64 2
%246 = call i32 @write(i32 noundef %243, ptr noundef %245, i32 noundef 14)
%247 = icmp ne i32 %246, 14
br i1 %247, label %248, label %253
248: ; preds = %229
%249 = load ptr, ptr %5, align 8
%250 = getelementptr inbounds ptr, ptr %249, i64 1
%251 = load ptr, ptr %250, align 8
%252 = call i32 @die(ptr noundef %251)
br label %253
253: ; preds = %248, %229
%254 = load i32, ptr %17, align 4
%255 = load i32, ptr %11, align 4
%256 = load i32, ptr %12, align 4
%257 = sub i32 %255, %256
%258 = load i32, ptr %13, align 4
%259 = add i32 %258, 32
%260 = add i32 %259, 4095
%261 = and i32 %260, -4096
%262 = add i32 %257, %261
%263 = call i64 @lseek(i32 noundef %254, i32 noundef %262, i32 noundef 0)
%264 = icmp slt i64 %263, 0
br i1 %264, label %265, label %267
265: ; preds = %253
%266 = call i32 @die(ptr noundef @.str.4)
br label %267
267: ; preds = %265, %253
%268 = load ptr, ptr %5, align 8
%269 = getelementptr inbounds ptr, ptr %268, i64 3
%270 = load ptr, ptr %269, align 8
%271 = load i32, ptr @O_RDONLY, align 4
%272 = call i32 @open(ptr noundef %270, i32 noundef %271)
store i32 %272, ptr %18, align 4
%273 = icmp slt i32 %272, 0
br i1 %273, label %274, label %279
274: ; preds = %267
%275 = load ptr, ptr %5, align 8
%276 = getelementptr inbounds ptr, ptr %275, i64 3
%277 = load ptr, ptr %276, align 8
%278 = call i32 @die(ptr noundef %277)
br label %279
279: ; preds = %274, %267
br label %280
280: ; preds = %297, %279
%281 = load i32, ptr %18, align 4
%282 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%283 = call i32 @read(i32 noundef %281, ptr noundef %282, i32 noundef 1024)
store i32 %283, ptr %9, align 4
%284 = icmp ugt i32 %283, 0
br i1 %284, label %285, label %298
285: ; preds = %280
%286 = load i32, ptr %17, align 4
%287 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%288 = load i32, ptr %9, align 4
%289 = call i32 @write(i32 noundef %286, ptr noundef %287, i32 noundef %288)
%290 = load i32, ptr %9, align 4
%291 = icmp ne i32 %289, %290
br i1 %291, label %292, label %297
292: ; preds = %285
%293 = load ptr, ptr %5, align 8
%294 = getelementptr inbounds ptr, ptr %293, i64 1
%295 = load ptr, ptr %294, align 8
%296 = call i32 @die(ptr noundef %295)
br label %297
297: ; preds = %292, %285
br label %280, !llvm.loop !9
298: ; preds = %280
%299 = load i32, ptr %17, align 4
%300 = call i64 @close(i32 noundef %299)
%301 = icmp slt i64 %300, 0
br i1 %301, label %302, label %304
302: ; preds = %298
%303 = call i32 @die(ptr noundef @.str.7)
br label %304
304: ; preds = %302, %298
%305 = load i32, ptr %18, align 4
%306 = call i64 @close(i32 noundef %305)
%307 = icmp slt i64 %306, 0
br i1 %307, label %308, label %310
308: ; preds = %304
%309 = call i32 @die(ptr noundef @.str.7)
br label %310
310: ; preds = %308, %304
ret i32 0
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphxj8fhzb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"start\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"end\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"\7FELF\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"lseek\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [36 x i8] c"Not ELF nor a.out. Don't blame me.\0A\00", align 1
@.str.6 = private unnamed_addr constant [48 x i8] c"Couldn't find headers signature in the kernel.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"close\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca %struct.stat, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 3
%22 = load ptr, ptr %21, align 8
%23 = call i64 @stat(ptr noundef %22, ptr noundef %16)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 3
%28 = load ptr, ptr %27, align 8
%29 = call i32 @die(ptr noundef %28)
br label %30
30: ; preds = %25, %2
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call ptr @fopen(ptr noundef %33, ptr noundef @.str)
store ptr %34, ptr %15, align 8
%35 = load ptr, ptr %15, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %42, label %37
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @die(ptr noundef %40)
br label %42
42: ; preds = %37, %30
%43 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%44 = load ptr, ptr %15, align 8
%45 = call i64 @fgets(ptr noundef %43, i32 noundef 1024, ptr noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %.lr.ph, label %68
.lr.ph: ; preds = %42
br label %47
47: ; preds = %.lr.ph, %64
%48 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%49 = getelementptr inbounds i8, ptr %48, i64 11
%50 = call i32 @strcmp(ptr noundef %49, ptr noundef @.str.1)
%51 = icmp ne i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %47
%53 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%54 = call i32 @strtoul(ptr noundef %53, ptr noundef null, i32 noundef 16)
store i32 %54, ptr %12, align 4
br label %64
55: ; preds = %47
%56 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%57 = getelementptr inbounds i8, ptr %56, i64 11
%58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.2)
%59 = icmp ne i32 %58, 0
br i1 %59, label %63, label %60
60: ; preds = %55
%61 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%62 = call i32 @strtoul(ptr noundef %61, ptr noundef null, i32 noundef 16)
store i32 %62, ptr %13, align 4
br label %63
63: ; preds = %60, %55
br label %64
64: ; preds = %63, %52
%65 = load ptr, ptr %15, align 8
%66 = call i64 @fgets(ptr noundef %43, i32 noundef 1024, ptr noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %47, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %68
68: ; preds = %._crit_edge, %42
%69 = load ptr, ptr %15, align 8
%70 = call i32 @fclose(ptr noundef %69)
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 1
%73 = load ptr, ptr %72, align 8
%74 = load i32, ptr @O_RDWR, align 4
%75 = call i32 @open(ptr noundef %73, i32 noundef %74)
store i32 %75, ptr %17, align 4
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %82
77: ; preds = %68
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = call i32 @die(ptr noundef %80)
br label %82
82: ; preds = %77, %68
%83 = load i32, ptr %17, align 4
%84 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%85 = call i32 @read(i32 noundef %83, ptr noundef %84, i32 noundef 512)
%86 = icmp ne i32 %85, 512
br i1 %86, label %87, label %92
87: ; preds = %82
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 1
%90 = load ptr, ptr %89, align 8
%91 = call i32 @die(ptr noundef %90)
br label %92
92: ; preds = %87, %82
%93 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%94 = call i32 @memcmp(ptr noundef %93, ptr noundef @.str.3, i32 noundef 4)
%95 = icmp ne i32 %94, 0
br i1 %95, label %131, label %96
96: ; preds = %92
%97 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%98 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%99 = getelementptr inbounds i8, ptr %98, i64 28
%100 = load i32, ptr %99, align 4
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %97, i64 %101
store ptr %102, ptr %19, align 8
%103 = load ptr, ptr %19, align 8
%104 = getelementptr inbounds i32, ptr %103, i64 1
%105 = load i32, ptr %104, align 4
%106 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%107 = getelementptr inbounds i8, ptr %106, i64 24
%108 = load i32, ptr %107, align 4
%109 = add i32 %105, %108
%110 = load ptr, ptr %19, align 8
%111 = getelementptr inbounds i32, ptr %110, i64 2
%112 = load i32, ptr %111, align 4
%113 = sub i32 %109, %112
store i32 %113, ptr %9, align 4
%114 = load i32, ptr %17, align 4
%115 = load i32, ptr %9, align 4
%116 = call i64 @lseek(i32 noundef %114, i32 noundef %115, i32 noundef 0)
%117 = icmp slt i64 %116, 0
br i1 %117, label %118, label %120
118: ; preds = %96
%119 = call i32 @die(ptr noundef @.str.4)
br label %120
120: ; preds = %118, %96
%121 = load i32, ptr %17, align 4
%122 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%123 = call i32 @read(i32 noundef %121, ptr noundef %122, i32 noundef 512)
%124 = icmp ne i32 %123, 512
br i1 %124, label %125, label %130
125: ; preds = %120
%126 = load ptr, ptr %5, align 8
%127 = getelementptr inbounds ptr, ptr %126, i64 1
%128 = load ptr, ptr %127, align 8
%129 = call i32 @die(ptr noundef %128)
br label %130
130: ; preds = %125, %120
store i32 0, ptr %10, align 4
br label %141
131: ; preds = %92
%132 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%133 = load i32, ptr %132, align 16
%134 = icmp eq i32 %133, 16974087
br i1 %134, label %135, label %136
135: ; preds = %131
store i32 32, ptr %10, align 4
store i32 32, ptr %9, align 4
br label %140
136: ; preds = %131
%137 = load i32, ptr @stderr, align 4
%138 = call i32 @fprintf(i32 noundef %137, ptr noundef @.str.5)
%139 = call i32 @exit(i32 noundef 1) #3
unreachable
140: ; preds = %135
br label %141
141: ; preds = %140, %130
%142 = load i32, ptr %9, align 4
store i32 %142, ptr %11, align 4
%143 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%144 = load i32, ptr %10, align 4
%145 = zext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %143, i64 %145
%147 = getelementptr inbounds i8, ptr %146, i64 2
%148 = load i16, ptr %147, align 2
%149 = zext i16 %148 to i32
%150 = shl i32 %149, 2
%151 = sub nsw i32 %150, 512
%152 = load i32, ptr %9, align 4
%153 = add i32 %152, %151
store i32 %153, ptr %9, align 4
%154 = load i32, ptr %17, align 4
%155 = load i32, ptr %9, align 4
%156 = call i64 @lseek(i32 noundef %154, i32 noundef %155, i32 noundef 0)
%157 = icmp slt i64 %156, 0
br i1 %157, label %158, label %160
158: ; preds = %141
%159 = call i32 @die(ptr noundef @.str.4)
br label %160
160: ; preds = %158, %141
%161 = load i32, ptr %17, align 4
%162 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%163 = call i32 @read(i32 noundef %161, ptr noundef %162, i32 noundef 1024)
%164 = icmp ne i32 %163, 1024
br i1 %164, label %165, label %170
165: ; preds = %160
%166 = load ptr, ptr %5, align 8
%167 = getelementptr inbounds ptr, ptr %166, i64 1
%168 = load ptr, ptr %167, align 8
%169 = call i32 @die(ptr noundef %168)
br label %170
170: ; preds = %165, %160
%171 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store ptr %171, ptr %7, align 8
%172 = load ptr, ptr %7, align 8
%173 = getelementptr inbounds i8, ptr %172, i64 512
store ptr %173, ptr %8, align 8
%174 = load ptr, ptr %7, align 8
%175 = load ptr, ptr %8, align 8
%176 = icmp ult ptr %174, %175
br i1 %176, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %170
br label %177
177: ; preds = %.lr.ph2, %202
%178 = load ptr, ptr %7, align 8
%179 = load i8, ptr %178, align 1
%180 = sext i8 %179 to i32
%181 = icmp eq i32 %180, 72
br i1 %181, label %182, label %201
182: ; preds = %177
%183 = load ptr, ptr %7, align 8
%184 = getelementptr inbounds i8, ptr %183, i64 1
%185 = load i8, ptr %184, align 1
%186 = sext i8 %185 to i32
%187 = icmp eq i32 %186, 100
br i1 %187, label %188, label %201
188: ; preds = %182
%189 = load ptr, ptr %7, align 8
%190 = getelementptr inbounds i8, ptr %189, i64 2
%191 = load i8, ptr %190, align 1
%192 = sext i8 %191 to i32
%193 = icmp eq i32 %192, 114
br i1 %193, label %194, label %201
194: ; preds = %188
%195 = load ptr, ptr %7, align 8
%196 = getelementptr inbounds i8, ptr %195, i64 3
%197 = load i8, ptr %196, align 1
%198 = sext i8 %197 to i32
%199 = icmp eq i32 %198, 83
br i1 %199, label %200, label %201
200: ; preds = %194
br label %208
201: ; preds = %194, %188, %182, %177
br label %202
202: ; preds = %201
%203 = load ptr, ptr %7, align 8
%204 = getelementptr inbounds i8, ptr %203, i64 4
store ptr %204, ptr %7, align 8
%205 = load ptr, ptr %7, align 8
%206 = load ptr, ptr %8, align 8
%207 = icmp ult ptr %205, %206
br i1 %207, label %177, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %202
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %170
br label %208
208: ; preds = %.loopexit, %200
%209 = load ptr, ptr %7, align 8
%210 = load ptr, ptr %8, align 8
%211 = icmp eq ptr %209, %210
br i1 %211, label %212, label %216
212: ; preds = %208
%213 = load i32, ptr @stderr, align 4
%214 = call i32 @fprintf(i32 noundef %213, ptr noundef @.str.6)
%215 = call i32 @exit(i32 noundef 1) #3
unreachable
216: ; preds = %208
%217 = load i32, ptr %9, align 4
%218 = zext i32 %217 to i64
%219 = load ptr, ptr %7, align 8
%220 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%221 = ptrtoint ptr %219 to i64
%222 = ptrtoint ptr %220 to i64
%223 = sub i64 %221, %222
%224 = add nsw i64 %218, %223
%225 = add nsw i64 %224, 10
%226 = trunc i64 %225 to i32
store i32 %226, ptr %14, align 4
%227 = load i32, ptr %17, align 4
%228 = load i32, ptr %14, align 4
%229 = call i64 @lseek(i32 noundef %227, i32 noundef %228, i32 noundef 0)
%230 = icmp slt i64 %229, 0
br i1 %230, label %231, label %233
231: ; preds = %216
%232 = call i32 @die(ptr noundef @.str.4)
br label %233
233: ; preds = %231, %216
%234 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
store i32 0, ptr %234, align 16
%235 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%236 = getelementptr inbounds i8, ptr %235, i64 4
store i32 16777216, ptr %236, align 4
%237 = load i32, ptr %13, align 4
%238 = add i32 %237, 32
%239 = add i32 %238, 4095
%240 = and i32 %239, -4096
%241 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%242 = getelementptr inbounds i8, ptr %241, i64 8
store i32 %240, ptr %242, align 4
%243 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%244 = load i32, ptr %243, align 4
%245 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%246 = getelementptr inbounds i8, ptr %245, i64 12
store i32 %244, ptr %246, align 4
%247 = load i32, ptr %17, align 4
%248 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%249 = getelementptr inbounds i8, ptr %248, i64 2
%250 = call i32 @write(i32 noundef %247, ptr noundef %249, i32 noundef 14)
%251 = icmp ne i32 %250, 14
br i1 %251, label %252, label %257
252: ; preds = %233
%253 = load ptr, ptr %5, align 8
%254 = getelementptr inbounds ptr, ptr %253, i64 1
%255 = load ptr, ptr %254, align 8
%256 = call i32 @die(ptr noundef %255)
br label %257
257: ; preds = %252, %233
%258 = load i32, ptr %17, align 4
%259 = load i32, ptr %11, align 4
%260 = load i32, ptr %12, align 4
%261 = sub i32 %259, %260
%262 = load i32, ptr %13, align 4
%263 = add i32 %262, 32
%264 = add i32 %263, 4095
%265 = and i32 %264, -4096
%266 = add i32 %261, %265
%267 = call i64 @lseek(i32 noundef %258, i32 noundef %266, i32 noundef 0)
%268 = icmp slt i64 %267, 0
br i1 %268, label %269, label %271
269: ; preds = %257
%270 = call i32 @die(ptr noundef @.str.4)
br label %271
271: ; preds = %269, %257
%272 = load ptr, ptr %5, align 8
%273 = getelementptr inbounds ptr, ptr %272, i64 3
%274 = load ptr, ptr %273, align 8
%275 = load i32, ptr @O_RDONLY, align 4
%276 = call i32 @open(ptr noundef %274, i32 noundef %275)
store i32 %276, ptr %18, align 4
%277 = icmp slt i32 %276, 0
br i1 %277, label %278, label %283
278: ; preds = %271
%279 = load ptr, ptr %5, align 8
%280 = getelementptr inbounds ptr, ptr %279, i64 3
%281 = load ptr, ptr %280, align 8
%282 = call i32 @die(ptr noundef %281)
br label %283
283: ; preds = %278, %271
%284 = load i32, ptr %18, align 4
%285 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%286 = call i32 @read(i32 noundef %284, ptr noundef %285, i32 noundef 1024)
store i32 %286, ptr %9, align 4
%287 = icmp ugt i32 %286, 0
br i1 %287, label %.lr.ph4, label %304
.lr.ph4: ; preds = %283
br label %288
288: ; preds = %.lr.ph4, %300
%289 = load i32, ptr %17, align 4
%290 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%291 = load i32, ptr %9, align 4
%292 = call i32 @write(i32 noundef %289, ptr noundef %290, i32 noundef %291)
%293 = load i32, ptr %9, align 4
%294 = icmp ne i32 %292, %293
br i1 %294, label %295, label %300
295: ; preds = %288
%296 = load ptr, ptr %5, align 8
%297 = getelementptr inbounds ptr, ptr %296, i64 1
%298 = load ptr, ptr %297, align 8
%299 = call i32 @die(ptr noundef %298)
br label %300
300: ; preds = %295, %288
%301 = load i32, ptr %18, align 4
%302 = call i32 @read(i32 noundef %301, ptr noundef %285, i32 noundef 1024)
store i32 %302, ptr %9, align 4
%303 = icmp ugt i32 %302, 0
br i1 %303, label %288, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %300
br label %304
304: ; preds = %._crit_edge5, %283
%305 = load i32, ptr %17, align 4
%306 = call i64 @close(i32 noundef %305)
%307 = icmp slt i64 %306, 0
br i1 %307, label %308, label %310
308: ; preds = %304
%309 = call i32 @die(ptr noundef @.str.7)
br label %310
310: ; preds = %308, %304
%311 = load i32, ptr %18, align 4
%312 = call i64 @close(i32 noundef %311)
%313 = icmp slt i64 %312, 0
br i1 %313, label %314, label %316
314: ; preds = %310
%315 = call i32 @die(ptr noundef @.str.7)
br label %316
316: ; preds = %314, %310
ret i32 0
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmplnop5s_y.c'
source_filename = "/tmp/tmplnop5s_y.c"
target datalayout = "e-m:e-p270: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 @strip_zero_only(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %20, %1
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = zext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 48
br i1 %14, label %15, label %23
15: ; preds = %7
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 0, ptr %19, align 1
br label %20
20: ; preds = %15
%21 = load i32, ptr %3, align 4
%22 = add i32 %21, -1
store i32 %22, ptr %3, align 4
br label %7, !llvm.loop !6
23: ; preds = %7
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = add i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = zext i32 %25 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 48, ptr %28, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplnop5s_y.c"
target datalayout = "e-m:e-p270: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 @strip_zero_only(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = zext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 48
br i1 %13, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %19
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
store i8 0, ptr %18, align 1
br label %19
19: ; preds = %14
%20 = load i32, ptr %3, align 4
%21 = add i32 %20, -1
store i32 %21, ptr %3, align 4
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %3, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 48
br i1 %28, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %29
29: ; preds = %._crit_edge, %1
%30 = load ptr, ptr %2, align 8
%31 = load i32, ptr %3, align 4
%32 = add i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = zext i32 %31 to i64
%34 = getelementptr inbounds i8, ptr %30, i64 %33
store i8 48, ptr %34, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7jw00ka5.c'
source_filename = "/tmp/tmp7jw00ka5.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"\E9\94\99\E8\AF\AFa=%d: \E5\8F\82\E6\95\B0a\E5\BF\85\E9\A1\BB\E6\BB\A1\E8\B6\B3(a>0\E4\B8\94a!=1) !\0A\00", align 1
@.str.1 = private unnamed_addr constant [79 x i8] c"\E6\B3\A8\E6\84\8F: \E5\8F\82\E6\95\B0x\E5\BB\BA\E8\AE\AE\E4\B8\BA\E6\AD\A3\E6\95\B4\E6\95\B0,\E5\AF\B9\E4\BA\8E\E8\B4\9F\E6\95\B4\E6\95\B0\E7\9A\84\E8\AE\A1\E7\AE\97\E7\B2\BE\E5\BA\A6\E4\B8\8D\E8\83\BD\E4\BF\9D\E8\AF\81!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @power(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %11, %2
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
store double -1.000000e+00, ptr %3, align 8
br label %52
17: ; preds = %11
store double 1.000000e+00, ptr %6, align 8
%18 = load i32, ptr %5, align 4
%19 = icmp sge i32 %18, 0
br i1 %19, label %20, label %34
20: ; preds = %17
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %30, %20
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = load double, ptr %6, align 8
%27 = load i32, ptr %4, align 4
%28 = sitofp i32 %27 to double
%29 = fmul double %26, %28
store double %29, ptr %6, align 8
br label %30
30: ; preds = %25
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %21, !llvm.loop !6
33: ; preds = %21
br label %49
34: ; preds = %17
store i32 0, ptr %8, align 4
br label %35
35: ; preds = %45, %34
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %5, align 4
%38 = sub nsw i32 0, %37
%39 = icmp slt i32 %36, %38
br i1 %39, label %40, label %48
40: ; preds = %35
%41 = load double, ptr %6, align 8
%42 = load i32, ptr %4, align 4
%43 = sitofp i32 %42 to double
%44 = fdiv double %41, %43
store double %44, ptr %6, align 8
br label %45
45: ; preds = %40
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
br label %35, !llvm.loop !8
48: ; preds = %35
br label %49
49: ; preds = %48, %33
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%51 = load double, ptr %6, align 8
store double %51, ptr %3, align 8
br label %52
52: ; preds = %49, %14
%53 = load double, ptr %3, align 8
ret double %53
}
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/tmp7jw00ka5.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"\E9\94\99\E8\AF\AFa=%d: \E5\8F\82\E6\95\B0a\E5\BF\85\E9\A1\BB\E6\BB\A1\E8\B6\B3(a>0\E4\B8\94a!=1) !\0A\00", align 1
@.str.1 = private unnamed_addr constant [79 x i8] c"\E6\B3\A8\E6\84\8F: \E5\8F\82\E6\95\B0x\E5\BB\BA\E8\AE\AE\E4\B8\BA\E6\AD\A3\E6\95\B4\E6\95\B0,\E5\AF\B9\E4\BA\8E\E8\B4\9F\E6\95\B4\E6\95\B0\E7\9A\84\E8\AE\A1\E7\AE\97\E7\B2\BE\E5\BA\A6\E4\B8\8D\E8\83\BD\E4\BF\9D\E8\AF\81!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @power(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %11, %2
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
store double -1.000000e+00, ptr %3, align 8
br label %57
17: ; preds = %11
store double 1.000000e+00, ptr %6, align 8
%18 = load i32, ptr %5, align 4
%19 = icmp sge i32 %18, 0
br i1 %19, label %20, label %36
20: ; preds = %17
store i32 0, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph2, label %35
.lr.ph2: ; preds = %20
br label %24
24: ; preds = %.lr.ph2, %29
%25 = load double, ptr %6, align 8
%26 = load i32, ptr %4, align 4
%27 = sitofp i32 %26 to double
%28 = fmul double %25, %27
store double %28, ptr %6, align 8
br label %29
29: ; preds = %24
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %24, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %29
br label %35
35: ; preds = %._crit_edge3, %20
br label %54
36: ; preds = %17
store i32 0, ptr %8, align 4
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %5, align 4
%39 = sub nsw i32 0, %38
%40 = icmp slt i32 %37, %39
br i1 %40, label %.lr.ph, label %53
.lr.ph: ; preds = %36
br label %41
41: ; preds = %.lr.ph, %46
%42 = load double, ptr %6, align 8
%43 = load i32, ptr %4, align 4
%44 = sitofp i32 %43 to double
%45 = fdiv double %42, %44
store double %45, ptr %6, align 8
br label %46
46: ; preds = %41
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %5, align 4
%51 = sub nsw i32 0, %50
%52 = icmp slt i32 %49, %51
br i1 %52, label %41, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %46
br label %53
53: ; preds = %._crit_edge, %36
br label %54
54: ; preds = %53, %35
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%56 = load double, ptr %6, align 8
store double %56, ptr %3, align 8
br label %57
57: ; preds = %54, %14
%58 = load double, ptr %3, align 8
ret double %58
}
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/tmpriyxogpf.c'
source_filename = "/tmp/tmpriyxogpf.c"
target datalayout = "e-m:e-p270: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.SHA256_Xcompare_24.input = private unnamed_addr constant [77 x i8] c"\B3\D1Kll,\7F8\22z\B0\11=\A3\B7$}>7a\A9>\8F$\E3\8Bi\08\11\9Cd\BF\E5\EE7\84z\0A:\C4\B0\F5X\8F\89\95/\B2\F4n\D5\B8\F4Z\DBaC\14\AF\E5\9D%\17\FA\0F\80p\1E\AB\E1\FF\BCo\A2@\15_", align 16
@__const.SHA256_Xcompare_24.result0 = private unnamed_addr constant [32 x i8] c"f\F1\AD-\13&\0D\A3x\E9\AD\D5\87\89\11@\96\97\11\D8\C5\BC/\13\8F\C9\AB\E0jt\CF\02", align 16
@.str = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_VST in SHA256_Xcompare_24\0A\00", align 1
@.str.1 = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_NSS in SHA256_Xcompare_24\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"Disagreement between given answer and SHA256_sodium in SHA256_Xcompare_24\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SHA256_Xcompare_24() #0 {
%1 = alloca [77 x i8], align 16
%2 = alloca [32 x i8], align 16
%3 = alloca [32 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.SHA256_Xcompare_24.input, i64 77, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.SHA256_Xcompare_24.result0, i64 32, i1 false)
%4 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 32)
%6 = getelementptr inbounds [77 x i8], ptr %1, i64 0, i64 0
%7 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @SHA256_VST(ptr noundef %6, ptr noundef %7, i32 noundef 77)
%9 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @check_test(ptr noundef %9, ptr noundef %10, i32 noundef 32, ptr noundef @.str)
%12 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 32)
%14 = getelementptr inbounds [77 x i8], ptr %1, i64 0, i64 0
%15 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @SHA256_NSS(ptr noundef %14, ptr noundef %15, i32 noundef 77)
%17 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%18 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @check_test(ptr noundef %17, ptr noundef %18, i32 noundef 32, ptr noundef @.str.1)
%20 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 32)
%22 = getelementptr inbounds [77 x i8], ptr %1, i64 0, i64 0
%23 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @SHA256_sodium(ptr noundef %22, ptr noundef %23, i32 noundef 77)
%25 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%26 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%27 = call i32 @check_test(ptr noundef %25, ptr noundef %26, i32 noundef 32, ptr noundef @.str.2)
ret void
}
; 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 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @SHA256_VST(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @check_test(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @SHA256_NSS(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @SHA256_sodium(ptr noundef, 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/tmpriyxogpf.c"
target datalayout = "e-m:e-p270: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.SHA256_Xcompare_24.input = private unnamed_addr constant [77 x i8] c"\B3\D1Kll,\7F8\22z\B0\11=\A3\B7$}>7a\A9>\8F$\E3\8Bi\08\11\9Cd\BF\E5\EE7\84z\0A:\C4\B0\F5X\8F\89\95/\B2\F4n\D5\B8\F4Z\DBaC\14\AF\E5\9D%\17\FA\0F\80p\1E\AB\E1\FF\BCo\A2@\15_", align 16
@__const.SHA256_Xcompare_24.result0 = private unnamed_addr constant [32 x i8] c"f\F1\AD-\13&\0D\A3x\E9\AD\D5\87\89\11@\96\97\11\D8\C5\BC/\13\8F\C9\AB\E0jt\CF\02", align 16
@.str = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_VST in SHA256_Xcompare_24\0A\00", align 1
@.str.1 = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_NSS in SHA256_Xcompare_24\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"Disagreement between given answer and SHA256_sodium in SHA256_Xcompare_24\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SHA256_Xcompare_24() #0 {
%1 = alloca [77 x i8], align 16
%2 = alloca [32 x i8], align 16
%3 = alloca [32 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.SHA256_Xcompare_24.input, i64 77, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.SHA256_Xcompare_24.result0, i64 32, i1 false)
%4 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 32)
%6 = getelementptr inbounds [77 x i8], ptr %1, i64 0, i64 0
%7 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @SHA256_VST(ptr noundef %6, ptr noundef %7, i32 noundef 77)
%9 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @check_test(ptr noundef %9, ptr noundef %10, i32 noundef 32, ptr noundef @.str)
%12 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 32)
%14 = getelementptr inbounds [77 x i8], ptr %1, i64 0, i64 0
%15 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @SHA256_NSS(ptr noundef %14, ptr noundef %15, i32 noundef 77)
%17 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%18 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @check_test(ptr noundef %17, ptr noundef %18, i32 noundef 32, ptr noundef @.str.1)
%20 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 32)
%22 = getelementptr inbounds [77 x i8], ptr %1, i64 0, i64 0
%23 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @SHA256_sodium(ptr noundef %22, ptr noundef %23, i32 noundef 77)
%25 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%26 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%27 = call i32 @check_test(ptr noundef %25, ptr noundef %26, i32 noundef 32, ptr noundef @.str.2)
ret void
}
; 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 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @SHA256_VST(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @check_test(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @SHA256_NSS(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @SHA256_sodium(ptr noundef, 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/tmpl76axe7z.c'
source_filename = "/tmp/tmpl76axe7z.c"
target datalayout = "e-m:e-p270: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"HOME\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"rcpath\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"savedir\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c".gnuboy\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"%s/.gnuboy:.\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"%s/.gnuboy/saves\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sys_initpath() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @getenv(ptr noundef @.str)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.1, ptr noundef @.str.2)
%8 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.3, ptr noundef @.str.2)
br label %26
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = call i64 @strlen(ptr noundef @.str.4)
%13 = add nsw i64 %11, %12
%14 = add nsw i64 %13, 8
%15 = call ptr @malloc(i64 noundef %14)
store ptr %15, ptr %1, align 8
%16 = load ptr, ptr %1, align 8
%17 = load ptr, ptr %2, align 8
%18 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str.5, ptr noundef %17)
%19 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.1, i32 noundef 1, ptr noundef %1)
%20 = load ptr, ptr %1, align 8
%21 = load ptr, ptr %2, align 8
%22 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str.6, ptr noundef %21)
%23 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.3, i32 noundef 1, ptr noundef %1)
%24 = load ptr, ptr %1, align 8
%25 = call i32 @free(ptr noundef %24)
br label %26
26: ; preds = %9, %6
ret void
}
declare ptr @getenv(ptr noundef) #1
declare i32 @rc_setvar(ptr noundef, ...) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl76axe7z.c"
target datalayout = "e-m:e-p270: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"HOME\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"rcpath\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"savedir\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c".gnuboy\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"%s/.gnuboy:.\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"%s/.gnuboy/saves\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sys_initpath() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @getenv(ptr noundef @.str)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.1, ptr noundef @.str.2)
%8 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.3, ptr noundef @.str.2)
br label %26
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = call i64 @strlen(ptr noundef @.str.4)
%13 = add nsw i64 %11, %12
%14 = add nsw i64 %13, 8
%15 = call ptr @malloc(i64 noundef %14)
store ptr %15, ptr %1, align 8
%16 = load ptr, ptr %1, align 8
%17 = load ptr, ptr %2, align 8
%18 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str.5, ptr noundef %17)
%19 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.1, i32 noundef 1, ptr noundef %1)
%20 = load ptr, ptr %1, align 8
%21 = load ptr, ptr %2, align 8
%22 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str.6, ptr noundef %21)
%23 = call i32 (ptr, ...) @rc_setvar(ptr noundef @.str.3, i32 noundef 1, ptr noundef %1)
%24 = load ptr, ptr %1, align 8
%25 = call i32 @free(ptr noundef %24)
br label %26
26: ; preds = %9, %6
ret void
}
declare ptr @getenv(ptr noundef) #1
declare i32 @rc_setvar(ptr noundef, ...) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpagvp6ooe.c'
source_filename = "/tmp/tmpagvp6ooe.c"
target datalayout = "e-m:e-p270: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 @cosatan(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @atan(double noundef %3)
%5 = call double @cos(i32 noundef %4)
ret double %5
}
declare double @cos(i32 noundef) #1
declare i32 @atan(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/tmpagvp6ooe.c"
target datalayout = "e-m:e-p270: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 @cosatan(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @atan(double noundef %3)
%5 = call double @cos(i32 noundef %4)
ret double %5
}
declare double @cos(i32 noundef) #1
declare i32 @atan(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/tmpehf_vry0.c'
source_filename = "/tmp/tmpehf_vry0.c"
target datalayout = "e-m:e-p270: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/tmpehf_vry0.c"
target datalayout = "e-m:e-p270: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/tmpwk2vng4n.c'
source_filename = "/tmp/tmpwk2vng4n.c"
target datalayout = "e-m:e-p270: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 @dump_oldabi_stat64(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%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
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%31 = load i32, ptr %7, align 4
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %7, align 4
%33 = add i32 %32, 8
store i32 %33, ptr %12, align 4
%34 = load i32, ptr %7, align 4
%35 = add i32 %34, 12
store i32 %35, ptr %13, align 4
%36 = load i32, ptr %7, align 4
%37 = add i32 %36, 16
store i32 %37, ptr %14, align 4
%38 = load i32, ptr %7, align 4
%39 = add i32 %38, 20
store i32 %39, ptr %15, align 4
%40 = load i32, ptr %7, align 4
%41 = add i32 %40, 24
store i32 %41, ptr %16, align 4
%42 = load i32, ptr %7, align 4
%43 = add i32 %42, 28
store i32 %43, ptr %17, align 4
%44 = load i32, ptr %7, align 4
%45 = add i32 %44, 32
store i32 %45, ptr %18, align 4
%46 = load i32, ptr %7, align 4
%47 = add i32 %46, 40
store i32 %47, ptr %19, align 4
%48 = load i32, ptr %7, align 4
%49 = add i32 %48, 44
store i32 %49, ptr %20, align 4
%50 = load i32, ptr %7, align 4
%51 = add i32 %50, 52
store i32 %51, ptr %21, align 4
%52 = load i32, ptr %7, align 4
%53 = add i32 %52, 56
store i32 %53, ptr %22, align 4
%54 = load i32, ptr %7, align 4
%55 = add i32 %54, 64
store i32 %55, ptr %23, align 4
%56 = load i32, ptr %7, align 4
%57 = add i32 %56, 68
store i32 %57, ptr %24, align 4
%58 = load i32, ptr %7, align 4
%59 = add i32 %58, 72
store i32 %59, ptr %25, align 4
%60 = load i32, ptr %7, align 4
%61 = add i32 %60, 76
store i32 %61, ptr %26, align 4
%62 = load i32, ptr %7, align 4
%63 = add i32 %62, 80
store i32 %63, ptr %27, align 4
%64 = load i32, ptr %7, align 4
%65 = add i32 %64, 84
store i32 %65, ptr %28, align 4
%66 = load i32, ptr %7, align 4
%67 = add i32 %66, 88
store i32 %67, ptr %29, align 4
store i32 0, ptr %30, align 4
%68 = load i32, ptr %6, align 4
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %4
%71 = call ptr @malloc(i32 noundef 0)
%72 = load ptr, ptr %8, align 8
store ptr %71, ptr %72, align 8
%73 = load i32, ptr %30, align 4
store i32 %73, ptr %5, align 4
br label %257
74: ; preds = %4
%75 = call ptr @malloc(i32 noundef 152)
store ptr %75, ptr %10, align 8
%76 = load i32, ptr %6, align 4
%77 = icmp sge i32 %76, 0
br i1 %77, label %78, label %250
78: ; preds = %74
%79 = load i32, ptr %11, align 4
%80 = load ptr, ptr %10, align 8
%81 = getelementptr inbounds ptr, ptr %80, i64 0
%82 = load ptr, ptr %9, align 8
%83 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %79, ptr noundef %81, ptr noundef %82)
%84 = load i32, ptr %30, align 4
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, ptr %30, align 4
%88 = load i32, ptr %12, align 4
%89 = load ptr, ptr %10, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 1
%91 = load ptr, ptr %9, align 8
%92 = call i64 @dump_unsigned_int_from_mem(i32 noundef %88, ptr noundef %90, ptr noundef %91)
%93 = load i32, ptr %30, align 4
%94 = sext i32 %93 to i64
%95 = add nsw i64 %94, %92
%96 = trunc i64 %95 to i32
store i32 %96, ptr %30, align 4
%97 = load i32, ptr %13, align 4
%98 = load ptr, ptr %10, align 8
%99 = getelementptr inbounds ptr, ptr %98, i64 2
%100 = load ptr, ptr %9, align 8
%101 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %97, ptr noundef %99, ptr noundef %100)
%102 = load i32, ptr %30, align 4
%103 = sext i32 %102 to i64
%104 = add nsw i64 %103, %101
%105 = trunc i64 %104 to i32
store i32 %105, ptr %30, align 4
%106 = load i32, ptr %14, align 4
%107 = load ptr, ptr %10, align 8
%108 = getelementptr inbounds ptr, ptr %107, i64 3
%109 = load ptr, ptr %9, align 8
%110 = call i64 @dump_unsigned_int_from_mem(i32 noundef %106, ptr noundef %108, ptr noundef %109)
%111 = load i32, ptr %30, align 4
%112 = sext i32 %111 to i64
%113 = add nsw i64 %112, %110
%114 = trunc i64 %113 to i32
store i32 %114, ptr %30, align 4
%115 = load i32, ptr %15, align 4
%116 = load ptr, ptr %10, align 8
%117 = getelementptr inbounds ptr, ptr %116, i64 4
%118 = load ptr, ptr %9, align 8
%119 = call i64 @dump_unsigned_int_from_mem(i32 noundef %115, ptr noundef %117, ptr noundef %118)
%120 = load i32, ptr %30, align 4
%121 = sext i32 %120 to i64
%122 = add nsw i64 %121, %119
%123 = trunc i64 %122 to i32
store i32 %123, ptr %30, align 4
%124 = load i32, ptr %16, align 4
%125 = load ptr, ptr %10, align 8
%126 = getelementptr inbounds ptr, ptr %125, i64 5
%127 = load ptr, ptr %9, align 8
%128 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %124, ptr noundef %126, ptr noundef %127)
%129 = load i32, ptr %30, align 4
%130 = sext i32 %129 to i64
%131 = add nsw i64 %130, %128
%132 = trunc i64 %131 to i32
store i32 %132, ptr %30, align 4
%133 = load i32, ptr %17, align 4
%134 = load ptr, ptr %10, align 8
%135 = getelementptr inbounds ptr, ptr %134, i64 6
%136 = load ptr, ptr %9, align 8
%137 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %133, ptr noundef %135, ptr noundef %136)
%138 = load i32, ptr %30, align 4
%139 = sext i32 %138 to i64
%140 = add nsw i64 %139, %137
%141 = trunc i64 %140 to i32
store i32 %141, ptr %30, align 4
%142 = load i32, ptr %18, align 4
%143 = load ptr, ptr %10, align 8
%144 = getelementptr inbounds ptr, ptr %143, i64 7
%145 = load ptr, ptr %9, align 8
%146 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %142, ptr noundef %144, ptr noundef %145)
%147 = load i32, ptr %30, align 4
%148 = sext i32 %147 to i64
%149 = add nsw i64 %148, %146
%150 = trunc i64 %149 to i32
store i32 %150, ptr %30, align 4
%151 = load i32, ptr %19, align 4
%152 = load ptr, ptr %10, align 8
%153 = getelementptr inbounds ptr, ptr %152, i64 8
%154 = load ptr, ptr %9, align 8
%155 = call i64 @dump_unsigned_int_from_mem(i32 noundef %151, ptr noundef %153, ptr noundef %154)
%156 = load i32, ptr %30, align 4
%157 = sext i32 %156 to i64
%158 = add nsw i64 %157, %155
%159 = trunc i64 %158 to i32
store i32 %159, ptr %30, align 4
%160 = load i32, ptr %20, align 4
%161 = load ptr, ptr %10, align 8
%162 = getelementptr inbounds ptr, ptr %161, i64 9
%163 = load ptr, ptr %9, align 8
%164 = call i64 @dump_long_long_int_from_mem(i32 noundef %160, ptr noundef %162, ptr noundef %163)
%165 = load i32, ptr %30, align 4
%166 = sext i32 %165 to i64
%167 = add nsw i64 %166, %164
%168 = trunc i64 %167 to i32
store i32 %168, ptr %30, align 4
%169 = load i32, ptr %21, align 4
%170 = load ptr, ptr %10, align 8
%171 = getelementptr inbounds ptr, ptr %170, i64 10
%172 = load ptr, ptr %9, align 8
%173 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %169, ptr noundef %171, ptr noundef %172)
%174 = load i32, ptr %30, align 4
%175 = sext i32 %174 to i64
%176 = add nsw i64 %175, %173
%177 = trunc i64 %176 to i32
store i32 %177, ptr %30, align 4
%178 = load i32, ptr %22, align 4
%179 = load ptr, ptr %10, align 8
%180 = getelementptr inbounds ptr, ptr %179, i64 11
%181 = load ptr, ptr %9, align 8
%182 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %178, ptr noundef %180, ptr noundef %181)
%183 = load i32, ptr %30, align 4
%184 = sext i32 %183 to i64
%185 = add nsw i64 %184, %182
%186 = trunc i64 %185 to i32
store i32 %186, ptr %30, align 4
%187 = load i32, ptr %23, align 4
%188 = load ptr, ptr %10, align 8
%189 = getelementptr inbounds ptr, ptr %188, i64 12
%190 = load ptr, ptr %9, align 8
%191 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %187, ptr noundef %189, ptr noundef %190)
%192 = load i32, ptr %30, align 4
%193 = sext i32 %192 to i64
%194 = add nsw i64 %193, %191
%195 = trunc i64 %194 to i32
store i32 %195, ptr %30, align 4
%196 = load i32, ptr %24, align 4
%197 = load ptr, ptr %10, align 8
%198 = getelementptr inbounds ptr, ptr %197, i64 13
%199 = load ptr, ptr %9, align 8
%200 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %196, ptr noundef %198, ptr noundef %199)
%201 = load i32, ptr %30, align 4
%202 = sext i32 %201 to i64
%203 = add nsw i64 %202, %200
%204 = trunc i64 %203 to i32
store i32 %204, ptr %30, align 4
%205 = load i32, ptr %25, align 4
%206 = load ptr, ptr %10, align 8
%207 = getelementptr inbounds ptr, ptr %206, i64 14
%208 = load ptr, ptr %9, align 8
%209 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %205, ptr noundef %207, ptr noundef %208)
%210 = load i32, ptr %30, align 4
%211 = sext i32 %210 to i64
%212 = add nsw i64 %211, %209
%213 = trunc i64 %212 to i32
store i32 %213, ptr %30, align 4
%214 = load i32, ptr %26, align 4
%215 = load ptr, ptr %10, align 8
%216 = getelementptr inbounds ptr, ptr %215, i64 15
%217 = load ptr, ptr %9, align 8
%218 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %214, ptr noundef %216, ptr noundef %217)
%219 = load i32, ptr %30, align 4
%220 = sext i32 %219 to i64
%221 = add nsw i64 %220, %218
%222 = trunc i64 %221 to i32
store i32 %222, ptr %30, align 4
%223 = load i32, ptr %27, align 4
%224 = load ptr, ptr %10, align 8
%225 = getelementptr inbounds ptr, ptr %224, i64 16
%226 = load ptr, ptr %9, align 8
%227 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %223, ptr noundef %225, ptr noundef %226)
%228 = load i32, ptr %30, align 4
%229 = sext i32 %228 to i64
%230 = add nsw i64 %229, %227
%231 = trunc i64 %230 to i32
store i32 %231, ptr %30, align 4
%232 = load i32, ptr %28, align 4
%233 = load ptr, ptr %10, align 8
%234 = getelementptr inbounds ptr, ptr %233, i64 17
%235 = load ptr, ptr %9, align 8
%236 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %232, ptr noundef %234, ptr noundef %235)
%237 = load i32, ptr %30, align 4
%238 = sext i32 %237 to i64
%239 = add nsw i64 %238, %236
%240 = trunc i64 %239 to i32
store i32 %240, ptr %30, align 4
%241 = load i32, ptr %29, align 4
%242 = load ptr, ptr %10, align 8
%243 = getelementptr inbounds ptr, ptr %242, i64 18
%244 = load ptr, ptr %9, align 8
%245 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %241, ptr noundef %243, ptr noundef %244)
%246 = load i32, ptr %30, align 4
%247 = sext i32 %246 to i64
%248 = add nsw i64 %247, %245
%249 = trunc i64 %248 to i32
store i32 %249, ptr %30, align 4
br label %250
250: ; preds = %78, %74
%251 = load ptr, ptr %10, align 8
%252 = call ptr @copy_params(ptr noundef %251, i32 noundef 19, ptr noundef %30)
%253 = load ptr, ptr %8, align 8
store ptr %252, ptr %253, align 8
%254 = load ptr, ptr %10, align 8
%255 = call i32 @free_dumped_params(ptr noundef %254, i32 noundef 19)
%256 = load i32, ptr %30, align 4
store i32 %256, ptr %5, align 4
br label %257
257: ; preds = %250, %70
%258 = load i32, ptr %5, align 4
ret i32 %258
}
declare ptr @malloc(i32 noundef) #1
declare i64 @dump_long_long_unsigned_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @dump_unsigned_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @dump_long_unsigned_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @dump_long_long_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @copy_params(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free_dumped_params(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/tmpwk2vng4n.c"
target datalayout = "e-m:e-p270: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 @dump_oldabi_stat64(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%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
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%31 = load i32, ptr %7, align 4
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %7, align 4
%33 = add i32 %32, 8
store i32 %33, ptr %12, align 4
%34 = load i32, ptr %7, align 4
%35 = add i32 %34, 12
store i32 %35, ptr %13, align 4
%36 = load i32, ptr %7, align 4
%37 = add i32 %36, 16
store i32 %37, ptr %14, align 4
%38 = load i32, ptr %7, align 4
%39 = add i32 %38, 20
store i32 %39, ptr %15, align 4
%40 = load i32, ptr %7, align 4
%41 = add i32 %40, 24
store i32 %41, ptr %16, align 4
%42 = load i32, ptr %7, align 4
%43 = add i32 %42, 28
store i32 %43, ptr %17, align 4
%44 = load i32, ptr %7, align 4
%45 = add i32 %44, 32
store i32 %45, ptr %18, align 4
%46 = load i32, ptr %7, align 4
%47 = add i32 %46, 40
store i32 %47, ptr %19, align 4
%48 = load i32, ptr %7, align 4
%49 = add i32 %48, 44
store i32 %49, ptr %20, align 4
%50 = load i32, ptr %7, align 4
%51 = add i32 %50, 52
store i32 %51, ptr %21, align 4
%52 = load i32, ptr %7, align 4
%53 = add i32 %52, 56
store i32 %53, ptr %22, align 4
%54 = load i32, ptr %7, align 4
%55 = add i32 %54, 64
store i32 %55, ptr %23, align 4
%56 = load i32, ptr %7, align 4
%57 = add i32 %56, 68
store i32 %57, ptr %24, align 4
%58 = load i32, ptr %7, align 4
%59 = add i32 %58, 72
store i32 %59, ptr %25, align 4
%60 = load i32, ptr %7, align 4
%61 = add i32 %60, 76
store i32 %61, ptr %26, align 4
%62 = load i32, ptr %7, align 4
%63 = add i32 %62, 80
store i32 %63, ptr %27, align 4
%64 = load i32, ptr %7, align 4
%65 = add i32 %64, 84
store i32 %65, ptr %28, align 4
%66 = load i32, ptr %7, align 4
%67 = add i32 %66, 88
store i32 %67, ptr %29, align 4
store i32 0, ptr %30, align 4
%68 = load i32, ptr %6, align 4
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %4
%71 = call ptr @malloc(i32 noundef 0)
%72 = load ptr, ptr %8, align 8
store ptr %71, ptr %72, align 8
%73 = load i32, ptr %30, align 4
store i32 %73, ptr %5, align 4
br label %257
74: ; preds = %4
%75 = call ptr @malloc(i32 noundef 152)
store ptr %75, ptr %10, align 8
%76 = load i32, ptr %6, align 4
%77 = icmp sge i32 %76, 0
br i1 %77, label %78, label %250
78: ; preds = %74
%79 = load i32, ptr %11, align 4
%80 = load ptr, ptr %10, align 8
%81 = getelementptr inbounds ptr, ptr %80, i64 0
%82 = load ptr, ptr %9, align 8
%83 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %79, ptr noundef %81, ptr noundef %82)
%84 = load i32, ptr %30, align 4
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, ptr %30, align 4
%88 = load i32, ptr %12, align 4
%89 = load ptr, ptr %10, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 1
%91 = load ptr, ptr %9, align 8
%92 = call i64 @dump_unsigned_int_from_mem(i32 noundef %88, ptr noundef %90, ptr noundef %91)
%93 = load i32, ptr %30, align 4
%94 = sext i32 %93 to i64
%95 = add nsw i64 %94, %92
%96 = trunc i64 %95 to i32
store i32 %96, ptr %30, align 4
%97 = load i32, ptr %13, align 4
%98 = load ptr, ptr %10, align 8
%99 = getelementptr inbounds ptr, ptr %98, i64 2
%100 = load ptr, ptr %9, align 8
%101 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %97, ptr noundef %99, ptr noundef %100)
%102 = load i32, ptr %30, align 4
%103 = sext i32 %102 to i64
%104 = add nsw i64 %103, %101
%105 = trunc i64 %104 to i32
store i32 %105, ptr %30, align 4
%106 = load i32, ptr %14, align 4
%107 = load ptr, ptr %10, align 8
%108 = getelementptr inbounds ptr, ptr %107, i64 3
%109 = load ptr, ptr %9, align 8
%110 = call i64 @dump_unsigned_int_from_mem(i32 noundef %106, ptr noundef %108, ptr noundef %109)
%111 = load i32, ptr %30, align 4
%112 = sext i32 %111 to i64
%113 = add nsw i64 %112, %110
%114 = trunc i64 %113 to i32
store i32 %114, ptr %30, align 4
%115 = load i32, ptr %15, align 4
%116 = load ptr, ptr %10, align 8
%117 = getelementptr inbounds ptr, ptr %116, i64 4
%118 = load ptr, ptr %9, align 8
%119 = call i64 @dump_unsigned_int_from_mem(i32 noundef %115, ptr noundef %117, ptr noundef %118)
%120 = load i32, ptr %30, align 4
%121 = sext i32 %120 to i64
%122 = add nsw i64 %121, %119
%123 = trunc i64 %122 to i32
store i32 %123, ptr %30, align 4
%124 = load i32, ptr %16, align 4
%125 = load ptr, ptr %10, align 8
%126 = getelementptr inbounds ptr, ptr %125, i64 5
%127 = load ptr, ptr %9, align 8
%128 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %124, ptr noundef %126, ptr noundef %127)
%129 = load i32, ptr %30, align 4
%130 = sext i32 %129 to i64
%131 = add nsw i64 %130, %128
%132 = trunc i64 %131 to i32
store i32 %132, ptr %30, align 4
%133 = load i32, ptr %17, align 4
%134 = load ptr, ptr %10, align 8
%135 = getelementptr inbounds ptr, ptr %134, i64 6
%136 = load ptr, ptr %9, align 8
%137 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %133, ptr noundef %135, ptr noundef %136)
%138 = load i32, ptr %30, align 4
%139 = sext i32 %138 to i64
%140 = add nsw i64 %139, %137
%141 = trunc i64 %140 to i32
store i32 %141, ptr %30, align 4
%142 = load i32, ptr %18, align 4
%143 = load ptr, ptr %10, align 8
%144 = getelementptr inbounds ptr, ptr %143, i64 7
%145 = load ptr, ptr %9, align 8
%146 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %142, ptr noundef %144, ptr noundef %145)
%147 = load i32, ptr %30, align 4
%148 = sext i32 %147 to i64
%149 = add nsw i64 %148, %146
%150 = trunc i64 %149 to i32
store i32 %150, ptr %30, align 4
%151 = load i32, ptr %19, align 4
%152 = load ptr, ptr %10, align 8
%153 = getelementptr inbounds ptr, ptr %152, i64 8
%154 = load ptr, ptr %9, align 8
%155 = call i64 @dump_unsigned_int_from_mem(i32 noundef %151, ptr noundef %153, ptr noundef %154)
%156 = load i32, ptr %30, align 4
%157 = sext i32 %156 to i64
%158 = add nsw i64 %157, %155
%159 = trunc i64 %158 to i32
store i32 %159, ptr %30, align 4
%160 = load i32, ptr %20, align 4
%161 = load ptr, ptr %10, align 8
%162 = getelementptr inbounds ptr, ptr %161, i64 9
%163 = load ptr, ptr %9, align 8
%164 = call i64 @dump_long_long_int_from_mem(i32 noundef %160, ptr noundef %162, ptr noundef %163)
%165 = load i32, ptr %30, align 4
%166 = sext i32 %165 to i64
%167 = add nsw i64 %166, %164
%168 = trunc i64 %167 to i32
store i32 %168, ptr %30, align 4
%169 = load i32, ptr %21, align 4
%170 = load ptr, ptr %10, align 8
%171 = getelementptr inbounds ptr, ptr %170, i64 10
%172 = load ptr, ptr %9, align 8
%173 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %169, ptr noundef %171, ptr noundef %172)
%174 = load i32, ptr %30, align 4
%175 = sext i32 %174 to i64
%176 = add nsw i64 %175, %173
%177 = trunc i64 %176 to i32
store i32 %177, ptr %30, align 4
%178 = load i32, ptr %22, align 4
%179 = load ptr, ptr %10, align 8
%180 = getelementptr inbounds ptr, ptr %179, i64 11
%181 = load ptr, ptr %9, align 8
%182 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %178, ptr noundef %180, ptr noundef %181)
%183 = load i32, ptr %30, align 4
%184 = sext i32 %183 to i64
%185 = add nsw i64 %184, %182
%186 = trunc i64 %185 to i32
store i32 %186, ptr %30, align 4
%187 = load i32, ptr %23, align 4
%188 = load ptr, ptr %10, align 8
%189 = getelementptr inbounds ptr, ptr %188, i64 12
%190 = load ptr, ptr %9, align 8
%191 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %187, ptr noundef %189, ptr noundef %190)
%192 = load i32, ptr %30, align 4
%193 = sext i32 %192 to i64
%194 = add nsw i64 %193, %191
%195 = trunc i64 %194 to i32
store i32 %195, ptr %30, align 4
%196 = load i32, ptr %24, align 4
%197 = load ptr, ptr %10, align 8
%198 = getelementptr inbounds ptr, ptr %197, i64 13
%199 = load ptr, ptr %9, align 8
%200 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %196, ptr noundef %198, ptr noundef %199)
%201 = load i32, ptr %30, align 4
%202 = sext i32 %201 to i64
%203 = add nsw i64 %202, %200
%204 = trunc i64 %203 to i32
store i32 %204, ptr %30, align 4
%205 = load i32, ptr %25, align 4
%206 = load ptr, ptr %10, align 8
%207 = getelementptr inbounds ptr, ptr %206, i64 14
%208 = load ptr, ptr %9, align 8
%209 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %205, ptr noundef %207, ptr noundef %208)
%210 = load i32, ptr %30, align 4
%211 = sext i32 %210 to i64
%212 = add nsw i64 %211, %209
%213 = trunc i64 %212 to i32
store i32 %213, ptr %30, align 4
%214 = load i32, ptr %26, align 4
%215 = load ptr, ptr %10, align 8
%216 = getelementptr inbounds ptr, ptr %215, i64 15
%217 = load ptr, ptr %9, align 8
%218 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %214, ptr noundef %216, ptr noundef %217)
%219 = load i32, ptr %30, align 4
%220 = sext i32 %219 to i64
%221 = add nsw i64 %220, %218
%222 = trunc i64 %221 to i32
store i32 %222, ptr %30, align 4
%223 = load i32, ptr %27, align 4
%224 = load ptr, ptr %10, align 8
%225 = getelementptr inbounds ptr, ptr %224, i64 16
%226 = load ptr, ptr %9, align 8
%227 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %223, ptr noundef %225, ptr noundef %226)
%228 = load i32, ptr %30, align 4
%229 = sext i32 %228 to i64
%230 = add nsw i64 %229, %227
%231 = trunc i64 %230 to i32
store i32 %231, ptr %30, align 4
%232 = load i32, ptr %28, align 4
%233 = load ptr, ptr %10, align 8
%234 = getelementptr inbounds ptr, ptr %233, i64 17
%235 = load ptr, ptr %9, align 8
%236 = call i64 @dump_long_unsigned_int_from_mem(i32 noundef %232, ptr noundef %234, ptr noundef %235)
%237 = load i32, ptr %30, align 4
%238 = sext i32 %237 to i64
%239 = add nsw i64 %238, %236
%240 = trunc i64 %239 to i32
store i32 %240, ptr %30, align 4
%241 = load i32, ptr %29, align 4
%242 = load ptr, ptr %10, align 8
%243 = getelementptr inbounds ptr, ptr %242, i64 18
%244 = load ptr, ptr %9, align 8
%245 = call i64 @dump_long_long_unsigned_int_from_mem(i32 noundef %241, ptr noundef %243, ptr noundef %244)
%246 = load i32, ptr %30, align 4
%247 = sext i32 %246 to i64
%248 = add nsw i64 %247, %245
%249 = trunc i64 %248 to i32
store i32 %249, ptr %30, align 4
br label %250
250: ; preds = %78, %74
%251 = load ptr, ptr %10, align 8
%252 = call ptr @copy_params(ptr noundef %251, i32 noundef 19, ptr noundef %30)
%253 = load ptr, ptr %8, align 8
store ptr %252, ptr %253, align 8
%254 = load ptr, ptr %10, align 8
%255 = call i32 @free_dumped_params(ptr noundef %254, i32 noundef 19)
%256 = load i32, ptr %30, align 4
store i32 %256, ptr %5, align 4
br label %257
257: ; preds = %250, %70
%258 = load i32, ptr %5, align 4
ret i32 %258
}
declare ptr @malloc(i32 noundef) #1
declare i64 @dump_long_long_unsigned_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @dump_unsigned_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @dump_long_unsigned_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @dump_long_long_int_from_mem(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @copy_params(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free_dumped_params(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/tmp3lmdxrcd.c'
source_filename = "/tmp/tmp3lmdxrcd.c"
target datalayout = "e-m:e-p270: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 @convert_to_octal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %20, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds ptr, ptr %10, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = call ptr @to_octal(ptr noundef %14)
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
store ptr %15, ptr %19, align 8
br label %20
20: ; preds = %9
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %6, !llvm.loop !6
23: ; preds = %6
ret void
}
declare ptr @to_octal(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/tmp3lmdxrcd.c"
target datalayout = "e-m:e-p270: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 @convert_to_octal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %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 = icmp slt i32 %6, 2
br i1 %7, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %19
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds ptr, ptr %9, i64 %11
%13 = load ptr, ptr %12, align 8
%14 = call ptr @to_octal(ptr noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
store ptr %14, ptr %18, align 8
br label %19
19: ; preds = %8
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 2
br i1 %23, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %2
ret void
}
declare ptr @to_octal(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/tmphrzjbliw.c'
source_filename = "/tmp/tmphrzjbliw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"192.168.99.100\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"172.168.99.100\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"142.168.99.100\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"[%d. %d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hashtest() #0 {
%1 = alloca [65541 x i32], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%4 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 262164)
%5 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%6 = call i32 @hashtest_cycle(ptr noundef %5, ptr noundef @.str)
%7 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%8 = call i32 @hashtest_cycle(ptr noundef %7, ptr noundef @.str.1)
%9 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%10 = call i32 @hashtest_cycle(ptr noundef %9, ptr noundef @.str.2)
store i32 0, ptr %2, align 4
br label %11
11: ; preds = %21, %0
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 65541
br i1 %13, label %14, label %24
14: ; preds = %11
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 @printf(ptr noundef @.str.3, i32 noundef %15, i32 noundef %19)
br label %21
21: ; preds = %14
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %11, !llvm.loop !6
24: ; preds = %11
%25 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @hashtest_cycle(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphrzjbliw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"192.168.99.100\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"172.168.99.100\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"142.168.99.100\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"[%d. %d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hashtest() #0 {
%1 = alloca [65541 x i32], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%4 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 262164)
%5 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%6 = call i32 @hashtest_cycle(ptr noundef %5, ptr noundef @.str)
%7 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%8 = call i32 @hashtest_cycle(ptr noundef %7, ptr noundef @.str.1)
%9 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 0
%10 = call i32 @hashtest_cycle(ptr noundef %9, ptr noundef @.str.2)
store i32 0, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 65541
br i1 %12, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %20
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [65541 x i32], ptr %1, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 @printf(ptr noundef @.str.3, i32 noundef %14, i32 noundef %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %23, 65541
br i1 %24, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
%26 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @hashtest_cycle(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqhhx0rq1.c'
source_filename = "/tmp/tmpqhhx0rq1.c"
target datalayout = "e-m:e-p270: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 @ssl_is_fatal_error(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %6 [
i32 132, label %5
i32 129, label %5
i32 128, label %5
i32 130, label %5
i32 131, label %5
]
5: ; preds = %1, %1, %1, %1, %1
store i32 0, ptr %2, align 4
br label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %7
7: ; preds = %6, %5
%8 = load i32, ptr %2, align 4
ret i32 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpqhhx0rq1.c"
target datalayout = "e-m:e-p270: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 @ssl_is_fatal_error(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %6 [
i32 132, label %5
i32 129, label %5
i32 128, label %5
i32 130, label %5
i32 131, label %5
]
5: ; preds = %1, %1, %1, %1, %1
store i32 0, ptr %2, align 4
br label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %7
7: ; preds = %6, %5
%8 = load i32, ptr %2, align 4
ret i32 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpvqf8vulq.c'
source_filename = "/tmp/tmpvqf8vulq.c"
target datalayout = "e-m:e-p270: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"read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @read_n(i32 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %9
9: ; preds = %30, %3
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %5, align 8
%12 = icmp slt i64 %10, %11
br i1 %12, label %13, label %34
13: ; preds = %9
%14 = load i32, ptr %4, align 4
%15 = load ptr, ptr %6, align 8
%16 = load i64, ptr %7, align 8
%17 = getelementptr i8, ptr %15, i64 %16
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %7, align 8
%20 = sub nsw i64 %18, %19
%21 = call i64 @read(i32 noundef %14, ptr noundef %17, i64 noundef %20)
store i64 %21, ptr %8, align 8
%22 = load i64, ptr %8, align 8
%23 = icmp eq i64 %22, -1
br i1 %23, label %24, label %26
24: ; preds = %13
%25 = call i32 @die(ptr noundef @.str)
br label %26
26: ; preds = %24, %13
%27 = load i64, ptr %8, align 8
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %26
br label %34
30: ; preds = %26
%31 = load i64, ptr %8, align 8
%32 = load i64, ptr %7, align 8
%33 = add nsw i64 %32, %31
store i64 %33, ptr %7, align 8
br label %9, !llvm.loop !6
34: ; preds = %29, %9
%35 = load ptr, ptr %6, align 8
%36 = load i64, ptr %7, align 8
%37 = getelementptr i8, ptr %35, i64 %36
%38 = load i64, ptr %5, align 8
%39 = load i64, ptr %7, align 8
%40 = sub nsw i64 %38, %39
%41 = call i32 @memset(ptr noundef %37, i32 noundef 0, i64 noundef %40)
%42 = load i64, ptr %7, align 8
ret i64 %42
}
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvqf8vulq.c"
target datalayout = "e-m:e-p270: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"read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @read_n(i32 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %5, align 8
%11 = icmp slt i64 %9, %10
br i1 %11, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %29
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %7, align 8
%16 = getelementptr i8, ptr %14, i64 %15
%17 = load i64, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = sub nsw i64 %17, %18
%20 = call i64 @read(i32 noundef %13, ptr noundef %16, i64 noundef %19)
store i64 %20, ptr %8, align 8
%21 = load i64, ptr %8, align 8
%22 = icmp eq i64 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %12
%24 = call i32 @die(ptr noundef @.str)
br label %25
25: ; preds = %23, %12
%26 = load i64, ptr %8, align 8
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
br label %36
29: ; preds = %25
%30 = load i64, ptr %8, align 8
%31 = load i64, ptr %7, align 8
%32 = add nsw i64 %31, %30
store i64 %32, ptr %7, align 8
%33 = load i64, ptr %7, align 8
%34 = load i64, ptr %5, align 8
%35 = icmp slt i64 %33, %34
br i1 %35, label %12, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %29
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %36
36: ; preds = %.loopexit, %28
%37 = load ptr, ptr %6, align 8
%38 = load i64, ptr %7, align 8
%39 = getelementptr i8, ptr %37, i64 %38
%40 = load i64, ptr %5, align 8
%41 = load i64, ptr %7, align 8
%42 = sub nsw i64 %40, %41
%43 = call i32 @memset(ptr noundef %39, i32 noundef 0, i64 noundef %42)
%44 = load i64, ptr %7, align 8
ret i64 %44
}
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_hsoz5_g.c'
source_filename = "/tmp/tmp_hsoz5_g.c"
target datalayout = "e-m:e-p270: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/tmp_hsoz5_g.c"
target datalayout = "e-m:e-p270: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/tmptxdkt0ih.c'
source_filename = "/tmp/tmptxdkt0ih.c"
target datalayout = "e-m:e-p270: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/tmptxdkt0ih.c"
target datalayout = "e-m:e-p270: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/tmpkynybh93.c'
source_filename = "/tmp/tmpkynybh93.c"
target datalayout = "e-m:e-p270: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 float @test_cvtsh_ss(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call float @_cvtsh_ss(i16 noundef zeroext %3)
ret float %4
}
declare float @_cvtsh_ss(i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkynybh93.c"
target datalayout = "e-m:e-p270: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 float @test_cvtsh_ss(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call float @_cvtsh_ss(i16 noundef zeroext %3)
ret float %4
}
declare float @_cvtsh_ss(i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa0yoxn7s.c'
source_filename = "/tmp/tmpa0yoxn7s.c"
target datalayout = "e-m:e-p270: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 @in_square(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 49, ptr %8, align 4
br label %10
10: ; preds = %46, %3
%11 = load i32, ptr %8, align 4
%12 = icmp sle i32 %11, 57
br i1 %12, label %13, label %49
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %8, align 4
%17 = load ptr, ptr %4, align 8
%18 = call i32 @check_square(i32 noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17)
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %46
20: ; preds = %13
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %8, align 4
%24 = load ptr, ptr %4, align 8
%25 = call i32 @check_in_square(i32 noundef %21, i32 noundef %22, i32 noundef %23, ptr noundef %24)
store i32 %25, ptr %7, align 4
%26 = icmp ne i32 %25, -1
br i1 %26, label %27, label %40
27: ; preds = %20
%28 = load i32, ptr %8, align 4
%29 = trunc i32 %28 to i8
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = sdiv i32 %31, 10
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %30, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = load i32, ptr %7, align 4
%37 = srem i32 %36, 10
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
store i8 %29, ptr %39, align 1
store i32 0, ptr %9, align 4
br label %45
40: ; preds = %20
%41 = load i32, ptr %9, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %40
store i32 -1, ptr %9, align 4
br label %44
44: ; preds = %43, %40
br label %45
45: ; preds = %44, %27
br label %46
46: ; preds = %45, %13
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %10, !llvm.loop !6
49: ; preds = %10
%50 = load i32, ptr %9, align 4
ret i32 %50
}
declare i32 @check_square(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @check_in_square(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa0yoxn7s.c"
target datalayout = "e-m:e-p270: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 @in_square(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 49, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = icmp sle i32 %10, 57
br i1 %11, label %.lr.ph, label %50
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %45
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %8, align 4
%16 = load ptr, ptr %4, align 8
%17 = call i32 @check_square(i32 noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %16)
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %45
19: ; preds = %12
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %4, align 8
%24 = call i32 @check_in_square(i32 noundef %20, i32 noundef %21, i32 noundef %22, ptr noundef %23)
store i32 %24, ptr %7, align 4
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %39
26: ; preds = %19
%27 = load i32, ptr %8, align 4
%28 = trunc i32 %27 to i8
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = sdiv i32 %30, 10
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %29, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %7, align 4
%36 = srem i32 %35, 10
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
store i8 %28, ptr %38, align 1
store i32 0, ptr %9, align 4
br label %44
39: ; preds = %19
%40 = load i32, ptr %9, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %39
store i32 -1, ptr %9, align 4
br label %43
43: ; preds = %42, %39
br label %44
44: ; preds = %43, %26
br label %45
45: ; preds = %44, %12
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp sle i32 %48, 57
br i1 %49, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %3
%51 = load i32, ptr %9, align 4
ret i32 %51
}
declare i32 @check_square(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @check_in_square(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvawrtv4t.c'
source_filename = "/tmp/tmpvawrtv4t.c"
target datalayout = "e-m:e-p270: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"%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 void @show_code_chunk(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %35, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %38
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %30, %13
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %33
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %6, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %22, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %19, i64 %25
%27 = load i8, ptr %26, align 1
%28 = zext i8 %27 to i32
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %28)
br label %30
30: ; preds = %18
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
br label %14, !llvm.loop !6
33: ; preds = %14
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %35
35: ; preds = %33
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
br label %9, !llvm.loop !8
38: ; preds = %9
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/tmpvawrtv4t.c"
target datalayout = "e-m:e-p270: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"%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 void @show_code_chunk(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %42
.lr.ph2: ; preds = %3
br label %12
12: ; preds = %.lr.ph2, %36
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %34
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %28
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %20, %21
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %17, i64 %23
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %26)
br label %28
28: ; preds = %16
%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 = load i32, ptr %6, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %12
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %36
36: ; preds = %34
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %42
42: ; preds = %._crit_edge3, %3
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/tmpd97mj_d7.c'
source_filename = "/tmp/tmpd97mj_d7.c"
target datalayout = "e-m:e-p270: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 @solve_quadratic(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%9 = load double, ptr %5, align 8
%10 = load double, ptr %5, align 8
%11 = load double, ptr %4, align 8
%12 = fmul double 4.000000e+00, %11
%13 = load double, ptr %6, align 8
%14 = fmul double %12, %13
%15 = fneg double %14
%16 = call double @llvm.fmuladd.f64(double %9, double %10, double %15)
%17 = call double @sqrt(double noundef %16) #3
store double %17, ptr %7, align 8
%18 = load double, ptr %7, align 8
%19 = load double, ptr %5, align 8
%20 = fsub double %18, %19
%21 = load double, ptr %4, align 8
%22 = fmul double 2.000000e+00, %21
%23 = fdiv double %20, %22
store double %23, ptr %8, align 8
%24 = load double, ptr %8, align 8
%25 = fcmp olt double %24, 0.000000e+00
br i1 %25, label %26, label %34
26: ; preds = %3
%27 = load double, ptr %7, align 8
%28 = fneg double %27
%29 = load double, ptr %5, align 8
%30 = fsub double %28, %29
%31 = load double, ptr %4, align 8
%32 = fmul double 2.000000e+00, %31
%33 = fdiv double %30, %32
store double %33, ptr %8, align 8
br label %34
34: ; preds = %26, %3
%35 = load double, ptr %8, align 8
ret double %35
}
; Function Attrs: nounwind
declare double @sqrt(double 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd97mj_d7.c"
target datalayout = "e-m:e-p270: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 @solve_quadratic(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%9 = load double, ptr %5, align 8
%10 = load double, ptr %5, align 8
%11 = load double, ptr %4, align 8
%12 = fmul double 4.000000e+00, %11
%13 = load double, ptr %6, align 8
%14 = fmul double %12, %13
%15 = fneg double %14
%16 = call double @llvm.fmuladd.f64(double %9, double %10, double %15)
%17 = call double @sqrt(double noundef %16) #3
store double %17, ptr %7, align 8
%18 = load double, ptr %7, align 8
%19 = load double, ptr %5, align 8
%20 = fsub double %18, %19
%21 = load double, ptr %4, align 8
%22 = fmul double 2.000000e+00, %21
%23 = fdiv double %20, %22
store double %23, ptr %8, align 8
%24 = load double, ptr %8, align 8
%25 = fcmp olt double %24, 0.000000e+00
br i1 %25, label %26, label %34
26: ; preds = %3
%27 = load double, ptr %7, align 8
%28 = fneg double %27
%29 = load double, ptr %5, align 8
%30 = fsub double %28, %29
%31 = load double, ptr %4, align 8
%32 = fmul double 2.000000e+00, %31
%33 = fdiv double %30, %32
store double %33, ptr %8, align 8
br label %34
34: ; preds = %26, %3
%35 = load double, ptr %8, align 8
ret double %35
}
; Function Attrs: nounwind
declare double @sqrt(double 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
|
; ModuleID = '/tmp/tmpj4bhoixv.c'
source_filename = "/tmp/tmpj4bhoixv.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"wdbpltc: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gstat(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj4bhoixv.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"wdbpltc: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gstat(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv9rm3472.c'
source_filename = "/tmp/tmpv9rm3472.c"
target datalayout = "e-m:e-p270: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/tmpv9rm3472.c"
target datalayout = "e-m:e-p270: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/tmpvq9icsz_.c'
source_filename = "/tmp/tmpvq9icsz_.c"
target datalayout = "e-m:e-p270: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 @term() #0 {
%1 = call i32 (...) @stats()
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @stats(...) #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/tmpvq9icsz_.c"
target datalayout = "e-m:e-p270: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 @term() #0 {
%1 = call i32 (...) @stats()
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @stats(...) #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/tmp0qeef84q.c'
source_filename = "/tmp/tmp0qeef84q.c"
target datalayout = "e-m:e-p270: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 @kernel_dgemm_nt_2x4_lib4(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca i32, align 4
%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
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 %0, ptr %9, align 4
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 %7, ptr %16, align 4
%17 = load i32, ptr %9, align 4
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load ptr, ptr %12, align 8
%21 = load ptr, ptr %13, align 8
%22 = load i32, ptr %14, align 4
%23 = load i32, ptr %15, align 4
%24 = load i32, ptr %16, align 4
%25 = call i32 @kernel_dgemm_nt_2x4_vs_lib4(i32 noundef 2, i32 noundef 4, i32 noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24)
ret void
}
declare i32 @kernel_dgemm_nt_2x4_vs_lib4(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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/tmp0qeef84q.c"
target datalayout = "e-m:e-p270: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 @kernel_dgemm_nt_2x4_lib4(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca i32, align 4
%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
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 %0, ptr %9, align 4
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 %7, ptr %16, align 4
%17 = load i32, ptr %9, align 4
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load ptr, ptr %12, align 8
%21 = load ptr, ptr %13, align 8
%22 = load i32, ptr %14, align 4
%23 = load i32, ptr %15, align 4
%24 = load i32, ptr %16, align 4
%25 = call i32 @kernel_dgemm_nt_2x4_vs_lib4(i32 noundef 2, i32 noundef 4, i32 noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24)
ret void
}
declare i32 @kernel_dgemm_nt_2x4_vs_lib4(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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/tmp3y84ow0e.c'
source_filename = "/tmp/tmp3y84ow0e.c"
target datalayout = "e-m:e-p270: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/tmp3y84ow0e.c"
target datalayout = "e-m:e-p270: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/tmpgcx82rva.c'
source_filename = "/tmp/tmpgcx82rva.c"
target datalayout = "e-m:e-p270: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 @drc_is_collision(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store i32 %5, ptr %15, align 4
store i32 %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %14, align 4
%20 = load i32, ptr %16, align 4
%21 = add nsw i32 %19, %20
%22 = icmp sgt i32 %18, %21
br i1 %22, label %41, label %23
23: ; preds = %8
%24 = load i32, ptr %11, align 4
%25 = load i32, ptr %15, align 4
%26 = load i32, ptr %17, align 4
%27 = add nsw i32 %25, %26
%28 = icmp sgt i32 %24, %27
br i1 %28, label %41, label %29
29: ; preds = %23
%30 = load i32, ptr %14, align 4
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %12, align 4
%33 = add nsw i32 %31, %32
%34 = icmp sgt i32 %30, %33
br i1 %34, label %41, label %35
35: ; preds = %29
%36 = load i32, ptr %15, align 4
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %13, align 4
%39 = add nsw i32 %37, %38
%40 = icmp sgt i32 %36, %39
br i1 %40, label %41, label %42
41: ; preds = %35, %29, %23, %8
store i32 0, ptr %9, align 4
br label %43
42: ; preds = %35
store i32 1, ptr %9, align 4
br label %43
43: ; preds = %42, %41
%44 = load i32, ptr %9, align 4
ret i32 %44
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpgcx82rva.c"
target datalayout = "e-m:e-p270: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 @drc_is_collision(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store i32 %5, ptr %15, align 4
store i32 %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %14, align 4
%20 = load i32, ptr %16, align 4
%21 = add nsw i32 %19, %20
%22 = icmp sgt i32 %18, %21
br i1 %22, label %41, label %23
23: ; preds = %8
%24 = load i32, ptr %11, align 4
%25 = load i32, ptr %15, align 4
%26 = load i32, ptr %17, align 4
%27 = add nsw i32 %25, %26
%28 = icmp sgt i32 %24, %27
br i1 %28, label %41, label %29
29: ; preds = %23
%30 = load i32, ptr %14, align 4
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %12, align 4
%33 = add nsw i32 %31, %32
%34 = icmp sgt i32 %30, %33
br i1 %34, label %41, label %35
35: ; preds = %29
%36 = load i32, ptr %15, align 4
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %13, align 4
%39 = add nsw i32 %37, %38
%40 = icmp sgt i32 %36, %39
br i1 %40, label %41, label %42
41: ; preds = %35, %29, %23, %8
store i32 0, ptr %9, align 4
br label %43
42: ; preds = %35
store i32 1, ptr %9, align 4
br label %43
43: ; preds = %42, %41
%44 = load i32, ptr %9, align 4
ret i32 %44
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp72bab40u.c'
source_filename = "/tmp/tmp72bab40u.c"
target datalayout = "e-m:e-p270: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/tmp72bab40u.c"
target datalayout = "e-m:e-p270: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/tmpf5ws1byb.c'
source_filename = "/tmp/tmpf5ws1byb.c"
target datalayout = "e-m:e-p270: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 @drawtextlnxy(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call i32 @DrawTextlnXY127(ptr noundef %9, i64 noundef %10, i64 noundef %11, i64 noundef %12)
ret void
}
declare i32 @DrawTextlnXY127(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf5ws1byb.c"
target datalayout = "e-m:e-p270: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 @drawtextlnxy(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call i32 @DrawTextlnXY127(ptr noundef %9, i64 noundef %10, i64 noundef %11, i64 noundef %12)
ret void
}
declare i32 @DrawTextlnXY127(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnfh620lg.c'
source_filename = "/tmp/tmpnfh620lg.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [6 x i8] c"abcGGG", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i8], align 1
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.array, i64 6, i1 false)
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %59, %0
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 6
br i1 %6, label %7, label %62
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp sge i32 %12, 97
br i1 %13, label %14, label %32
14: ; preds = %7
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %19, 122
br i1 %20, label %21, label %32
21: ; preds = %14
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = sub nsw i32 %26, 32
%28 = trunc i32 %27 to i8
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %30
store i8 %28, ptr %31, align 1
br label %58
32: ; preds = %14, %7
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp sge i32 %37, 65
br i1 %38, label %39, label %57
39: ; preds = %32
%40 = load i32, ptr %3, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp sle i32 %44, 90
br i1 %45, label %46, label %57
46: ; preds = %39
%47 = load i32, ptr %3, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = add nsw i32 %51, 32
%53 = trunc i32 %52 to i8
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %55
store i8 %53, ptr %56, align 1
br label %57
57: ; preds = %46, %39, %32
br label %58
58: ; preds = %57, %21
br label %59
59: ; preds = %58
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
br label %4, !llvm.loop !6
62: ; preds = %4
%63 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%64 = call i32 @puts(ptr noundef %63)
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 @puts(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnfh620lg.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [6 x i8] c"abcGGG", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i8], align 1
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.array, i64 6, i1 false)
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 6
br i1 %5, label %.lr.ph, label %63
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %58
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp sge i32 %11, 97
br i1 %12, label %13, label %31
13: ; preds = %6
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 122
br i1 %19, label %20, label %31
20: ; preds = %13
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 32
%27 = trunc i32 %26 to i8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %29
store i8 %27, ptr %30, align 1
br label %57
31: ; preds = %13, %6
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp sge i32 %36, 65
br i1 %37, label %38, label %56
38: ; preds = %31
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp sle i32 %43, 90
br i1 %44, label %45, label %56
45: ; preds = %38
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = add nsw i32 %50, 32
%52 = trunc i32 %51 to i8
%53 = load i32, ptr %3, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 %54
store i8 %52, ptr %55, align 1
br label %56
56: ; preds = %45, %38, %31
br label %57
57: ; preds = %56, %20
br label %58
58: ; preds = %57
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %3, align 4
%61 = load i32, ptr %3, align 4
%62 = icmp slt i32 %61, 6
br i1 %62, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %63
63: ; preds = %._crit_edge, %0
%64 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%65 = call i32 @puts(ptr noundef %64)
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 @puts(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk619wcq7.c'
source_filename = "/tmp/tmpk619wcq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"# -%c <flag>\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"-%c @@\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"# -%c takes no arguments\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"# End of -%c section\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_optstring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %49, %1
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %11, label %52
11: ; preds = %4
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %12, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 58
br i1 %19, label %20, label %35
20: ; preds = %11
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = call i32 @printf(ptr noundef @.str, i8 noundef signext %25)
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %31)
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
br label %42
35: ; preds = %11
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %3, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = call i32 @printf(ptr noundef @.str.2, i8 noundef signext %40)
br label %42
42: ; preds = %35, %20
%43 = load ptr, ptr %2, align 8
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = call i32 @printf(ptr noundef @.str.3, i8 noundef signext %47)
br label %49
49: ; preds = %42
%50 = load i32, ptr %3, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %3, align 4
br label %4, !llvm.loop !6
52: ; preds = %4
ret void
}
declare i32 @printf(ptr noundef, 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/tmpk619wcq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"# -%c <flag>\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"-%c @@\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"# -%c takes no arguments\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"# End of -%c section\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_optstring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %.lr.ph, label %57
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %48
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %11, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 58
br i1 %18, label %19, label %34
19: ; preds = %10
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = call i32 @printf(ptr noundef @.str, i8 noundef signext %24)
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %30)
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
br label %41
34: ; preds = %10
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = call i32 @printf(ptr noundef @.str.2, i8 noundef signext %39)
br label %41
41: ; preds = %34, %19
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = call i32 @printf(ptr noundef @.str.3, i8 noundef signext %46)
br label %48
48: ; preds = %41
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %3, align 4
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = icmp ne i8 %55, 0
br i1 %56, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %57
57: ; preds = %._crit_edge, %1
ret void
}
declare i32 @printf(ptr noundef, 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/tmp0f_j2gc3.c'
source_filename = "/tmp/tmp0f_j2gc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readline(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %28, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = call i32 (...) @getchar()
store i32 %13, ptr %6, align 4
%14 = load i32, ptr @EOF, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 10
br label %19
19: ; preds = %16, %12, %7
%20 = phi i1 [ false, %12 ], [ false, %7 ], [ %18, %16 ]
br i1 %20, label %21, label %31
21: ; preds = %19
%22 = load i32, ptr %6, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
br label %28
28: ; preds = %21
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %7, !llvm.loop !6
31: ; preds = %19
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, 10
br i1 %33, label %34, label %42
34: ; preds = %31
%35 = load i32, ptr %6, align 4
%36 = trunc i32 %35 to i8
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
store i8 %36, ptr %41, align 1
br label %42
42: ; preds = %34, %31
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
store i8 0, ptr %46, align 1
ret void
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0f_j2gc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readline(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %28, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = call i32 (...) @getchar()
store i32 %13, ptr %6, align 4
%14 = load i32, ptr @EOF, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 10
br label %19
19: ; preds = %16, %12, %7
%20 = phi i1 [ false, %12 ], [ false, %7 ], [ %18, %16 ]
br i1 %20, label %21, label %31
21: ; preds = %19
%22 = load i32, ptr %6, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
br label %28
28: ; preds = %21
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %7, !llvm.loop !6
31: ; preds = %19
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, 10
br i1 %33, label %34, label %42
34: ; preds = %31
%35 = load i32, ptr %6, align 4
%36 = trunc i32 %35 to i8
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
store i8 %36, ptr %41, align 1
br label %42
42: ; preds = %34, %31
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
store i8 0, ptr %46, align 1
ret void
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9pxmo23u.c'
source_filename = "/tmp/tmp9pxmo23u.c"
target datalayout = "e-m:e-p270: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/tmp9pxmo23u.c"
target datalayout = "e-m:e-p270: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/tmp56piz5ue.c'
source_filename = "/tmp/tmp56piz5ue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"/var/pushr/.lock\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @singleton_check() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = call i64 (...) @singleton_read_and_write_lock()
store i64 %5, ptr %2, align 8
%6 = call i64 (...) @getpid()
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %2, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %0
%10 = load i64, ptr %2, align 8
%11 = load i64, ptr %3, align 8
%12 = icmp eq i64 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %9, %0
store i32 0, ptr %1, align 4
br label %26
14: ; preds = %9
%15 = load i64, ptr %2, align 8
%16 = call i64 @singleton_validate_lock(i64 noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
%21 = load i64, ptr %2, align 8
%22 = call i32 @fprintf(ptr noundef %20, ptr noundef @.str.2, i64 noundef %21)
%23 = load ptr, ptr %4, align 8
%24 = call i32 @fclose(ptr noundef %23)
store i32 1, ptr %1, align 4
br label %26
25: ; preds = %14
store i32 0, ptr %1, align 4
br label %26
26: ; preds = %25, %18, %13
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i64 @singleton_read_and_write_lock(...) #1
declare i64 @getpid(...) #1
declare i64 @singleton_validate_lock(i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp56piz5ue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"/var/pushr/.lock\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @singleton_check() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = call i64 (...) @singleton_read_and_write_lock()
store i64 %5, ptr %2, align 8
%6 = call i64 (...) @getpid()
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %2, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %0
%10 = load i64, ptr %2, align 8
%11 = load i64, ptr %3, align 8
%12 = icmp eq i64 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %9, %0
store i32 0, ptr %1, align 4
br label %26
14: ; preds = %9
%15 = load i64, ptr %2, align 8
%16 = call i64 @singleton_validate_lock(i64 noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
%21 = load i64, ptr %2, align 8
%22 = call i32 @fprintf(ptr noundef %20, ptr noundef @.str.2, i64 noundef %21)
%23 = load ptr, ptr %4, align 8
%24 = call i32 @fclose(ptr noundef %23)
store i32 1, ptr %1, align 4
br label %26
25: ; preds = %14
store i32 0, ptr %1, align 4
br label %26
26: ; preds = %25, %18, %13
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i64 @singleton_read_and_write_lock(...) #1
declare i64 @getpid(...) #1
declare i64 @singleton_validate_lock(i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmcqdkbd4.c'
source_filename = "/tmp/tmpmcqdkbd4.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"Simple multi-threaded assembly benchmark\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Usage: %s [OPTIONS]...\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"\09-j [jobs]\09Specify instruction count\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"\09-p [policy] (1 - Round Robin, 2 - Packed \0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\09-v\09\09Enable verbose mode. Useful for Debugging\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.1, ptr noundef %6)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.2)
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.3)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmcqdkbd4.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"Simple multi-threaded assembly benchmark\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Usage: %s [OPTIONS]...\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"\09-j [jobs]\09Specify instruction count\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"\09-p [policy] (1 - Round Robin, 2 - Packed \0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\09-v\09\09Enable verbose mode. Useful for Debugging\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.1, ptr noundef %6)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.2)
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.3)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5o_2hr75.c'
source_filename = "/tmp/tmp5o_2hr75.c"
target datalayout = "e-m:e-p270: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
@ERANGE = dso_local global i64 0, align 8
@INT_MIN = dso_local global i64 0, align 8
@INT_MAX = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"Warning: Invalid integer value '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cw_atoi(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strtol(ptr noundef %6, ptr noundef %4, i32 noundef 10)
store i64 %7, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %8, %9
br i1 %10, label %11, label %26
11: ; preds = %1
%12 = load i64, ptr @errno, align 8
%13 = load i64, ptr @ERANGE, align 8
%14 = icmp ne i64 %12, %13
br i1 %14, label %15, label %26
15: ; preds = %11
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr @INT_MIN, align 8
%18 = icmp sge i64 %16, %17
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = load i64, ptr %5, align 8
%21 = load i64, ptr @INT_MAX, align 8
%22 = icmp sle i64 %20, %21
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i64, ptr %5, align 8
%25 = trunc i64 %24 to i32
store i32 %25, ptr %2, align 4
br label %30
26: ; preds = %19, %15, %11, %1
%27 = load i32, ptr @stderr, align 4
%28 = load ptr, ptr %3, align 8
%29 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str, ptr noundef %28)
store i32 -1, ptr %2, align 4
br label %30
30: ; preds = %26, %23
%31 = load i32, ptr %2, align 4
ret i32 %31
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5o_2hr75.c"
target datalayout = "e-m:e-p270: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
@ERANGE = dso_local global i64 0, align 8
@INT_MIN = dso_local global i64 0, align 8
@INT_MAX = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"Warning: Invalid integer value '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cw_atoi(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strtol(ptr noundef %6, ptr noundef %4, i32 noundef 10)
store i64 %7, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %8, %9
br i1 %10, label %11, label %26
11: ; preds = %1
%12 = load i64, ptr @errno, align 8
%13 = load i64, ptr @ERANGE, align 8
%14 = icmp ne i64 %12, %13
br i1 %14, label %15, label %26
15: ; preds = %11
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr @INT_MIN, align 8
%18 = icmp sge i64 %16, %17
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = load i64, ptr %5, align 8
%21 = load i64, ptr @INT_MAX, align 8
%22 = icmp sle i64 %20, %21
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i64, ptr %5, align 8
%25 = trunc i64 %24 to i32
store i32 %25, ptr %2, align 4
br label %30
26: ; preds = %19, %15, %11, %1
%27 = load i32, ptr @stderr, align 4
%28 = load ptr, ptr %3, align 8
%29 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str, ptr noundef %28)
store i32 -1, ptr %2, align 4
br label %30
30: ; preds = %26, %23
%31 = load i32, ptr %2, align 4
ret i32 %31
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprn_twv0y.c'
source_filename = "/tmp/tmprn_twv0y.c"
target datalayout = "e-m:e-p270: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 @strncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
br label %8
8: ; preds = %26, %3
%9 = load i64, ptr %7, align 8
%10 = icmp ugt i64 %9, 0
br i1 %10, label %11, label %24
11: ; preds = %8
%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 i1 %15, label %16, label %24
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %19, %22
br label %24
24: ; preds = %16, %11, %8
%25 = phi i1 [ false, %11 ], [ false, %8 ], [ %23, %16 ]
br i1 %25, label %26, label %33
26: ; preds = %24
%27 = load i64, ptr %7, align 8
%28 = add i64 %27, -1
store i64 %28, ptr %7, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %6, align 8
br label %8, !llvm.loop !6
33: ; preds = %24
%34 = load i64, ptr %7, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 0, ptr %4, align 4
br label %45
37: ; preds = %33
%38 = load ptr, ptr %5, align 8
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = load ptr, ptr %6, align 8
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = sub nsw i32 %40, %43
store i32 %44, ptr %4, align 4
br label %45
45: ; preds = %37, %36
%46 = load i32, ptr %4, align 4
ret i32 %46
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmprn_twv0y.c"
target datalayout = "e-m:e-p270: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 @strncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
br label %8
8: ; preds = %26, %3
%9 = load i64, ptr %7, align 8
%10 = icmp ugt i64 %9, 0
br i1 %10, label %11, label %24
11: ; preds = %8
%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 i1 %15, label %16, label %24
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %19, %22
br label %24
24: ; preds = %16, %11, %8
%25 = phi i1 [ false, %11 ], [ false, %8 ], [ %23, %16 ]
br i1 %25, label %26, label %33
26: ; preds = %24
%27 = load i64, ptr %7, align 8
%28 = add i64 %27, -1
store i64 %28, ptr %7, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %6, align 8
br label %8, !llvm.loop !6
33: ; preds = %24
%34 = load i64, ptr %7, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 0, ptr %4, align 4
br label %45
37: ; preds = %33
%38 = load ptr, ptr %5, align 8
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = load ptr, ptr %6, align 8
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = sub nsw i32 %40, %43
store i32 %44, ptr %4, align 4
br label %45
45: ; preds = %37, %36
%46 = load i32, ptr %4, align 4
ret i32 %46
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpr27p258e.c'
source_filename = "/tmp/tmpr27p258e.c"
target datalayout = "e-m:e-p270: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_dualpal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 2, ptr %5, align 4
br label %6
6: ; preds = %22, %1
%7 = load i32, ptr %5, align 4
%8 = icmp sle i32 %7, 10
br i1 %8, label %9, label %25
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %5, align 4
%12 = call i64 @is_palidrome(i32 noundef %10, i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
br label %17
17: ; preds = %14, %9
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, ptr %2, align 4
br label %26
21: ; preds = %17
br label %22
22: ; preds = %21
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %6, !llvm.loop !6
25: ; preds = %6
store i32 0, ptr %2, align 4
br label %26
26: ; preds = %25, %20
%27 = load i32, ptr %2, align 4
ret i32 %27
}
declare i64 @is_palidrome(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr27p258e.c"
target datalayout = "e-m:e-p270: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_dualpal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 2, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp sle i32 %6, 10
br i1 %7, label %.lr.ph, label %26
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %21
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %5, align 4
%11 = call i64 @is_palidrome(i32 noundef %9, i32 noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %4, align 4
br label %16
16: ; preds = %13, %8
%17 = load i32, ptr %4, align 4
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %20
19: ; preds = %16
store i32 1, ptr %2, align 4
br label %27
20: ; preds = %16
br label %21
21: ; preds = %20
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sle i32 %24, 10
br i1 %25, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %1
store i32 0, ptr %2, align 4
br label %27
27: ; preds = %26, %19
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i64 @is_palidrome(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6naa662k.c'
source_filename = "/tmp/tmp6naa662k.c"
target datalayout = "e-m:e-p270: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/tmp6naa662k.c"
target datalayout = "e-m:e-p270: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/tmpjbnp8rd1.c'
source_filename = "/tmp/tmpjbnp8rd1.c"
target datalayout = "e-m:e-p270: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_number_cmp()
ret i32 0
}
declare i32 @test_number_cmp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpjbnp8rd1.c"
target datalayout = "e-m:e-p270: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_number_cmp()
ret i32 0
}
declare i32 @test_number_cmp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpp0jd9afe.c'
source_filename = "/tmp/tmpp0jd9afe.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [5 x i32] [i32 15, i32 10, i32 53, i32 35, i32 92], align 16
@.str = private unnamed_addr constant [12 x i8] c"Sonu\C3\A7: %d\0A\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
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 20, i1 false)
store i32 5, ptr %3, align 4
%5 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%6 = load i32, ptr %3, align 4
%7 = call i32 @quick_sort(ptr noundef %5, i32 noundef %6)
%8 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @binary_search(i32 noundef 35, ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%14 = load i32, ptr %3, align 4
%15 = call i32 @print_array(ptr noundef %13, i32 noundef %14)
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 @quick_sort(ptr noundef, i32 noundef) #2
declare i32 @binary_search(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @print_array(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/tmpp0jd9afe.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [5 x i32] [i32 15, i32 10, i32 53, i32 35, i32 92], align 16
@.str = private unnamed_addr constant [12 x i8] c"Sonu\C3\A7: %d\0A\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
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 20, i1 false)
store i32 5, ptr %3, align 4
%5 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%6 = load i32, ptr %3, align 4
%7 = call i32 @quick_sort(ptr noundef %5, i32 noundef %6)
%8 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @binary_search(i32 noundef 35, ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%14 = load i32, ptr %3, align 4
%15 = call i32 @print_array(ptr noundef %13, i32 noundef %14)
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 @quick_sort(ptr noundef, i32 noundef) #2
declare i32 @binary_search(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @print_array(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/tmpdemhu9ez.c'
source_filename = "/tmp/tmpdemhu9ez.c"
target datalayout = "e-m:e-p270: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 @sub_thread_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 1024, i1 false)
%5 = call i32 (...) @pthread_self()
store i32 %5, ptr %4, align 4
%6 = call i32 @sleep(i32 noundef 1)
ret ptr null
}
; 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 @pthread_self(...) #2
declare i32 @sleep(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/tmpdemhu9ez.c"
target datalayout = "e-m:e-p270: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 @sub_thread_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 1024, i1 false)
%5 = call i32 (...) @pthread_self()
store i32 %5, ptr %4, align 4
%6 = call i32 @sleep(i32 noundef 1)
ret ptr null
}
; 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 @pthread_self(...) #2
declare i32 @sleep(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/tmpb4u5g1l0.c'
source_filename = "/tmp/tmpb4u5g1l0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"url.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"answ.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store ptr null, ptr %3, align 8
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %6, ptr %3, align 8
br label %7
7: ; preds = %0, %18, %21
%8 = load ptr, ptr %2, align 8
%9 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i64 @feof(ptr noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %7
br label %24
14: ; preds = %7
%15 = load i8, ptr %4, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = load ptr, ptr %3, align 8
%20 = call i32 @fwrite(ptr noundef @.str.4, i32 noundef 1, i32 noundef 1, ptr noundef %19)
br label %7
21: ; preds = %14
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fwrite(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %22)
br label %7
24: ; preds = %13
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fclose(ptr noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fclose(ptr noundef %27)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb4u5g1l0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"url.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"answ.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store ptr null, ptr %3, align 8
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i64 @feof(ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %.lr.ph
.lr.ph: ; preds = %0
br label %13
._crit_edge: ; preds = %.backedge
br label %12
12: ; preds = %._crit_edge, %0
br label %28
13: ; preds = %.lr.ph, %.backedge
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 10
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = load ptr, ptr %3, align 8
%19 = call i32 @fwrite(ptr noundef @.str.4, i32 noundef 1, i32 noundef 1, ptr noundef %18)
br label %.backedge
.backedge: ; preds = %17, %25
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %20)
%22 = load ptr, ptr %2, align 8
%23 = call i64 @feof(ptr noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %._crit_edge, label %13
25: ; preds = %13
%26 = load ptr, ptr %3, align 8
%27 = call i32 @fwrite(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %26)
br label %.backedge
28: ; preds = %12
%29 = load ptr, ptr %2, align 8
%30 = call i32 @fclose(ptr noundef %29)
%31 = load ptr, ptr %3, align 8
%32 = call i32 @fclose(ptr noundef %31)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyasf9kqh.c'
source_filename = "/tmp/tmpyasf9kqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@WEOF = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyasf9kqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@WEOF = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwt9hoemq.c'
source_filename = "/tmp/tmpwt9hoemq.c"
target datalayout = "e-m:e-p270: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/tmpwt9hoemq.c"
target datalayout = "e-m:e-p270: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/tmpmcd_g8iy.c'
source_filename = "/tmp/tmpmcd_g8iy.c"
target datalayout = "e-m:e-p270: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"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @gets(ptr noundef %3)
%5 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmcd_g8iy.c"
target datalayout = "e-m:e-p270: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"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @gets(ptr noundef %3)
%5 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzmxmf_c0.c'
source_filename = "/tmp/tmpzmxmf_c0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NONBLOCK = 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/tmpzmxmf_c0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NONBLOCK = 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/tmpnuu4apqu.c'
source_filename = "/tmp/tmpnuu4apqu.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Show me the algorithm\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Just let me play\00", align 1
@__const.print_draw_options.draw_choices = private unnamed_addr constant [2 x ptr] [ptr @.str, ptr @.str.1], align 16
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_draw_options(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [2 x ptr], align 16
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 2, ptr %7, align 4
store i32 5, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.print_draw_options.draw_choices, i64 16, i1 false)
%11 = call i32 @init_pair(i32 noundef 2, i32 noundef 4, i32 noundef 0)
%12 = call i32 @init_pair(i32 noundef 1, i32 noundef 7, i32 noundef 0)
%13 = load ptr, ptr %4, align 8
%14 = call i32 @wattron(ptr noundef %13, i32 noundef 16777216)
%15 = load ptr, ptr %4, align 8
%16 = call i32 @box(ptr noundef %15, i32 noundef 0, i32 noundef 0)
store i32 0, ptr %9, align 4
br label %17
17: ; preds = %55, %3
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %58
21: ; preds = %17
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %9, align 4
%24 = add nsw i32 %23, 1
%25 = icmp eq i32 %22, %24
br i1 %25, label %26, label %39
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
%28 = call i32 @wattron(ptr noundef %27, i32 noundef 33554432)
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i32 @mvwprintw(ptr noundef %29, i32 noundef %30, i32 noundef %31, ptr noundef @.str.2, ptr noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = call i32 @wattroff(ptr noundef %37, i32 noundef 33554432)
br label %52
39: ; preds = %21
%40 = load ptr, ptr %4, align 8
%41 = call i32 @wattron(ptr noundef %40, i32 noundef 16777216)
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = call i32 @mvwprintw(ptr noundef %42, i32 noundef %43, i32 noundef %44, ptr noundef @.str.2, ptr noundef %48)
%50 = load ptr, ptr %4, align 8
%51 = call i32 @wattroff(ptr noundef %50, i32 noundef 16777216)
br label %52
52: ; preds = %39, %26
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
br label %55
55: ; preds = %52
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
br label %17, !llvm.loop !6
58: ; preds = %17
%59 = load ptr, ptr %4, align 8
%60 = call i32 @wrefresh(ptr noundef %59)
ret void
}
; 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 @init_pair(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @wattron(ptr noundef, i32 noundef) #2
declare i32 @box(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @mvwprintw(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @wattroff(ptr noundef, i32 noundef) #2
declare i32 @wrefresh(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnuu4apqu.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Show me the algorithm\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Just let me play\00", align 1
@__const.print_draw_options.draw_choices = private unnamed_addr constant [2 x ptr] [ptr @.str, ptr @.str.1], align 16
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_draw_options(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [2 x ptr], align 16
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 2, ptr %7, align 4
store i32 5, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.print_draw_options.draw_choices, i64 16, i1 false)
%11 = call i32 @init_pair(i32 noundef 2, i32 noundef 4, i32 noundef 0)
%12 = call i32 @init_pair(i32 noundef 1, i32 noundef 7, i32 noundef 0)
%13 = load ptr, ptr %4, align 8
%14 = call i32 @wattron(ptr noundef %13, i32 noundef 16777216)
%15 = load ptr, ptr %4, align 8
%16 = call i32 @box(ptr noundef %15, i32 noundef 0, i32 noundef 0)
store i32 0, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %60
.lr.ph: ; preds = %3
br label %20
20: ; preds = %.lr.ph, %54
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %9, align 4
%23 = add nsw i32 %22, 1
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %38
25: ; preds = %20
%26 = load ptr, ptr %4, align 8
%27 = call i32 @wattron(ptr noundef %26, i32 noundef 33554432)
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = call i32 @mvwprintw(ptr noundef %28, i32 noundef %29, i32 noundef %30, ptr noundef @.str.2, ptr noundef %34)
%36 = load ptr, ptr %4, align 8
%37 = call i32 @wattroff(ptr noundef %36, i32 noundef 33554432)
br label %51
38: ; preds = %20
%39 = load ptr, ptr %4, align 8
%40 = call i32 @wattron(ptr noundef %39, i32 noundef 16777216)
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = call i32 @mvwprintw(ptr noundef %41, i32 noundef %42, i32 noundef %43, ptr noundef @.str.2, ptr noundef %47)
%49 = load ptr, ptr %4, align 8
%50 = call i32 @wattroff(ptr noundef %49, i32 noundef 16777216)
br label %51
51: ; preds = %38, %25
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
br label %54
54: ; preds = %51
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %5, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %3
%61 = load ptr, ptr %4, align 8
%62 = call i32 @wrefresh(ptr noundef %61)
ret void
}
; 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 @init_pair(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @wattron(ptr noundef, i32 noundef) #2
declare i32 @box(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @mvwprintw(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @wattroff(ptr noundef, i32 noundef) #2
declare i32 @wrefresh(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9rx211ks.c'
source_filename = "/tmp/tmp9rx211ks.c"
target datalayout = "e-m:e-p270: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 [8 x double] [double 1.000000e+00, double -2.000000e+00, double 3.000000e+00, double -4.000000e+00, double 5.000000e+00, double -6.000000e+00, double 7.000000e+00, double -8.000000e+00], align 16
@.str = private unnamed_addr constant [15 x i8] c"x[ %i ] = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x double], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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 64, i1 false)
store i32 8, ptr %3, align 4
store i32 1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @c_dscal(i32 noundef %6, double noundef 5.000000e+00, ptr noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %20, %0
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 %16
%18 = load double, ptr %17, align 8
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %14, double noundef %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %10, !llvm.loop !6
23: ; preds = %10
%24 = load i32, ptr %1, align 4
ret i32 %24
}
; 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 @c_dscal(i32 noundef, double noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9rx211ks.c"
target datalayout = "e-m:e-p270: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 [8 x double] [double 1.000000e+00, double -2.000000e+00, double 3.000000e+00, double -4.000000e+00, double 5.000000e+00, double -6.000000e+00, double 7.000000e+00, double -8.000000e+00], align 16
@.str = private unnamed_addr constant [15 x i8] c"x[ %i ] = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x double], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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 64, i1 false)
store i32 8, ptr %3, align 4
store i32 1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @c_dscal(i32 noundef %6, double noundef 5.000000e+00, ptr noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 8
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %19
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 %15
%17 = load double, ptr %16, align 8
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %13, double noundef %17)
br label %19
19: ; preds = %12
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 8
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
%25 = load i32, ptr %1, align 4
ret i32 %25
}
; 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 @c_dscal(i32 noundef, double noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgtbbncsn.c'
source_filename = "/tmp/tmpgtbbncsn.c"
target datalayout = "e-m:e-p270: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.i2c_smbus_ioctl_data = type { i32, i8, ptr, i32 }
%union.i2c_smbus_data = type { i64 }
@I2C_SMBUS_BYTE_DATA = dso_local global i32 0, align 4
@I2C_SMBUS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @I2CWrapperReadByte(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca %struct.i2c_smbus_ioctl_data, align 8
%7 = alloca %union.i2c_smbus_data, align 8
store i32 %0, ptr %4, align 4
store i8 %1, ptr %5, align 1
%8 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 0
store i32 1, ptr %8, align 8
%9 = load i8, ptr %5, align 1
%10 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 1
store i8 %9, ptr %10, align 4
%11 = load i32, ptr @I2C_SMBUS_BYTE_DATA, align 4
%12 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 3
store i32 %11, ptr %12, align 8
%13 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 2
store ptr %7, ptr %13, align 8
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr @I2C_SMBUS, align 4
%16 = call i64 @ioctl(i32 noundef %14, i32 noundef %15, ptr noundef %6)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 -1, ptr %3, align 4
br label %22
19: ; preds = %2
%20 = load i64, ptr %7, align 8
%21 = trunc i64 %20 to i32
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %19, %18
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgtbbncsn.c"
target datalayout = "e-m:e-p270: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.i2c_smbus_ioctl_data = type { i32, i8, ptr, i32 }
%union.i2c_smbus_data = type { i64 }
@I2C_SMBUS_BYTE_DATA = dso_local global i32 0, align 4
@I2C_SMBUS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @I2CWrapperReadByte(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca %struct.i2c_smbus_ioctl_data, align 8
%7 = alloca %union.i2c_smbus_data, align 8
store i32 %0, ptr %4, align 4
store i8 %1, ptr %5, align 1
%8 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 0
store i32 1, ptr %8, align 8
%9 = load i8, ptr %5, align 1
%10 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 1
store i8 %9, ptr %10, align 4
%11 = load i32, ptr @I2C_SMBUS_BYTE_DATA, align 4
%12 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 3
store i32 %11, ptr %12, align 8
%13 = getelementptr inbounds %struct.i2c_smbus_ioctl_data, ptr %6, i32 0, i32 2
store ptr %7, ptr %13, align 8
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr @I2C_SMBUS, align 4
%16 = call i64 @ioctl(i32 noundef %14, i32 noundef %15, ptr noundef %6)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 -1, ptr %3, align 4
br label %22
19: ; preds = %2
%20 = load i64, ptr %7, align 8
%21 = trunc i64 %20 to i32
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %19, %18
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8mze93bp.c'
source_filename = "/tmp/tmp8mze93bp.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"dmsksqrt\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 10000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8mze93bp.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"dmsksqrt\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 10000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdlg9nhew.c'
source_filename = "/tmp/tmpdlg9nhew.c"
target datalayout = "e-m:e-p270: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/tmpdlg9nhew.c"
target datalayout = "e-m:e-p270: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/tmpg_4kig9b.c'
source_filename = "/tmp/tmpg_4kig9b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLS = dso_local global i32 0, align 4
@LINES = dso_local global i32 0, align 4
@stdscr = 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/tmpg_4kig9b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLS = dso_local global i32 0, align 4
@LINES = dso_local global i32 0, align 4
@stdscr = 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/tmpqtauh4ux.c'
source_filename = "/tmp/tmpqtauh4ux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_DONE = dso_local global i32 0, align 4
@SQLITE_ROW = dso_local global i32 0, align 4
@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/tmpqtauh4ux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_DONE = dso_local global i32 0, align 4
@SQLITE_ROW = dso_local global i32 0, align 4
@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/tmpnw3q2deq.c'
source_filename = "/tmp/tmpnw3q2deq.c"
target datalayout = "e-m:e-p270: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 @encrypt6(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca [256 x i8], align 16
%15 = alloca [256 x i8], align 16
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i64, align 8
%21 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%22 = load i64, ptr %11, align 8
%23 = icmp ne i64 %22, 32
br i1 %23, label %24, label %25
24: ; preds = %6
store i32 -1, ptr %7, align 4
br label %153
25: ; preds = %6
%26 = load i64, ptr %9, align 8
%27 = load i64, ptr %9, align 8
%28 = urem i64 %27, 256
%29 = sub i64 256, %28
%30 = add i64 %26, %29
store i64 %30, ptr %16, align 8
%31 = load i64, ptr %16, align 8
%32 = add i64 %31, 32
store i64 %32, ptr %17, align 8
%33 = load ptr, ptr %12, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %38
35: ; preds = %25
%36 = load i64, ptr %17, align 8
%37 = load ptr, ptr %13, align 8
store i64 %36, ptr %37, align 8
store i32 0, ptr %7, align 4
br label %153
38: ; preds = %25
%39 = load ptr, ptr %13, align 8
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr %17, align 8
%42 = icmp ult i64 %40, %41
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = load i64, ptr %17, align 8
%45 = load ptr, ptr %13, align 8
store i64 %44, ptr %45, align 8
store i32 -1, ptr %7, align 4
br label %153
46: ; preds = %38
store i32 0, ptr %18, align 4
br label %47
47: ; preds = %72, %46
%48 = load i32, ptr %18, align 4
%49 = icmp slt i32 %48, 8
br i1 %49, label %50, label %75
50: ; preds = %47
store i32 0, ptr %19, align 4
br label %51
51: ; preds = %68, %50
%52 = load i32, ptr %19, align 4
%53 = icmp slt i32 %52, 32
br i1 %53, label %54, label %71
54: ; preds = %51
%55 = load ptr, ptr %10, align 8
%56 = load i32, ptr %19, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = load i8, ptr %58, align 1
%60 = load i32, ptr %18, align 4
%61 = call zeroext i8 @rotl8(i8 noundef zeroext %59, i32 noundef %60)
%62 = load i32, ptr %18, align 4
%63 = mul nsw i32 32, %62
%64 = load i32, ptr %19, align 4
%65 = add nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %66
store i8 %61, ptr %67, align 1
br label %68
68: ; preds = %54
%69 = load i32, ptr %19, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %19, align 4
br label %51, !llvm.loop !6
71: ; preds = %51
br label %72
72: ; preds = %71
%73 = load i32, ptr %18, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %18, align 4
br label %47, !llvm.loop !8
75: ; preds = %47
%76 = load ptr, ptr %12, align 8
%77 = load ptr, ptr %10, align 8
%78 = call i32 @memcpy(ptr noundef %76, ptr noundef %77, i32 noundef 32)
%79 = load ptr, ptr %12, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 32
%81 = load ptr, ptr %8, align 8
%82 = load i64, ptr %9, align 8
%83 = trunc i64 %82 to i32
%84 = call i32 @memcpy(ptr noundef %80, ptr noundef %81, i32 noundef %83)
%85 = load i64, ptr %16, align 8
%86 = load i64, ptr %9, align 8
%87 = icmp ugt i64 %85, %86
br i1 %87, label %88, label %97
88: ; preds = %75
%89 = load ptr, ptr %12, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 32
%91 = load i64, ptr %9, align 8
%92 = getelementptr inbounds i8, ptr %90, i64 %91
%93 = load i64, ptr %16, align 8
%94 = load i64, ptr %9, align 8
%95 = sub i64 %93, %94
%96 = call i32 @memset(ptr noundef %92, i32 noundef 0, i64 noundef %95)
br label %97
97: ; preds = %88, %75
%98 = load i64, ptr %9, align 8
%99 = urem i64 %98, 256
%100 = sub i64 256, %99
%101 = trunc i64 %100 to i8
%102 = load ptr, ptr %12, align 8
%103 = load i64, ptr %17, align 8
%104 = sub i64 %103, 1
%105 = getelementptr inbounds i8, ptr %102, i64 %104
store i8 %101, ptr %105, align 1
store i64 32, ptr %20, align 8
br label %106
106: ; preds = %147, %97
%107 = load i64, ptr %20, align 8
%108 = load i64, ptr %17, align 8
%109 = icmp ult i64 %107, %108
br i1 %109, label %110, label %150
110: ; preds = %106
store i32 0, ptr %21, align 4
br label %111
111: ; preds = %130, %110
%112 = load i32, ptr %21, align 4
%113 = icmp slt i32 %112, 256
br i1 %113, label %114, label %133
114: ; preds = %111
%115 = load i32, ptr %21, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %116
%118 = load i8, ptr %117, align 1
%119 = zext i8 %118 to i32
%120 = load ptr, ptr %12, align 8
%121 = load i64, ptr %20, align 8
%122 = load i32, ptr %21, align 4
%123 = sext i32 %122 to i64
%124 = add i64 %121, %123
%125 = getelementptr inbounds i8, ptr %120, i64 %124
%126 = load i8, ptr %125, align 1
%127 = zext i8 %126 to i32
%128 = xor i32 %127, %119
%129 = trunc i32 %128 to i8
store i8 %129, ptr %125, align 1
br label %130
130: ; preds = %114
%131 = load i32, ptr %21, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %21, align 4
br label %111, !llvm.loop !9
133: ; preds = %111
%134 = load ptr, ptr %12, align 8
%135 = load i64, ptr %20, align 8
%136 = getelementptr inbounds i8, ptr %134, i64 %135
%137 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
%138 = call i32 @sub_9E9D8(ptr noundef %136, ptr noundef %137)
%139 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 0
%140 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
%141 = call i32 @memcpy(ptr noundef %139, ptr noundef %140, i32 noundef 256)
%142 = load ptr, ptr %12, align 8
%143 = load i64, ptr %20, align 8
%144 = getelementptr inbounds i8, ptr %142, i64 %143
%145 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
%146 = call i32 @memcpy(ptr noundef %144, ptr noundef %145, i32 noundef 256)
br label %147
147: ; preds = %133
%148 = load i64, ptr %20, align 8
%149 = add i64 %148, 256
store i64 %149, ptr %20, align 8
br label %106, !llvm.loop !10
150: ; preds = %106
%151 = load i64, ptr %17, align 8
%152 = load ptr, ptr %13, align 8
store i64 %151, ptr %152, align 8
store i32 0, ptr %7, align 4
br label %153
153: ; preds = %150, %43, %35, %24
%154 = load i32, ptr %7, align 4
ret i32 %154
}
declare zeroext i8 @rotl8(i8 noundef zeroext, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @sub_9E9D8(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnw3q2deq.c"
target datalayout = "e-m:e-p270: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 @encrypt6(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca [256 x i8], align 16
%15 = alloca [256 x i8], align 16
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i64, align 8
%21 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%22 = load i64, ptr %11, align 8
%23 = icmp ne i64 %22, 32
br i1 %23, label %24, label %25
24: ; preds = %6
store i32 -1, ptr %7, align 4
br label %158
25: ; preds = %6
%26 = load i64, ptr %9, align 8
%27 = load i64, ptr %9, align 8
%28 = urem i64 %27, 256
%29 = sub i64 256, %28
%30 = add i64 %26, %29
store i64 %30, ptr %16, align 8
%31 = load i64, ptr %16, align 8
%32 = add i64 %31, 32
store i64 %32, ptr %17, align 8
%33 = load ptr, ptr %12, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %38
35: ; preds = %25
%36 = load i64, ptr %17, align 8
%37 = load ptr, ptr %13, align 8
store i64 %36, ptr %37, align 8
store i32 0, ptr %7, align 4
br label %158
38: ; preds = %25
%39 = load ptr, ptr %13, align 8
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr %17, align 8
%42 = icmp ult i64 %40, %41
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = load i64, ptr %17, align 8
%45 = load ptr, ptr %13, align 8
store i64 %44, ptr %45, align 8
store i32 -1, ptr %7, align 4
br label %158
46: ; preds = %38
store i32 0, ptr %18, align 4
%47 = load i32, ptr %18, align 4
%48 = icmp slt i32 %47, 8
br i1 %48, label %.lr.ph2, label %77
.lr.ph2: ; preds = %46
br label %49
49: ; preds = %.lr.ph2, %72
store i32 0, ptr %19, align 4
%50 = load i32, ptr %19, align 4
%51 = icmp slt i32 %50, 32
br i1 %51, label %.lr.ph, label %71
.lr.ph: ; preds = %49
br label %52
52: ; preds = %.lr.ph, %66
%53 = load ptr, ptr %10, align 8
%54 = load i32, ptr %19, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = load i32, ptr %18, align 4
%59 = call zeroext i8 @rotl8(i8 noundef zeroext %57, i32 noundef %58)
%60 = load i32, ptr %18, align 4
%61 = mul nsw i32 32, %60
%62 = load i32, ptr %19, align 4
%63 = add nsw i32 %61, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %64
store i8 %59, ptr %65, align 1
br label %66
66: ; preds = %52
%67 = load i32, ptr %19, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %19, align 4
%69 = load i32, ptr %19, align 4
%70 = icmp slt i32 %69, 32
br i1 %70, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %71
71: ; preds = %._crit_edge, %49
br label %72
72: ; preds = %71
%73 = load i32, ptr %18, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %18, align 4
%75 = load i32, ptr %18, align 4
%76 = icmp slt i32 %75, 8
br i1 %76, label %49, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %72
br label %77
77: ; preds = %._crit_edge3, %46
%78 = load ptr, ptr %12, align 8
%79 = load ptr, ptr %10, align 8
%80 = call i32 @memcpy(ptr noundef %78, ptr noundef %79, i32 noundef 32)
%81 = load ptr, ptr %12, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 32
%83 = load ptr, ptr %8, align 8
%84 = load i64, ptr %9, align 8
%85 = trunc i64 %84 to i32
%86 = call i32 @memcpy(ptr noundef %82, ptr noundef %83, i32 noundef %85)
%87 = load i64, ptr %16, align 8
%88 = load i64, ptr %9, align 8
%89 = icmp ugt i64 %87, %88
br i1 %89, label %90, label %99
90: ; preds = %77
%91 = load ptr, ptr %12, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 32
%93 = load i64, ptr %9, align 8
%94 = getelementptr inbounds i8, ptr %92, i64 %93
%95 = load i64, ptr %16, align 8
%96 = load i64, ptr %9, align 8
%97 = sub i64 %95, %96
%98 = call i32 @memset(ptr noundef %94, i32 noundef 0, i64 noundef %97)
br label %99
99: ; preds = %90, %77
%100 = load i64, ptr %9, align 8
%101 = urem i64 %100, 256
%102 = sub i64 256, %101
%103 = trunc i64 %102 to i8
%104 = load ptr, ptr %12, align 8
%105 = load i64, ptr %17, align 8
%106 = sub i64 %105, 1
%107 = getelementptr inbounds i8, ptr %104, i64 %106
store i8 %103, ptr %107, align 1
store i64 32, ptr %20, align 8
%108 = load i64, ptr %20, align 8
%109 = load i64, ptr %17, align 8
%110 = icmp ult i64 %108, %109
br i1 %110, label %.lr.ph8, label %155
.lr.ph8: ; preds = %99
br label %111
111: ; preds = %.lr.ph8, %149
store i32 0, ptr %21, align 4
%112 = load i32, ptr %21, align 4
%113 = icmp slt i32 %112, 256
br i1 %113, label %.lr.ph5, label %135
.lr.ph5: ; preds = %111
br label %114
114: ; preds = %.lr.ph5, %130
%115 = load i32, ptr %21, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %116
%118 = load i8, ptr %117, align 1
%119 = zext i8 %118 to i32
%120 = load ptr, ptr %12, align 8
%121 = load i64, ptr %20, align 8
%122 = load i32, ptr %21, align 4
%123 = sext i32 %122 to i64
%124 = add i64 %121, %123
%125 = getelementptr inbounds i8, ptr %120, i64 %124
%126 = load i8, ptr %125, align 1
%127 = zext i8 %126 to i32
%128 = xor i32 %127, %119
%129 = trunc i32 %128 to i8
store i8 %129, ptr %125, align 1
br label %130
130: ; preds = %114
%131 = load i32, ptr %21, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %21, align 4
%133 = load i32, ptr %21, align 4
%134 = icmp slt i32 %133, 256
br i1 %134, label %114, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %130
br label %135
135: ; preds = %._crit_edge6, %111
%136 = load ptr, ptr %12, align 8
%137 = load i64, ptr %20, align 8
%138 = getelementptr inbounds i8, ptr %136, i64 %137
%139 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
%140 = call i32 @sub_9E9D8(ptr noundef %138, ptr noundef %139)
%141 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 0
%142 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
%143 = call i32 @memcpy(ptr noundef %141, ptr noundef %142, i32 noundef 256)
%144 = load ptr, ptr %12, align 8
%145 = load i64, ptr %20, align 8
%146 = getelementptr inbounds i8, ptr %144, i64 %145
%147 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
%148 = call i32 @memcpy(ptr noundef %146, ptr noundef %147, i32 noundef 256)
br label %149
149: ; preds = %135
%150 = load i64, ptr %20, align 8
%151 = add i64 %150, 256
store i64 %151, ptr %20, align 8
%152 = load i64, ptr %20, align 8
%153 = load i64, ptr %17, align 8
%154 = icmp ult i64 %152, %153
br i1 %154, label %111, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %149
br label %155
155: ; preds = %._crit_edge9, %99
%156 = load i64, ptr %17, align 8
%157 = load ptr, ptr %13, align 8
store i64 %156, ptr %157, align 8
store i32 0, ptr %7, align 4
br label %158
158: ; preds = %155, %43, %35, %24
%159 = load i32, ptr %7, align 4
ret i32 %159
}
declare zeroext i8 @rotl8(i8 noundef zeroext, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @sub_9E9D8(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpgh0augqa.c'
source_filename = "/tmp/tmpgh0augqa.c"
target datalayout = "e-m:e-p270: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"crossroad.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"crossroad.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Cow: %d; side: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"Crossings confirmed: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %2, align 8
%16 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %2, align 8
%18 = call i32 @FLine(ptr noundef %17)
%19 = call i32 @strtoi(i32 noundef %18)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %5, align 8
%23 = alloca i32, i64 %21, align 16
store i64 %21, ptr %6, align 8
%24 = load i32, ptr %4, align 4
%25 = zext i32 %24 to i64
%26 = alloca i32, i64 %25, align 16
store i64 %25, ptr %7, align 8
%27 = load i32, ptr %4, align 4
%28 = zext i32 %27 to i64
%29 = alloca i32, i64 %28, align 16
store i64 %28, ptr %8, align 8
store i32 0, ptr %14, align 4
%30 = load i32, ptr %4, align 4
%31 = call i32 @zero(ptr noundef %23, i32 noundef %30)
store i32 0, ptr %11, align 4
br label %32
32: ; preds = %36, %0
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %42
36: ; preds = %32
%37 = load i32, ptr %11, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %26, i64 %38
store i32 2, ptr %39, align 4
%40 = load i32, ptr %11, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %11, align 4
br label %32, !llvm.loop !6
42: ; preds = %32
%43 = load i32, ptr %4, align 4
%44 = call i32 @zero(ptr noundef %29, i32 noundef %43)
%45 = load i32, ptr %4, align 4
%46 = call i32 @printfArr(ptr noundef %23, i32 noundef %45)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%48 = load i32, ptr %4, align 4
%49 = call i32 @printfArr(ptr noundef %26, i32 noundef %48)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%51 = load i32, ptr %4, align 4
%52 = call i32 @printfArr(ptr noundef %29, i32 noundef %51)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
br label %54
54: ; preds = %137, %42
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %4, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %140
58: ; preds = %54
%59 = load ptr, ptr %2, align 8
%60 = call i32 @FLineSpace(ptr noundef %59)
%61 = call i32 @strtoi(i32 noundef %60)
store i32 %61, ptr %10, align 4
%62 = load ptr, ptr %2, align 8
%63 = call i32 @FLine(ptr noundef %62)
%64 = call i32 @strtoi(i32 noundef %63)
store i32 %64, ptr %12, align 4
%65 = load i32, ptr %10, align 4
%66 = load i32, ptr %12, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %65, i32 noundef %66)
%68 = load i32, ptr %10, align 4
%69 = load i32, ptr %4, align 4
%70 = call i64 @intExists(i32 noundef %68, ptr noundef %23, i32 noundef %69)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %116
72: ; preds = %58
store i32 0, ptr %11, align 4
br label %73
73: ; preds = %79, %72
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %23, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %73
%80 = load i32, ptr %11, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %11, align 4
br label %73, !llvm.loop !8
82: ; preds = %73
%83 = load i32, ptr %10, align 4
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %23, i64 %85
store i32 %83, ptr %86, align 4
%87 = load i32, ptr %11, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %26, i64 %88
%90 = load i32, ptr %89, align 4
%91 = icmp eq i32 %90, 2
br i1 %91, label %92, label %97
92: ; preds = %82
%93 = load i32, ptr %12, align 4
%94 = load i32, ptr %11, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %26, i64 %95
store i32 %93, ptr %96, align 4
br label %115
97: ; preds = %82
%98 = load i32, ptr %11, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %26, i64 %99
%101 = load i32, ptr %100, align 4
%102 = load i32, ptr %12, align 4
%103 = icmp ne i32 %101, %102
br i1 %103, label %104, label %114
104: ; preds = %97
%105 = load i32, ptr %11, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %29, i64 %106
%108 = load i32, ptr %107, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %107, align 4
%110 = load i32, ptr %12, align 4
%111 = load i32, ptr %11, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, ptr %26, i64 %112
store i32 %110, ptr %113, align 4
br label %114
114: ; preds = %104, %97
br label %115
115: ; preds = %114, %92
br label %136
116: ; preds = %58
%117 = load i32, ptr %10, align 4
%118 = call i32 @intLoc(i32 noundef %117, ptr noundef %23)
store i32 %118, ptr %13, align 4
%119 = load i32, ptr %13, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, ptr %26, i64 %120
%122 = load i32, ptr %121, align 4
%123 = load i32, ptr %12, align 4
%124 = icmp ne i32 %122, %123
br i1 %124, label %125, label %135
125: ; preds = %116
%126 = load i32, ptr %13, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %29, i64 %127
%129 = load i32, ptr %128, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %128, align 4
%131 = load i32, ptr %12, align 4
%132 = load i32, ptr %13, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, ptr %26, i64 %133
store i32 %131, ptr %134, align 4
br label %135
135: ; preds = %125, %116
br label %136
136: ; preds = %135, %115
br label %137
137: ; preds = %136
%138 = load i32, ptr %9, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %9, align 4
br label %54, !llvm.loop !9
140: ; preds = %54
%141 = load i32, ptr %4, align 4
%142 = call i32 @printfArr(ptr noundef %23, i32 noundef %141)
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%144 = load i32, ptr %4, align 4
%145 = call i32 @printfArr(ptr noundef %26, i32 noundef %144)
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%147 = load i32, ptr %4, align 4
%148 = call i32 @printfArr(ptr noundef %29, i32 noundef %147)
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %11, align 4
br label %150
150: ; preds = %154, %140
%151 = load i32, ptr %11, align 4
%152 = load i32, ptr %4, align 4
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %163
154: ; preds = %150
%155 = load i32, ptr %11, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i32, ptr %29, i64 %156
%158 = load i32, ptr %157, align 4
%159 = load i32, ptr %14, align 4
%160 = add nsw i32 %159, %158
store i32 %160, ptr %14, align 4
%161 = load i32, ptr %11, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %11, align 4
br label %150, !llvm.loop !10
163: ; preds = %150
%164 = load i32, ptr %14, align 4
%165 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %164)
%166 = load ptr, ptr %3, align 8
%167 = load i32, ptr %14, align 4
%168 = call i32 @fprintf(ptr noundef %166, ptr noundef @.str.7, i32 noundef %167)
%169 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %169)
%170 = load i32, ptr %1, align 4
ret i32 %170
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @strtoi(i32 noundef) #1
declare i32 @FLine(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @zero(ptr noundef, i32 noundef) #1
declare i32 @printfArr(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @FLineSpace(ptr noundef) #1
declare i64 @intExists(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @intLoc(i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 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"}
!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/tmpgh0augqa.c"
target datalayout = "e-m:e-p270: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"crossroad.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"crossroad.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Cow: %d; side: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"Crossings confirmed: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %2, align 8
%16 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %2, align 8
%18 = call i32 @FLine(ptr noundef %17)
%19 = call i32 @strtoi(i32 noundef %18)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %5, align 8
%23 = alloca i32, i64 %21, align 16
store i64 %21, ptr %6, align 8
%24 = load i32, ptr %4, align 4
%25 = zext i32 %24 to i64
%26 = alloca i32, i64 %25, align 16
store i64 %25, ptr %7, align 8
%27 = load i32, ptr %4, align 4
%28 = zext i32 %27 to i64
%29 = alloca i32, i64 %28, align 16
store i64 %28, ptr %8, align 8
store i32 0, ptr %14, align 4
%30 = load i32, ptr %4, align 4
%31 = call i32 @zero(ptr noundef %23, i32 noundef %30)
store i32 0, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph, label %44
.lr.ph: ; preds = %0
br label %35
35: ; preds = %.lr.ph, %35
%36 = load i32, ptr %11, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %26, i64 %37
store i32 2, ptr %38, align 4
%39 = load i32, ptr %11, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %44
44: ; preds = %._crit_edge, %0
%45 = load i32, ptr %4, align 4
%46 = call i32 @zero(ptr noundef %29, i32 noundef %45)
%47 = load i32, ptr %4, align 4
%48 = call i32 @printfArr(ptr noundef %23, i32 noundef %47)
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%50 = load i32, ptr %4, align 4
%51 = call i32 @printfArr(ptr noundef %26, i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%53 = load i32, ptr %4, align 4
%54 = call i32 @printfArr(ptr noundef %29, i32 noundef %53)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
%56 = load i32, ptr %9, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph5, label %148
.lr.ph5: ; preds = %44
br label %59
59: ; preds = %.lr.ph5, %142
%60 = load ptr, ptr %2, align 8
%61 = call i32 @FLineSpace(ptr noundef %60)
%62 = call i32 @strtoi(i32 noundef %61)
store i32 %62, ptr %10, align 4
%63 = load ptr, ptr %2, align 8
%64 = call i32 @FLine(ptr noundef %63)
%65 = call i32 @strtoi(i32 noundef %64)
store i32 %65, ptr %12, align 4
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %12, align 4
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %66, i32 noundef %67)
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %4, align 4
%71 = call i64 @intExists(i32 noundef %69, ptr noundef %23, i32 noundef %70)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %121
73: ; preds = %59
store i32 0, ptr %11, align 4
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %23, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %.lr.ph2, label %87
.lr.ph2: ; preds = %73
br label %79
79: ; preds = %.lr.ph2, %79
%80 = load i32, ptr %11, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %11, align 4
%82 = load i32, ptr %11, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %23, i64 %83
%85 = load i32, ptr %84, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %79, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %79
br label %87
87: ; preds = %._crit_edge3, %73
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %11, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %23, i64 %90
store i32 %88, ptr %91, align 4
%92 = load i32, ptr %11, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %26, i64 %93
%95 = load i32, ptr %94, align 4
%96 = icmp eq i32 %95, 2
br i1 %96, label %97, label %102
97: ; preds = %87
%98 = load i32, ptr %12, align 4
%99 = load i32, ptr %11, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %26, i64 %100
store i32 %98, ptr %101, align 4
br label %120
102: ; preds = %87
%103 = load i32, ptr %11, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %26, i64 %104
%106 = load i32, ptr %105, align 4
%107 = load i32, ptr %12, align 4
%108 = icmp ne i32 %106, %107
br i1 %108, label %109, label %119
109: ; preds = %102
%110 = load i32, ptr %11, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, ptr %29, i64 %111
%113 = load i32, ptr %112, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %112, align 4
%115 = load i32, ptr %12, align 4
%116 = load i32, ptr %11, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i32, ptr %26, i64 %117
store i32 %115, ptr %118, align 4
br label %119
119: ; preds = %109, %102
br label %120
120: ; preds = %119, %97
br label %141
121: ; preds = %59
%122 = load i32, ptr %10, align 4
%123 = call i32 @intLoc(i32 noundef %122, ptr noundef %23)
store i32 %123, ptr %13, align 4
%124 = load i32, ptr %13, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %26, i64 %125
%127 = load i32, ptr %126, align 4
%128 = load i32, ptr %12, align 4
%129 = icmp ne i32 %127, %128
br i1 %129, label %130, label %140
130: ; preds = %121
%131 = load i32, ptr %13, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i32, ptr %29, i64 %132
%134 = load i32, ptr %133, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %133, align 4
%136 = load i32, ptr %12, align 4
%137 = load i32, ptr %13, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i32, ptr %26, i64 %138
store i32 %136, ptr %139, align 4
br label %140
140: ; preds = %130, %121
br label %141
141: ; preds = %140, %120
br label %142
142: ; preds = %141
%143 = load i32, ptr %9, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %9, align 4
%145 = load i32, ptr %9, align 4
%146 = load i32, ptr %4, align 4
%147 = icmp slt i32 %145, %146
br i1 %147, label %59, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %142
br label %148
148: ; preds = %._crit_edge6, %44
%149 = load i32, ptr %4, align 4
%150 = call i32 @printfArr(ptr noundef %23, i32 noundef %149)
%151 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%152 = load i32, ptr %4, align 4
%153 = call i32 @printfArr(ptr noundef %26, i32 noundef %152)
%154 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%155 = load i32, ptr %4, align 4
%156 = call i32 @printfArr(ptr noundef %29, i32 noundef %155)
%157 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %11, align 4
%158 = load i32, ptr %11, align 4
%159 = load i32, ptr %4, align 4
%160 = icmp slt i32 %158, %159
br i1 %160, label %.lr.ph8, label %173
.lr.ph8: ; preds = %148
br label %161
161: ; preds = %.lr.ph8, %161
%162 = load i32, ptr %11, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i32, ptr %29, i64 %163
%165 = load i32, ptr %164, align 4
%166 = load i32, ptr %14, align 4
%167 = add nsw i32 %166, %165
store i32 %167, ptr %14, align 4
%168 = load i32, ptr %11, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %11, align 4
%170 = load i32, ptr %11, align 4
%171 = load i32, ptr %4, align 4
%172 = icmp slt i32 %170, %171
br i1 %172, label %161, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %161
br label %173
173: ; preds = %._crit_edge9, %148
%174 = load i32, ptr %14, align 4
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %174)
%176 = load ptr, ptr %3, align 8
%177 = load i32, ptr %14, align 4
%178 = call i32 @fprintf(ptr noundef %176, ptr noundef @.str.7, i32 noundef %177)
%179 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %179)
%180 = load i32, ptr %1, align 4
ret i32 %180
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @strtoi(i32 noundef) #1
declare i32 @FLine(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @zero(ptr noundef, i32 noundef) #1
declare i32 @printfArr(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @FLineSpace(ptr noundef) #1
declare i64 @intExists(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @intLoc(i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmphb08du5r.c'
source_filename = "/tmp/tmphb08du5r.c"
target datalayout = "e-m:e-p270: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.five.str = private unnamed_addr constant [12 x i8] c"zhangrxiang\00", align 1
@.str = private unnamed_addr constant [12 x i8] c"str --> %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"str[0] --> %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"*p --> %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"*(++p) --> %c\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"++p --> %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @five() #0 {
%1 = alloca [12 x i8], align 1
%2 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.five.str, i64 12, i1 false)
%3 = getelementptr inbounds [12 x i8], ptr %1, i64 0, i64 0
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [12 x i8], ptr %1, i64 0, i64 0
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7)
%9 = getelementptr inbounds [12 x i8], ptr %1, i64 0, i64 0
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %2, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %18)
ret void
}
; 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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmphb08du5r.c"
target datalayout = "e-m:e-p270: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.five.str = private unnamed_addr constant [12 x i8] c"zhangrxiang\00", align 1
@.str = private unnamed_addr constant [12 x i8] c"str --> %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"str[0] --> %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"*p --> %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"*(++p) --> %c\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"++p --> %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @five() #0 {
%1 = alloca [12 x i8], align 1
%2 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.five.str, i64 12, i1 false)
%3 = getelementptr inbounds [12 x i8], ptr %1, i64 0, i64 0
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [12 x i8], ptr %1, i64 0, i64 0
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7)
%9 = getelementptr inbounds [12 x i8], ptr %1, i64 0, i64 0
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %2, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %18)
ret void
}
; 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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmpm9e40vqo.c'
source_filename = "/tmp/tmpm9e40vqo.c"
target datalayout = "e-m:e-p270: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/tmpm9e40vqo.c"
target datalayout = "e-m:e-p270: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/tmpytro1650.c'
source_filename = "/tmp/tmpytro1650.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c" Font:\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 void @U_WMRCREATEFONTINDIRECT_print(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @U_WMRCREATEFONTINDIRECT_get(ptr noundef %5, ptr noundef %3)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = call i32 @printf(ptr noundef @.str)
%11 = load ptr, ptr %3, align 8
%12 = call i32 @font_print(ptr noundef %11)
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %9, %1
ret void
}
declare i32 @U_WMRCREATEFONTINDIRECT_get(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @font_print(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/tmpytro1650.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c" Font:\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 void @U_WMRCREATEFONTINDIRECT_print(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @U_WMRCREATEFONTINDIRECT_get(ptr noundef %5, ptr noundef %3)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = call i32 @printf(ptr noundef @.str)
%11 = load ptr, ptr %3, align 8
%12 = call i32 @font_print(ptr noundef %11)
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %9, %1
ret void
}
declare i32 @U_WMRCREATEFONTINDIRECT_get(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @font_print(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/tmpzajjyl4i.c'
source_filename = "/tmp/tmpzajjyl4i.c"
target datalayout = "e-m:e-p270: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/tmpzajjyl4i.c"
target datalayout = "e-m:e-p270: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/tmpkhcz95rd.c'
source_filename = "/tmp/tmpkhcz95rd.c"
target datalayout = "e-m:e-p270: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 @ke_ecdh_public(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call ptr @ecdh_compute_public_key(ptr noundef %9, i64 noundef %10, ptr noundef %11, i64 noundef %12)
ret ptr %13
}
declare ptr @ecdh_compute_public_key(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkhcz95rd.c"
target datalayout = "e-m:e-p270: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 @ke_ecdh_public(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call ptr @ecdh_compute_public_key(ptr noundef %9, i64 noundef %10, ptr noundef %11, i64 noundef %12)
ret ptr %13
}
declare ptr @ecdh_compute_public_key(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy2fncx8h.c'
source_filename = "/tmp/tmpy2fncx8h.c"
target datalayout = "e-m:e-p270: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 @nfdis_rndc(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %25, %5
%13 = load i32, ptr %11, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load double, ptr %7, align 8
%18 = load double, ptr %8, align 8
%19 = load double, ptr %9, align 8
%20 = call double @gennf(double noundef %17, double noundef %18, double noundef %19)
%21 = load ptr, ptr %10, align 8
%22 = load i32, ptr %11, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
store double %20, ptr %24, align 8
br label %25
25: ; preds = %16
%26 = load i32, ptr %11, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %11, align 4
br label %12, !llvm.loop !6
28: ; preds = %12
ret void
}
declare double @gennf(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy2fncx8h.c"
target datalayout = "e-m:e-p270: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 @nfdis_rndc(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %11, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %30
.lr.ph: ; preds = %5
br label %15
15: ; preds = %.lr.ph, %24
%16 = load double, ptr %7, align 8
%17 = load double, ptr %8, align 8
%18 = load double, ptr %9, align 8
%19 = call double @gennf(double noundef %16, double noundef %17, double noundef %18)
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %11, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
store double %19, ptr %23, align 8
br label %24
24: ; preds = %15
%25 = load i32, ptr %11, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %11, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %5
ret void
}
declare double @gennf(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4sm8y0e4.c'
source_filename = "/tmp/tmp4sm8y0e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"0x%X, \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_file(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 i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 -1, ptr %2, align 4
br label %27
12: ; preds = %1
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %21, %12
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 384
br i1 %15, label %16, label %24
16: ; preds = %13
store i8 0, ptr %6, align 1
%17 = load ptr, ptr %4, align 8
%18 = call i32 @fread(ptr noundef %6, i32 noundef 1, i32 noundef 1, ptr noundef %17)
%19 = load i8, ptr %6, align 1
%20 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %19)
br label %21
21: ; preds = %16
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %13, !llvm.loop !6
24: ; preds = %13
%25 = load ptr, ptr %4, align 8
%26 = call i32 @fclose(ptr noundef %25)
store i32 0, ptr %2, align 4
br label %27
27: ; preds = %24, %11
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4sm8y0e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"0x%X, \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_file(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 i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 -1, ptr %2, align 4
br label %28
12: ; preds = %1
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 384
br i1 %14, label %.lr.ph, label %25
.lr.ph: ; preds = %12
br label %15
15: ; preds = %.lr.ph, %20
store i8 0, ptr %6, align 1
%16 = load ptr, ptr %4, align 8
%17 = call i32 @fread(ptr noundef %6, i32 noundef 1, i32 noundef 1, ptr noundef %16)
%18 = load i8, ptr %6, align 1
%19 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %18)
br label %20
20: ; preds = %15
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %23, 384
br i1 %24, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %12
%26 = load ptr, ptr %4, align 8
%27 = call i32 @fclose(ptr noundef %26)
store i32 0, ptr %2, align 4
br label %28
28: ; preds = %25, %11
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgf6o0qox.c'
source_filename = "/tmp/tmpgf6o0qox.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"%s: Version Manual build on Linux x86_64\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_banner(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgf6o0qox.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"%s: Version Manual build on Linux x86_64\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_banner(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx_epwgne.c'
source_filename = "/tmp/tmpx_epwgne.c"
target datalayout = "e-m:e-p270: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 @screen_done() #0 {
%1 = call i32 (...) @tgi_done()
ret void
}
declare i32 @tgi_done(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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_epwgne.c"
target datalayout = "e-m:e-p270: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 @screen_done() #0 {
%1 = call i32 (...) @tgi_done()
ret void
}
declare i32 @tgi_done(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmph2xgkkrw.c'
source_filename = "/tmp/tmph2xgkkrw.c"
target datalayout = "e-m:e-p270: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 @checker_read_corr_double(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 = load ptr, ptr %6, align 8
%10 = call i32 @checker_read_double(i32 noundef 2, ptr noundef %7, i32 noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @checker_read_double(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph2xgkkrw.c"
target datalayout = "e-m:e-p270: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 @checker_read_corr_double(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 = load ptr, ptr %6, align 8
%10 = call i32 @checker_read_double(i32 noundef 2, ptr noundef %7, i32 noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @checker_read_double(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkxkvqray.c'
source_filename = "/tmp/tmpkxkvqray.c"
target datalayout = "e-m:e-p270: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 @showLedDisplay(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %6, 360
br i1 %7, label %8, label %10
8: ; preds = %5, %1
%9 = call i32 @registerWrite(i32 noundef 0)
br label %163
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 11
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @registerWrite(i32 noundef 1)
br label %162
18: ; preds = %13, %10
%19 = load i32, ptr %2, align 4
%20 = icmp sgt i32 %19, 349
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = icmp sle i32 %22, 360
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @registerWrite(i32 noundef 1)
br label %161
26: ; preds = %21, %18
%27 = load i32, ptr %2, align 4
%28 = icmp sgt i32 %27, 11
br i1 %28, label %29, label %34
29: ; preds = %26
%30 = load i32, ptr %2, align 4
%31 = icmp sle i32 %30, 34
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @registerWrite(i32 noundef 9)
br label %160
34: ; preds = %29, %26
%35 = load i32, ptr %2, align 4
%36 = icmp sgt i32 %35, 34
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load i32, ptr %2, align 4
%39 = icmp sle i32 %38, 56
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @registerWrite(i32 noundef 8)
br label %159
42: ; preds = %37, %34
%43 = load i32, ptr %2, align 4
%44 = icmp sgt i32 %43, 56
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load i32, ptr %2, align 4
%47 = icmp sle i32 %46, 79
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @registerWrite(i32 noundef 10)
br label %158
50: ; preds = %45, %42
%51 = load i32, ptr %2, align 4
%52 = icmp sgt i32 %51, 79
br i1 %52, label %53, label %58
53: ; preds = %50
%54 = load i32, ptr %2, align 4
%55 = icmp sle i32 %54, 101
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @registerWrite(i32 noundef 2)
br label %157
58: ; preds = %53, %50
%59 = load i32, ptr %2, align 4
%60 = icmp sgt i32 %59, 101
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load i32, ptr %2, align 4
%63 = icmp sle i32 %62, 124
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 @registerWrite(i32 noundef 6)
br label %156
66: ; preds = %61, %58
%67 = load i32, ptr %2, align 4
%68 = icmp sgt i32 %67, 124
br i1 %68, label %69, label %74
69: ; preds = %66
%70 = load i32, ptr %2, align 4
%71 = icmp sle i32 %70, 146
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 @registerWrite(i32 noundef 4)
br label %155
74: ; preds = %69, %66
%75 = load i32, ptr %2, align 4
%76 = icmp sgt i32 %75, 146
br i1 %76, label %77, label %82
77: ; preds = %74
%78 = load i32, ptr %2, align 4
%79 = icmp sle i32 %78, 169
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 @registerWrite(i32 noundef 20)
br label %154
82: ; preds = %77, %74
%83 = load i32, ptr %2, align 4
%84 = icmp sgt i32 %83, 169
br i1 %84, label %85, label %90
85: ; preds = %82
%86 = load i32, ptr %2, align 4
%87 = icmp sle i32 %86, 191
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = call i32 @registerWrite(i32 noundef 16)
br label %153
90: ; preds = %85, %82
%91 = load i32, ptr %2, align 4
%92 = icmp sgt i32 %91, 191
br i1 %92, label %93, label %98
93: ; preds = %90
%94 = load i32, ptr %2, align 4
%95 = icmp sle i32 %94, 214
br i1 %95, label %96, label %98
96: ; preds = %93
%97 = call i32 @registerWrite(i32 noundef 80)
br label %152
98: ; preds = %93, %90
%99 = load i32, ptr %2, align 4
%100 = icmp sgt i32 %99, 214
br i1 %100, label %101, label %106
101: ; preds = %98
%102 = load i32, ptr %2, align 4
%103 = icmp sle i32 %102, 236
br i1 %103, label %104, label %106
104: ; preds = %101
%105 = call i32 @registerWrite(i32 noundef 64)
br label %151
106: ; preds = %101, %98
%107 = load i32, ptr %2, align 4
%108 = icmp sgt i32 %107, 236
br i1 %108, label %109, label %114
109: ; preds = %106
%110 = load i32, ptr %2, align 4
%111 = icmp sle i32 %110, 259
br i1 %111, label %112, label %114
112: ; preds = %109
%113 = call i32 @registerWrite(i32 noundef 192)
br label %150
114: ; preds = %109, %106
%115 = load i32, ptr %2, align 4
%116 = icmp sgt i32 %115, 259
br i1 %116, label %117, label %122
117: ; preds = %114
%118 = load i32, ptr %2, align 4
%119 = icmp sle i32 %118, 281
br i1 %119, label %120, label %122
120: ; preds = %117
%121 = call i32 @registerWrite(i32 noundef 128)
br label %149
122: ; preds = %117, %114
%123 = load i32, ptr %2, align 4
%124 = icmp sgt i32 %123, 281
br i1 %124, label %125, label %130
125: ; preds = %122
%126 = load i32, ptr %2, align 4
%127 = icmp sle i32 %126, 304
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = call i32 @registerWrite(i32 noundef 160)
br label %148
130: ; preds = %125, %122
%131 = load i32, ptr %2, align 4
%132 = icmp sgt i32 %131, 304
br i1 %132, label %133, label %138
133: ; preds = %130
%134 = load i32, ptr %2, align 4
%135 = icmp sle i32 %134, 326
br i1 %135, label %136, label %138
136: ; preds = %133
%137 = call i32 @registerWrite(i32 noundef 32)
br label %147
138: ; preds = %133, %130
%139 = load i32, ptr %2, align 4
%140 = icmp sgt i32 %139, 326
br i1 %140, label %141, label %146
141: ; preds = %138
%142 = load i32, ptr %2, align 4
%143 = icmp sle i32 %142, 349
br i1 %143, label %144, label %146
144: ; preds = %141
%145 = call i32 @registerWrite(i32 noundef 33)
br label %146
146: ; preds = %144, %141, %138
br label %147
147: ; preds = %146, %136
br label %148
148: ; preds = %147, %128
br label %149
149: ; preds = %148, %120
br label %150
150: ; preds = %149, %112
br label %151
151: ; preds = %150, %104
br label %152
152: ; preds = %151, %96
br label %153
153: ; preds = %152, %88
br label %154
154: ; preds = %153, %80
br label %155
155: ; preds = %154, %72
br label %156
156: ; preds = %155, %64
br label %157
157: ; preds = %156, %56
br label %158
158: ; preds = %157, %48
br label %159
159: ; preds = %158, %40
br label %160
160: ; preds = %159, %32
br label %161
161: ; preds = %160, %24
br label %162
162: ; preds = %161, %16
br label %163
163: ; preds = %162, %8
ret void
}
declare i32 @registerWrite(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/tmpkxkvqray.c"
target datalayout = "e-m:e-p270: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 @showLedDisplay(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %6, 360
br i1 %7, label %8, label %10
8: ; preds = %5, %1
%9 = call i32 @registerWrite(i32 noundef 0)
br label %163
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 11
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @registerWrite(i32 noundef 1)
br label %162
18: ; preds = %13, %10
%19 = load i32, ptr %2, align 4
%20 = icmp sgt i32 %19, 349
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = icmp sle i32 %22, 360
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @registerWrite(i32 noundef 1)
br label %161
26: ; preds = %21, %18
%27 = load i32, ptr %2, align 4
%28 = icmp sgt i32 %27, 11
br i1 %28, label %29, label %34
29: ; preds = %26
%30 = load i32, ptr %2, align 4
%31 = icmp sle i32 %30, 34
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @registerWrite(i32 noundef 9)
br label %160
34: ; preds = %29, %26
%35 = load i32, ptr %2, align 4
%36 = icmp sgt i32 %35, 34
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load i32, ptr %2, align 4
%39 = icmp sle i32 %38, 56
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @registerWrite(i32 noundef 8)
br label %159
42: ; preds = %37, %34
%43 = load i32, ptr %2, align 4
%44 = icmp sgt i32 %43, 56
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load i32, ptr %2, align 4
%47 = icmp sle i32 %46, 79
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @registerWrite(i32 noundef 10)
br label %158
50: ; preds = %45, %42
%51 = load i32, ptr %2, align 4
%52 = icmp sgt i32 %51, 79
br i1 %52, label %53, label %58
53: ; preds = %50
%54 = load i32, ptr %2, align 4
%55 = icmp sle i32 %54, 101
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @registerWrite(i32 noundef 2)
br label %157
58: ; preds = %53, %50
%59 = load i32, ptr %2, align 4
%60 = icmp sgt i32 %59, 101
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load i32, ptr %2, align 4
%63 = icmp sle i32 %62, 124
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 @registerWrite(i32 noundef 6)
br label %156
66: ; preds = %61, %58
%67 = load i32, ptr %2, align 4
%68 = icmp sgt i32 %67, 124
br i1 %68, label %69, label %74
69: ; preds = %66
%70 = load i32, ptr %2, align 4
%71 = icmp sle i32 %70, 146
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 @registerWrite(i32 noundef 4)
br label %155
74: ; preds = %69, %66
%75 = load i32, ptr %2, align 4
%76 = icmp sgt i32 %75, 146
br i1 %76, label %77, label %82
77: ; preds = %74
%78 = load i32, ptr %2, align 4
%79 = icmp sle i32 %78, 169
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 @registerWrite(i32 noundef 20)
br label %154
82: ; preds = %77, %74
%83 = load i32, ptr %2, align 4
%84 = icmp sgt i32 %83, 169
br i1 %84, label %85, label %90
85: ; preds = %82
%86 = load i32, ptr %2, align 4
%87 = icmp sle i32 %86, 191
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = call i32 @registerWrite(i32 noundef 16)
br label %153
90: ; preds = %85, %82
%91 = load i32, ptr %2, align 4
%92 = icmp sgt i32 %91, 191
br i1 %92, label %93, label %98
93: ; preds = %90
%94 = load i32, ptr %2, align 4
%95 = icmp sle i32 %94, 214
br i1 %95, label %96, label %98
96: ; preds = %93
%97 = call i32 @registerWrite(i32 noundef 80)
br label %152
98: ; preds = %93, %90
%99 = load i32, ptr %2, align 4
%100 = icmp sgt i32 %99, 214
br i1 %100, label %101, label %106
101: ; preds = %98
%102 = load i32, ptr %2, align 4
%103 = icmp sle i32 %102, 236
br i1 %103, label %104, label %106
104: ; preds = %101
%105 = call i32 @registerWrite(i32 noundef 64)
br label %151
106: ; preds = %101, %98
%107 = load i32, ptr %2, align 4
%108 = icmp sgt i32 %107, 236
br i1 %108, label %109, label %114
109: ; preds = %106
%110 = load i32, ptr %2, align 4
%111 = icmp sle i32 %110, 259
br i1 %111, label %112, label %114
112: ; preds = %109
%113 = call i32 @registerWrite(i32 noundef 192)
br label %150
114: ; preds = %109, %106
%115 = load i32, ptr %2, align 4
%116 = icmp sgt i32 %115, 259
br i1 %116, label %117, label %122
117: ; preds = %114
%118 = load i32, ptr %2, align 4
%119 = icmp sle i32 %118, 281
br i1 %119, label %120, label %122
120: ; preds = %117
%121 = call i32 @registerWrite(i32 noundef 128)
br label %149
122: ; preds = %117, %114
%123 = load i32, ptr %2, align 4
%124 = icmp sgt i32 %123, 281
br i1 %124, label %125, label %130
125: ; preds = %122
%126 = load i32, ptr %2, align 4
%127 = icmp sle i32 %126, 304
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = call i32 @registerWrite(i32 noundef 160)
br label %148
130: ; preds = %125, %122
%131 = load i32, ptr %2, align 4
%132 = icmp sgt i32 %131, 304
br i1 %132, label %133, label %138
133: ; preds = %130
%134 = load i32, ptr %2, align 4
%135 = icmp sle i32 %134, 326
br i1 %135, label %136, label %138
136: ; preds = %133
%137 = call i32 @registerWrite(i32 noundef 32)
br label %147
138: ; preds = %133, %130
%139 = load i32, ptr %2, align 4
%140 = icmp sgt i32 %139, 326
br i1 %140, label %141, label %146
141: ; preds = %138
%142 = load i32, ptr %2, align 4
%143 = icmp sle i32 %142, 349
br i1 %143, label %144, label %146
144: ; preds = %141
%145 = call i32 @registerWrite(i32 noundef 33)
br label %146
146: ; preds = %144, %141, %138
br label %147
147: ; preds = %146, %136
br label %148
148: ; preds = %147, %128
br label %149
149: ; preds = %148, %120
br label %150
150: ; preds = %149, %112
br label %151
151: ; preds = %150, %104
br label %152
152: ; preds = %151, %96
br label %153
153: ; preds = %152, %88
br label %154
154: ; preds = %153, %80
br label %155
155: ; preds = %154, %72
br label %156
156: ; preds = %155, %64
br label %157
157: ; preds = %156, %56
br label %158
158: ; preds = %157, %48
br label %159
159: ; preds = %158, %40
br label %160
160: ; preds = %159, %32
br label %161
161: ; preds = %160, %24
br label %162
162: ; preds = %161, %16
br label %163
163: ; preds = %162, %8
ret void
}
declare i32 @registerWrite(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/tmpuaatn555.c'
source_filename = "/tmp/tmpuaatn555.c"
target datalayout = "e-m:e-p270: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/tmpuaatn555.c"
target datalayout = "e-m:e-p270: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/tmp3jcd_9ds.c'
source_filename = "/tmp/tmp3jcd_9ds.c"
target datalayout = "e-m:e-p270: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/tmp3jcd_9ds.c"
target datalayout = "e-m:e-p270: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/tmphl71jplx.c'
source_filename = "/tmp/tmphl71jplx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Quick_Test_Error_\00", align 1
@.str.1 = private unnamed_addr constant [50 x i8] c"Test Var,Our Output,Std Output,The Deviation Was\0A\00", align 1
@RAND_MAX = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"Worst error is %e at %e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %2, align 8
%9 = call ptr @createFile(ptr noundef @.str)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @fprintf(ptr noundef %10, ptr noundef @.str.1)
store double -7.110000e+02, ptr %6, align 8
br label %12
12: ; preds = %30, %0
%13 = load double, ptr %6, align 8
%14 = fcmp olt double %13, 7.110000e+02
br i1 %14, label %15, label %33
15: ; preds = %12
%16 = load double, ptr %6, align 8
store double %16, ptr %4, align 8
%17 = load double, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = call i32 @errorTestCase(double noundef %17, ptr noundef %2, ptr noundef %3, ptr noundef %18)
%20 = load double, ptr %6, align 8
%21 = call double @nextafter(double noundef %20, i32 noundef 712)
store double %21, ptr %4, align 8
%22 = load double, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = call i32 @errorTestCase(double noundef %22, ptr noundef %2, ptr noundef %3, ptr noundef %23)
%25 = load double, ptr %6, align 8
%26 = call double @nextafter(double noundef %25, i32 noundef -712)
store double %26, ptr %4, align 8
%27 = load double, ptr %4, align 8
%28 = load ptr, ptr %5, align 8
%29 = call i32 @errorTestCase(double noundef %27, ptr noundef %2, ptr noundef %3, ptr noundef %28)
br label %30
30: ; preds = %15
%31 = load double, ptr %6, align 8
%32 = fadd double %31, 2.500000e-01
store double %32, ptr %6, align 8
br label %12, !llvm.loop !6
33: ; preds = %12
store i32 0, ptr %7, align 4
br label %34
34: ; preds = %47, %33
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 1500
br i1 %36, label %37, label %50
37: ; preds = %34
%38 = call i64 (...) @rand()
%39 = sitofp i64 %38 to double
%40 = load i32, ptr @RAND_MAX, align 4
%41 = sdiv i32 %40, 712
%42 = sitofp i32 %41 to double
%43 = fdiv double %39, %42
store double %43, ptr %4, align 8
%44 = load double, ptr %4, align 8
%45 = load ptr, ptr %5, align 8
%46 = call i32 @errorTestCase(double noundef %44, ptr noundef %2, ptr noundef %3, ptr noundef %45)
br label %47
47: ; preds = %37
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
br label %34, !llvm.loop !8
50: ; preds = %34
store i32 0, ptr %8, align 4
br label %51
51: ; preds = %66, %50
%52 = load i32, ptr %8, align 4
%53 = icmp slt i32 %52, 1500
br i1 %53, label %54, label %69
54: ; preds = %51
%55 = call i64 (...) @rand()
%56 = sitofp i64 %55 to double
%57 = load i32, ptr @RAND_MAX, align 4
%58 = sdiv i32 %57, 712
%59 = sitofp i32 %58 to double
%60 = fdiv double %56, %59
store double %60, ptr %4, align 8
%61 = load double, ptr %4, align 8
%62 = fneg double %61
store double %62, ptr %4, align 8
%63 = load double, ptr %4, align 8
%64 = load ptr, ptr %5, align 8
%65 = call i32 @errorTestCase(double noundef %63, ptr noundef %2, ptr noundef %3, ptr noundef %64)
br label %66
66: ; preds = %54
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
br label %51, !llvm.loop !9
69: ; preds = %51
%70 = load ptr, ptr %5, align 8
%71 = call i32 @fclose(ptr noundef %70)
%72 = load double, ptr %2, align 8
%73 = load double, ptr %3, align 8
%74 = call i32 @printf(ptr noundef @.str.2, double noundef %72, double noundef %73)
%75 = load i32, ptr %1, align 4
ret i32 %75
}
declare ptr @createFile(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @errorTestCase(double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare double @nextafter(double noundef, i32 noundef) #1
declare i64 @rand(...) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphl71jplx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Quick_Test_Error_\00", align 1
@.str.1 = private unnamed_addr constant [50 x i8] c"Test Var,Our Output,Std Output,The Deviation Was\0A\00", align 1
@RAND_MAX = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"Worst error is %e at %e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %2, align 8
%9 = call ptr @createFile(ptr noundef @.str)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @fprintf(ptr noundef %10, ptr noundef @.str.1)
store double -7.110000e+02, ptr %6, align 8
%12 = load double, ptr %6, align 8
%13 = fcmp olt double %12, 7.110000e+02
br i1 %13, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %29
%15 = load double, ptr %6, align 8
store double %15, ptr %4, align 8
%16 = load double, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @errorTestCase(double noundef %16, ptr noundef %2, ptr noundef %3, ptr noundef %17)
%19 = load double, ptr %6, align 8
%20 = call double @nextafter(double noundef %19, i32 noundef 712)
store double %20, ptr %4, align 8
%21 = load double, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = call i32 @errorTestCase(double noundef %21, ptr noundef %2, ptr noundef %3, ptr noundef %22)
%24 = load double, ptr %6, align 8
%25 = call double @nextafter(double noundef %24, i32 noundef -712)
store double %25, ptr %4, align 8
%26 = load double, ptr %4, align 8
%27 = load ptr, ptr %5, align 8
%28 = call i32 @errorTestCase(double noundef %26, ptr noundef %2, ptr noundef %3, ptr noundef %27)
br label %29
29: ; preds = %14
%30 = load double, ptr %6, align 8
%31 = fadd double %30, 2.500000e-01
store double %31, ptr %6, align 8
%32 = load double, ptr %6, align 8
%33 = fcmp olt double %32, 7.110000e+02
br i1 %33, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %0
store i32 0, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 1500
br i1 %36, label %.lr.ph2, label %52
.lr.ph2: ; preds = %34
br label %37
37: ; preds = %.lr.ph2, %47
%38 = call i64 (...) @rand()
%39 = sitofp i64 %38 to double
%40 = load i32, ptr @RAND_MAX, align 4
%41 = sdiv i32 %40, 712
%42 = sitofp i32 %41 to double
%43 = fdiv double %39, %42
store double %43, ptr %4, align 8
%44 = load double, ptr %4, align 8
%45 = load ptr, ptr %5, align 8
%46 = call i32 @errorTestCase(double noundef %44, ptr noundef %2, ptr noundef %3, ptr noundef %45)
br label %47
47: ; preds = %37
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
%50 = load i32, ptr %7, align 4
%51 = icmp slt i32 %50, 1500
br i1 %51, label %37, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %52
52: ; preds = %._crit_edge3, %34
store i32 0, ptr %8, align 4
%53 = load i32, ptr %8, align 4
%54 = icmp slt i32 %53, 1500
br i1 %54, label %.lr.ph5, label %72
.lr.ph5: ; preds = %52
br label %55
55: ; preds = %.lr.ph5, %67
%56 = call i64 (...) @rand()
%57 = sitofp i64 %56 to double
%58 = load i32, ptr @RAND_MAX, align 4
%59 = sdiv i32 %58, 712
%60 = sitofp i32 %59 to double
%61 = fdiv double %57, %60
store double %61, ptr %4, align 8
%62 = load double, ptr %4, align 8
%63 = fneg double %62
store double %63, ptr %4, align 8
%64 = load double, ptr %4, align 8
%65 = load ptr, ptr %5, align 8
%66 = call i32 @errorTestCase(double noundef %64, ptr noundef %2, ptr noundef %3, ptr noundef %65)
br label %67
67: ; preds = %55
%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 = icmp slt i32 %70, 1500
br i1 %71, label %55, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %67
br label %72
72: ; preds = %._crit_edge6, %52
%73 = load ptr, ptr %5, align 8
%74 = call i32 @fclose(ptr noundef %73)
%75 = load double, ptr %2, align 8
%76 = load double, ptr %3, align 8
%77 = call i32 @printf(ptr noundef @.str.2, double noundef %75, double noundef %76)
%78 = load i32, ptr %1, align 4
ret i32 %78
}
declare ptr @createFile(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @errorTestCase(double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare double @nextafter(double noundef, i32 noundef) #1
declare i64 @rand(...) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpj1j5vlrj.c'
source_filename = "/tmp/tmpj1j5vlrj.c"
target datalayout = "e-m:e-p270: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/tmpj1j5vlrj.c"
target datalayout = "e-m:e-p270: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/tmp7h8ie30a.c'
source_filename = "/tmp/tmp7h8ie30a.c"
target datalayout = "e-m:e-p270: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.flock = type { ptr, i64, i32, i64, i32 }
@SEEK_CUR = dso_local global i32 0, align 4
@F_GETLK = dso_local global i32 0, align 4
@F_UNLCK = dso_local global ptr null, align 8
@EACCES = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@F_SETLK = dso_local global i32 0, align 4
@F_WRLCK = dso_local global ptr null, align 8
@F_SETLKW = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lockf(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.flock, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load i32, ptr @SEEK_CUR, align 4
%10 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 4
store i32 %9, ptr %10, align 8
%11 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 3
store i64 0, ptr %11, align 8
%12 = load i32, ptr %7, align 4
%13 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 2
store i32 %12, ptr %13, align 8
%14 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 1
store i64 0, ptr %14, align 8
%15 = load i32, ptr %6, align 4
switch i32 %15, label %47 [
i32 130, label %16
i32 128, label %35
i32 131, label %39
i32 129, label %43
]
16: ; preds = %3
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @F_GETLK, align 4
%19 = call i32 @fcntl(i32 noundef %17, i32 noundef %18, ptr noundef %8)
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 -1, ptr %4, align 4
br label %53
22: ; preds = %16
%23 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr @F_UNLCK, align 8
%26 = icmp eq ptr %24, %25
br i1 %26, label %32, label %27
27: ; preds = %22
%28 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 1
%29 = load i64, ptr %28, align 8
%30 = call i64 (...) @getpid()
%31 = icmp eq i64 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %27, %22
store i32 0, ptr %4, align 4
br label %53
33: ; preds = %27
%34 = load i32, ptr @EACCES, align 4
store i32 %34, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %53
35: ; preds = %3
%36 = load ptr, ptr @F_UNLCK, align 8
%37 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
store ptr %36, ptr %37, align 8
%38 = load i32, ptr @F_SETLK, align 4
store i32 %38, ptr %6, align 4
br label %49
39: ; preds = %3
%40 = load ptr, ptr @F_WRLCK, align 8
%41 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
store ptr %40, ptr %41, align 8
%42 = load i32, ptr @F_SETLKW, align 4
store i32 %42, ptr %6, align 4
br label %49
43: ; preds = %3
%44 = load ptr, ptr @F_WRLCK, align 8
%45 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
store ptr %44, ptr %45, align 8
%46 = load i32, ptr @F_SETLK, align 4
store i32 %46, ptr %6, align 4
br label %49
47: ; preds = %3
%48 = load i32, ptr @EINVAL, align 4
store i32 %48, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %53
49: ; preds = %43, %39, %35
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %6, align 4
%52 = call i32 @fcntl(i32 noundef %50, i32 noundef %51, ptr noundef %8)
store i32 %52, ptr %4, align 4
br label %53
53: ; preds = %49, %47, %33, %32, %21
%54 = load i32, ptr %4, align 4
ret i32 %54
}
declare i32 @fcntl(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp7h8ie30a.c"
target datalayout = "e-m:e-p270: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.flock = type { ptr, i64, i32, i64, i32 }
@SEEK_CUR = dso_local global i32 0, align 4
@F_GETLK = dso_local global i32 0, align 4
@F_UNLCK = dso_local global ptr null, align 8
@EACCES = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@F_SETLK = dso_local global i32 0, align 4
@F_WRLCK = dso_local global ptr null, align 8
@F_SETLKW = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lockf(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.flock, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load i32, ptr @SEEK_CUR, align 4
%10 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 4
store i32 %9, ptr %10, align 8
%11 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 3
store i64 0, ptr %11, align 8
%12 = load i32, ptr %7, align 4
%13 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 2
store i32 %12, ptr %13, align 8
%14 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 1
store i64 0, ptr %14, align 8
%15 = load i32, ptr %6, align 4
switch i32 %15, label %47 [
i32 130, label %16
i32 128, label %35
i32 131, label %39
i32 129, label %43
]
16: ; preds = %3
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @F_GETLK, align 4
%19 = call i32 @fcntl(i32 noundef %17, i32 noundef %18, ptr noundef %8)
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 -1, ptr %4, align 4
br label %53
22: ; preds = %16
%23 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr @F_UNLCK, align 8
%26 = icmp eq ptr %24, %25
br i1 %26, label %32, label %27
27: ; preds = %22
%28 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 1
%29 = load i64, ptr %28, align 8
%30 = call i64 (...) @getpid()
%31 = icmp eq i64 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %27, %22
store i32 0, ptr %4, align 4
br label %53
33: ; preds = %27
%34 = load i32, ptr @EACCES, align 4
store i32 %34, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %53
35: ; preds = %3
%36 = load ptr, ptr @F_UNLCK, align 8
%37 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
store ptr %36, ptr %37, align 8
%38 = load i32, ptr @F_SETLK, align 4
store i32 %38, ptr %6, align 4
br label %49
39: ; preds = %3
%40 = load ptr, ptr @F_WRLCK, align 8
%41 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
store ptr %40, ptr %41, align 8
%42 = load i32, ptr @F_SETLKW, align 4
store i32 %42, ptr %6, align 4
br label %49
43: ; preds = %3
%44 = load ptr, ptr @F_WRLCK, align 8
%45 = getelementptr inbounds %struct.flock, ptr %8, i32 0, i32 0
store ptr %44, ptr %45, align 8
%46 = load i32, ptr @F_SETLK, align 4
store i32 %46, ptr %6, align 4
br label %49
47: ; preds = %3
%48 = load i32, ptr @EINVAL, align 4
store i32 %48, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %53
49: ; preds = %43, %39, %35
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %6, align 4
%52 = call i32 @fcntl(i32 noundef %50, i32 noundef %51, ptr noundef %8)
store i32 %52, ptr %4, align 4
br label %53
53: ; preds = %49, %47, %33, %32, %21
%54 = load i32, ptr %4, align 4
ret i32 %54
}
declare i32 @fcntl(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmph9e9e7on.c'
source_filename = "/tmp/tmph9e9e7on.c"
target datalayout = "e-m:e-p270: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/tmph9e9e7on.c"
target datalayout = "e-m:e-p270: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/tmp24ubgf39.c'
source_filename = "/tmp/tmp24ubgf39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INADDRSZ = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_map_v4v6_address(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %5, align 8
%10 = load i32, ptr @INADDRSZ, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %6, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %7, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr @INADDRSZ, align 4
%16 = call i32 @memcpy(ptr noundef %13, ptr noundef %14, i32 noundef %15)
store i32 0, ptr %8, align 4
br label %17
17: ; preds = %23, %2
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %18, 10
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i32, ptr %21, i32 1
store ptr %22, ptr %5, align 8
store i32 0, ptr %21, align 4
br label %23
23: ; preds = %20
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
br label %17, !llvm.loop !6
26: ; preds = %17
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds i32, ptr %27, i32 1
store ptr %28, ptr %5, align 8
store i32 255, ptr %27, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i32, ptr %29, i32 1
store ptr %30, ptr %5, align 8
store i32 255, ptr %29, align 4
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr @INADDRSZ, align 4
%33 = call i32 @memcpy(ptr noundef %31, ptr noundef %13, i32 noundef %32)
%34 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %34)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp24ubgf39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INADDRSZ = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_map_v4v6_address(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %5, align 8
%10 = load i32, ptr @INADDRSZ, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %6, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %7, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr @INADDRSZ, align 4
%16 = call i32 @memcpy(ptr noundef %13, ptr noundef %14, i32 noundef %15)
store i32 0, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %22
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i32, ptr %20, i32 1
store ptr %21, ptr %5, align 8
store i32 0, ptr %20, align 4
br label %22
22: ; preds = %19
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp slt i32 %25, 10
br i1 %26, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i32, ptr %28, i32 1
store ptr %29, ptr %5, align 8
store i32 255, ptr %28, align 4
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i32, ptr %30, i32 1
store ptr %31, ptr %5, align 8
store i32 255, ptr %30, align 4
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr @INADDRSZ, align 4
%34 = call i32 @memcpy(ptr noundef %32, ptr noundef %13, i32 noundef %33)
%35 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %35)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1zu1wvuj.c'
source_filename = "/tmp/tmp1zu1wvuj.c"
target datalayout = "e-m:e-p270: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 @insertion_sort(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @list_length(ptr noundef %6)
store i32 %7, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %75, %1
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %78
12: ; preds = %8
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %5, align 4
br label %14
14: ; preds = %71, %12
%15 = load i32, ptr %5, align 4
%16 = icmp sge i32 %15, 0
br i1 %16, label %17, label %74
17: ; preds = %14
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %5, align 4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %18, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp sgt i32 %23, %28
br i1 %29, label %30, label %70
30: ; preds = %17
%31 = load i32, ptr %5, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %70
33: ; preds = %30
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %5, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %39, i64 %42
%44 = load i32, ptr %43, align 4
%45 = xor i32 %44, %38
store i32 %45, ptr %43, align 4
%46 = load ptr, ptr %2, align 8
%47 = load i32, ptr %5, align 4
%48 = sub nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %46, i64 %49
%51 = load i32, ptr %50, align 4
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = load i32, ptr %55, align 4
%57 = xor i32 %56, %51
store i32 %57, ptr %55, align 4
%58 = load ptr, ptr %2, align 8
%59 = load i32, ptr %5, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load ptr, ptr %2, align 8
%64 = load i32, ptr %5, align 4
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %63, i64 %66
%68 = load i32, ptr %67, align 4
%69 = xor i32 %68, %62
store i32 %69, ptr %67, align 4
br label %70
70: ; preds = %33, %30, %17
br label %71
71: ; preds = %70
%72 = load i32, ptr %5, align 4
%73 = add nsw i32 %72, -1
store i32 %73, ptr %5, align 4
br label %14, !llvm.loop !6
74: ; preds = %14
br label %75
75: ; preds = %74
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %4, align 4
br label %8, !llvm.loop !8
78: ; preds = %8
ret void
}
declare i32 @list_length(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/tmp1zu1wvuj.c"
target datalayout = "e-m:e-p270: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 @insertion_sort(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @list_length(ptr noundef %6)
store i32 %7, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph2, label %81
.lr.ph2: ; preds = %1
br label %11
11: ; preds = %.lr.ph2, %75
%12 = load i32, ptr %4, align 4
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp sge i32 %13, 0
br i1 %14, label %.lr.ph, label %74
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %69
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %16, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp sgt i32 %21, %26
br i1 %27, label %28, label %68
28: ; preds = %15
%29 = load i32, ptr %5, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %68
31: ; preds = %28
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %5, 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 %2, align 8
%38 = load i32, ptr %5, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = load i32, ptr %41, align 4
%43 = xor i32 %42, %36
store i32 %43, ptr %41, align 4
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %5, align 4
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %44, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %2, align 8
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = xor i32 %54, %49
store i32 %55, ptr %53, align 4
%56 = load ptr, ptr %2, align 8
%57 = load i32, ptr %5, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %2, align 8
%62 = load i32, ptr %5, align 4
%63 = sub nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %61, i64 %64
%66 = load i32, ptr %65, align 4
%67 = xor i32 %66, %60
store i32 %67, ptr %65, align 4
br label %68
68: ; preds = %31, %28, %15
br label %69
69: ; preds = %68
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %70, -1
store i32 %71, ptr %5, align 4
%72 = load i32, ptr %5, align 4
%73 = icmp sge i32 %72, 0
br i1 %73, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %74
74: ; preds = %._crit_edge, %11
br label %75
75: ; preds = %74
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %4, align 4
%78 = load i32, ptr %4, align 4
%79 = load i32, ptr %3, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %1
ret void
}
declare i32 @list_length(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/tmp3cuj71rq.c'
source_filename = "/tmp/tmp3cuj71rq.c"
target datalayout = "e-m:e-p270: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.msghdr = type { i32, ptr, i32, ptr, i32, ptr }
%struct.cmsghdr = type { i64, i64, i64 }
@SOL_SOCKET = dso_local global i64 0, align 8
@SCM_RIGHTS = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @receive_fd(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca %struct.msghdr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%16 = call i32 @CMSG_SPACE(i32 noundef 4)
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %11, align 8
%19 = alloca i8, i64 %17, align 16
store i64 %17, ptr %12, align 8
call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 48, i1 false)
%20 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 0
%21 = load i32, ptr %9, align 4
store i32 %21, ptr %20, align 8
%22 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 3
%23 = load ptr, ptr %8, align 8
store ptr %23, ptr %22, align 8
%24 = load ptr, ptr %7, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %31
26: ; preds = %4
%27 = load ptr, ptr %7, align 8
store i32 -1, ptr %27, align 4
%28 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 1
store ptr %19, ptr %28, align 8
%29 = trunc i64 %17 to i32
%30 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 2
store i32 %29, ptr %30, align 8
br label %31
31: ; preds = %26, %4
%32 = load i32, ptr %6, align 4
%33 = call i64 @recvmsg(i32 noundef %32, ptr noundef %13, i32 noundef 0)
store i64 %33, ptr %10, align 8
%34 = load i64, ptr %10, align 8
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %31
store i64 -1, ptr %5, align 8
store i32 1, ptr %15, align 4
br label %69
37: ; preds = %31
%38 = call ptr @CMSG_FIRSTHDR(ptr noundef %13)
store ptr %38, ptr %14, align 8
%39 = load ptr, ptr %7, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %67
41: ; preds = %37
%42 = load ptr, ptr %14, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %67
44: ; preds = %41
%45 = load ptr, ptr %14, align 8
%46 = getelementptr inbounds %struct.cmsghdr, ptr %45, i32 0, i32 0
%47 = load i64, ptr %46, align 8
%48 = call i64 @CMSG_LEN(i32 noundef 4)
%49 = icmp eq i64 %47, %48
br i1 %49, label %50, label %67
50: ; preds = %44
%51 = load ptr, ptr %14, align 8
%52 = getelementptr inbounds %struct.cmsghdr, ptr %51, i32 0, i32 1
%53 = load i64, ptr %52, align 8
%54 = load i64, ptr @SOL_SOCKET, align 8
%55 = icmp eq i64 %53, %54
br i1 %55, label %56, label %67
56: ; preds = %50
%57 = load ptr, ptr %14, align 8
%58 = getelementptr inbounds %struct.cmsghdr, ptr %57, i32 0, i32 2
%59 = load i64, ptr %58, align 8
%60 = load i64, ptr @SCM_RIGHTS, align 8
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %67
62: ; preds = %56
%63 = load ptr, ptr %7, align 8
%64 = load ptr, ptr %14, align 8
%65 = call i32 @CMSG_DATA(ptr noundef %64)
%66 = call i32 @memcpy(ptr noundef %63, i32 noundef %65, i32 noundef 4)
br label %67
67: ; preds = %62, %56, %50, %44, %41, %37
%68 = load i64, ptr %10, align 8
store i64 %68, ptr %5, align 8
store i32 1, ptr %15, align 4
br label %69
69: ; preds = %67, %36
%70 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %70)
%71 = load i64, ptr %5, align 8
ret i64 %71
}
declare i32 @CMSG_SPACE(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i64 @recvmsg(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @CMSG_FIRSTHDR(ptr noundef) #1
declare i64 @CMSG_LEN(i32 noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @CMSG_DATA(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 }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp3cuj71rq.c"
target datalayout = "e-m:e-p270: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.msghdr = type { i32, ptr, i32, ptr, i32, ptr }
%struct.cmsghdr = type { i64, i64, i64 }
@SOL_SOCKET = dso_local global i64 0, align 8
@SCM_RIGHTS = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @receive_fd(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca %struct.msghdr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%16 = call i32 @CMSG_SPACE(i32 noundef 4)
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %11, align 8
%19 = alloca i8, i64 %17, align 16
store i64 %17, ptr %12, align 8
call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 48, i1 false)
%20 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 0
%21 = load i32, ptr %9, align 4
store i32 %21, ptr %20, align 8
%22 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 3
%23 = load ptr, ptr %8, align 8
store ptr %23, ptr %22, align 8
%24 = load ptr, ptr %7, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %31
26: ; preds = %4
%27 = load ptr, ptr %7, align 8
store i32 -1, ptr %27, align 4
%28 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 1
store ptr %19, ptr %28, align 8
%29 = trunc i64 %17 to i32
%30 = getelementptr inbounds %struct.msghdr, ptr %13, i32 0, i32 2
store i32 %29, ptr %30, align 8
br label %31
31: ; preds = %26, %4
%32 = load i32, ptr %6, align 4
%33 = call i64 @recvmsg(i32 noundef %32, ptr noundef %13, i32 noundef 0)
store i64 %33, ptr %10, align 8
%34 = load i64, ptr %10, align 8
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %31
store i64 -1, ptr %5, align 8
store i32 1, ptr %15, align 4
br label %69
37: ; preds = %31
%38 = call ptr @CMSG_FIRSTHDR(ptr noundef %13)
store ptr %38, ptr %14, align 8
%39 = load ptr, ptr %7, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %67
41: ; preds = %37
%42 = load ptr, ptr %14, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %67
44: ; preds = %41
%45 = load ptr, ptr %14, align 8
%46 = getelementptr inbounds %struct.cmsghdr, ptr %45, i32 0, i32 0
%47 = load i64, ptr %46, align 8
%48 = call i64 @CMSG_LEN(i32 noundef 4)
%49 = icmp eq i64 %47, %48
br i1 %49, label %50, label %67
50: ; preds = %44
%51 = load ptr, ptr %14, align 8
%52 = getelementptr inbounds %struct.cmsghdr, ptr %51, i32 0, i32 1
%53 = load i64, ptr %52, align 8
%54 = load i64, ptr @SOL_SOCKET, align 8
%55 = icmp eq i64 %53, %54
br i1 %55, label %56, label %67
56: ; preds = %50
%57 = load ptr, ptr %14, align 8
%58 = getelementptr inbounds %struct.cmsghdr, ptr %57, i32 0, i32 2
%59 = load i64, ptr %58, align 8
%60 = load i64, ptr @SCM_RIGHTS, align 8
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %67
62: ; preds = %56
%63 = load ptr, ptr %7, align 8
%64 = load ptr, ptr %14, align 8
%65 = call i32 @CMSG_DATA(ptr noundef %64)
%66 = call i32 @memcpy(ptr noundef %63, i32 noundef %65, i32 noundef 4)
br label %67
67: ; preds = %62, %56, %50, %44, %41, %37
%68 = load i64, ptr %10, align 8
store i64 %68, ptr %5, align 8
store i32 1, ptr %15, align 4
br label %69
69: ; preds = %67, %36
%70 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %70)
%71 = load i64, ptr %5, align 8
ret i64 %71
}
declare i32 @CMSG_SPACE(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i64 @recvmsg(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @CMSG_FIRSTHDR(ptr noundef) #1
declare i64 @CMSG_LEN(i32 noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @CMSG_DATA(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 }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpn5epnnk2.c'
source_filename = "/tmp/tmpn5epnnk2.c"
target datalayout = "e-m:e-p270: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 @j_textbox(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 ptr, ptr %6, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 2
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 3
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 4
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
%19 = call i32 @dialog_textbox(ptr noundef %7, ptr noundef %10, i32 noundef %14, i32 noundef %18)
ret i32 %19
}
declare i32 @dialog_textbox(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn5epnnk2.c"
target datalayout = "e-m:e-p270: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 @j_textbox(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 ptr, ptr %6, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 2
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 3
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 4
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
%19 = call i32 @dialog_textbox(ptr noundef %7, ptr noundef %10, i32 noundef %14, i32 noundef %18)
ret i32 %19
}
declare i32 @dialog_textbox(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqz6tgajr.c'
source_filename = "/tmp/tmpqz6tgajr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"XTM v0.2\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"Copyright 2006 Hyacinthe Cartiaux\0A\00", align 1
@.str.2 = private unnamed_addr constant [189 x i8] c"This program is free software; you may redistribute it under the terms of\0Athe GNU General Public License. This program has absolutely no warranty.\0A<http://www.gnu.org/licenses/gpl.html>\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [70 x i8] c"Usage : xtm -i path/to/file.001.xtm [-o output/directory/] [-f] [-v]\0A\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c"-f : Do not prompt for confirmation if the new file exists.\0A\00", align 1
@.str.5 = private unnamed_addr constant [65 x i8] c"-v : Display headers informations of the 001.xtm file and quit.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqz6tgajr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"XTM v0.2\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"Copyright 2006 Hyacinthe Cartiaux\0A\00", align 1
@.str.2 = private unnamed_addr constant [189 x i8] c"This program is free software; you may redistribute it under the terms of\0Athe GNU General Public License. This program has absolutely no warranty.\0A<http://www.gnu.org/licenses/gpl.html>\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [70 x i8] c"Usage : xtm -i path/to/file.001.xtm [-o output/directory/] [-f] [-v]\0A\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c"-f : Do not prompt for confirmation if the new file exists.\0A\00", align 1
@.str.5 = private unnamed_addr constant [65 x i8] c"-v : Display headers informations of the 001.xtm file and quit.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp076mce8e.c'
source_filename = "/tmp/tmp076mce8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"malloc failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @KHS2ct(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [27 x ptr], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 1, ptr %14, align 4
store i32 0, ptr %11, align 4
br label %15
15: ; preds = %23, %4
%16 = load i32, ptr %11, align 4
%17 = icmp slt i32 %16, 27
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = call ptr (...) @InitIntStack()
%20 = load i32, ptr %11, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %21
store ptr %19, ptr %22, align 8
br label %23
23: ; preds = %18
%24 = load i32, ptr %11, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %11, align 4
br label %15, !llvm.loop !6
26: ; preds = %15
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 4
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %10, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %36
34: ; preds = %26
%35 = call i32 @Die(ptr noundef @.str)
br label %36
36: ; preds = %34, %26
store i32 0, ptr %12, align 4
br label %37
37: ; preds = %46, %36
%38 = load i32, ptr %12, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %49
41: ; preds = %37
%42 = load ptr, ptr %10, align 8
%43 = load i32, ptr %12, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 -1, ptr %45, align 4
br label %46
46: ; preds = %41
%47 = load i32, ptr %12, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %12, align 4
br label %37, !llvm.loop !8
49: ; preds = %37
store i32 0, ptr %12, align 4
br label %50
50: ; preds = %213, %49
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %12, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %216
58: ; preds = %50
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %12, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp sgt i32 %64, 127
br i1 %65, label %66, label %67
66: ; preds = %58
store i32 0, ptr %14, align 4
br label %212
67: ; preds = %58
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %12, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 62
br i1 %74, label %75, label %80
75: ; preds = %67
%76 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 0
%77 = load ptr, ptr %76, align 16
%78 = load i32, ptr %12, align 4
%79 = call i32 @PushIntStack(ptr noundef %77, i32 noundef %78)
br label %211
80: ; preds = %67
%81 = load ptr, ptr %5, align 8
%82 = load i32, ptr %12, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 60
br i1 %87, label %88, label %106
88: ; preds = %80
%89 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 0
%90 = load ptr, ptr %89, align 16
%91 = call i32 @PopIntStack(ptr noundef %90, ptr noundef %13)
%92 = icmp ne i32 %91, 0
br i1 %92, label %94, label %93
93: ; preds = %88
store i32 0, ptr %14, align 4
br label %105
94: ; preds = %88
%95 = load i32, ptr %13, align 4
%96 = load ptr, ptr %10, align 8
%97 = load i32, ptr %12, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
store i32 %95, ptr %99, align 4
%100 = load i32, ptr %12, align 4
%101 = load ptr, ptr %10, align 8
%102 = load i32, ptr %13, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
store i32 %100, ptr %104, align 4
br label %105
105: ; preds = %94, %93
br label %210
106: ; preds = %80
%107 = load i32, ptr %7, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %132
109: ; preds = %106
%110 = load ptr, ptr %5, align 8
%111 = load i32, ptr %12, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %110, i64 %112
%114 = load i8, ptr %113, align 1
%115 = sext i8 %114 to i32
%116 = call i64 @isupper(i32 noundef %115)
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %132
118: ; preds = %109
%119 = load ptr, ptr %5, align 8
%120 = load i32, ptr %12, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %119, i64 %121
%123 = load i8, ptr %122, align 1
%124 = sext i8 %123 to i32
%125 = sub nsw i32 %124, 65
%126 = add nsw i32 %125, 1
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %127
%129 = load ptr, ptr %128, align 8
%130 = load i32, ptr %12, align 4
%131 = call i32 @PushIntStack(ptr noundef %129, i32 noundef %130)
br label %209
132: ; preds = %109, %106
%133 = load i32, ptr %7, align 4
%134 = icmp ne i32 %133, 0
br i1 %134, label %135, label %171
135: ; preds = %132
%136 = load ptr, ptr %5, align 8
%137 = load i32, ptr %12, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, ptr %136, i64 %138
%140 = load i8, ptr %139, align 1
%141 = sext i8 %140 to i32
%142 = call i64 @islower(i32 noundef %141)
%143 = icmp ne i64 %142, 0
br i1 %143, label %144, label %171
144: ; preds = %135
%145 = load ptr, ptr %5, align 8
%146 = load i32, ptr %12, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i8, ptr %145, i64 %147
%149 = load i8, ptr %148, align 1
%150 = sext i8 %149 to i32
%151 = sub nsw i32 %150, 97
%152 = add nsw i32 %151, 1
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %153
%155 = load ptr, ptr %154, align 8
%156 = call i32 @PopIntStack(ptr noundef %155, ptr noundef %13)
%157 = icmp ne i32 %156, 0
br i1 %157, label %159, label %158
158: ; preds = %144
store i32 0, ptr %14, align 4
br label %170
159: ; preds = %144
%160 = load i32, ptr %13, align 4
%161 = load ptr, ptr %10, align 8
%162 = load i32, ptr %12, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i32, ptr %161, i64 %163
store i32 %160, ptr %164, align 4
%165 = load i32, ptr %12, align 4
%166 = load ptr, ptr %10, align 8
%167 = load i32, ptr %13, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i32, ptr %166, i64 %168
store i32 %165, ptr %169, align 4
br label %170
170: ; preds = %159, %158
br label %208
171: ; preds = %135, %132
%172 = load i32, ptr %7, align 4
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %207
174: ; preds = %171
%175 = load ptr, ptr %5, align 8
%176 = load i32, ptr %12, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i8, ptr %175, i64 %177
%179 = load i8, ptr %178, align 1
%180 = sext i8 %179 to i32
%181 = icmp eq i32 %180, 32
br i1 %181, label %207, label %182
182: ; preds = %174
%183 = load ptr, ptr %5, align 8
%184 = load i32, ptr %12, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %183, i64 %185
%187 = load i8, ptr %186, align 1
%188 = sext i8 %187 to i32
%189 = icmp eq i32 %188, 46
br i1 %189, label %207, label %190
190: ; preds = %182
%191 = load ptr, ptr %5, align 8
%192 = load i32, ptr %12, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds i8, ptr %191, i64 %193
%195 = load i8, ptr %194, align 1
%196 = sext i8 %195 to i32
%197 = icmp eq i32 %196, 95
br i1 %197, label %207, label %198
198: ; preds = %190
%199 = load ptr, ptr %5, align 8
%200 = load i32, ptr %12, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %199, i64 %201
%203 = load i8, ptr %202, align 1
%204 = sext i8 %203 to i32
%205 = icmp eq i32 %204, 45
br i1 %205, label %207, label %206
206: ; preds = %198
store i32 0, ptr %14, align 4
br label %207
207: ; preds = %206, %198, %190, %182, %174, %171
br label %208
208: ; preds = %207, %170
br label %209
209: ; preds = %208, %118
br label %210
210: ; preds = %209, %105
br label %211
211: ; preds = %210, %75
br label %212
212: ; preds = %211, %66
br label %213
213: ; preds = %212
%214 = load i32, ptr %12, align 4
%215 = add nsw i32 %214, 1
store i32 %215, ptr %12, align 4
br label %50, !llvm.loop !9
216: ; preds = %50
store i32 0, ptr %11, align 4
br label %217
217: ; preds = %229, %216
%218 = load i32, ptr %11, align 4
%219 = icmp slt i32 %218, 27
br i1 %219, label %220, label %232
220: ; preds = %217
%221 = load i32, ptr %11, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %222
%224 = load ptr, ptr %223, align 8
%225 = call i64 @FreeIntStack(ptr noundef %224)
%226 = icmp sgt i64 %225, 0
br i1 %226, label %227, label %228
227: ; preds = %220
store i32 0, ptr %14, align 4
br label %228
228: ; preds = %227, %220
br label %229
229: ; preds = %228
%230 = load i32, ptr %11, align 4
%231 = add nsw i32 %230, 1
store i32 %231, ptr %11, align 4
br label %217, !llvm.loop !10
232: ; preds = %217
%233 = load ptr, ptr %10, align 8
%234 = load ptr, ptr %8, align 8
store ptr %233, ptr %234, align 8
%235 = load i32, ptr %14, align 4
ret i32 %235
}
declare ptr @InitIntStack(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @Die(ptr noundef) #1
declare i32 @PushIntStack(ptr noundef, i32 noundef) #1
declare i32 @PopIntStack(ptr noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
declare i64 @islower(i32 noundef) #1
declare i64 @FreeIntStack(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp076mce8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"malloc failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @KHS2ct(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [27 x ptr], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 1, ptr %14, align 4
store i32 0, ptr %11, align 4
%15 = load i32, ptr %11, align 4
%16 = icmp slt i32 %15, 27
br i1 %16, label %.lr.ph, label %27
.lr.ph: ; preds = %4
br label %17
17: ; preds = %.lr.ph, %22
%18 = call ptr (...) @InitIntStack()
%19 = load i32, ptr %11, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %20
store ptr %18, ptr %21, align 8
br label %22
22: ; preds = %17
%23 = load i32, ptr %11, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %11, align 4
%25 = load i32, ptr %11, align 4
%26 = icmp slt i32 %25, 27
br i1 %26, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %4
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 4
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %10, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %37
35: ; preds = %27
%36 = call i32 @Die(ptr noundef @.str)
br label %37
37: ; preds = %35, %27
store i32 0, ptr %12, align 4
%38 = load i32, ptr %12, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph2, label %52
.lr.ph2: ; preds = %37
br label %41
41: ; preds = %.lr.ph2, %46
%42 = load ptr, ptr %10, align 8
%43 = load i32, ptr %12, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 -1, ptr %45, align 4
br label %46
46: ; preds = %41
%47 = load i32, ptr %12, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %12, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %52
52: ; preds = %._crit_edge3, %37
store i32 0, ptr %12, align 4
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %12, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %.lr.ph5, label %225
.lr.ph5: ; preds = %52
br label %60
60: ; preds = %.lr.ph5, %215
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %12, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp sgt i32 %66, 127
br i1 %67, label %68, label %69
68: ; preds = %60
store i32 0, ptr %14, align 4
br label %214
69: ; preds = %60
%70 = load ptr, ptr %5, align 8
%71 = load i32, ptr %12, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 62
br i1 %76, label %77, label %82
77: ; preds = %69
%78 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 0
%79 = load ptr, ptr %78, align 16
%80 = load i32, ptr %12, align 4
%81 = call i32 @PushIntStack(ptr noundef %79, i32 noundef %80)
br label %213
82: ; preds = %69
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %12, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 60
br i1 %89, label %90, label %108
90: ; preds = %82
%91 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 0
%92 = load ptr, ptr %91, align 16
%93 = call i32 @PopIntStack(ptr noundef %92, ptr noundef %13)
%94 = icmp ne i32 %93, 0
br i1 %94, label %96, label %95
95: ; preds = %90
store i32 0, ptr %14, align 4
br label %107
96: ; preds = %90
%97 = load i32, ptr %13, align 4
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %12, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
store i32 %97, ptr %101, align 4
%102 = load i32, ptr %12, align 4
%103 = load ptr, ptr %10, align 8
%104 = load i32, ptr %13, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, ptr %103, i64 %105
store i32 %102, ptr %106, align 4
br label %107
107: ; preds = %96, %95
br label %212
108: ; preds = %82
%109 = load i32, ptr %7, align 4
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %134
111: ; preds = %108
%112 = load ptr, ptr %5, align 8
%113 = load i32, ptr %12, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, ptr %112, i64 %114
%116 = load i8, ptr %115, align 1
%117 = sext i8 %116 to i32
%118 = call i64 @isupper(i32 noundef %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %134
120: ; preds = %111
%121 = load ptr, ptr %5, align 8
%122 = load i32, ptr %12, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = sub nsw i32 %126, 65
%128 = add nsw i32 %127, 1
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %129
%131 = load ptr, ptr %130, align 8
%132 = load i32, ptr %12, align 4
%133 = call i32 @PushIntStack(ptr noundef %131, i32 noundef %132)
br label %211
134: ; preds = %111, %108
%135 = load i32, ptr %7, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %173
137: ; preds = %134
%138 = load ptr, ptr %5, align 8
%139 = load i32, ptr %12, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8, ptr %138, i64 %140
%142 = load i8, ptr %141, align 1
%143 = sext i8 %142 to i32
%144 = call i64 @islower(i32 noundef %143)
%145 = icmp ne i64 %144, 0
br i1 %145, label %146, label %173
146: ; preds = %137
%147 = load ptr, ptr %5, align 8
%148 = load i32, ptr %12, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i8, ptr %147, i64 %149
%151 = load i8, ptr %150, align 1
%152 = sext i8 %151 to i32
%153 = sub nsw i32 %152, 97
%154 = add nsw i32 %153, 1
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %155
%157 = load ptr, ptr %156, align 8
%158 = call i32 @PopIntStack(ptr noundef %157, ptr noundef %13)
%159 = icmp ne i32 %158, 0
br i1 %159, label %161, label %160
160: ; preds = %146
store i32 0, ptr %14, align 4
br label %172
161: ; preds = %146
%162 = load i32, ptr %13, align 4
%163 = load ptr, ptr %10, align 8
%164 = load i32, ptr %12, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i32, ptr %163, i64 %165
store i32 %162, ptr %166, align 4
%167 = load i32, ptr %12, align 4
%168 = load ptr, ptr %10, align 8
%169 = load i32, ptr %13, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds i32, ptr %168, i64 %170
store i32 %167, ptr %171, align 4
br label %172
172: ; preds = %161, %160
br label %210
173: ; preds = %137, %134
%174 = load i32, ptr %7, align 4
%175 = icmp ne i32 %174, 0
br i1 %175, label %176, label %209
176: ; preds = %173
%177 = load ptr, ptr %5, align 8
%178 = load i32, ptr %12, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, ptr %177, i64 %179
%181 = load i8, ptr %180, align 1
%182 = sext i8 %181 to i32
%183 = icmp eq i32 %182, 32
br i1 %183, label %209, label %184
184: ; preds = %176
%185 = load ptr, ptr %5, align 8
%186 = load i32, ptr %12, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i8, ptr %185, i64 %187
%189 = load i8, ptr %188, align 1
%190 = sext i8 %189 to i32
%191 = icmp eq i32 %190, 46
br i1 %191, label %209, label %192
192: ; preds = %184
%193 = load ptr, ptr %5, align 8
%194 = load i32, ptr %12, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds i8, ptr %193, i64 %195
%197 = load i8, ptr %196, align 1
%198 = sext i8 %197 to i32
%199 = icmp eq i32 %198, 95
br i1 %199, label %209, label %200
200: ; preds = %192
%201 = load ptr, ptr %5, align 8
%202 = load i32, ptr %12, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds i8, ptr %201, i64 %203
%205 = load i8, ptr %204, align 1
%206 = sext i8 %205 to i32
%207 = icmp eq i32 %206, 45
br i1 %207, label %209, label %208
208: ; preds = %200
store i32 0, ptr %14, align 4
br label %209
209: ; preds = %208, %200, %192, %184, %176, %173
br label %210
210: ; preds = %209, %172
br label %211
211: ; preds = %210, %120
br label %212
212: ; preds = %211, %107
br label %213
213: ; preds = %212, %77
br label %214
214: ; preds = %213, %68
br label %215
215: ; preds = %214
%216 = load i32, ptr %12, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %12, align 4
%218 = load ptr, ptr %5, align 8
%219 = load i32, ptr %12, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i8, ptr %218, i64 %220
%222 = load i8, ptr %221, align 1
%223 = sext i8 %222 to i32
%224 = icmp ne i32 %223, 0
br i1 %224, label %60, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %215
br label %225
225: ; preds = %._crit_edge6, %52
store i32 0, ptr %11, align 4
%226 = load i32, ptr %11, align 4
%227 = icmp slt i32 %226, 27
br i1 %227, label %.lr.ph8, label %242
.lr.ph8: ; preds = %225
br label %228
228: ; preds = %.lr.ph8, %237
%229 = load i32, ptr %11, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [27 x ptr], ptr %9, i64 0, i64 %230
%232 = load ptr, ptr %231, align 8
%233 = call i64 @FreeIntStack(ptr noundef %232)
%234 = icmp sgt i64 %233, 0
br i1 %234, label %235, label %236
235: ; preds = %228
store i32 0, ptr %14, align 4
br label %236
236: ; preds = %235, %228
br label %237
237: ; preds = %236
%238 = load i32, ptr %11, align 4
%239 = add nsw i32 %238, 1
store i32 %239, ptr %11, align 4
%240 = load i32, ptr %11, align 4
%241 = icmp slt i32 %240, 27
br i1 %241, label %228, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %237
br label %242
242: ; preds = %._crit_edge9, %225
%243 = load ptr, ptr %10, align 8
%244 = load ptr, ptr %8, align 8
store ptr %243, ptr %244, align 8
%245 = load i32, ptr %14, align 4
ret i32 %245
}
declare ptr @InitIntStack(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @Die(ptr noundef) #1
declare i32 @PushIntStack(ptr noundef, i32 noundef) #1
declare i32 @PopIntStack(ptr noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
declare i64 @islower(i32 noundef) #1
declare i64 @FreeIntStack(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpivti167j.c'
source_filename = "/tmp/tmpivti167j.c"
target datalayout = "e-m:e-p270: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/tmpivti167j.c"
target datalayout = "e-m:e-p270: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/tmpcgxoew6r.c'
source_filename = "/tmp/tmpcgxoew6r.c"
target datalayout = "e-m:e-p270: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 @Lcd_Init() #0 {
%1 = call i32 @Lcd_Port(i32 noundef 0)
%2 = call i32 @__delay_ms(i32 noundef 20)
%3 = call i32 @Lcd_Cmd(i32 noundef 3)
%4 = call i32 @__delay_ms(i32 noundef 5)
%5 = call i32 @Lcd_Cmd(i32 noundef 3)
%6 = call i32 @__delay_ms(i32 noundef 11)
%7 = call i32 @Lcd_Cmd(i32 noundef 3)
%8 = call i32 @Lcd_Cmd(i32 noundef 2)
%9 = call i32 @Lcd_Cmd(i32 noundef 2)
%10 = call i32 @Lcd_Cmd(i32 noundef 8)
%11 = call i32 @Lcd_Cmd(i32 noundef 0)
%12 = call i32 @Lcd_Cmd(i32 noundef 12)
%13 = call i32 @Lcd_Cmd(i32 noundef 0)
%14 = call i32 @Lcd_Cmd(i32 noundef 6)
ret void
}
declare i32 @Lcd_Port(i32 noundef) #1
declare i32 @__delay_ms(i32 noundef) #1
declare i32 @Lcd_Cmd(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/tmpcgxoew6r.c"
target datalayout = "e-m:e-p270: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 @Lcd_Init() #0 {
%1 = call i32 @Lcd_Port(i32 noundef 0)
%2 = call i32 @__delay_ms(i32 noundef 20)
%3 = call i32 @Lcd_Cmd(i32 noundef 3)
%4 = call i32 @__delay_ms(i32 noundef 5)
%5 = call i32 @Lcd_Cmd(i32 noundef 3)
%6 = call i32 @__delay_ms(i32 noundef 11)
%7 = call i32 @Lcd_Cmd(i32 noundef 3)
%8 = call i32 @Lcd_Cmd(i32 noundef 2)
%9 = call i32 @Lcd_Cmd(i32 noundef 2)
%10 = call i32 @Lcd_Cmd(i32 noundef 8)
%11 = call i32 @Lcd_Cmd(i32 noundef 0)
%12 = call i32 @Lcd_Cmd(i32 noundef 12)
%13 = call i32 @Lcd_Cmd(i32 noundef 0)
%14 = call i32 @Lcd_Cmd(i32 noundef 6)
ret void
}
declare i32 @Lcd_Port(i32 noundef) #1
declare i32 @__delay_ms(i32 noundef) #1
declare i32 @Lcd_Cmd(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/tmpdk2ove5w.c'
source_filename = "/tmp/tmpdk2ove5w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello World!\0A\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
store i32 0, ptr %1, align 4
%2 = call i32 @serial_init(i32 noundef 1)
%3 = call i32 @puts(ptr noundef @.str)
%4 = call i32 @putxval(i32 noundef 16, i32 noundef 0)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = call i32 @putxval(i32 noundef 65535, i32 noundef 0)
%7 = call i32 @puts(ptr noundef @.str.1)
br label %8
8: ; preds = %0, %8
br label %8
}
declare i32 @serial_init(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @putxval(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/tmpdk2ove5w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello World!\0A\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
store i32 0, ptr %1, align 4
%2 = call i32 @serial_init(i32 noundef 1)
%3 = call i32 @puts(ptr noundef @.str)
%4 = call i32 @putxval(i32 noundef 16, i32 noundef 0)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = call i32 @putxval(i32 noundef 65535, i32 noundef 0)
%7 = call i32 @puts(ptr noundef @.str.1)
br label %8
8: ; preds = %8, %0
br label %8
}
declare i32 @serial_init(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @putxval(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/tmpa0hv0orm.c'
source_filename = "/tmp/tmpa0hv0orm.c"
target datalayout = "e-m:e-p270: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: alwaysinline nounwind sspstrong uwtable
define weak dso_local i64 @softboundcets_mbrtowc(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @mbrtowc(ptr noundef %9, ptr noundef %10, i64 noundef %11, ptr noundef %12)
ret i64 %13
}
declare i64 @mbrtowc(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpa0hv0orm.c"
target datalayout = "e-m:e-p270: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: alwaysinline nounwind sspstrong uwtable
define weak dso_local i64 @softboundcets_mbrtowc(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @mbrtowc(ptr noundef %9, ptr noundef %10, i64 noundef %11, ptr noundef %12)
ret i64 %13
}
declare i64 @mbrtowc(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp8f8o6m2d.c'
source_filename = "/tmp/tmp8f8o6m2d.c"
target datalayout = "e-m:e-p270: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 @bar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 1, %5
%7 = trunc i64 %6 to i32
%8 = call ptr @malloc(i32 noundef %7)
store ptr %8, ptr %3, align 8
%9 = load i32, ptr %2, align 4
%10 = call i32 @foo(i32 noundef %9)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @foo(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8f8o6m2d.c"
target datalayout = "e-m:e-p270: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 @bar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 1, %5
%7 = trunc i64 %6 to i32
%8 = call ptr @malloc(i32 noundef %7)
store ptr %8, ptr %3, align 8
%9 = load i32, ptr %2, align 4
%10 = call i32 @foo(i32 noundef %9)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @foo(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo7imfu_g.c'
source_filename = "/tmp/tmpo7imfu_g.c"
target datalayout = "e-m:e-p270: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"Could not allocate buffer\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"r+b\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Could not open file \22%s\22\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [16 x i8] c"Could not seek\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [16 x i8] c"Could not read\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Could not write\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"Did not find string in file \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @binpatch(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
store i32 65536, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %25, %26
%28 = sub nsw i32 %27, 1
store i32 %28, ptr %10, align 4
%29 = load i32, ptr %10, align 4
%30 = call ptr @malloc(i32 noundef %29)
store ptr %30, ptr %13, align 8
%31 = load ptr, ptr %13, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %36
33: ; preds = %3
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%35 = call i32 @exit(i32 noundef 1) #3
unreachable
36: ; preds = %3
%37 = load ptr, ptr %6, align 8
%38 = call ptr @fopen(ptr noundef %37, ptr noundef @.str.1)
store ptr %38, ptr %14, align 8
%39 = load ptr, ptr %14, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = load ptr, ptr %6, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %42)
%44 = call i32 @exit(i32 noundef 1) #3
unreachable
45: ; preds = %36
%46 = load ptr, ptr %14, align 8
%47 = load i32, ptr @SEEK_END, align 4
%48 = call i32 @fseek(ptr noundef %46, i32 noundef 0, i32 noundef %47)
%49 = load ptr, ptr %14, align 8
%50 = call i32 @ftell(ptr noundef %49)
store i32 %50, ptr %12, align 4
%51 = load i32, ptr %12, align 4
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %58
53: ; preds = %45
%54 = load ptr, ptr %14, align 8
%55 = call i32 @fclose(ptr noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%57 = call i32 @exit(i32 noundef 1) #3
unreachable
58: ; preds = %45
store i32 0, ptr %11, align 4
br label %59
59: ; preds = %178, %58
%60 = load i32, ptr %11, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %182
63: ; preds = %59
%64 = load i32, ptr %12, align 4
%65 = load i32, ptr %11, align 4
%66 = sub nsw i32 %64, %65
store i32 %66, ptr %16, align 4
%67 = load i32, ptr %16, align 4
%68 = load i32, ptr %10, align 4
%69 = icmp sgt i32 %67, %68
br i1 %69, label %70, label %72
70: ; preds = %63
%71 = load i32, ptr %10, align 4
store i32 %71, ptr %16, align 4
br label %72
72: ; preds = %70, %63
%73 = load ptr, ptr %14, align 8
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr @SEEK_SET, align 4
%76 = call i32 @fseek(ptr noundef %73, i32 noundef %74, i32 noundef %75)
store i32 %76, ptr %17, align 4
%77 = load i32, ptr %17, align 4
%78 = icmp slt i32 %77, 0
br i1 %78, label %79, label %84
79: ; preds = %72
%80 = load ptr, ptr %14, align 8
%81 = call i32 @fclose(ptr noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%83 = call i32 @exit(i32 noundef 1) #3
unreachable
84: ; preds = %72
%85 = load ptr, ptr %13, align 8
%86 = load i32, ptr %16, align 4
%87 = load ptr, ptr %14, align 8
%88 = call i32 @fread(ptr noundef %85, i32 noundef 1, i32 noundef %86, ptr noundef %87)
%89 = load i32, ptr %16, align 4
%90 = icmp ne i32 %88, %89
br i1 %90, label %91, label %96
91: ; preds = %84
%92 = load ptr, ptr %14, align 8
%93 = call i32 @fclose(ptr noundef %92)
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%95 = call i32 @exit(i32 noundef 1) #3
unreachable
96: ; preds = %84
%97 = load i32, ptr %16, align 4
%98 = load i32, ptr %7, align 4
%99 = sub nsw i32 %97, %98
%100 = add nsw i32 %99, 1
store i32 %100, ptr %16, align 4
store i32 0, ptr %15, align 4
br label %101
101: ; preds = %175, %96
%102 = load i32, ptr %15, align 4
%103 = load i32, ptr %16, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %178
105: ; preds = %101
%106 = load ptr, ptr %13, align 8
%107 = load i32, ptr %15, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, ptr %106, i64 %108
%110 = load i8, ptr %109, align 1
%111 = sext i8 %110 to i32
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 0
%114 = load i8, ptr %113, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %111, %115
br i1 %116, label %117, label %174
117: ; preds = %105
store i32 1, ptr %18, align 4
br label %118
118: ; preds = %140, %117
%119 = load i32, ptr %18, align 4
%120 = load i32, ptr %7, align 4
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %143
122: ; preds = %118
%123 = load ptr, ptr %13, align 8
%124 = load i32, ptr %15, align 4
%125 = load i32, ptr %18, align 4
%126 = add nsw i32 %124, %125
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, ptr %123, i64 %127
%129 = load i8, ptr %128, align 1
%130 = sext i8 %129 to i32
%131 = load ptr, ptr %4, align 8
%132 = load i32, ptr %18, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, ptr %131, i64 %133
%135 = load i8, ptr %134, align 1
%136 = sext i8 %135 to i32
%137 = icmp ne i32 %130, %136
br i1 %137, label %138, label %139
138: ; preds = %122
br label %173
139: ; preds = %122
br label %140
140: ; preds = %139
%141 = load i32, ptr %18, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %18, align 4
br label %118, !llvm.loop !6
143: ; preds = %118
%144 = load i32, ptr %11, align 4
%145 = load i32, ptr %15, align 4
%146 = add nsw i32 %144, %145
store i32 %146, ptr %11, align 4
%147 = load ptr, ptr %14, align 8
%148 = load i32, ptr %11, align 4
%149 = load i32, ptr @SEEK_SET, align 4
%150 = call i32 @fseek(ptr noundef %147, i32 noundef %148, i32 noundef %149)
store i32 %150, ptr %17, align 4
%151 = load i32, ptr %17, align 4
%152 = icmp slt i32 %151, 0
br i1 %152, label %153, label %158
153: ; preds = %143
%154 = load ptr, ptr %14, align 8
%155 = call i32 @fclose(ptr noundef %154)
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%157 = call i32 @exit(i32 noundef 1) #3
unreachable
158: ; preds = %143
%159 = load ptr, ptr %5, align 8
%160 = load i32, ptr %8, align 4
%161 = load ptr, ptr %14, align 8
%162 = call i32 @fwrite(ptr noundef %159, i32 noundef 1, i32 noundef %160, ptr noundef %161)
%163 = load i32, ptr %8, align 4
%164 = icmp ne i32 %162, %163
br i1 %164, label %165, label %170
165: ; preds = %158
%166 = load ptr, ptr %14, align 8
%167 = call i32 @fclose(ptr noundef %166)
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%169 = call i32 @exit(i32 noundef 1) #3
unreachable
170: ; preds = %158
%171 = load ptr, ptr %14, align 8
%172 = call i32 @fclose(ptr noundef %171)
ret void
173: ; preds = %138
br label %174
174: ; preds = %173, %105
br label %175
175: ; preds = %174
%176 = load i32, ptr %15, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %15, align 4
br label %101, !llvm.loop !8
178: ; preds = %101
%179 = load i32, ptr %9, align 4
%180 = load i32, ptr %11, align 4
%181 = add nsw i32 %180, %179
store i32 %181, ptr %11, align 4
br label %59, !llvm.loop !9
182: ; preds = %59
%183 = load ptr, ptr %14, align 8
%184 = call i32 @fclose(ptr noundef %183)
%185 = load ptr, ptr %6, align 8
%186 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %185)
%187 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo7imfu_g.c"
target datalayout = "e-m:e-p270: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"Could not allocate buffer\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"r+b\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Could not open file \22%s\22\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [16 x i8] c"Could not seek\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [16 x i8] c"Could not read\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Could not write\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"Did not find string in file \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @binpatch(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
store i32 65536, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %25, %26
%28 = sub nsw i32 %27, 1
store i32 %28, ptr %10, align 4
%29 = load i32, ptr %10, align 4
%30 = call ptr @malloc(i32 noundef %29)
store ptr %30, ptr %13, align 8
%31 = load ptr, ptr %13, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %36
33: ; preds = %3
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%35 = call i32 @exit(i32 noundef 1) #3
unreachable
36: ; preds = %3
%37 = load ptr, ptr %6, align 8
%38 = call ptr @fopen(ptr noundef %37, ptr noundef @.str.1)
store ptr %38, ptr %14, align 8
%39 = load ptr, ptr %14, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = load ptr, ptr %6, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %42)
%44 = call i32 @exit(i32 noundef 1) #3
unreachable
45: ; preds = %36
%46 = load ptr, ptr %14, align 8
%47 = load i32, ptr @SEEK_END, align 4
%48 = call i32 @fseek(ptr noundef %46, i32 noundef 0, i32 noundef %47)
%49 = load ptr, ptr %14, align 8
%50 = call i32 @ftell(ptr noundef %49)
store i32 %50, ptr %12, align 4
%51 = load i32, ptr %12, align 4
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %58
53: ; preds = %45
%54 = load ptr, ptr %14, align 8
%55 = call i32 @fclose(ptr noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%57 = call i32 @exit(i32 noundef 1) #3
unreachable
58: ; preds = %45
store i32 0, ptr %11, align 4
%59 = load i32, ptr %11, align 4
%60 = load i32, ptr %12, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %.lr.ph6, label %188
.lr.ph6: ; preds = %58
br label %62
62: ; preds = %.lr.ph6, %181
%63 = load i32, ptr %12, align 4
%64 = load i32, ptr %11, align 4
%65 = sub nsw i32 %63, %64
store i32 %65, ptr %16, align 4
%66 = load i32, ptr %16, align 4
%67 = load i32, ptr %10, align 4
%68 = icmp sgt i32 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %62
%70 = load i32, ptr %10, align 4
store i32 %70, ptr %16, align 4
br label %71
71: ; preds = %69, %62
%72 = load ptr, ptr %14, align 8
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr @SEEK_SET, align 4
%75 = call i32 @fseek(ptr noundef %72, i32 noundef %73, i32 noundef %74)
store i32 %75, ptr %17, align 4
%76 = load i32, ptr %17, align 4
%77 = icmp slt i32 %76, 0
br i1 %77, label %78, label %83
78: ; preds = %71
%79 = load ptr, ptr %14, align 8
%80 = call i32 @fclose(ptr noundef %79)
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%82 = call i32 @exit(i32 noundef 1) #3
unreachable
83: ; preds = %71
%84 = load ptr, ptr %13, align 8
%85 = load i32, ptr %16, align 4
%86 = load ptr, ptr %14, align 8
%87 = call i32 @fread(ptr noundef %84, i32 noundef 1, i32 noundef %85, ptr noundef %86)
%88 = load i32, ptr %16, align 4
%89 = icmp ne i32 %87, %88
br i1 %89, label %90, label %95
90: ; preds = %83
%91 = load ptr, ptr %14, align 8
%92 = call i32 @fclose(ptr noundef %91)
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%94 = call i32 @exit(i32 noundef 1) #3
unreachable
95: ; preds = %83
%96 = load i32, ptr %16, align 4
%97 = load i32, ptr %7, align 4
%98 = sub nsw i32 %96, %97
%99 = add nsw i32 %98, 1
store i32 %99, ptr %16, align 4
store i32 0, ptr %15, align 4
%100 = load i32, ptr %15, align 4
%101 = load i32, ptr %16, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %.lr.ph3, label %181
.lr.ph3: ; preds = %95
br label %103
103: ; preds = %.lr.ph3, %175
%104 = load ptr, ptr %13, align 8
%105 = load i32, ptr %15, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %104, i64 %106
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = load ptr, ptr %4, align 8
%111 = getelementptr inbounds i8, ptr %110, i64 0
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %109, %113
br i1 %114, label %115, label %174
115: ; preds = %103
store i32 1, ptr %18, align 4
%116 = load i32, ptr %18, align 4
%117 = load i32, ptr %7, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %115
br label %119
119: ; preds = %.lr.ph, %137
%120 = load ptr, ptr %13, align 8
%121 = load i32, ptr %15, align 4
%122 = load i32, ptr %18, align 4
%123 = add nsw i32 %121, %122
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, ptr %120, i64 %124
%126 = load i8, ptr %125, align 1
%127 = sext i8 %126 to i32
%128 = load ptr, ptr %4, align 8
%129 = load i32, ptr %18, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, ptr %128, i64 %130
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = icmp ne i32 %127, %133
br i1 %134, label %135, label %136
135: ; preds = %119
br label %173
136: ; preds = %119
br label %137
137: ; preds = %136
%138 = load i32, ptr %18, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %18, align 4
%140 = load i32, ptr %18, align 4
%141 = load i32, ptr %7, align 4
%142 = icmp slt i32 %140, %141
br i1 %142, label %119, label %._crit_edge1, !llvm.loop !6
._crit_edge: ; preds = %115
br label %143
._crit_edge1: ; preds = %137
br label %143
143: ; preds = %._crit_edge1, %._crit_edge
%144 = load i32, ptr %11, align 4
%145 = load i32, ptr %15, align 4
%146 = add nsw i32 %144, %145
store i32 %146, ptr %11, align 4
%147 = load ptr, ptr %14, align 8
%148 = load i32, ptr %11, align 4
%149 = load i32, ptr @SEEK_SET, align 4
%150 = call i32 @fseek(ptr noundef %147, i32 noundef %148, i32 noundef %149)
store i32 %150, ptr %17, align 4
%151 = load i32, ptr %17, align 4
%152 = icmp slt i32 %151, 0
br i1 %152, label %153, label %158
153: ; preds = %143
%154 = load ptr, ptr %14, align 8
%155 = call i32 @fclose(ptr noundef %154)
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%157 = call i32 @exit(i32 noundef 1) #3
unreachable
158: ; preds = %143
%159 = load ptr, ptr %5, align 8
%160 = load i32, ptr %8, align 4
%161 = load ptr, ptr %14, align 8
%162 = call i32 @fwrite(ptr noundef %159, i32 noundef 1, i32 noundef %160, ptr noundef %161)
%163 = load i32, ptr %8, align 4
%164 = icmp ne i32 %162, %163
br i1 %164, label %165, label %170
165: ; preds = %158
%166 = load ptr, ptr %14, align 8
%167 = call i32 @fclose(ptr noundef %166)
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%169 = call i32 @exit(i32 noundef 1) #3
unreachable
170: ; preds = %158
%171 = load ptr, ptr %14, align 8
%172 = call i32 @fclose(ptr noundef %171)
ret void
173: ; preds = %135
br label %174
174: ; preds = %173, %103
br label %175
175: ; preds = %174
%176 = load i32, ptr %15, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %15, align 4
%178 = load i32, ptr %15, align 4
%179 = load i32, ptr %16, align 4
%180 = icmp slt i32 %178, %179
br i1 %180, label %103, label %._crit_edge4, !llvm.loop !8
._crit_edge4: ; preds = %175
br label %181
181: ; preds = %._crit_edge4, %95
%182 = load i32, ptr %9, align 4
%183 = load i32, ptr %11, align 4
%184 = add nsw i32 %183, %182
store i32 %184, ptr %11, align 4
%185 = load i32, ptr %11, align 4
%186 = load i32, ptr %12, align 4
%187 = icmp slt i32 %185, %186
br i1 %187, label %62, label %._crit_edge7, !llvm.loop !9
._crit_edge7: ; preds = %181
br label %188
188: ; preds = %._crit_edge7, %58
%189 = load ptr, ptr %14, align 8
%190 = call i32 @fclose(ptr noundef %189)
%191 = load ptr, ptr %6, align 8
%192 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %191)
%193 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpmglk92q0.c'
source_filename = "/tmp/tmpmglk92q0.c"
target datalayout = "e-m:e-p270: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 @fillRect(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3, i16 noundef signext %4) #0 {
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
store i16 %0, ptr %6, align 2
store i16 %1, ptr %7, align 2
store i16 %2, ptr %8, align 2
store i16 %3, ptr %9, align 2
store i16 %4, ptr %10, align 2
store i16 0, ptr %11, align 2
%12 = load i16, ptr %6, align 2
store i16 %12, ptr %11, align 2
br label %13
13: ; preds = %28, %5
%14 = load i16, ptr %11, align 2
%15 = sext i16 %14 to i32
%16 = load i16, ptr %6, align 2
%17 = sext i16 %16 to i32
%18 = load i16, ptr %8, align 2
%19 = sext i16 %18 to i32
%20 = add nsw i32 %17, %19
%21 = icmp slt i32 %15, %20
br i1 %21, label %22, label %31
22: ; preds = %13
%23 = load i16, ptr %11, align 2
%24 = load i16, ptr %7, align 2
%25 = load i16, ptr %9, align 2
%26 = load i16, ptr %10, align 2
%27 = call i32 @writeFastVLine(i16 noundef signext %23, i16 noundef signext %24, i16 noundef signext %25, i16 noundef signext %26)
br label %28
28: ; preds = %22
%29 = load i16, ptr %11, align 2
%30 = add i16 %29, 1
store i16 %30, ptr %11, align 2
br label %13, !llvm.loop !6
31: ; preds = %13
ret void
}
declare i32 @writeFastVLine(i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 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/tmpmglk92q0.c"
target datalayout = "e-m:e-p270: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 @fillRect(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3, i16 noundef signext %4) #0 {
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca i16, align 2
%11 = alloca i16, align 2
store i16 %0, ptr %6, align 2
store i16 %1, ptr %7, align 2
store i16 %2, ptr %8, align 2
store i16 %3, ptr %9, align 2
store i16 %4, ptr %10, align 2
store i16 0, ptr %11, align 2
%12 = load i16, ptr %6, align 2
store i16 %12, ptr %11, align 2
%13 = load i16, ptr %11, align 2
%14 = sext i16 %13 to i32
%15 = load i16, ptr %6, align 2
%16 = sext i16 %15 to i32
%17 = load i16, ptr %8, align 2
%18 = sext i16 %17 to i32
%19 = add nsw i32 %16, %18
%20 = icmp slt i32 %14, %19
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %5
br label %21
21: ; preds = %.lr.ph, %27
%22 = load i16, ptr %11, align 2
%23 = load i16, ptr %7, align 2
%24 = load i16, ptr %9, align 2
%25 = load i16, ptr %10, align 2
%26 = call i32 @writeFastVLine(i16 noundef signext %22, i16 noundef signext %23, i16 noundef signext %24, i16 noundef signext %25)
br label %27
27: ; preds = %21
%28 = load i16, ptr %11, align 2
%29 = add i16 %28, 1
store i16 %29, ptr %11, align 2
%30 = load i16, ptr %11, align 2
%31 = sext i16 %30 to i32
%32 = load i16, ptr %6, align 2
%33 = sext i16 %32 to i32
%34 = load i16, ptr %8, align 2
%35 = sext i16 %34 to i32
%36 = add nsw i32 %33, %35
%37 = icmp slt i32 %31, %36
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %38
38: ; preds = %._crit_edge, %5
ret void
}
declare i32 @writeFastVLine(i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 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/tmpjnah8kpo.c'
source_filename = "/tmp/tmpjnah8kpo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s <port>\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"UPD socket creation error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"bind() error\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 [30 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %2
%21 = load i32, ptr @PF_INET, align 4
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @error_handling(ptr noundef @.str.1)
br label %28
28: ; preds = %26, %20
%29 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 12)
%30 = load i32, ptr @AF_INET, align 4
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %30, ptr %31, align 4
%32 = load i32, ptr @INADDR_ANY, align 4
%33 = call i32 @htonl(i32 noundef %32)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
store i32 %33, ptr %35, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 1
%38 = load ptr, ptr %37, align 8
%39 = call i32 @atoi(ptr noundef %38)
%40 = call i32 @htons(i32 noundef %39)
%41 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %40, ptr %41, align 4
%42 = load i32, ptr %6, align 4
%43 = call i32 @bind(i32 noundef %42, ptr noundef %10, i32 noundef 12)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %47
45: ; preds = %28
%46 = call i32 @error_handling(ptr noundef @.str.2)
br label %47
47: ; preds = %45, %28
br label %48
48: ; preds = %47, %48
store i32 12, ptr %9, align 4
%49 = load i32, ptr %6, align 4
%50 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%51 = call i32 @recvfrom(i32 noundef %49, ptr noundef %50, i32 noundef 30, i32 noundef 0, ptr noundef %11, ptr noundef %9)
store i32 %51, ptr %8, align 4
%52 = load i32, ptr %6, align 4
%53 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %9, align 4
%56 = call i32 @sendto(i32 noundef %52, ptr noundef %53, i32 noundef %54, i32 noundef 0, ptr noundef %11, i32 noundef %55)
br label %48
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error_handling(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpjnah8kpo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s <port>\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"UPD socket creation error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"bind() error\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 [30 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %2
%21 = load i32, ptr @PF_INET, align 4
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @error_handling(ptr noundef @.str.1)
br label %28
28: ; preds = %26, %20
%29 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 12)
%30 = load i32, ptr @AF_INET, align 4
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %30, ptr %31, align 4
%32 = load i32, ptr @INADDR_ANY, align 4
%33 = call i32 @htonl(i32 noundef %32)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
store i32 %33, ptr %35, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 1
%38 = load ptr, ptr %37, align 8
%39 = call i32 @atoi(ptr noundef %38)
%40 = call i32 @htons(i32 noundef %39)
%41 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %40, ptr %41, align 4
%42 = load i32, ptr %6, align 4
%43 = call i32 @bind(i32 noundef %42, ptr noundef %10, i32 noundef 12)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %47
45: ; preds = %28
%46 = call i32 @error_handling(ptr noundef @.str.2)
br label %47
47: ; preds = %45, %28
br label %48
48: ; preds = %48, %47
store i32 12, ptr %9, align 4
%49 = load i32, ptr %6, align 4
%50 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%51 = call i32 @recvfrom(i32 noundef %49, ptr noundef %50, i32 noundef 30, i32 noundef 0, ptr noundef %11, ptr noundef %9)
store i32 %51, ptr %8, align 4
%52 = load i32, ptr %6, align 4
%53 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %9, align 4
%56 = call i32 @sendto(i32 noundef %52, ptr noundef %53, i32 noundef %54, i32 noundef 0, ptr noundef %11, i32 noundef %55)
br label %48
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error_handling(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmplfbtaht5.c'
source_filename = "/tmp/tmplfbtaht5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"All OK.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test_add_digits()
%7 = call i32 (...) @test_to_from_strz()
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test_add_digits(...) #1
declare i32 @test_to_from_strz(...) #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/tmplfbtaht5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"All OK.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test_add_digits()
%7 = call i32 (...) @test_to_from_strz()
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test_add_digits(...) #1
declare i32 @test_to_from_strz(...) #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/tmpnd644q98.c'
source_filename = "/tmp/tmpnd644q98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skipUntilChar(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr null, %6
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
br label %10
10: ; preds = %22, %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @fgetc(ptr noundef %11)
store i32 %12, ptr %5, align 4
br label %13
13: ; preds = %10
%14 = load i32, ptr @EOF, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp ne i32 %14, %15
br i1 %16, label %17, label %22
17: ; preds = %13
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = load i32, ptr %5, align 4
%21 = icmp ne i32 %19, %20
br label %22
22: ; preds = %17, %13
%23 = phi i1 [ false, %13 ], [ %21, %17 ]
br i1 %23, label %10, label %24, !llvm.loop !6
24: ; preds = %22
%25 = load i32, ptr %5, align 4
ret i32 %25
}
declare i32 @assert(i32 noundef) #1
declare i32 @fgetc(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/tmpnd644q98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skipUntilChar(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr null, %6
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
br label %10
10: ; preds = %22, %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @fgetc(ptr noundef %11)
store i32 %12, ptr %5, align 4
br label %13
13: ; preds = %10
%14 = load i32, ptr @EOF, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp ne i32 %14, %15
br i1 %16, label %17, label %22
17: ; preds = %13
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = load i32, ptr %5, align 4
%21 = icmp ne i32 %19, %20
br label %22
22: ; preds = %17, %13
%23 = phi i1 [ false, %13 ], [ %21, %17 ]
br i1 %23, label %10, label %24, !llvm.loop !6
24: ; preds = %22
%25 = load i32, ptr %5, align 4
ret i32 %25
}
declare i32 @assert(i32 noundef) #1
declare i32 @fgetc(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/tmpfsxgmub_.c'
source_filename = "/tmp/tmpfsxgmub_.c"
target datalayout = "e-m:e-p270: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_dec_16(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
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %7, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %7, 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/tmpfsxgmub_.c"
target datalayout = "e-m:e-p270: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_dec_16(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
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %7, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %7, 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/tmplw44sy_p.c'
source_filename = "/tmp/tmplw44sy_p.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"/proc/net/route\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"INET (IPv4) not configured in this system.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_clean_gateway() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [132 x i8], align 16
%4 = alloca ptr, align 8
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %31
11: ; preds = %0
%12 = getelementptr inbounds [132 x i8], ptr %3, i64 0, i64 0
%13 = load ptr, ptr %4, align 8
%14 = call ptr @fgets(ptr noundef %12, i32 noundef 130, ptr noundef %13)
br label %15
15: ; preds = %27, %11
%16 = getelementptr inbounds [132 x i8], ptr %3, i64 0, i64 0
%17 = load ptr, ptr %4, align 8
%18 = call ptr @fgets(ptr noundef %16, i32 noundef 130, ptr noundef %17)
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %28
20: ; preds = %15
%21 = getelementptr inbounds [132 x i8], ptr %3, i64 0, i64 0
%22 = call i64 @net_search_gateway(ptr noundef %21, ptr noundef %2)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr %2, align 4
%26 = call i32 @net_del_gateway(i32 noundef %25)
br label %27
27: ; preds = %24, %20
br label %15, !llvm.loop !6
28: ; preds = %15
%29 = load ptr, ptr %4, align 8
%30 = call i32 @fclose(ptr noundef %29)
store i32 0, ptr %1, align 4
br label %31
31: ; preds = %28, %8
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @net_search_gateway(ptr noundef, ptr noundef) #1
declare i32 @net_del_gateway(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplw44sy_p.c"
target datalayout = "e-m:e-p270: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 [16 x i8] c"/proc/net/route\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"INET (IPv4) not configured in this system.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_clean_gateway() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [132 x i8], align 16
%4 = alloca ptr, align 8
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %33
11: ; preds = %0
%12 = getelementptr inbounds [132 x i8], ptr %3, i64 0, i64 0
%13 = load ptr, ptr %4, align 8
%14 = call ptr @fgets(ptr noundef %12, i32 noundef 130, ptr noundef %13)
%15 = getelementptr inbounds [132 x i8], ptr %3, i64 0, i64 0
%16 = load ptr, ptr %4, align 8
%17 = call ptr @fgets(ptr noundef %15, i32 noundef 130, ptr noundef %16)
%18 = icmp ne ptr %17, null
br i1 %18, label %.lr.ph, label %30
.lr.ph: ; preds = %11
br label %19
19: ; preds = %.lr.ph, %26
%20 = getelementptr inbounds [132 x i8], ptr %3, i64 0, i64 0
%21 = call i64 @net_search_gateway(ptr noundef %20, ptr noundef %2)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i32, ptr %2, align 4
%25 = call i32 @net_del_gateway(i32 noundef %24)
br label %26
26: ; preds = %23, %19
%27 = load ptr, ptr %4, align 8
%28 = call ptr @fgets(ptr noundef %15, i32 noundef 130, ptr noundef %27)
%29 = icmp ne ptr %28, null
br i1 %29, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %30
30: ; preds = %._crit_edge, %11
%31 = load ptr, ptr %4, align 8
%32 = call i32 @fclose(ptr noundef %31)
store i32 0, ptr %1, align 4
br label %33
33: ; preds = %30, %8
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @net_search_gateway(ptr noundef, ptr noundef) #1
declare i32 @net_del_gateway(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcm_w4uvu.c'
source_filename = "/tmp/tmpcm_w4uvu.c"
target datalayout = "e-m:e-p270: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 @vfc_hashmap_str_function(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %3, align 8
store i64 0, ptr %4, align 8
br label %6
6: ; preds = %11, %1
%7 = load ptr, ptr %3, align 8
%8 = load i8, ptr %7, align 1
%9 = zext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %6
%12 = load i64, ptr %4, align 8
%13 = mul i64 %12, 31
%14 = load ptr, ptr %3, align 8
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i64
%17 = add i64 %13, %16
store i64 %17, ptr %4, align 8
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %3, align 8
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = load i64, ptr %4, align 8
ret i64 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpcm_w4uvu.c"
target datalayout = "e-m:e-p270: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 @vfc_hashmap_str_function(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %3, align 8
store i64 0, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = zext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i64, ptr %4, align 8
%12 = mul i64 %11, 31
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i64
%16 = add i64 %12, %15
store i64 %16, ptr %4, align 8
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %3, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %23
23: ; preds = %._crit_edge, %1
%24 = load i64, ptr %4, align 8
ret i64 %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.