llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpuqpuuny1.c'
source_filename = "/tmp/tmpuqpuuny1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Error : Divide by zero\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @div() #0 {
br label %1
1: ; preds = %0
%2 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuqpuuny1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Error : Divide by zero\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @div() #0 {
br label %1
1: ; preds = %0
%2 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeoidflzw.c'
source_filename = "/tmp/tmpeoidflzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matCalcPolar(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca [3 x double], align 16
%21 = alloca [3 x double], align 16
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds double, ptr %25, i64 0
%27 = load double, ptr %26, align 8
%28 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
store double %27, ptr %28, align 16
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds double, ptr %29, i64 1
%31 = load double, ptr %30, align 8
%32 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 1
store double %31, ptr %32, align 8
%33 = load ptr, ptr %6, align 8
%34 = getelementptr inbounds double, ptr %33, i64 2
%35 = load double, ptr %34, align 8
%36 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 2
store double %35, ptr %36, align 16
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds double, ptr %37, i64 0
%39 = load double, ptr %38, align 8
%40 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
store double %39, ptr %40, align 16
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds double, ptr %41, i64 1
%43 = load double, ptr %42, align 8
%44 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
store double %43, ptr %44, align 8
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds double, ptr %45, i64 2
%47 = load double, ptr %46, align 8
%48 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
store double %47, ptr %48, align 16
%49 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%50 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%51 = call i32 @matNormalize(ptr noundef %49, ptr noundef %50)
%52 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%53 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%54 = call i32 @matNormalize(ptr noundef %52, ptr noundef %53)
%55 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%56 = load double, ptr %55, align 16
store double %56, ptr %11, align 8
%57 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 1
%58 = load double, ptr %57, align 8
store double %58, ptr %12, align 8
%59 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 2
%60 = load double, ptr %59, align 16
store double %60, ptr %13, align 8
%61 = load double, ptr %11, align 8
%62 = load double, ptr %11, align 8
%63 = fmul double %61, %62
store double %63, ptr %14, align 8
%64 = load double, ptr %11, align 8
%65 = load double, ptr %12, align 8
%66 = fmul double %64, %65
store double %66, ptr %17, align 8
%67 = load double, ptr %11, align 8
%68 = load double, ptr %13, align 8
%69 = fmul double %67, %68
store double %69, ptr %18, align 8
%70 = load double, ptr %12, align 8
%71 = load double, ptr %12, align 8
%72 = fmul double %70, %71
store double %72, ptr %15, align 8
%73 = load double, ptr %12, align 8
%74 = load double, ptr %13, align 8
%75 = fmul double %73, %74
store double %75, ptr %19, align 8
%76 = load double, ptr %13, align 8
%77 = load double, ptr %13, align 8
%78 = fmul double %76, %77
store double %78, ptr %16, align 8
%79 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%80 = load double, ptr %79, align 16
store double %80, ptr %22, align 8
%81 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
%82 = load double, ptr %81, align 8
store double %82, ptr %23, align 8
%83 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
%84 = load double, ptr %83, align 16
store double %84, ptr %24, align 8
%85 = load double, ptr %11, align 8
%86 = call double @acos(double noundef %85) #3
%87 = load ptr, ptr %8, align 8
store double %86, ptr %87, align 8
%88 = load double, ptr %12, align 8
%89 = load ptr, ptr %8, align 8
%90 = load double, ptr %89, align 8
%91 = call double @sin(double noundef %90) #3
%92 = fdiv double %88, %91
%93 = call double @acos(double noundef %92) #3
%94 = load ptr, ptr %9, align 8
store double %93, ptr %94, align 8
%95 = load double, ptr %23, align 8
%96 = load double, ptr %17, align 8
%97 = fsub double %95, %96
%98 = load double, ptr %17, align 8
%99 = load double, ptr %22, align 8
%100 = load double, ptr %15, align 8
%101 = fsub double %99, %100
%102 = fmul double %98, %101
%103 = load double, ptr %15, align 8
%104 = fsub double 1.000000e+00, %103
%105 = fdiv double %102, %104
%106 = fadd double %97, %105
%107 = load double, ptr %13, align 8
%108 = fdiv double %106, %107
%109 = call double @asin(double noundef %108) #3
%110 = load ptr, ptr %10, align 8
store double %109, ptr %110, align 8
ret i32 0
}
declare i32 @matNormalize(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @acos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @asin(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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/tmpeoidflzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matCalcPolar(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca [3 x double], align 16
%21 = alloca [3 x double], align 16
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds double, ptr %25, i64 0
%27 = load double, ptr %26, align 8
%28 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
store double %27, ptr %28, align 16
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds double, ptr %29, i64 1
%31 = load double, ptr %30, align 8
%32 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 1
store double %31, ptr %32, align 8
%33 = load ptr, ptr %6, align 8
%34 = getelementptr inbounds double, ptr %33, i64 2
%35 = load double, ptr %34, align 8
%36 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 2
store double %35, ptr %36, align 16
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds double, ptr %37, i64 0
%39 = load double, ptr %38, align 8
%40 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
store double %39, ptr %40, align 16
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds double, ptr %41, i64 1
%43 = load double, ptr %42, align 8
%44 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
store double %43, ptr %44, align 8
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds double, ptr %45, i64 2
%47 = load double, ptr %46, align 8
%48 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
store double %47, ptr %48, align 16
%49 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%50 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%51 = call i32 @matNormalize(ptr noundef %49, ptr noundef %50)
%52 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%53 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%54 = call i32 @matNormalize(ptr noundef %52, ptr noundef %53)
%55 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
%56 = load double, ptr %55, align 16
store double %56, ptr %11, align 8
%57 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 1
%58 = load double, ptr %57, align 8
store double %58, ptr %12, align 8
%59 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 2
%60 = load double, ptr %59, align 16
store double %60, ptr %13, align 8
%61 = load double, ptr %11, align 8
%62 = load double, ptr %11, align 8
%63 = fmul double %61, %62
store double %63, ptr %14, align 8
%64 = load double, ptr %11, align 8
%65 = load double, ptr %12, align 8
%66 = fmul double %64, %65
store double %66, ptr %17, align 8
%67 = load double, ptr %11, align 8
%68 = load double, ptr %13, align 8
%69 = fmul double %67, %68
store double %69, ptr %18, align 8
%70 = load double, ptr %12, align 8
%71 = load double, ptr %12, align 8
%72 = fmul double %70, %71
store double %72, ptr %15, align 8
%73 = load double, ptr %12, align 8
%74 = load double, ptr %13, align 8
%75 = fmul double %73, %74
store double %75, ptr %19, align 8
%76 = load double, ptr %13, align 8
%77 = load double, ptr %13, align 8
%78 = fmul double %76, %77
store double %78, ptr %16, align 8
%79 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
%80 = load double, ptr %79, align 16
store double %80, ptr %22, align 8
%81 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
%82 = load double, ptr %81, align 8
store double %82, ptr %23, align 8
%83 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
%84 = load double, ptr %83, align 16
store double %84, ptr %24, align 8
%85 = load double, ptr %11, align 8
%86 = call double @acos(double noundef %85) #3
%87 = load ptr, ptr %8, align 8
store double %86, ptr %87, align 8
%88 = load double, ptr %12, align 8
%89 = load ptr, ptr %8, align 8
%90 = load double, ptr %89, align 8
%91 = call double @sin(double noundef %90) #3
%92 = fdiv double %88, %91
%93 = call double @acos(double noundef %92) #3
%94 = load ptr, ptr %9, align 8
store double %93, ptr %94, align 8
%95 = load double, ptr %23, align 8
%96 = load double, ptr %17, align 8
%97 = fsub double %95, %96
%98 = load double, ptr %17, align 8
%99 = load double, ptr %22, align 8
%100 = load double, ptr %15, align 8
%101 = fsub double %99, %100
%102 = fmul double %98, %101
%103 = load double, ptr %15, align 8
%104 = fsub double 1.000000e+00, %103
%105 = fdiv double %102, %104
%106 = fadd double %97, %105
%107 = load double, ptr %13, align 8
%108 = fdiv double %106, %107
%109 = call double @asin(double noundef %108) #3
%110 = load ptr, ptr %10, align 8
store double %109, ptr %110, align 8
ret i32 0
}
declare i32 @matNormalize(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @acos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @asin(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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/tmpyeo8weaz.c'
source_filename = "/tmp/tmpyeo8weaz.c"
target datalayout = "e-m:e-p270: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/tmpyeo8weaz.c"
target datalayout = "e-m:e-p270: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/tmpiki6ns2u.c'
source_filename = "/tmp/tmpiki6ns2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_PWM_dutycycle(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @pigpio_command(i32 noundef %5, i32 noundef 83, i32 noundef %6, i32 noundef 0, i32 noundef 1)
ret i32 %7
}
declare i32 @pigpio_command(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiki6ns2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_PWM_dutycycle(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @pigpio_command(i32 noundef %5, i32 noundef 83, i32 noundef %6, i32 noundef 0, i32 noundef 1)
ret i32 %7
}
declare i32 @pigpio_command(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprh_y_t7r.c'
source_filename = "/tmp/tmprh_y_t7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qsort_ascending(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @strcmp(ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprh_y_t7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qsort_ascending(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @strcmp(ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwf8k4orc.c'
source_filename = "/tmp/tmpwf8k4orc.c"
target datalayout = "e-m:e-p270: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/tmpwf8k4orc.c"
target datalayout = "e-m:e-p270: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/tmp8iyk5mlp.c'
source_filename = "/tmp/tmp8iyk5mlp.c"
target datalayout = "e-m:e-p270: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/tmp8iyk5mlp.c"
target datalayout = "e-m:e-p270: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/tmplm_oom6x.c'
source_filename = "/tmp/tmplm_oom6x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @getopt_internal(i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef null, ptr noundef null, i32 noundef 0)
ret i32 %10
}
declare i32 @getopt_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplm_oom6x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @getopt_internal(i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef null, ptr noundef null, i32 noundef 0)
ret i32 %10
}
declare i32 @getopt_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjfw4_81s.c'
source_filename = "/tmp/tmpjfw4_81s.c"
target datalayout = "e-m:e-p270: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/tmpjfw4_81s.c"
target datalayout = "e-m:e-p270: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/tmpi6lc3sgl.c'
source_filename = "/tmp/tmpi6lc3sgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testMyMalloc() #0 {
%1 = call i32 (...) @my_malloc_into_struct()
ret void
}
declare i32 @my_malloc_into_struct(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi6lc3sgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testMyMalloc() #0 {
%1 = call i32 (...) @my_malloc_into_struct()
ret void
}
declare i32 @my_malloc_into_struct(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp22pnhwz7.c'
source_filename = "/tmp/tmp22pnhwz7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ice_fraction(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%7 = load double, ptr %5, align 8
%8 = fcmp ogt double %7, 3.280000e+02
br i1 %8, label %9, label %10
9: ; preds = %2
store double 3.280000e+02, ptr %5, align 8
br label %10
10: ; preds = %9, %2
%11 = load double, ptr %5, align 8
%12 = fsub double 3.280000e+02, %11
%13 = fdiv double %12, 9.000000e+01
%14 = call double @pow(double noundef %13, double noundef 5.000000e+00) #2
store double %14, ptr %6, align 8
%15 = load double, ptr %6, align 8
%16 = load double, ptr %4, align 8
%17 = fmul double 1.500000e+00, %16
%18 = fcmp ogt double %15, %17
br i1 %18, label %19, label %22
19: ; preds = %10
%20 = load double, ptr %4, align 8
%21 = fmul double 1.500000e+00, %20
store double %21, ptr %6, align 8
br label %22
22: ; preds = %19, %10
%23 = load double, ptr %6, align 8
%24 = fcmp oge double %23, 1.000000e+00
br i1 %24, label %25, label %26
25: ; preds = %22
store double 1.000000e+00, ptr %3, align 8
br label %28
26: ; preds = %22
%27 = load double, ptr %6, align 8
store double %27, ptr %3, align 8
br label %28
28: ; preds = %26, %25
%29 = load double, ptr %3, align 8
ret double %29
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp22pnhwz7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ice_fraction(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%7 = load double, ptr %5, align 8
%8 = fcmp ogt double %7, 3.280000e+02
br i1 %8, label %9, label %10
9: ; preds = %2
store double 3.280000e+02, ptr %5, align 8
br label %10
10: ; preds = %9, %2
%11 = load double, ptr %5, align 8
%12 = fsub double 3.280000e+02, %11
%13 = fdiv double %12, 9.000000e+01
%14 = call double @pow(double noundef %13, double noundef 5.000000e+00) #2
store double %14, ptr %6, align 8
%15 = load double, ptr %6, align 8
%16 = load double, ptr %4, align 8
%17 = fmul double 1.500000e+00, %16
%18 = fcmp ogt double %15, %17
br i1 %18, label %19, label %22
19: ; preds = %10
%20 = load double, ptr %4, align 8
%21 = fmul double 1.500000e+00, %20
store double %21, ptr %6, align 8
br label %22
22: ; preds = %19, %10
%23 = load double, ptr %6, align 8
%24 = fcmp oge double %23, 1.000000e+00
br i1 %24, label %25, label %26
25: ; preds = %22
store double 1.000000e+00, ptr %3, align 8
br label %28
26: ; preds = %22
%27 = load double, ptr %6, align 8
store double %27, ptr %3, align 8
br label %28
28: ; preds = %26, %25
%29 = load double, ptr %3, align 8
ret double %29
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcr889zkz.c'
source_filename = "/tmp/tmpcr889zkz.c"
target datalayout = "e-m:e-p270: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.newline = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [2 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.newline, i64 2, i1 false)
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %33, %2
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %36
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %7, align 8
br label %19
19: ; preds = %27, %13
%20 = load ptr, ptr %7, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %19
%25 = load ptr, ptr %7, align 8
%26 = call i32 @write(i32 noundef 1, ptr noundef %25, i32 noundef 1)
br label %27
27: ; preds = %24
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %7, align 8
br label %19, !llvm.loop !6
30: ; preds = %19
%31 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%32 = call i32 @write(i32 noundef 1, ptr noundef %31, i32 noundef 1)
br label %33
33: ; preds = %30
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
br label %9, !llvm.loop !8
36: ; preds = %9
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 @write(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcr889zkz.c"
target datalayout = "e-m:e-p270: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.newline = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [2 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.newline, i64 2, i1 false)
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %41
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %35
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br i1 %21, label %.lr.ph, label %32
.lr.ph: ; preds = %12
br label %22
22: ; preds = %.lr.ph, %25
%23 = load ptr, ptr %7, align 8
%24 = call i32 @write(i32 noundef 1, ptr noundef %23, i32 noundef 1)
br label %25
25: ; preds = %22
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %7, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %32
32: ; preds = %._crit_edge, %12
%33 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @write(i32 noundef 1, ptr noundef %33, i32 noundef 1)
br label %35
35: ; preds = %32
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %2
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 @write(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpis75t0_b.c'
source_filename = "/tmp/tmpis75t0_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msort(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
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %28
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %13, %14
%16 = sdiv i32 %15, 2
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
call void @msort(ptr noundef %17, i32 noundef 0, i32 noundef %18)
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
%22 = load i32, ptr %6, align 4
call void @msort(ptr noundef %19, i32 noundef %21, i32 noundef %22)
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = call i32 @merge(ptr noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26)
br label %28
28: ; preds = %12, %3
ret void
}
declare i32 @merge(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/tmpis75t0_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msort(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
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %28
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %13, %14
%16 = sdiv i32 %15, 2
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
call void @msort(ptr noundef %17, i32 noundef 0, i32 noundef %18)
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
%22 = load i32, ptr %6, align 4
call void @msort(ptr noundef %19, i32 noundef %21, i32 noundef %22)
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = call i32 @merge(ptr noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26)
br label %28
28: ; preds = %12, %3
ret void
}
declare i32 @merge(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/tmp_ta8gbc4.c'
source_filename = "/tmp/tmp_ta8gbc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGPIPE = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"/proc/acpi/battery/BAT0/info\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"couldn't open /proc/acpi/battery/BAT0/info\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"last full capacity: %d\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"/proc/acpi/battery/BAT0/state\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"couldn't open /proc/acpi/battery/BAT0/state\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"remaining capacity: %d\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"%a %b %d %H:%M:%S\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [31 x i8] c"%s | %.2f %.2f %.2f | %.1f%% \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [34 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [3 x double], align 16
store i32 0, ptr %1, align 4
%9 = load i32, ptr @SIGPIPE, align 4
%10 = load i32, ptr @SIG_IGN, align 4
%11 = call i32 @signal(i32 noundef %9, i32 noundef %10)
%12 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %12, ptr %2, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 @perror(ptr noundef @.str.2)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %0
br label %18
18: ; preds = %28, %17
%19 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%20 = load ptr, ptr %2, align 8
%21 = call i64 @fgets(ptr noundef %19, i32 noundef 34, ptr noundef %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %18
%24 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%25 = call i32 @sscanf(ptr noundef %24, ptr noundef @.str.3, ptr noundef %6)
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %28
27: ; preds = %23
br label %29
28: ; preds = %23
br label %18, !llvm.loop !6
29: ; preds = %27, %18
%30 = load ptr, ptr %2, align 8
%31 = call i32 @fclose(ptr noundef %30)
br label %32
32: ; preds = %52, %29
%33 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
%34 = call i32 @getloadavg(ptr noundef %33, i32 noundef 3)
%35 = call ptr @fopen(ptr noundef @.str.4, ptr noundef @.str.1)
store ptr %35, ptr %2, align 8
%36 = icmp eq ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = call i32 @perror(ptr noundef @.str.5)
%39 = call i32 @exit(i32 noundef -1) #3
unreachable
40: ; preds = %32
br label %41
41: ; preds = %51, %40
%42 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%43 = load ptr, ptr %2, align 8
%44 = call i64 @fgets(ptr noundef %42, i32 noundef 34, ptr noundef %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %52
46: ; preds = %41
%47 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%48 = call i32 @sscanf(ptr noundef %47, ptr noundef @.str.6, ptr noundef %7)
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %51
50: ; preds = %46
br label %52
51: ; preds = %46
br label %41, !llvm.loop !8
52: ; preds = %50, %41
%53 = load ptr, ptr %2, align 8
%54 = call i32 @fclose(ptr noundef %53)
%55 = call i32 @time(ptr noundef null)
store i32 %55, ptr %4, align 4
%56 = call ptr @localtime(ptr noundef %4)
store ptr %56, ptr %5, align 8
%57 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%58 = load ptr, ptr %5, align 8
%59 = call i32 @strftime(ptr noundef %57, i32 noundef 34, ptr noundef @.str.7, ptr noundef %58)
%60 = load i32, ptr @stdout, align 4
%61 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%62 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
%63 = load double, ptr %62, align 16
%64 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
%65 = load double, ptr %64, align 8
%66 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
%67 = load double, ptr %66, align 16
%68 = load i32, ptr %7, align 4
%69 = mul nsw i32 %68, 100
%70 = sitofp i32 %69 to float
%71 = load i32, ptr %6, align 4
%72 = sitofp i32 %71 to float
%73 = fdiv float %70, %72
%74 = call i32 @fprintf(i32 noundef %60, ptr noundef @.str.8, ptr noundef %61, double noundef %63, double noundef %65, double noundef %67, float noundef %73)
%75 = load i32, ptr @stdout, align 4
%76 = call i32 @fflush(i32 noundef %75)
%77 = call i32 @sleep(i32 noundef 2)
br label %32
}
declare i32 @signal(i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @getloadavg(ptr noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef, double noundef, float noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @sleep(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ta8gbc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGPIPE = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"/proc/acpi/battery/BAT0/info\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"couldn't open /proc/acpi/battery/BAT0/info\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"last full capacity: %d\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"/proc/acpi/battery/BAT0/state\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"couldn't open /proc/acpi/battery/BAT0/state\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"remaining capacity: %d\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"%a %b %d %H:%M:%S\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [31 x i8] c"%s | %.2f %.2f %.2f | %.1f%% \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [34 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [3 x double], align 16
store i32 0, ptr %1, align 4
%9 = load i32, ptr @SIGPIPE, align 4
%10 = load i32, ptr @SIG_IGN, align 4
%11 = call i32 @signal(i32 noundef %9, i32 noundef %10)
%12 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %12, ptr %2, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 @perror(ptr noundef @.str.2)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %0
%18 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%19 = load ptr, ptr %2, align 8
%20 = call i64 @fgets(ptr noundef %18, i32 noundef 34, ptr noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %17
br label %26
22: ; preds = %26
%23 = load ptr, ptr %2, align 8
%24 = call i64 @fgets(ptr noundef %18, i32 noundef 34, ptr noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %..loopexit1_crit_edge, !llvm.loop !6
26: ; preds = %.lr.ph, %22
%27 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%28 = call i32 @sscanf(ptr noundef %27, ptr noundef @.str.3, ptr noundef %6)
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %22
30: ; preds = %26
br label %31
..loopexit1_crit_edge: ; preds = %22
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %17
br label %31
31: ; preds = %.loopexit1, %30
%32 = load ptr, ptr %2, align 8
%33 = call i32 @fclose(ptr noundef %32)
%34 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
%35 = call i32 @getloadavg(ptr noundef %34, i32 noundef 3)
%36 = call ptr @fopen(ptr noundef @.str.4, ptr noundef @.str.1)
store ptr %36, ptr %2, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %.lr.ph3
.lr.ph3: ; preds = %31
br label %41
._crit_edge: ; preds = %55
br label %38
38: ; preds = %._crit_edge, %31
%39 = call i32 @perror(ptr noundef @.str.5)
%40 = call i32 @exit(i32 noundef -1) #3
unreachable
41: ; preds = %.lr.ph3, %55
%42 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%43 = load ptr, ptr %2, align 8
%44 = call i64 @fgets(ptr noundef %42, i32 noundef 34, ptr noundef %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %41
br label %50
46: ; preds = %50
%47 = load ptr, ptr %2, align 8
%48 = call i64 @fgets(ptr noundef %42, i32 noundef 34, ptr noundef %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %..loopexit_crit_edge, !llvm.loop !8
50: ; preds = %.lr.ph2, %46
%51 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%52 = call i32 @sscanf(ptr noundef %51, ptr noundef @.str.6, ptr noundef %7)
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %46
54: ; preds = %50
br label %55
..loopexit_crit_edge: ; preds = %46
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %41
br label %55
55: ; preds = %.loopexit, %54
%56 = load ptr, ptr %2, align 8
%57 = call i32 @fclose(ptr noundef %56)
%58 = call i32 @time(ptr noundef null)
store i32 %58, ptr %4, align 4
%59 = call ptr @localtime(ptr noundef %4)
store ptr %59, ptr %5, align 8
%60 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%61 = load ptr, ptr %5, align 8
%62 = call i32 @strftime(ptr noundef %60, i32 noundef 34, ptr noundef @.str.7, ptr noundef %61)
%63 = load i32, ptr @stdout, align 4
%64 = getelementptr inbounds [34 x i8], ptr %3, i64 0, i64 0
%65 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
%66 = load double, ptr %65, align 16
%67 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
%68 = load double, ptr %67, align 8
%69 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
%70 = load double, ptr %69, align 16
%71 = load i32, ptr %7, align 4
%72 = mul nsw i32 %71, 100
%73 = sitofp i32 %72 to float
%74 = load i32, ptr %6, align 4
%75 = sitofp i32 %74 to float
%76 = fdiv float %73, %75
%77 = call i32 @fprintf(i32 noundef %63, ptr noundef @.str.8, ptr noundef %64, double noundef %66, double noundef %68, double noundef %70, float noundef %76)
%78 = load i32, ptr @stdout, align 4
%79 = call i32 @fflush(i32 noundef %78)
%80 = call i32 @sleep(i32 noundef 2)
%81 = call i32 @getloadavg(ptr noundef %34, i32 noundef 3)
%82 = call ptr @fopen(ptr noundef @.str.4, ptr noundef @.str.1)
store ptr %82, ptr %2, align 8
%83 = icmp eq ptr %82, null
br i1 %83, label %._crit_edge, label %41
}
declare i32 @signal(i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @getloadavg(ptr noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef, double noundef, float noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @sleep(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}
|
; ModuleID = '/tmp/tmpewqichl_.c'
source_filename = "/tmp/tmpewqichl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Blowfish_stream2word(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %9, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %10, align 8
store i64 %11, ptr %8, align 8
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %28, %3
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 4
br i1 %14, label %15, label %33
15: ; preds = %12
%16 = load i64, ptr %8, align 8
%17 = load i64, ptr %5, align 8
%18 = icmp uge i64 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %15
store i64 0, ptr %8, align 8
br label %20
20: ; preds = %19, %15
%21 = load i32, ptr %9, align 4
%22 = shl i32 %21, 8
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %8, align 8
%25 = getelementptr inbounds i32, ptr %23, i64 %24
%26 = load i32, ptr %25, align 4
%27 = or i32 %22, %26
store i32 %27, ptr %9, align 4
br label %28
28: ; preds = %20
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = load i64, ptr %8, align 8
%32 = add i64 %31, 1
store i64 %32, ptr %8, align 8
br label %12, !llvm.loop !6
33: ; preds = %12
%34 = load i64, ptr %8, align 8
%35 = load ptr, ptr %6, align 8
store i64 %34, ptr %35, align 8
%36 = load i32, ptr %9, align 4
ret i32 %36
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpewqichl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Blowfish_stream2word(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %9, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %10, align 8
store i64 %11, ptr %8, align 8
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %.lr.ph, label %34
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %27
%15 = load i64, ptr %8, align 8
%16 = load i64, ptr %5, align 8
%17 = icmp uge i64 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %14
store i64 0, ptr %8, align 8
br label %19
19: ; preds = %18, %14
%20 = load i32, ptr %9, align 4
%21 = shl i32 %20, 8
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %8, align 8
%24 = getelementptr inbounds i32, ptr %22, i64 %23
%25 = load i32, ptr %24, align 4
%26 = or i32 %21, %25
store i32 %26, ptr %9, align 4
br label %27
27: ; preds = %19
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
%30 = load i64, ptr %8, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %8, align 8
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 4
br i1 %33, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %34
34: ; preds = %._crit_edge, %3
%35 = load i64, ptr %8, align 8
%36 = load ptr, ptr %6, align 8
store i64 %35, ptr %36, align 8
%37 = load i32, ptr %9, align 4
ret i32 %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp55gi_t91.c'
source_filename = "/tmp/tmp55gi_t91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exp_sim(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
%11 = load double, ptr %6, align 8
%12 = load double, ptr %9, align 8
%13 = fsub double %11, %12
%14 = call double @llvm.fabs.f64(double %13)
store double %14, ptr %10, align 8
%15 = load double, ptr %10, align 8
%16 = load double, ptr %8, align 8
%17 = fcmp ole double %15, %16
br i1 %17, label %18, label %19
18: ; preds = %4
store double 1.000000e+00, ptr %5, align 8
br label %27
19: ; preds = %4
%20 = load double, ptr %10, align 8
%21 = load double, ptr %8, align 8
%22 = fsub double %20, %21
%23 = fneg double %22
%24 = load double, ptr %7, align 8
%25 = fdiv double %23, %24
%26 = call double @pow(double noundef 2.000000e+00, double noundef %25) #3
store double %26, ptr %5, align 8
br label %27
27: ; preds = %19, %18
%28 = load double, ptr %5, align 8
ret double %28
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @pow(double 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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp55gi_t91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exp_sim(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
%11 = load double, ptr %6, align 8
%12 = load double, ptr %9, align 8
%13 = fsub double %11, %12
%14 = call double @llvm.fabs.f64(double %13)
store double %14, ptr %10, align 8
%15 = load double, ptr %10, align 8
%16 = load double, ptr %8, align 8
%17 = fcmp ole double %15, %16
br i1 %17, label %18, label %19
18: ; preds = %4
store double 1.000000e+00, ptr %5, align 8
br label %27
19: ; preds = %4
%20 = load double, ptr %10, align 8
%21 = load double, ptr %8, align 8
%22 = fsub double %20, %21
%23 = fneg double %22
%24 = load double, ptr %7, align 8
%25 = fdiv double %23, %24
%26 = call double @pow(double noundef 2.000000e+00, double noundef %25) #3
store double %26, ptr %5, align 8
br label %27
27: ; preds = %19, %18
%28 = load double, ptr %5, align 8
ret double %28
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @pow(double 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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvdcp8vyo.c'
source_filename = "/tmp/tmpvdcp8vyo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @waveshaper_triple_sine(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load i32, ptr @M_PI, align 4
%6 = mul nsw i32 2, %5
%7 = sitofp i32 %6 to float
%8 = load float, ptr %4, align 4
%9 = fmul float %7, %8
%10 = load float, ptr %3, align 4
%11 = fmul float %9, %10
%12 = fptosi float %11 to i32
%13 = call float @sin(i32 noundef %12)
%14 = fmul float 5.000000e-01, %13
%15 = load i32, ptr @M_PI, align 4
%16 = mul nsw i32 4, %15
%17 = sitofp i32 %16 to float
%18 = load float, ptr %4, align 4
%19 = fmul float %17, %18
%20 = load float, ptr %3, align 4
%21 = fmul float %19, %20
%22 = fptosi float %21 to i32
%23 = call float @sin(i32 noundef %22)
%24 = fmul float %14, %23
%25 = load i32, ptr @M_PI, align 4
%26 = mul nsw i32 8, %25
%27 = sitofp i32 %26 to float
%28 = load float, ptr %4, align 4
%29 = fmul float %27, %28
%30 = load float, ptr %3, align 4
%31 = fmul float %29, %30
%32 = fptosi float %31 to i32
%33 = call float @sin(i32 noundef %32)
%34 = call float @llvm.fmuladd.f32(float %24, float %33, float 5.000000e-01)
%35 = load float, ptr %3, align 4
%36 = fmul float %34, %35
store float %36, ptr %3, align 4
%37 = load float, ptr %3, align 4
ret float %37
}
declare float @sin(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvdcp8vyo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @waveshaper_triple_sine(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load i32, ptr @M_PI, align 4
%6 = mul nsw i32 2, %5
%7 = sitofp i32 %6 to float
%8 = load float, ptr %4, align 4
%9 = fmul float %7, %8
%10 = load float, ptr %3, align 4
%11 = fmul float %9, %10
%12 = fptosi float %11 to i32
%13 = call float @sin(i32 noundef %12)
%14 = fmul float 5.000000e-01, %13
%15 = load i32, ptr @M_PI, align 4
%16 = mul nsw i32 4, %15
%17 = sitofp i32 %16 to float
%18 = load float, ptr %4, align 4
%19 = fmul float %17, %18
%20 = load float, ptr %3, align 4
%21 = fmul float %19, %20
%22 = fptosi float %21 to i32
%23 = call float @sin(i32 noundef %22)
%24 = fmul float %14, %23
%25 = load i32, ptr @M_PI, align 4
%26 = mul nsw i32 8, %25
%27 = sitofp i32 %26 to float
%28 = load float, ptr %4, align 4
%29 = fmul float %27, %28
%30 = load float, ptr %3, align 4
%31 = fmul float %29, %30
%32 = fptosi float %31 to i32
%33 = call float @sin(i32 noundef %32)
%34 = call float @llvm.fmuladd.f32(float %24, float %33, float 5.000000e-01)
%35 = load float, ptr %3, align 4
%36 = fmul float %34, %35
store float %36, ptr %3, align 4
%37 = load float, ptr %3, align 4
ret float %37
}
declare float @sin(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk1ueq1ra.c'
source_filename = "/tmp/tmpk1ueq1ra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %17
6: ; preds = %1
br label %7
7: ; preds = %13, %6
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load i8, ptr %8, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %7
%14 = load i64, ptr %3, align 8
%15 = add i64 %14, 1
store i64 %15, ptr %3, align 8
br label %7, !llvm.loop !6
16: ; preds = %7
br label %17
17: ; preds = %16, %1
%18 = load i64, ptr %3, align 8
ret i64 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk1ueq1ra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %21
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %20
.lr.ph: ; preds = %6
br label %12
12: ; preds = %.lr.ph, %12
%13 = load i64, ptr %3, align 8
%14 = add i64 %13, 1
store i64 %14, ptr %3, align 8
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %2, align 8
%17 = load i8, ptr %15, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %20
20: ; preds = %._crit_edge, %6
br label %21
21: ; preds = %20, %1
%22 = load i64, ptr %3, align 8
ret i64 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpuc3e_4cc.c'
source_filename = "/tmp/tmpuc3e_4cc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EDOM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @safe_pread_exact(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = call i32 @safe_pread(i32 noundef %11, ptr noundef %12, i64 noundef %13, i32 noundef %14)
store i32 %15, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %4
%19 = load i32, ptr %10, align 4
store i32 %19, ptr %5, align 4
br label %29
20: ; preds = %4
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = load i64, ptr %8, align 8
%24 = icmp ne i64 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = load i32, ptr @EDOM, align 4
%27 = sub nsw i32 0, %26
store i32 %27, ptr %5, align 4
br label %29
28: ; preds = %20
store i32 0, ptr %5, align 4
br label %29
29: ; preds = %28, %25, %18
%30 = load i32, ptr %5, align 4
ret i32 %30
}
declare i32 @safe_pread(i32 noundef, ptr noundef, i64 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/tmpuc3e_4cc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EDOM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @safe_pread_exact(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = call i32 @safe_pread(i32 noundef %11, ptr noundef %12, i64 noundef %13, i32 noundef %14)
store i32 %15, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %4
%19 = load i32, ptr %10, align 4
store i32 %19, ptr %5, align 4
br label %29
20: ; preds = %4
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = load i64, ptr %8, align 8
%24 = icmp ne i64 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = load i32, ptr @EDOM, align 4
%27 = sub nsw i32 0, %26
store i32 %27, ptr %5, align 4
br label %29
28: ; preds = %20
store i32 0, ptr %5, align 4
br label %29
29: ; preds = %28, %25, %18
%30 = load i32, ptr %5, align 4
ret i32 %30
}
declare i32 @safe_pread(i32 noundef, ptr noundef, i64 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/tmp_qmo5mdu.c'
source_filename = "/tmp/tmp_qmo5mdu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_mib_chain_get(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call ptr @__mib_chain_get(i32 noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @__mib_chain_get(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_qmo5mdu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_mib_chain_get(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call ptr @__mib_chain_get(i32 noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @__mib_chain_get(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/tmpcc6mjtpr.c'
source_filename = "/tmp/tmpcc6mjtpr.c"
target datalayout = "e-m:e-p270: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/tmpcc6mjtpr.c"
target datalayout = "e-m:e-p270: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/tmp3tt404b0.c'
source_filename = "/tmp/tmp3tt404b0.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Should never reach here\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @grpcsharp_batch_context_recv_message_to_buffer() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmp3tt404b0.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Should never reach here\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @grpcsharp_batch_context_recv_message_to_buffer() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmprber450r.c'
source_filename = "/tmp/tmprber450r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypt_encrypt_xsalsa20poly1305(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i64, ptr %10, align 8
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call ptr @xsalsa20poly1305_encrypt(ptr noundef %13, ptr noundef %14, ptr noundef %15, i64 noundef %16, ptr noundef %17, ptr noundef %18)
ret ptr %19
}
declare ptr @xsalsa20poly1305_encrypt(ptr noundef, ptr noundef, ptr noundef, i64 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/tmprber450r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypt_encrypt_xsalsa20poly1305(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i64, ptr %10, align 8
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call ptr @xsalsa20poly1305_encrypt(ptr noundef %13, ptr noundef %14, ptr noundef %15, i64 noundef %16, ptr noundef %17, ptr noundef %18)
ret ptr %19
}
declare ptr @xsalsa20poly1305_encrypt(ptr noundef, ptr noundef, ptr noundef, i64 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/tmp748_ggcl.c'
source_filename = "/tmp/tmp748_ggcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bugetc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call ptr @jelio_buffer(i32 noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 -2, ptr %2, align 4
br label %13
10: ; preds = %1
%11 = load ptr, ptr %4, align 8
%12 = call i32 @jelio_buffer_getc(ptr noundef %11)
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %10, %9
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare ptr @jelio_buffer(i32 noundef) #1
declare i32 @jelio_buffer_getc(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/tmp748_ggcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bugetc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call ptr @jelio_buffer(i32 noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 -2, ptr %2, align 4
br label %13
10: ; preds = %1
%11 = load ptr, ptr %4, align 8
%12 = call i32 @jelio_buffer_getc(ptr noundef %11)
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %10, %9
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare ptr @jelio_buffer(i32 noundef) #1
declare i32 @jelio_buffer_getc(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/tmpybt4npcr.c'
source_filename = "/tmp/tmpybt4npcr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__cmpfunc(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 %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @strcmp(ptr noundef %6, ptr noundef %8)
%10 = sub nsw i32 0, %9
ret i32 %10
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybt4npcr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__cmpfunc(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 %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @strcmp(ptr noundef %6, ptr noundef %8)
%10 = sub nsw i32 0, %9
ret i32 %10
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv2ztc6ec.c'
source_filename = "/tmp/tmpv2ztc6ec.c"
target datalayout = "e-m:e-p270: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.client_read_cb.message = private unnamed_addr constant [5 x i8] c"ping\00", align 1
@.str = private unnamed_addr constant [5 x i8] c"pong\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"client::%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client_read_cb(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [5 x i8], align 1
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.client_read_cb.message, i64 5, i1 false)
%8 = load i32, ptr %6, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %28
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load ptr, ptr %5, align 8
%15 = call i64 @strcasecmp(ptr noundef @.str, ptr noundef %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %27
17: ; preds = %13
%18 = load i32, ptr @stderr, align 4
%19 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%20 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1, ptr noundef %19)
%21 = load i32, ptr %4, align 4
%22 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%23 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @strlen(ptr noundef %23)
%25 = call i32 @socket_write(i32 noundef %21, ptr noundef %22, i32 noundef %24)
%26 = call i32 @sleep(i32 noundef 1)
br label %27
27: ; preds = %17, %13
br label %28
28: ; preds = %27, %10, %3
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 i64 @strcasecmp(ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @socket_write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #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: 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/tmpv2ztc6ec.c"
target datalayout = "e-m:e-p270: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.client_read_cb.message = private unnamed_addr constant [5 x i8] c"ping\00", align 1
@.str = private unnamed_addr constant [5 x i8] c"pong\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"client::%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client_read_cb(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [5 x i8], align 1
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.client_read_cb.message, i64 5, i1 false)
%8 = load i32, ptr %6, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %28
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load ptr, ptr %5, align 8
%15 = call i64 @strcasecmp(ptr noundef @.str, ptr noundef %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %27
17: ; preds = %13
%18 = load i32, ptr @stderr, align 4
%19 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%20 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1, ptr noundef %19)
%21 = load i32, ptr %4, align 4
%22 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%23 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @strlen(ptr noundef %23)
%25 = call i32 @socket_write(i32 noundef %21, ptr noundef %22, i32 noundef %24)
%26 = call i32 @sleep(i32 noundef 1)
br label %27
27: ; preds = %17, %13
br label %28
28: ; preds = %27, %10, %3
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 i64 @strcasecmp(ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @socket_write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #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: 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/tmp3bi51r0g.c'
source_filename = "/tmp/tmp3bi51r0g.c"
target datalayout = "e-m:e-p270: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"result = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @read_int(ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 1, ptr %1, align 4
br label %25
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %3, align 8
%15 = alloca i32, i64 %13, align 16
store i64 %13, ptr %4, align 8
%16 = load i32, ptr %2, align 4
%17 = call i32 @read_array(ptr noundef %15, i32 noundef %16)
%18 = call i32 @read_int(ptr noundef %5)
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %5, align 4
%21 = call i32 @binary_search(ptr noundef %15, i32 noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
store i32 0, ptr %1, align 4
%24 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %24)
br label %25
25: ; preds = %11, %10
%26 = load i32, ptr %1, align 4
ret i32 %26
}
declare i32 @read_int(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @read_array(ptr noundef, i32 noundef) #1
declare i32 @binary_search(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3bi51r0g.c"
target datalayout = "e-m:e-p270: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"result = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @read_int(ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 1, ptr %1, align 4
br label %25
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %3, align 8
%15 = alloca i32, i64 %13, align 16
store i64 %13, ptr %4, align 8
%16 = load i32, ptr %2, align 4
%17 = call i32 @read_array(ptr noundef %15, i32 noundef %16)
%18 = call i32 @read_int(ptr noundef %5)
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %5, align 4
%21 = call i32 @binary_search(ptr noundef %15, i32 noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
store i32 0, ptr %1, align 4
%24 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %24)
br label %25
25: ; preds = %11, %10
%26 = load i32, ptr %1, align 4
ret i32 %26
}
declare i32 @read_int(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @read_array(ptr noundef, i32 noundef) #1
declare i32 @binary_search(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(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"}
|
; ModuleID = '/tmp/tmpjk58z0a_.c'
source_filename = "/tmp/tmpjk58z0a_.c"
target datalayout = "e-m:e-p270: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/tmpjk58z0a_.c"
target datalayout = "e-m:e-p270: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/tmpf6epg0go.c'
source_filename = "/tmp/tmpf6epg0go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arrayf_mean(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca float, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %4
br label %83
17: ; preds = %4
store i32 0, ptr %9, align 4
store double 0.000000e+00, ptr %12, align 8
store double 0.000000e+00, ptr %10, align 8
br label %18
18: ; preds = %31, %17
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %34
22: ; preds = %18
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, ptr %23, i64 %25
%27 = load float, ptr %26, align 4
%28 = fpext float %27 to double
%29 = load double, ptr %10, align 8
%30 = fadd double %29, %28
store double %30, ptr %10, align 8
br label %31
31: ; preds = %22
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %9, align 4
br label %18, !llvm.loop !6
34: ; preds = %18
%35 = load double, ptr %10, align 8
%36 = load i32, ptr %6, align 4
%37 = sitofp i32 %36 to double
%38 = fdiv double %35, %37
store double %38, ptr %11, align 8
%39 = load ptr, ptr %7, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %44
41: ; preds = %34
%42 = load double, ptr %11, align 8
%43 = load ptr, ptr %7, align 8
store double %42, ptr %43, align 8
br label %44
44: ; preds = %41, %34
%45 = load ptr, ptr %8, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %83
47: ; preds = %44
store i32 0, ptr %9, align 4
store float 0.000000e+00, ptr %13, align 4
br label %48
48: ; preds = %73, %47
%49 = load i32, ptr %9, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %76
52: ; preds = %48
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %9, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds float, ptr %53, i64 %55
%57 = load float, ptr %56, align 4
%58 = fpext float %57 to double
%59 = load double, ptr %11, align 8
%60 = fsub double %58, %59
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %9, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float, ptr %61, i64 %63
%65 = load float, ptr %64, align 4
%66 = fpext float %65 to double
%67 = load double, ptr %11, align 8
%68 = fsub double %66, %67
%69 = load float, ptr %13, align 4
%70 = fpext float %69 to double
%71 = call double @llvm.fmuladd.f64(double %60, double %68, double %70)
%72 = fptrunc double %71 to float
store float %72, ptr %13, align 4
br label %73
73: ; preds = %52
%74 = load i32, ptr %9, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %9, align 4
br label %48, !llvm.loop !8
76: ; preds = %48
%77 = load float, ptr %13, align 4
%78 = load i32, ptr %6, align 4
%79 = sitofp i32 %78 to float
%80 = fdiv float %77, %79
%81 = call double @sqrt(float noundef %80)
%82 = load ptr, ptr %8, align 8
store double %81, ptr %82, align 8
br label %83
83: ; preds = %16, %76, %44
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @sqrt(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf6epg0go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arrayf_mean(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca float, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %4
br label %87
17: ; preds = %4
store i32 0, ptr %9, align 4
store double 0.000000e+00, ptr %12, align 8
store double 0.000000e+00, ptr %10, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %30
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, ptr %22, i64 %24
%26 = load float, ptr %25, align 4
%27 = fpext float %26 to double
%28 = load double, ptr %10, align 8
%29 = fadd double %28, %27
store double %29, ptr %10, align 8
br label %30
30: ; preds = %21
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %9, align 4
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %17
%37 = load double, ptr %10, align 8
%38 = load i32, ptr %6, align 4
%39 = sitofp i32 %38 to double
%40 = fdiv double %37, %39
store double %40, ptr %11, align 8
%41 = load ptr, ptr %7, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %46
43: ; preds = %36
%44 = load double, ptr %11, align 8
%45 = load ptr, ptr %7, align 8
store double %44, ptr %45, align 8
br label %46
46: ; preds = %43, %36
%47 = load ptr, ptr %8, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %87
49: ; preds = %46
store i32 0, ptr %9, align 4
store float 0.000000e+00, ptr %13, align 4
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph2, label %80
.lr.ph2: ; preds = %49
br label %53
53: ; preds = %.lr.ph2, %74
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %54, i64 %56
%58 = load float, ptr %57, align 4
%59 = fpext float %58 to double
%60 = load double, ptr %11, align 8
%61 = fsub double %59, %60
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %9, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds float, ptr %62, i64 %64
%66 = load float, ptr %65, align 4
%67 = fpext float %66 to double
%68 = load double, ptr %11, align 8
%69 = fsub double %67, %68
%70 = load float, ptr %13, align 4
%71 = fpext float %70 to double
%72 = call double @llvm.fmuladd.f64(double %61, double %69, double %71)
%73 = fptrunc double %72 to float
store float %73, ptr %13, align 4
br label %74
74: ; preds = %53
%75 = load i32, ptr %9, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %9, align 4
%77 = load i32, ptr %9, align 4
%78 = load i32, ptr %6, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %53, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %74
br label %80
80: ; preds = %._crit_edge3, %49
%81 = load float, ptr %13, align 4
%82 = load i32, ptr %6, align 4
%83 = sitofp i32 %82 to float
%84 = fdiv float %81, %83
%85 = call double @sqrt(float noundef %84)
%86 = load ptr, ptr %8, align 8
store double %85, ptr %86, align 8
br label %87
87: ; preds = %80, %46, %16
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @sqrt(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjhsqeg4p.c'
source_filename = "/tmp/tmpjhsqeg4p.c"
target datalayout = "e-m:e-p270: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/tmpjhsqeg4p.c"
target datalayout = "e-m:e-p270: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/tmp6wd0mbvo.c'
source_filename = "/tmp/tmp6wd0mbvo.c"
target datalayout = "e-m:e-p270: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
@line = external global [0 x i8], align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getlin() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %21, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 999
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = call i32 (...) @getchar()
store i32 %7, ptr %1, align 4
%8 = load i32, ptr @EOF, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr %1, align 4
%12 = icmp ne i32 %11, 10
br label %13
13: ; preds = %10, %6, %3
%14 = phi i1 [ false, %6 ], [ false, %3 ], [ %12, %10 ]
br i1 %14, label %15, label %24
15: ; preds = %13
%16 = load i32, ptr %1, align 4
%17 = trunc i32 %16 to i8
%18 = load i32, ptr %2, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [0 x i8], ptr @line, i64 0, i64 %19
store i8 %17, ptr %20, align 1
br label %21
21: ; preds = %15
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %3, !llvm.loop !6
24: ; preds = %13
%25 = load i32, ptr %1, align 4
%26 = icmp eq i32 %25, 10
br i1 %26, label %27, label %35
27: ; preds = %24
%28 = load i32, ptr %1, align 4
%29 = trunc i32 %28 to i8
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [0 x i8], ptr @line, i64 0, i64 %31
store i8 %29, ptr %32, align 1
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
br label %35
35: ; preds = %27, %24
%36 = load i32, ptr %2, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [0 x i8], ptr @line, i64 0, i64 %37
store i8 0, ptr %38, align 1
%39 = load i32, ptr %2, align 4
ret i32 %39
}
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/tmp6wd0mbvo.c"
target datalayout = "e-m:e-p270: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
@line = external global [0 x i8], align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getlin() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %21, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 999
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = call i32 (...) @getchar()
store i32 %7, ptr %1, align 4
%8 = load i32, ptr @EOF, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr %1, align 4
%12 = icmp ne i32 %11, 10
br label %13
13: ; preds = %10, %6, %3
%14 = phi i1 [ false, %6 ], [ false, %3 ], [ %12, %10 ]
br i1 %14, label %15, label %24
15: ; preds = %13
%16 = load i32, ptr %1, align 4
%17 = trunc i32 %16 to i8
%18 = load i32, ptr %2, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [0 x i8], ptr @line, i64 0, i64 %19
store i8 %17, ptr %20, align 1
br label %21
21: ; preds = %15
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %3, !llvm.loop !6
24: ; preds = %13
%25 = load i32, ptr %1, align 4
%26 = icmp eq i32 %25, 10
br i1 %26, label %27, label %35
27: ; preds = %24
%28 = load i32, ptr %1, align 4
%29 = trunc i32 %28 to i8
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [0 x i8], ptr @line, i64 0, i64 %31
store i8 %29, ptr %32, align 1
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
br label %35
35: ; preds = %27, %24
%36 = load i32, ptr %2, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [0 x i8], ptr @line, i64 0, i64 %37
store i8 0, ptr %38, align 1
%39 = load i32, ptr %2, align 4
ret i32 %39
}
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/tmpwqrz6i2v.c'
source_filename = "/tmp/tmpwqrz6i2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rem_headers(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 = %46, %1
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 4096
br i1 %6, label %7, label %49
7: ; preds = %4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 13
br i1 %14, label %15, label %45
15: ; preds = %7
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %45
24: ; preds = %15
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 2
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 13
br i1 %32, label %33, label %45
33: ; preds = %24
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 10
br i1 %41, label %42, label %45
42: ; preds = %33
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, 4
store i32 %44, ptr %3, align 4
br label %49
45: ; preds = %33, %24, %15, %7
br label %46
46: ; preds = %45
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %3, align 4
br label %4, !llvm.loop !6
49: ; preds = %42, %4
%50 = load ptr, ptr %2, align 8
%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 = call i32 @strcpy(ptr noundef %50, ptr noundef %54)
%56 = load i32, ptr %3, align 4
ret i32 %56
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwqrz6i2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rem_headers(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 i32, ptr %3, align 4
%5 = icmp slt i32 %4, 4096
br i1 %5, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %45
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 13
br i1 %13, label %14, label %44
14: ; preds = %6
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %15, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 10
br i1 %22, label %23, label %44
23: ; preds = %14
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 13
br i1 %31, label %32, label %44
32: ; preds = %23
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %33, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 10
br i1 %40, label %41, label %44
41: ; preds = %32
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 4
store i32 %43, ptr %3, align 4
br label %50
44: ; preds = %32, %23, %14, %6
br label %45
45: ; preds = %44
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %48, 4096
br i1 %49, label %6, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %45
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %50
50: ; preds = %.loopexit, %41
%51 = load ptr, ptr %2, align 8
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %3, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = call i32 @strcpy(ptr noundef %51, ptr noundef %55)
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1jll07pp.c'
source_filename = "/tmp/tmp1jll07pp.c"
target datalayout = "e-m:e-p270: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
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %1
store ptr null, ptr %2, align 8
br label %51
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr @SEEK_END, align 4
%16 = call i32 @fseek(ptr noundef %14, i32 noundef 0, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %13
store ptr null, ptr %2, align 8
br label %51
20: ; preds = %13
%21 = load ptr, ptr %4, align 8
%22 = call i64 @ftell(ptr noundef %21)
store i64 %22, ptr %5, align 8
%23 = load i64, ptr %5, align 8
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %2, align 8
br label %51
26: ; preds = %20
%27 = load i64, ptr %5, align 8
%28 = add nsw i64 %27, 1
%29 = call ptr @malloc(i64 noundef %28)
store ptr %29, ptr %6, align 8
%30 = load ptr, ptr %6, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %33, label %32
32: ; preds = %26
store ptr null, ptr %2, align 8
br label %51
33: ; preds = %26
%34 = load ptr, ptr %4, align 8
%35 = call i32 @rewind(ptr noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %5, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @fread(ptr noundef %36, i64 noundef %37, i32 noundef 1, ptr noundef %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %33
%42 = load ptr, ptr %6, align 8
%43 = call i32 @free(ptr noundef %42)
store ptr null, ptr %2, align 8
br label %51
44: ; preds = %33
%45 = load ptr, ptr %4, align 8
%46 = call i32 @fclose(ptr noundef %45)
%47 = load ptr, ptr %6, align 8
%48 = load i64, ptr %5, align 8
%49 = getelementptr inbounds i8, ptr %47, i64 %48
store i8 0, ptr %49, align 1
%50 = load ptr, ptr %6, align 8
store ptr %50, ptr %2, align 8
br label %51
51: ; preds = %44, %41, %32, %25, %19, %12
%52 = load ptr, ptr %2, align 8
ret ptr %52
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(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/tmp1jll07pp.c"
target datalayout = "e-m:e-p270: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
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %1
store ptr null, ptr %2, align 8
br label %51
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr @SEEK_END, align 4
%16 = call i32 @fseek(ptr noundef %14, i32 noundef 0, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %13
store ptr null, ptr %2, align 8
br label %51
20: ; preds = %13
%21 = load ptr, ptr %4, align 8
%22 = call i64 @ftell(ptr noundef %21)
store i64 %22, ptr %5, align 8
%23 = load i64, ptr %5, align 8
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %2, align 8
br label %51
26: ; preds = %20
%27 = load i64, ptr %5, align 8
%28 = add nsw i64 %27, 1
%29 = call ptr @malloc(i64 noundef %28)
store ptr %29, ptr %6, align 8
%30 = load ptr, ptr %6, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %33, label %32
32: ; preds = %26
store ptr null, ptr %2, align 8
br label %51
33: ; preds = %26
%34 = load ptr, ptr %4, align 8
%35 = call i32 @rewind(ptr noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %5, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @fread(ptr noundef %36, i64 noundef %37, i32 noundef 1, ptr noundef %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %33
%42 = load ptr, ptr %6, align 8
%43 = call i32 @free(ptr noundef %42)
store ptr null, ptr %2, align 8
br label %51
44: ; preds = %33
%45 = load ptr, ptr %4, align 8
%46 = call i32 @fclose(ptr noundef %45)
%47 = load ptr, ptr %6, align 8
%48 = load i64, ptr %5, align 8
%49 = getelementptr inbounds i8, ptr %47, i64 %48
store i8 0, ptr %49, align 1
%50 = load ptr, ptr %6, align 8
store ptr %50, ptr %2, align 8
br label %51
51: ; preds = %44, %41, %32, %25, %19, %12
%52 = load ptr, ptr %2, align 8
ret ptr %52
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(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/tmp__6susg7.c'
source_filename = "/tmp/tmp__6susg7.c"
target datalayout = "e-m:e-p270: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__6susg7.c"
target datalayout = "e-m:e-p270: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/tmprk7byxla.c'
source_filename = "/tmp/tmprk7byxla.c"
target datalayout = "e-m:e-p270: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"ERROR forking \0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"This is Child process\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"\0AChild process i'd : %d\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"\0AParent process i'd : %d\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"\0A\0AThis is Parent process\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"\0AChild process i'd : %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i64 (...) @fork()
store i64 %7, ptr %6, align 8
%8 = load i64, ptr %6, align 8
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %30
12: ; preds = %2
%13 = load i64, ptr %6, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (...) @getpid()
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
%19 = call i32 (...) @getppid()
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %19)
br label %28
21: ; preds = %12
%22 = call i32 @wait(i32 noundef 1)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%24 = call i32 (...) @getpid()
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = load i64, ptr %6, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %26)
br label %28
28: ; preds = %21, %15
br label %29
29: ; preds = %28
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %29, %10
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i64 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @wait(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/tmprk7byxla.c"
target datalayout = "e-m:e-p270: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"ERROR forking \0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"This is Child process\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"\0AChild process i'd : %d\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"\0AParent process i'd : %d\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"\0A\0AThis is Parent process\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"\0AChild process i'd : %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i64 (...) @fork()
store i64 %7, ptr %6, align 8
%8 = load i64, ptr %6, align 8
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %30
12: ; preds = %2
%13 = load i64, ptr %6, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (...) @getpid()
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
%19 = call i32 (...) @getppid()
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %19)
br label %28
21: ; preds = %12
%22 = call i32 @wait(i32 noundef 1)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%24 = call i32 (...) @getpid()
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = load i64, ptr %6, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %26)
br label %28
28: ; preds = %21, %15
br label %29
29: ; preds = %28
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %29, %10
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i64 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @wait(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/tmpkefd5jvu.c'
source_filename = "/tmp/tmpkefd5jvu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DoClockMs() #0 {
%1 = call i32 (...) @httpSubsClockMs()
ret void
}
declare i32 @httpSubsClockMs(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkefd5jvu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DoClockMs() #0 {
%1 = call i32 (...) @httpSubsClockMs()
ret void
}
declare i32 @httpSubsClockMs(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1jip9p_k.c'
source_filename = "/tmp/tmp1jip9p_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vapPress(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca double, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sitofp i32 %4 to double
%6 = fmul double 7.500000e+00, %5
%7 = load i32, ptr %2, align 4
%8 = sitofp i32 %7 to double
%9 = fadd double 2.377000e+02, %8
%10 = fdiv double %6, %9
%11 = call double @pow(i32 noundef 10, double noundef %10)
%12 = fmul double 6.110000e+00, %11
store double %12, ptr %3, align 8
%13 = load double, ptr %3, align 8
ret double %13
}
declare double @pow(i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1jip9p_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vapPress(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca double, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sitofp i32 %4 to double
%6 = fmul double 7.500000e+00, %5
%7 = load i32, ptr %2, align 4
%8 = sitofp i32 %7 to double
%9 = fadd double 2.377000e+02, %8
%10 = fdiv double %6, %9
%11 = call double @pow(i32 noundef 10, double noundef %10)
%12 = fmul double 6.110000e+00, %11
store double %12, ptr %3, align 8
%13 = load double, ptr %3, align 8
ret double %13
}
declare double @pow(i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiilsojzo.c'
source_filename = "/tmp/tmpiilsojzo.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"/sys/class/net/%s/device/numa_node\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @intf_numa_node(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 -1, ptr %5, align 4
%8 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%9 = load ptr, ptr %3, align 8
%10 = call i32 @snprintf(ptr noundef %8, i32 noundef 256, ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %1
store i32 -1, ptr %2, align 4
br label %31
17: ; preds = %1
%18 = load i32, ptr %4, align 4
%19 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%20 = call i32 @read(i32 noundef %18, ptr noundef %19, i32 noundef 256)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %17
br label %27
24: ; preds = %17
%25 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @strtol(ptr noundef %25, ptr noundef null, i32 noundef 0)
store i32 %26, ptr %5, align 4
br label %27
27: ; preds = %24, %23
%28 = load i32, ptr %4, align 4
%29 = call i32 @close(i32 noundef %28)
%30 = load i32, ptr %5, align 4
store i32 %30, ptr %2, align 4
br label %31
31: ; preds = %27, %16
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiilsojzo.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"/sys/class/net/%s/device/numa_node\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @intf_numa_node(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 -1, ptr %5, align 4
%8 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%9 = load ptr, ptr %3, align 8
%10 = call i32 @snprintf(ptr noundef %8, i32 noundef 256, ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %1
store i32 -1, ptr %2, align 4
br label %31
17: ; preds = %1
%18 = load i32, ptr %4, align 4
%19 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%20 = call i32 @read(i32 noundef %18, ptr noundef %19, i32 noundef 256)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %17
br label %27
24: ; preds = %17
%25 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @strtol(ptr noundef %25, ptr noundef null, i32 noundef 0)
store i32 %26, ptr %5, align 4
br label %27
27: ; preds = %24, %23
%28 = load i32, ptr %4, align 4
%29 = call i32 @close(i32 noundef %28)
%30 = load i32, ptr %5, align 4
store i32 %30, ptr %2, align 4
br label %31
31: ; preds = %27, %16
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyfxhtgxg.c'
source_filename = "/tmp/tmpyfxhtgxg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @terminal_writestring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call i32 @terminal_write(ptr noundef %3, i32 noundef %5)
ret void
}
declare i32 @terminal_write(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyfxhtgxg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @terminal_writestring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call i32 @terminal_write(ptr noundef %3, i32 noundef %5)
ret void
}
declare i32 @terminal_write(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmh5qprve.c'
source_filename = "/tmp/tmpmh5qprve.c"
target datalayout = "e-m:e-p270: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/tmpmh5qprve.c"
target datalayout = "e-m:e-p270: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/tmp2txc1q0t.c'
source_filename = "/tmp/tmp2txc1q0t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio%d/value\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Cannot open GPIO to export %d\0A\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [33 x i8] c"Failed to change %s into integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_gpio_value(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [128 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [2 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %11, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %13, %14
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = sub nsw i32 %16, 1
store i32 %17, ptr %12, align 4
br label %18
18: ; preds = %56, %2
%19 = load i32, ptr %12, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sge i32 %19, %20
br i1 %21, label %22, label %59
22: ; preds = %18
%23 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%24 = load i32, ptr %12, align 4
%25 = call i32 @sprintf(ptr noundef %23, ptr noundef @.str, i32 noundef %24)
%26 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%27 = load i32, ptr @O_RDWR, align 4
%28 = call i32 @open(ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %22
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr %12, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.1, i32 noundef %33)
store i32 -1, ptr %3, align 4
br label %61
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
%38 = call i32 @read(i32 noundef %36, ptr noundef %37, i32 noundef 2)
%39 = load i32, ptr %11, align 4
%40 = shl i32 %39, 1
store i32 %40, ptr %11, align 4
%41 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
%42 = call i64 @strtoul(ptr noundef %41, ptr noundef %10, i32 noundef 0)
%43 = trunc i64 %42 to i32
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, %43
store i32 %45, ptr %11, align 4
%46 = load ptr, ptr %10, align 8
%47 = load ptr, ptr @optarg, align 8
%48 = icmp eq ptr %46, %47
br i1 %48, label %49, label %53
49: ; preds = %35
%50 = load i32, ptr @stderr, align 4
%51 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
%52 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.2, ptr noundef %51)
br label %53
53: ; preds = %49, %35
%54 = load i32, ptr %7, align 4
%55 = call i32 @close(i32 noundef %54)
br label %56
56: ; preds = %53
%57 = load i32, ptr %12, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %12, align 4
br label %18, !llvm.loop !6
59: ; preds = %18
%60 = load i32, ptr %11, align 4
store i32 %60, ptr %3, align 4
br label %61
61: ; preds = %59, %31
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2txc1q0t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio%d/value\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Cannot open GPIO to export %d\0A\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [33 x i8] c"Failed to change %s into integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_gpio_value(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [128 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [2 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %11, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %13, %14
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = sub nsw i32 %16, 1
store i32 %17, ptr %12, align 4
%18 = load i32, ptr %12, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sge i32 %18, %19
br i1 %20, label %.lr.ph, label %61
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %55
%22 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%23 = load i32, ptr %12, align 4
%24 = call i32 @sprintf(ptr noundef %22, ptr noundef @.str, i32 noundef %23)
%25 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%26 = load i32, ptr @O_RDWR, align 4
%27 = call i32 @open(ptr noundef %25, i32 noundef %26)
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %21
%31 = load i32, ptr @stderr, align 4
%32 = load i32, ptr %12, align 4
%33 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.1, i32 noundef %32)
store i32 -1, ptr %3, align 4
br label %63
34: ; preds = %21
%35 = load i32, ptr %7, align 4
%36 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
%37 = call i32 @read(i32 noundef %35, ptr noundef %36, i32 noundef 2)
%38 = load i32, ptr %11, align 4
%39 = shl i32 %38, 1
store i32 %39, ptr %11, align 4
%40 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
%41 = call i64 @strtoul(ptr noundef %40, ptr noundef %10, i32 noundef 0)
%42 = trunc i64 %41 to i32
%43 = load i32, ptr %11, align 4
%44 = add nsw i32 %43, %42
store i32 %44, ptr %11, align 4
%45 = load ptr, ptr %10, align 8
%46 = load ptr, ptr @optarg, align 8
%47 = icmp eq ptr %45, %46
br i1 %47, label %48, label %52
48: ; preds = %34
%49 = load i32, ptr @stderr, align 4
%50 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
%51 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.2, ptr noundef %50)
br label %52
52: ; preds = %48, %34
%53 = load i32, ptr %7, align 4
%54 = call i32 @close(i32 noundef %53)
br label %55
55: ; preds = %52
%56 = load i32, ptr %12, align 4
%57 = add nsw i32 %56, -1
store i32 %57, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp sge i32 %58, %59
br i1 %60, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %61
61: ; preds = %._crit_edge, %2
%62 = load i32, ptr %11, align 4
store i32 %62, ptr %3, align 4
br label %63
63: ; preds = %61, %30
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmph3su_fuq.c'
source_filename = "/tmp/tmph3su_fuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @decodeInfoHash(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %76, %4
%13 = load i32, ptr %11, align 4
%14 = sext i32 %13 to i64
%15 = load i64, ptr %7, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i32, ptr %10, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %9, align 8
%21 = icmp ult i64 %19, %20
br label %22
22: ; preds = %17, %12
%23 = phi i1 [ false, %12 ], [ %21, %17 ]
br i1 %23, label %24, label %81
24: ; preds = %22
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 37
br i1 %31, label %32, label %63
32: ; preds = %24
%33 = load i32, ptr %11, align 4
%34 = add nsw i32 %33, 2
%35 = sext i32 %34 to i64
%36 = load i64, ptr %7, align 8
%37 = icmp ugt i64 %35, %36
br i1 %37, label %38, label %39
38: ; preds = %32
store i32 -1, ptr %5, align 4
br label %87
39: ; preds = %32
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %11, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %11, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call signext i8 @tolower(i8 noundef signext %45)
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr %10, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %10, align 4
%50 = sext i32 %48 to i64
%51 = getelementptr inbounds i8, ptr %47, i64 %50
store i8 %46, ptr %51, align 1
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %11, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %11, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
%57 = load i8, ptr %56, align 1
%58 = call signext i8 @tolower(i8 noundef signext %57)
%59 = load ptr, ptr %8, align 8
%60 = load i32, ptr %10, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 %58, ptr %62, align 1
br label %75
63: ; preds = %24
%64 = load ptr, ptr %8, align 8
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %10, align 4
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds i8, ptr %64, i64 %67
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %69, i64 %71
%73 = load i8, ptr %72, align 1
%74 = call i32 @snprintf(ptr noundef %68, i32 noundef 3, ptr noundef @.str, i8 noundef signext %73)
br label %75
75: ; preds = %63, %39
br label %76
76: ; preds = %75
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %11, align 4
%79 = load i32, ptr %10, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %10, align 4
br label %12, !llvm.loop !6
81: ; preds = %22
%82 = load ptr, ptr %8, align 8
%83 = load i32, ptr %10, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
store i8 0, ptr %85, align 1
%86 = load i32, ptr %10, align 4
store i32 %86, ptr %5, align 4
br label %87
87: ; preds = %81, %38
%88 = load i32, ptr %5, align 4
ret i32 %88
}
declare signext i8 @tolower(i8 noundef signext) #1
declare i32 @snprintf(ptr noundef, i32 noundef, 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/tmph3su_fuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @decodeInfoHash(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %76, %4
%13 = load i32, ptr %11, align 4
%14 = sext i32 %13 to i64
%15 = load i64, ptr %7, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i32, ptr %10, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %9, align 8
%21 = icmp ult i64 %19, %20
br label %22
22: ; preds = %17, %12
%23 = phi i1 [ false, %12 ], [ %21, %17 ]
br i1 %23, label %24, label %81
24: ; preds = %22
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 37
br i1 %31, label %32, label %63
32: ; preds = %24
%33 = load i32, ptr %11, align 4
%34 = add nsw i32 %33, 2
%35 = sext i32 %34 to i64
%36 = load i64, ptr %7, align 8
%37 = icmp ugt i64 %35, %36
br i1 %37, label %38, label %39
38: ; preds = %32
store i32 -1, ptr %5, align 4
br label %87
39: ; preds = %32
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %11, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %11, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call signext i8 @tolower(i8 noundef signext %45)
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr %10, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %10, align 4
%50 = sext i32 %48 to i64
%51 = getelementptr inbounds i8, ptr %47, i64 %50
store i8 %46, ptr %51, align 1
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %11, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %11, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
%57 = load i8, ptr %56, align 1
%58 = call signext i8 @tolower(i8 noundef signext %57)
%59 = load ptr, ptr %8, align 8
%60 = load i32, ptr %10, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 %58, ptr %62, align 1
br label %75
63: ; preds = %24
%64 = load ptr, ptr %8, align 8
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %10, align 4
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds i8, ptr %64, i64 %67
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %69, i64 %71
%73 = load i8, ptr %72, align 1
%74 = call i32 @snprintf(ptr noundef %68, i32 noundef 3, ptr noundef @.str, i8 noundef signext %73)
br label %75
75: ; preds = %63, %39
br label %76
76: ; preds = %75
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %11, align 4
%79 = load i32, ptr %10, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %10, align 4
br label %12, !llvm.loop !6
81: ; preds = %22
%82 = load ptr, ptr %8, align 8
%83 = load i32, ptr %10, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
store i8 0, ptr %85, align 1
%86 = load i32, ptr %10, align 4
store i32 %86, ptr %5, align 4
br label %87
87: ; preds = %81, %38
%88 = load i32, ptr %5, align 4
ret i32 %88
}
declare signext i8 @tolower(i8 noundef signext) #1
declare i32 @snprintf(ptr noundef, i32 noundef, 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/tmptgox_aq0.c'
source_filename = "/tmp/tmptgox_aq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ltrim(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %53
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %3, align 8
store ptr %14, ptr %6, align 8
br label %15
15: ; preds = %34, %9
%16 = load ptr, ptr %6, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %32
18: ; preds = %15
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %18
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %5, align 8
%26 = icmp ule ptr %24, %25
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = load i8, ptr %28, align 1
%30 = call i64 @isspace(i8 noundef signext %29)
%31 = icmp ne i64 %30, 0
br label %32
32: ; preds = %27, %23, %18, %15
%33 = phi i1 [ false, %23 ], [ false, %18 ], [ false, %15 ], [ %31, %27 ]
br i1 %33, label %34, label %37
34: ; preds = %32
%35 = load ptr, ptr %6, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %6, align 8
br label %15, !llvm.loop !6
37: ; preds = %32
%38 = load ptr, ptr %6, align 8
%39 = load ptr, ptr %5, align 8
%40 = icmp ule ptr %38, %39
br i1 %40, label %41, label %52
41: ; preds = %37
%42 = load ptr, ptr %3, align 8
%43 = load ptr, ptr %6, align 8
%44 = load ptr, ptr %5, align 8
%45 = load ptr, ptr %6, align 8
%46 = ptrtoint ptr %44 to i64
%47 = ptrtoint ptr %45 to i64
%48 = sub i64 %46, %47
%49 = add nsw i64 %48, 1
%50 = trunc i64 %49 to i32
%51 = call i32 @strncpy(ptr noundef %42, ptr noundef %43, i32 noundef %50)
br label %52
52: ; preds = %41, %37
br label %53
53: ; preds = %52, %2
%54 = load ptr, ptr %3, align 8
ret ptr %54
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptgox_aq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ltrim(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %53
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %3, align 8
store ptr %14, ptr %6, align 8
br label %15
15: ; preds = %34, %9
%16 = load ptr, ptr %6, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %32
18: ; preds = %15
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %18
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %5, align 8
%26 = icmp ule ptr %24, %25
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = load i8, ptr %28, align 1
%30 = call i64 @isspace(i8 noundef signext %29)
%31 = icmp ne i64 %30, 0
br label %32
32: ; preds = %27, %23, %18, %15
%33 = phi i1 [ false, %23 ], [ false, %18 ], [ false, %15 ], [ %31, %27 ]
br i1 %33, label %34, label %37
34: ; preds = %32
%35 = load ptr, ptr %6, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %6, align 8
br label %15, !llvm.loop !6
37: ; preds = %32
%38 = load ptr, ptr %6, align 8
%39 = load ptr, ptr %5, align 8
%40 = icmp ule ptr %38, %39
br i1 %40, label %41, label %52
41: ; preds = %37
%42 = load ptr, ptr %3, align 8
%43 = load ptr, ptr %6, align 8
%44 = load ptr, ptr %5, align 8
%45 = load ptr, ptr %6, align 8
%46 = ptrtoint ptr %44 to i64
%47 = ptrtoint ptr %45 to i64
%48 = sub i64 %46, %47
%49 = add nsw i64 %48, 1
%50 = trunc i64 %49 to i32
%51 = call i32 @strncpy(ptr noundef %42, ptr noundef %43, i32 noundef %50)
br label %52
52: ; preds = %41, %37
br label %53
53: ; preds = %52, %2
%54 = load ptr, ptr %3, align 8
ret ptr %54
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphx706mhl.c'
source_filename = "/tmp/tmphx706mhl.c"
target datalayout = "e-m:e-p270: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/tmphx706mhl.c"
target datalayout = "e-m:e-p270: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/tmpxh9z00hq.c'
source_filename = "/tmp/tmpxh9z00hq.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32, i32 }
%struct.tm = type { i32 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%FT%T\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c".%.6luZ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wallclock_get_zulu(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca %struct.timespec, align 4
%7 = alloca %struct.tm, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = icmp ult i64 %9, 33
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load i32, ptr @EINVAL, align 4
store i32 %12, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
13: ; preds = %2
%14 = load i32, ptr @CLOCK_REALTIME, align 4
%15 = call i64 @clock_gettime(i32 noundef %14, ptr noundef %6)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 -1, ptr %3, align 4
br label %49
18: ; preds = %13
%19 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%20 = load i32, ptr %19, align 4
store i32 %20, ptr %8, align 4
%21 = call i32 @gmtime_r(ptr noundef %8, ptr noundef %7)
%22 = icmp ne i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %18
%24 = load i32, ptr @EINVAL, align 4
store i32 %24, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
25: ; preds = %18
%26 = load ptr, ptr %4, align 8
%27 = load i64, ptr %5, align 8
%28 = call i64 @strftime(ptr noundef %26, i64 noundef %27, ptr noundef @.str, ptr noundef %7)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = load i32, ptr @EINVAL, align 4
store i32 %31, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
32: ; preds = %25
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 19
%35 = load i64, ptr %5, align 8
%36 = sub i64 %35, 19
%37 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%38 = load i32, ptr %37, align 4
%39 = sdiv i32 %38, 1000
%40 = call i64 @snprintf(ptr noundef %34, i64 noundef %36, ptr noundef @.str.1, i32 noundef %39)
%41 = load i64, ptr %5, align 8
%42 = sub i64 %41, 20
%43 = icmp uge i64 %40, %42
br i1 %43, label %44, label %46
44: ; preds = %32
%45 = load i32, ptr @EINVAL, align 4
store i32 %45, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
46: ; preds = %32
%47 = load ptr, ptr %4, align 8
%48 = call i32 @strlen(ptr noundef %47)
store i32 %48, ptr %3, align 4
br label %49
49: ; preds = %46, %44, %30, %23, %17, %11
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i64 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @gmtime_r(ptr noundef, ptr noundef) #1
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i64 @snprintf(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxh9z00hq.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32, i32 }
%struct.tm = type { i32 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%FT%T\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c".%.6luZ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wallclock_get_zulu(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca %struct.timespec, align 4
%7 = alloca %struct.tm, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = icmp ult i64 %9, 33
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load i32, ptr @EINVAL, align 4
store i32 %12, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
13: ; preds = %2
%14 = load i32, ptr @CLOCK_REALTIME, align 4
%15 = call i64 @clock_gettime(i32 noundef %14, ptr noundef %6)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 -1, ptr %3, align 4
br label %49
18: ; preds = %13
%19 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%20 = load i32, ptr %19, align 4
store i32 %20, ptr %8, align 4
%21 = call i32 @gmtime_r(ptr noundef %8, ptr noundef %7)
%22 = icmp ne i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %18
%24 = load i32, ptr @EINVAL, align 4
store i32 %24, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
25: ; preds = %18
%26 = load ptr, ptr %4, align 8
%27 = load i64, ptr %5, align 8
%28 = call i64 @strftime(ptr noundef %26, i64 noundef %27, ptr noundef @.str, ptr noundef %7)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = load i32, ptr @EINVAL, align 4
store i32 %31, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
32: ; preds = %25
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 19
%35 = load i64, ptr %5, align 8
%36 = sub i64 %35, 19
%37 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%38 = load i32, ptr %37, align 4
%39 = sdiv i32 %38, 1000
%40 = call i64 @snprintf(ptr noundef %34, i64 noundef %36, ptr noundef @.str.1, i32 noundef %39)
%41 = load i64, ptr %5, align 8
%42 = sub i64 %41, 20
%43 = icmp uge i64 %40, %42
br i1 %43, label %44, label %46
44: ; preds = %32
%45 = load i32, ptr @EINVAL, align 4
store i32 %45, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %49
46: ; preds = %32
%47 = load ptr, ptr %4, align 8
%48 = call i32 @strlen(ptr noundef %47)
store i32 %48, ptr %3, align 4
br label %49
49: ; preds = %46, %44, %30, %23, %17, %11
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i64 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @gmtime_r(ptr noundef, ptr noundef) #1
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i64 @snprintf(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2yda1f8q.c'
source_filename = "/tmp/tmp2yda1f8q.c"
target datalayout = "e-m:e-p270: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"test.csv\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 @test_tt_db_read_file(ptr noundef @.str)
ret i32 0
}
declare i32 @test_tt_db_read_file(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/tmp2yda1f8q.c"
target datalayout = "e-m:e-p270: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"test.csv\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 @test_tt_db_read_file(ptr noundef @.str)
ret i32 0
}
declare i32 @test_tt_db_read_file(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/tmpllc_xl5v.c'
source_filename = "/tmp/tmpllc_xl5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @basename_substring_filter_nocase(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 i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @basename(ptr noundef %8)
%10 = call ptr @strToLower(ptr noundef %9)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call ptr @strToLower(ptr noundef %11)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = call ptr @strstr(ptr noundef %13, ptr noundef %14)
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 0, ptr %7, align 4
br label %19
18: ; preds = %2
store i32 1, ptr %7, align 4
br label %19
19: ; preds = %18, %17
%20 = load ptr, ptr %5, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = load i32, ptr %7, align 4
ret i32 %24
}
declare ptr @strToLower(ptr noundef) #1
declare ptr @basename(ptr noundef) #1
declare ptr @strstr(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/tmpllc_xl5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @basename_substring_filter_nocase(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 i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @basename(ptr noundef %8)
%10 = call ptr @strToLower(ptr noundef %9)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call ptr @strToLower(ptr noundef %11)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = call ptr @strstr(ptr noundef %13, ptr noundef %14)
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 0, ptr %7, align 4
br label %19
18: ; preds = %2
store i32 1, ptr %7, align 4
br label %19
19: ; preds = %18, %17
%20 = load ptr, ptr %5, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = load i32, ptr %7, align 4
ret i32 %24
}
declare ptr @strToLower(ptr noundef) #1
declare ptr @basename(ptr noundef) #1
declare ptr @strstr(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/tmp8a0c2kme.c'
source_filename = "/tmp/tmp8a0c2kme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_ERROR = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hi_get_soerror(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 %2, align 4
store i32 0, ptr %4, align 4
store i32 4, ptr %5, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr @SOL_SOCKET, align 4
%8 = load i32, ptr @SO_ERROR, align 4
%9 = call i32 @getsockopt(i32 noundef %6, i32 noundef %7, i32 noundef %8, ptr noundef %4, ptr noundef %5)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = load i32, ptr %4, align 4
store i32 %13, ptr @errno, align 4
br label %14
14: ; preds = %12, %1
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8a0c2kme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_ERROR = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hi_get_soerror(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 %2, align 4
store i32 0, ptr %4, align 4
store i32 4, ptr %5, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr @SOL_SOCKET, align 4
%8 = load i32, ptr @SO_ERROR, align 4
%9 = call i32 @getsockopt(i32 noundef %6, i32 noundef %7, i32 noundef %8, ptr noundef %4, ptr noundef %5)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = load i32, ptr %4, align 4
store i32 %13, ptr @errno, align 4
br label %14
14: ; preds = %12, %1
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj9rpl777.c'
source_filename = "/tmp/tmpj9rpl777.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvwin_wch(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(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/tmpj9rpl777.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvwin_wch(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(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/tmpt_uc1qug.c'
source_filename = "/tmp/tmpt_uc1qug.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @timespec_max(i32 %0, i32 %1) #0 {
%3 = alloca %struct.timespec, align 4
%4 = alloca %struct.timespec, align 4
%5 = alloca %struct.timespec, align 4
%6 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
store i32 %0, ptr %6, align 4
%7 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
store i32 %1, ptr %7, align 4
%8 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%9 = load i32, ptr %8, align 4
%10 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = call i64 @timespec_compare(i32 %9, i32 %11)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %5, i64 4, i1 false)
br label %16
15: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %4, i64 4, i1 false)
br label %16
16: ; preds = %15, %14
%17 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%18 = load i32, ptr %17, align 4
ret i32 %18
}
declare i64 @timespec_compare(i32, i32) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt_uc1qug.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @timespec_max(i32 %0, i32 %1) #0 {
%3 = alloca %struct.timespec, align 4
%4 = alloca %struct.timespec, align 4
%5 = alloca %struct.timespec, align 4
%6 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
store i32 %0, ptr %6, align 4
%7 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
store i32 %1, ptr %7, align 4
%8 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%9 = load i32, ptr %8, align 4
%10 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = call i64 @timespec_compare(i32 %9, i32 %11)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %5, i64 4, i1 false)
br label %16
15: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %4, i64 4, i1 false)
br label %16
16: ; preds = %15, %14
%17 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%18 = load i32, ptr %17, align 4
ret i32 %18
}
declare i64 @timespec_compare(i32, i32) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpklhacrwt.c'
source_filename = "/tmp/tmpklhacrwt.c"
target datalayout = "e-m:e-p270: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/tmpklhacrwt.c"
target datalayout = "e-m:e-p270: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/tmpzu_prl9r.c'
source_filename = "/tmp/tmpzu_prl9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ns2thline_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store ptr %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
%21 = load ptr, ptr %11, align 8
%22 = load float, ptr %21, align 4
%23 = load ptr, ptr %12, align 8
%24 = load float, ptr %23, align 4
%25 = load ptr, ptr %13, align 8
%26 = load float, ptr %25, align 4
%27 = load ptr, ptr %14, align 8
%28 = load float, ptr %27, align 4
%29 = load ptr, ptr %15, align 8
%30 = load float, ptr %29, align 4
%31 = load ptr, ptr %16, align 8
%32 = load float, ptr %31, align 4
%33 = load ptr, ptr %17, align 8
%34 = load float, ptr %33, align 4
%35 = load ptr, ptr %18, align 8
%36 = load float, ptr %35, align 4
%37 = load ptr, ptr %19, align 8
%38 = load float, ptr %37, align 4
%39 = load ptr, ptr %20, align 8
%40 = load float, ptr %39, align 4
%41 = call i32 @ns2thline(float noundef %22, float noundef %24, float noundef %26, float noundef %28, float noundef %30, float noundef %32, float noundef %34, float noundef %36, float noundef %38, float noundef %40)
ret void
}
declare i32 @ns2thline(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzu_prl9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ns2thline_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store ptr %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
%21 = load ptr, ptr %11, align 8
%22 = load float, ptr %21, align 4
%23 = load ptr, ptr %12, align 8
%24 = load float, ptr %23, align 4
%25 = load ptr, ptr %13, align 8
%26 = load float, ptr %25, align 4
%27 = load ptr, ptr %14, align 8
%28 = load float, ptr %27, align 4
%29 = load ptr, ptr %15, align 8
%30 = load float, ptr %29, align 4
%31 = load ptr, ptr %16, align 8
%32 = load float, ptr %31, align 4
%33 = load ptr, ptr %17, align 8
%34 = load float, ptr %33, align 4
%35 = load ptr, ptr %18, align 8
%36 = load float, ptr %35, align 4
%37 = load ptr, ptr %19, align 8
%38 = load float, ptr %37, align 4
%39 = load ptr, ptr %20, align 8
%40 = load float, ptr %39, align 4
%41 = call i32 @ns2thline(float noundef %22, float noundef %24, float noundef %26, float noundef %28, float noundef %30, float noundef %32, float noundef %34, float noundef %36, float noundef %38, float noundef %40)
ret void
}
declare i32 @ns2thline(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcx0mc6ii.c'
source_filename = "/tmp/tmpcx0mc6ii.c"
target datalayout = "e-m:e-p270: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 [80 x i8] c"ihex2fw: Convert ihex files into binary representation for use by Linux kernel\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c"usage: ihex2fw [<options>] <src.HEX> <dst.fw>\0A\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c" -w: wide records (16-bit length)\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c" -s: sort records by address\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
ret i32 1
}
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/tmpcx0mc6ii.c"
target datalayout = "e-m:e-p270: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 [80 x i8] c"ihex2fw: Convert ihex files into binary representation for use by Linux kernel\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c"usage: ihex2fw [<options>] <src.HEX> <dst.fw>\0A\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c" -w: wide records (16-bit length)\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c" -s: sort records by address\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
ret i32 1
}
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/tmp45pt_o8d.c'
source_filename = "/tmp/tmp45pt_o8d.c"
target datalayout = "e-m:e-p270: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.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@.str = private unnamed_addr constant [3 x i8] c"go\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"sockets.optional\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"can't find sockets.optional\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"server is at: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"connected to server\0A\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"send\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"sent signal\0A\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"recv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cclient() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [40 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr @.str, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %8, align 4
%12 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %12, ptr %9, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 @perror(ptr noundef @.str.3)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %0
%18 = load ptr, ptr %9, align 8
%19 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%20 = call i32 @fscanf(ptr noundef %18, ptr noundef @.str.4, ptr noundef %19)
%21 = load ptr, ptr %9, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %23)
%25 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%26 = call ptr @gethostbyname(ptr noundef %25)
store ptr %26, ptr %6, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %31
28: ; preds = %17
%29 = call i32 @perror(ptr noundef @.str.6)
%30 = call i32 @exit(i32 noundef 1) #4
unreachable
31: ; preds = %17
%32 = load i32, ptr @AF_INET, align 4
%33 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 3
store i32 %32, ptr %33, align 4
%34 = call i32 @htons(i32 noundef 9000)
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %34, ptr %35, align 4
%36 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds %struct.hostent, ptr %37, i32 0, i32 0
%39 = load i64, ptr %38, align 8
%40 = inttoptr i64 %39 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %40, i64 4, i1 false)
%41 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%42 = call i32 @memset(ptr noundef %41, i8 noundef signext 0, i32 noundef 8)
%43 = load i32, ptr @AF_INET, align 4
%44 = load i32, ptr @SOCK_STREAM, align 4
%45 = call i32 @socket(i32 noundef %43, i32 noundef %44, i32 noundef 0)
store i32 %45, ptr %1, align 4
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %50
47: ; preds = %31
%48 = call i32 @perror(ptr noundef @.str.7)
%49 = call i32 @exit(i32 noundef 1) #4
unreachable
50: ; preds = %31
%51 = load i32, ptr %1, align 4
%52 = call i32 @connect(i32 noundef %51, ptr noundef %7, i32 noundef 4)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = call i32 @perror(ptr noundef @.str.8)
%56 = call i32 @exit(i32 noundef 1) #4
unreachable
57: ; preds = %50
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%59 = load i32, ptr %1, align 4
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %8, align 4
%62 = call i32 @send(i32 noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef 0)
store i32 %62, ptr %2, align 4
%63 = icmp eq i32 %62, -1
br i1 %63, label %64, label %67
64: ; preds = %57
%65 = call i32 @perror(ptr noundef @.str.10)
%66 = call i32 @exit(i32 noundef 1) #4
unreachable
67: ; preds = %57
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%69 = load i32, ptr %1, align 4
%70 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%71 = call i32 @recv(i32 noundef %69, ptr noundef %70, i32 noundef 99, i32 noundef 0)
store i32 %71, ptr %2, align 4
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %76
73: ; preds = %67
%74 = call i32 @perror(ptr noundef @.str.12)
%75 = call i32 @exit(i32 noundef 1) #4
unreachable
76: ; preds = %67
%77 = load i32, ptr %2, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %78
store i8 0, ptr %79, align 1
%80 = load i32, ptr %1, align 4
%81 = call i32 @close(i32 noundef %80)
ret i32 0
}
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 nounwind willreturn memory(argmem: readwrite) }
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp45pt_o8d.c"
target datalayout = "e-m:e-p270: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.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@.str = private unnamed_addr constant [3 x i8] c"go\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"sockets.optional\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"can't find sockets.optional\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"server is at: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"connected to server\0A\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"send\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"sent signal\0A\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"recv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cclient() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [40 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr @.str, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %8, align 4
%12 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %12, ptr %9, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 @perror(ptr noundef @.str.3)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %0
%18 = load ptr, ptr %9, align 8
%19 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%20 = call i32 @fscanf(ptr noundef %18, ptr noundef @.str.4, ptr noundef %19)
%21 = load ptr, ptr %9, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %23)
%25 = getelementptr inbounds [40 x i8], ptr %3, i64 0, i64 0
%26 = call ptr @gethostbyname(ptr noundef %25)
store ptr %26, ptr %6, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %31
28: ; preds = %17
%29 = call i32 @perror(ptr noundef @.str.6)
%30 = call i32 @exit(i32 noundef 1) #4
unreachable
31: ; preds = %17
%32 = load i32, ptr @AF_INET, align 4
%33 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 3
store i32 %32, ptr %33, align 4
%34 = call i32 @htons(i32 noundef 9000)
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %34, ptr %35, align 4
%36 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds %struct.hostent, ptr %37, i32 0, i32 0
%39 = load i64, ptr %38, align 8
%40 = inttoptr i64 %39 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %40, i64 4, i1 false)
%41 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%42 = call i32 @memset(ptr noundef %41, i8 noundef signext 0, i32 noundef 8)
%43 = load i32, ptr @AF_INET, align 4
%44 = load i32, ptr @SOCK_STREAM, align 4
%45 = call i32 @socket(i32 noundef %43, i32 noundef %44, i32 noundef 0)
store i32 %45, ptr %1, align 4
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %50
47: ; preds = %31
%48 = call i32 @perror(ptr noundef @.str.7)
%49 = call i32 @exit(i32 noundef 1) #4
unreachable
50: ; preds = %31
%51 = load i32, ptr %1, align 4
%52 = call i32 @connect(i32 noundef %51, ptr noundef %7, i32 noundef 4)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = call i32 @perror(ptr noundef @.str.8)
%56 = call i32 @exit(i32 noundef 1) #4
unreachable
57: ; preds = %50
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%59 = load i32, ptr %1, align 4
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %8, align 4
%62 = call i32 @send(i32 noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef 0)
store i32 %62, ptr %2, align 4
%63 = icmp eq i32 %62, -1
br i1 %63, label %64, label %67
64: ; preds = %57
%65 = call i32 @perror(ptr noundef @.str.10)
%66 = call i32 @exit(i32 noundef 1) #4
unreachable
67: ; preds = %57
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%69 = load i32, ptr %1, align 4
%70 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%71 = call i32 @recv(i32 noundef %69, ptr noundef %70, i32 noundef 99, i32 noundef 0)
store i32 %71, ptr %2, align 4
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %76
73: ; preds = %67
%74 = call i32 @perror(ptr noundef @.str.12)
%75 = call i32 @exit(i32 noundef 1) #4
unreachable
76: ; preds = %67
%77 = load i32, ptr %2, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %78
store i8 0, ptr %79, align 1
%80 = load i32, ptr %1, align 4
%81 = call i32 @close(i32 noundef %80)
ret i32 0
}
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 nounwind willreturn memory(argmem: readwrite) }
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"}
|
; ModuleID = '/tmp/tmpevr9of1u.c'
source_filename = "/tmp/tmpevr9of1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strjoin(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 ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @talloc_strdup(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %29, %3
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %32
18: ; preds = %11
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call ptr @talloc_append_string(ptr noundef %19, ptr noundef %24)
store ptr %25, ptr %8, align 8
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %6, align 8
%28 = call ptr @talloc_append_string(ptr noundef %26, ptr noundef %27)
store ptr %28, ptr %8, align 8
br label %29
29: ; preds = %18
%30 = load i32, ptr %7, align 4
%31 = add i32 %30, 1
store i32 %31, ptr %7, align 4
br label %11, !llvm.loop !6
32: ; preds = %11
%33 = load ptr, ptr %8, align 8
ret ptr %33
}
declare ptr @talloc_strdup(ptr noundef, ptr noundef) #1
declare ptr @talloc_append_string(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpevr9of1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strjoin(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 ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @talloc_strdup(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
store i32 0, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %7, align 4
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %.lr.ph, label %37
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %28
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %7, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call ptr @talloc_append_string(ptr noundef %18, ptr noundef %23)
store ptr %24, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %6, align 8
%27 = call ptr @talloc_append_string(ptr noundef %25, ptr noundef %26)
store ptr %27, ptr %8, align 8
br label %28
28: ; preds = %17
%29 = load i32, ptr %7, align 4
%30 = add i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %7, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %37
37: ; preds = %._crit_edge, %3
%38 = load ptr, ptr %8, align 8
ret ptr %38
}
declare ptr @talloc_strdup(ptr noundef, ptr noundef) #1
declare ptr @talloc_append_string(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg_docvfx.c'
source_filename = "/tmp/tmpg_docvfx.c"
target datalayout = "e-m:e-p270: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"Obergrenze: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"Eingabefehler: Die Obergrenze muss mindestens 1 sein. \0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Ueberlauf bei Wert %d \0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"%d: %d Schritte \0A\00", align 1
@.str.5 = private unnamed_addr constant [57 x i8] c"Maximale Anzahl von Schritten sind %d fuer den Wert %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%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
store i32 0, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%10 = load i32, ptr @stdin, align 4
%11 = call i32 @fgets(ptr noundef %9, i32 noundef 100, i32 noundef %10)
%12 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @sscanf(ptr noundef %12, ptr noundef @.str.1, ptr noundef %3)
store i32 0, ptr %6, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %59
18: ; preds = %0
store i32 1, ptr %4, align 4
br label %19
19: ; preds = %52, %18
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %55
23: ; preds = %19
%24 = load i32, ptr %4, align 4
%25 = call i32 @collatz(i32 noundef %24)
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = load i32, ptr %4, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %29)
br label %31
31: ; preds = %28, %23
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr %5, align 4
store i32 %36, ptr %6, align 4
%37 = load i32, ptr %4, align 4
store i32 %37, ptr %7, align 4
br label %38
38: ; preds = %35, %31
%39 = load i32, ptr %5, align 4
%40 = icmp sle i32 %39, 10
%41 = zext i1 %40 to i32
%42 = load i32, ptr %5, align 4
%43 = icmp sge i32 %42, 0
%44 = zext i1 %43 to i32
%45 = and i32 %41, %44
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %38
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %5, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %48, i32 noundef %49)
br label %51
51: ; preds = %47, %38
br label %52
52: ; preds = %51
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %4, align 4
br label %19, !llvm.loop !6
55: ; preds = %19
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %7, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %56, i32 noundef %57)
store i32 0, ptr %1, align 4
br label %59
59: ; preds = %55, %16
%60 = load i32, ptr %1, align 4
ret i32 %60
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @collatz(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/tmpg_docvfx.c"
target datalayout = "e-m:e-p270: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"Obergrenze: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"Eingabefehler: Die Obergrenze muss mindestens 1 sein. \0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Ueberlauf bei Wert %d \0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"%d: %d Schritte \0A\00", align 1
@.str.5 = private unnamed_addr constant [57 x i8] c"Maximale Anzahl von Schritten sind %d fuer den Wert %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%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
store i32 0, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%10 = load i32, ptr @stdin, align 4
%11 = call i32 @fgets(ptr noundef %9, i32 noundef 100, i32 noundef %10)
%12 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @sscanf(ptr noundef %12, ptr noundef @.str.1, ptr noundef %3)
store i32 0, ptr %6, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %61
18: ; preds = %0
store i32 1, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %.lr.ph, label %57
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %51
%23 = load i32, ptr %4, align 4
%24 = call i32 @collatz(i32 noundef %23)
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i32, ptr %4, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
br label %30
30: ; preds = %27, %22
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i32, ptr %5, align 4
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %4, align 4
store i32 %36, ptr %7, align 4
br label %37
37: ; preds = %34, %30
%38 = load i32, ptr %5, align 4
%39 = icmp sle i32 %38, 10
%40 = zext i1 %39 to i32
%41 = load i32, ptr %5, align 4
%42 = icmp sge i32 %41, 0
%43 = zext i1 %42 to i32
%44 = and i32 %40, %43
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %37
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %5, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %47, i32 noundef %48)
br label %50
50: ; preds = %46, %37
br label %51
51: ; preds = %50
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %3, align 4
%56 = icmp sle i32 %54, %55
br i1 %56, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %18
%58 = load i32, ptr %6, align 4
%59 = load i32, ptr %7, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %58, i32 noundef %59)
store i32 0, ptr %1, align 4
br label %61
61: ; preds = %57, %16
%62 = load i32, ptr %1, align 4
ret i32 %62
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @collatz(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/tmpkehhvz6a.c'
source_filename = "/tmp/tmpkehhvz6a.c"
target datalayout = "e-m:e-p270: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/tmpkehhvz6a.c"
target datalayout = "e-m:e-p270: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/tmpicso71l2.c'
source_filename = "/tmp/tmpicso71l2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chi_31(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call double @chi_13(ptr noundef %3)
ret double %4
}
declare double @chi_13(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/tmpicso71l2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chi_31(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call double @chi_13(ptr noundef %3)
ret double %4
}
declare double @chi_13(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/tmpd7c_4_ei.c'
source_filename = "/tmp/tmpd7c_4_ei.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"open file error \0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"open file success \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @openFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @fopen(ptr noundef %4, ptr noundef @.str)
store ptr %5, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 0) #3
unreachable
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd7c_4_ei.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"open file error \0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"open file success \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @openFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @fopen(ptr noundef %4, ptr noundef @.str)
store ptr %5, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 0) #3
unreachable
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzc6awaxt.c'
source_filename = "/tmp/tmpzc6awaxt.c"
target datalayout = "e-m:e-p270: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/tmpzc6awaxt.c"
target datalayout = "e-m:e-p270: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/tmpdzndcx0_.c'
source_filename = "/tmp/tmpdzndcx0_.c"
target datalayout = "e-m:e-p270: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/tmpdzndcx0_.c"
target datalayout = "e-m:e-p270: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/tmpwc5b9y41.c'
source_filename = "/tmp/tmpwc5b9y41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @applymatrix(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca 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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %13, align 8
br label %15
15: ; preds = %19, %3
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %6, align 4
%18 = icmp ne i32 %16, 0
br i1 %18, label %19, label %127
19: ; preds = %15
%20 = load ptr, ptr %13, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
store i32 %23, ptr %7, align 4
%24 = load ptr, ptr %13, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 1
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
store i32 %27, ptr %8, align 4
%28 = load ptr, ptr %13, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 2
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %7, align 4
%33 = sitofp i32 %32 to float
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds [4 x float], ptr %34, i64 0
%36 = getelementptr inbounds [4 x float], ptr %35, i64 0, i64 0
%37 = load float, ptr %36, align 4
%38 = load i32, ptr %8, align 4
%39 = sitofp i32 %38 to float
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds [4 x float], ptr %40, i64 1
%42 = getelementptr inbounds [4 x float], ptr %41, i64 0, i64 0
%43 = load float, ptr %42, align 4
%44 = fmul float %39, %43
%45 = call float @llvm.fmuladd.f32(float %33, float %37, float %44)
%46 = load i32, ptr %9, align 4
%47 = sitofp i32 %46 to float
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds [4 x float], ptr %48, i64 2
%50 = getelementptr inbounds [4 x float], ptr %49, i64 0, i64 0
%51 = load float, ptr %50, align 4
%52 = call float @llvm.fmuladd.f32(float %47, float %51, float %45)
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds [4 x float], ptr %53, i64 3
%55 = getelementptr inbounds [4 x float], ptr %54, i64 0, i64 0
%56 = load float, ptr %55, align 4
%57 = fadd float %52, %56
%58 = fptosi float %57 to i32
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %7, align 4
%60 = sitofp i32 %59 to float
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds [4 x float], ptr %61, i64 0
%63 = getelementptr inbounds [4 x float], ptr %62, i64 0, i64 1
%64 = load float, ptr %63, align 4
%65 = load i32, ptr %8, align 4
%66 = sitofp i32 %65 to float
%67 = load ptr, ptr %5, align 8
%68 = getelementptr inbounds [4 x float], ptr %67, i64 1
%69 = getelementptr inbounds [4 x float], ptr %68, i64 0, i64 1
%70 = load float, ptr %69, align 4
%71 = fmul float %66, %70
%72 = call float @llvm.fmuladd.f32(float %60, float %64, float %71)
%73 = load i32, ptr %9, align 4
%74 = sitofp i32 %73 to float
%75 = load ptr, ptr %5, align 8
%76 = getelementptr inbounds [4 x float], ptr %75, i64 2
%77 = getelementptr inbounds [4 x float], ptr %76, i64 0, i64 1
%78 = load float, ptr %77, align 4
%79 = call float @llvm.fmuladd.f32(float %74, float %78, float %72)
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds [4 x float], ptr %80, i64 3
%82 = getelementptr inbounds [4 x float], ptr %81, i64 0, i64 1
%83 = load float, ptr %82, align 4
%84 = fadd float %79, %83
%85 = fptosi float %84 to i32
store i32 %85, ptr %11, align 4
%86 = load i32, ptr %7, align 4
%87 = sitofp i32 %86 to float
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds [4 x float], ptr %88, i64 0
%90 = getelementptr inbounds [4 x float], ptr %89, i64 0, i64 2
%91 = load float, ptr %90, align 4
%92 = load i32, ptr %8, align 4
%93 = sitofp i32 %92 to float
%94 = load ptr, ptr %5, align 8
%95 = getelementptr inbounds [4 x float], ptr %94, i64 1
%96 = getelementptr inbounds [4 x float], ptr %95, i64 0, i64 2
%97 = load float, ptr %96, align 4
%98 = fmul float %93, %97
%99 = call float @llvm.fmuladd.f32(float %87, float %91, float %98)
%100 = load i32, ptr %9, align 4
%101 = sitofp i32 %100 to float
%102 = load ptr, ptr %5, align 8
%103 = getelementptr inbounds [4 x float], ptr %102, i64 2
%104 = getelementptr inbounds [4 x float], ptr %103, i64 0, i64 2
%105 = load float, ptr %104, align 4
%106 = call float @llvm.fmuladd.f32(float %101, float %105, float %99)
%107 = load ptr, ptr %5, align 8
%108 = getelementptr inbounds [4 x float], ptr %107, i64 3
%109 = getelementptr inbounds [4 x float], ptr %108, i64 0, i64 2
%110 = load float, ptr %109, align 4
%111 = fadd float %106, %110
%112 = fptosi float %111 to i32
store i32 %112, ptr %12, align 4
%113 = load i32, ptr %10, align 4
%114 = call zeroext i8 @CLAMP0255(i32 noundef %113)
%115 = load ptr, ptr %13, align 8
%116 = getelementptr inbounds i8, ptr %115, i64 0
store i8 %114, ptr %116, align 1
%117 = load i32, ptr %11, align 4
%118 = call zeroext i8 @CLAMP0255(i32 noundef %117)
%119 = load ptr, ptr %13, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 1
store i8 %118, ptr %120, align 1
%121 = load i32, ptr %12, align 4
%122 = call zeroext i8 @CLAMP0255(i32 noundef %121)
%123 = load ptr, ptr %13, align 8
%124 = getelementptr inbounds i8, ptr %123, i64 2
store i8 %122, ptr %124, align 1
%125 = load ptr, ptr %13, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 4
store ptr %126, ptr %13, align 8
br label %15, !llvm.loop !6
127: ; preds = %15
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare zeroext i8 @CLAMP0255(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwc5b9y41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @applymatrix(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca 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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %13, align 8
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %6, align 4
%17 = icmp ne i32 %15, 0
br i1 %17, label %.lr.ph, label %129
.lr.ph: ; preds = %3
br label %18
18: ; preds = %.lr.ph, %18
%19 = load ptr, ptr %13, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = zext i8 %21 to i32
store i32 %22, ptr %7, align 4
%23 = load ptr, ptr %13, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %13, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 2
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %7, align 4
%32 = sitofp i32 %31 to float
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds [4 x float], ptr %33, i64 0
%35 = getelementptr inbounds [4 x float], ptr %34, i64 0, i64 0
%36 = load float, ptr %35, align 4
%37 = load i32, ptr %8, align 4
%38 = sitofp i32 %37 to float
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds [4 x float], ptr %39, i64 1
%41 = getelementptr inbounds [4 x float], ptr %40, i64 0, i64 0
%42 = load float, ptr %41, align 4
%43 = fmul float %38, %42
%44 = call float @llvm.fmuladd.f32(float %32, float %36, float %43)
%45 = load i32, ptr %9, align 4
%46 = sitofp i32 %45 to float
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds [4 x float], ptr %47, i64 2
%49 = getelementptr inbounds [4 x float], ptr %48, i64 0, i64 0
%50 = load float, ptr %49, align 4
%51 = call float @llvm.fmuladd.f32(float %46, float %50, float %44)
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds [4 x float], ptr %52, i64 3
%54 = getelementptr inbounds [4 x float], ptr %53, i64 0, i64 0
%55 = load float, ptr %54, align 4
%56 = fadd float %51, %55
%57 = fptosi float %56 to i32
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %7, align 4
%59 = sitofp i32 %58 to float
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds [4 x float], ptr %60, i64 0
%62 = getelementptr inbounds [4 x float], ptr %61, i64 0, i64 1
%63 = load float, ptr %62, align 4
%64 = load i32, ptr %8, align 4
%65 = sitofp i32 %64 to float
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds [4 x float], ptr %66, i64 1
%68 = getelementptr inbounds [4 x float], ptr %67, i64 0, i64 1
%69 = load float, ptr %68, align 4
%70 = fmul float %65, %69
%71 = call float @llvm.fmuladd.f32(float %59, float %63, float %70)
%72 = load i32, ptr %9, align 4
%73 = sitofp i32 %72 to float
%74 = load ptr, ptr %5, align 8
%75 = getelementptr inbounds [4 x float], ptr %74, i64 2
%76 = getelementptr inbounds [4 x float], ptr %75, i64 0, i64 1
%77 = load float, ptr %76, align 4
%78 = call float @llvm.fmuladd.f32(float %73, float %77, float %71)
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds [4 x float], ptr %79, i64 3
%81 = getelementptr inbounds [4 x float], ptr %80, i64 0, i64 1
%82 = load float, ptr %81, align 4
%83 = fadd float %78, %82
%84 = fptosi float %83 to i32
store i32 %84, ptr %11, align 4
%85 = load i32, ptr %7, align 4
%86 = sitofp i32 %85 to float
%87 = load ptr, ptr %5, align 8
%88 = getelementptr inbounds [4 x float], ptr %87, i64 0
%89 = getelementptr inbounds [4 x float], ptr %88, i64 0, i64 2
%90 = load float, ptr %89, align 4
%91 = load i32, ptr %8, align 4
%92 = sitofp i32 %91 to float
%93 = load ptr, ptr %5, align 8
%94 = getelementptr inbounds [4 x float], ptr %93, i64 1
%95 = getelementptr inbounds [4 x float], ptr %94, i64 0, i64 2
%96 = load float, ptr %95, align 4
%97 = fmul float %92, %96
%98 = call float @llvm.fmuladd.f32(float %86, float %90, float %97)
%99 = load i32, ptr %9, align 4
%100 = sitofp i32 %99 to float
%101 = load ptr, ptr %5, align 8
%102 = getelementptr inbounds [4 x float], ptr %101, i64 2
%103 = getelementptr inbounds [4 x float], ptr %102, i64 0, i64 2
%104 = load float, ptr %103, align 4
%105 = call float @llvm.fmuladd.f32(float %100, float %104, float %98)
%106 = load ptr, ptr %5, align 8
%107 = getelementptr inbounds [4 x float], ptr %106, i64 3
%108 = getelementptr inbounds [4 x float], ptr %107, i64 0, i64 2
%109 = load float, ptr %108, align 4
%110 = fadd float %105, %109
%111 = fptosi float %110 to i32
store i32 %111, ptr %12, align 4
%112 = load i32, ptr %10, align 4
%113 = call zeroext i8 @CLAMP0255(i32 noundef %112)
%114 = load ptr, ptr %13, align 8
%115 = getelementptr inbounds i8, ptr %114, i64 0
store i8 %113, ptr %115, align 1
%116 = load i32, ptr %11, align 4
%117 = call zeroext i8 @CLAMP0255(i32 noundef %116)
%118 = load ptr, ptr %13, align 8
%119 = getelementptr inbounds i8, ptr %118, i64 1
store i8 %117, ptr %119, align 1
%120 = load i32, ptr %12, align 4
%121 = call zeroext i8 @CLAMP0255(i32 noundef %120)
%122 = load ptr, ptr %13, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 2
store i8 %121, ptr %123, align 1
%124 = load ptr, ptr %13, align 8
%125 = getelementptr inbounds i8, ptr %124, i64 4
store ptr %125, ptr %13, align 8
%126 = load i32, ptr %6, align 4
%127 = add nsw i32 %126, -1
store i32 %127, ptr %6, align 4
%128 = icmp ne i32 %126, 0
br i1 %128, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %129
129: ; preds = %._crit_edge, %3
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare zeroext i8 @CLAMP0255(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf4usm7e_.c'
source_filename = "/tmp/tmpf4usm7e_.c"
target datalayout = "e-m:e-p270: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/tmpf4usm7e_.c"
target datalayout = "e-m:e-p270: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/tmpixj2uus9.c'
source_filename = "/tmp/tmpixj2uus9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @__hsail_f32_to_f16(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call zeroext i16 @__gnu_f2h_internal(i32 noundef %3, i32 noundef 1)
ret i16 %4
}
declare zeroext i16 @__gnu_f2h_internal(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/tmpixj2uus9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @__hsail_f32_to_f16(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call zeroext i16 @__gnu_f2h_internal(i32 noundef %3, i32 noundef 1)
ret i16 %4
}
declare zeroext i16 @__gnu_f2h_internal(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/tmp69vpqd8n.c'
source_filename = "/tmp/tmp69vpqd8n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unescape_url(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %38, %1
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %43
12: ; preds = %5
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 %17, ptr %21, align 1
%22 = sext i8 %17 to i32
%23 = icmp eq i32 %22, 37
br i1 %23, label %24, label %37
24: ; preds = %12
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
%30 = call signext i8 @hex2char(ptr noundef %29)
%31 = load ptr, ptr %2, align 8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
store i8 %30, ptr %34, align 1
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 2
store i32 %36, ptr %4, align 4
br label %37
37: ; preds = %24, %12
br label %38
38: ; preds = %37
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %5, !llvm.loop !6
43: ; preds = %5
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
store i8 0, ptr %47, align 1
ret void
}
declare signext i8 @hex2char(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/tmp69vpqd8n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unescape_url(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %4, 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 %.lr.ph, label %48
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %37
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 %16, ptr %20, align 1
%21 = sext i8 %16 to i32
%22 = icmp eq i32 %21, 37
br i1 %22, label %23, label %36
23: ; preds = %11
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
%29 = call signext i8 @hex2char(ptr noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 %29, ptr %33, align 1
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 2
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %23, %11
br label %37
37: ; preds = %36
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = icmp ne i8 %46, 0
br i1 %47, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %48
48: ; preds = %._crit_edge, %1
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
ret void
}
declare signext i8 @hex2char(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/tmp34ckplbh.c'
source_filename = "/tmp/tmp34ckplbh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gsub(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = xor i32 %5, %6
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp34ckplbh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gsub(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = xor i32 %5, %6
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5lp9ogon.c'
source_filename = "/tmp/tmp5lp9ogon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypto_aead_decrypt(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca i64, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca [32 x i8], align 16
%23 = alloca [16 x i8], align 16
%24 = alloca i8, align 1
%25 = alloca [5 x i32], align 16
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store i64 %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store i64 %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store i8 0, ptr %24, align 1
%26 = load i64, ptr %15, align 8
%27 = icmp ult i64 %26, 16
br i1 %27, label %28, label %29
28: ; preds = %9
store i32 -1, ptr %10, align 4
br label %108
29: ; preds = %9
%30 = load ptr, ptr %19, align 8
%31 = load ptr, ptr %18, align 8
%32 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%33 = call i32 @morus_initialization(ptr noundef %30, ptr noundef %31, ptr noundef %32)
store i64 0, ptr %20, align 8
br label %34
34: ; preds = %46, %29
%35 = load i64, ptr %20, align 8
%36 = add i64 %35, 32
%37 = load i64, ptr %17, align 8
%38 = icmp ule i64 %36, %37
br i1 %38, label %39, label %49
39: ; preds = %34
%40 = load ptr, ptr %16, align 8
%41 = load i64, ptr %20, align 8
%42 = getelementptr inbounds i8, ptr %40, i64 %41
%43 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
%44 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%45 = call i32 @morus_enc_aut_step(ptr noundef %42, ptr noundef %43, ptr noundef %44)
br label %46
46: ; preds = %39
%47 = load i64, ptr %20, align 8
%48 = add i64 %47, 32
store i64 %48, ptr %20, align 8
br label %34, !llvm.loop !6
49: ; preds = %34
%50 = load i64, ptr %17, align 8
%51 = and i64 %50, 31
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %62
53: ; preds = %49
%54 = load ptr, ptr %16, align 8
%55 = load i64, ptr %20, align 8
%56 = getelementptr inbounds i8, ptr %54, i64 %55
%57 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
%58 = load i64, ptr %17, align 8
%59 = and i64 %58, 31
%60 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%61 = call i32 @morus_enc_aut_partialblock(ptr noundef %56, ptr noundef %57, i64 noundef %59, ptr noundef %60)
br label %62
62: ; preds = %53, %49
%63 = load i64, ptr %15, align 8
%64 = sub i64 %63, 16
%65 = load ptr, ptr %12, align 8
store i64 %64, ptr %65, align 8
store i64 0, ptr %20, align 8
br label %66
66: ; preds = %81, %62
%67 = load i64, ptr %20, align 8
%68 = add i64 %67, 32
%69 = load ptr, ptr %12, align 8
%70 = load i64, ptr %69, align 8
%71 = icmp ule i64 %68, %70
br i1 %71, label %72, label %84
72: ; preds = %66
%73 = load ptr, ptr %11, align 8
%74 = load i64, ptr %20, align 8
%75 = getelementptr inbounds i8, ptr %73, i64 %74
%76 = load ptr, ptr %14, align 8
%77 = load i64, ptr %20, align 8
%78 = getelementptr inbounds i8, ptr %76, i64 %77
%79 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%80 = call i32 @morus_dec_aut_step(ptr noundef %75, ptr noundef %78, ptr noundef %79)
br label %81
81: ; preds = %72
%82 = load i64, ptr %20, align 8
%83 = add i64 %82, 32
store i64 %83, ptr %20, align 8
br label %66, !llvm.loop !8
84: ; preds = %66
%85 = load ptr, ptr %12, align 8
%86 = load i64, ptr %85, align 8
%87 = and i64 %86, 31
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %101
89: ; preds = %84
%90 = load ptr, ptr %11, align 8
%91 = load i64, ptr %20, align 8
%92 = getelementptr inbounds i8, ptr %90, i64 %91
%93 = load ptr, ptr %14, align 8
%94 = load i64, ptr %20, align 8
%95 = getelementptr inbounds i8, ptr %93, i64 %94
%96 = load ptr, ptr %12, align 8
%97 = load i64, ptr %96, align 8
%98 = and i64 %97, 31
%99 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%100 = call i32 @morus_dec_aut_partialblock(ptr noundef %92, ptr noundef %95, i64 noundef %98, ptr noundef %99)
br label %101
101: ; preds = %89, %84
%102 = load ptr, ptr %12, align 8
%103 = load i64, ptr %102, align 8
%104 = load i64, ptr %17, align 8
%105 = load ptr, ptr %14, align 8
%106 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%107 = call i32 @morus_tag_verification(i64 noundef %103, i64 noundef %104, ptr noundef %105, ptr noundef %106)
store i32 %107, ptr %10, align 4
br label %108
108: ; preds = %101, %28
%109 = load i32, ptr %10, align 4
ret i32 %109
}
declare i32 @morus_initialization(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @morus_enc_aut_step(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @morus_enc_aut_partialblock(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @morus_dec_aut_step(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @morus_dec_aut_partialblock(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @morus_tag_verification(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5lp9ogon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypto_aead_decrypt(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca i64, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca [32 x i8], align 16
%23 = alloca [16 x i8], align 16
%24 = alloca i8, align 1
%25 = alloca [5 x i32], align 16
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store i64 %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store i64 %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store i8 0, ptr %24, align 1
%26 = load i64, ptr %15, align 8
%27 = icmp ult i64 %26, 16
br i1 %27, label %28, label %29
28: ; preds = %9
store i32 -1, ptr %10, align 4
br label %115
29: ; preds = %9
%30 = load ptr, ptr %19, align 8
%31 = load ptr, ptr %18, align 8
%32 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%33 = call i32 @morus_initialization(ptr noundef %30, ptr noundef %31, ptr noundef %32)
store i64 0, ptr %20, align 8
%34 = load i64, ptr %20, align 8
%35 = add i64 %34, 32
%36 = load i64, ptr %17, align 8
%37 = icmp ule i64 %35, %36
br i1 %37, label %.lr.ph, label %52
.lr.ph: ; preds = %29
br label %38
38: ; preds = %.lr.ph, %45
%39 = load ptr, ptr %16, align 8
%40 = load i64, ptr %20, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
%42 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
%43 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%44 = call i32 @morus_enc_aut_step(ptr noundef %41, ptr noundef %42, ptr noundef %43)
br label %45
45: ; preds = %38
%46 = load i64, ptr %20, align 8
%47 = add i64 %46, 32
store i64 %47, ptr %20, align 8
%48 = load i64, ptr %20, align 8
%49 = add i64 %48, 32
%50 = load i64, ptr %17, align 8
%51 = icmp ule i64 %49, %50
br i1 %51, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %52
52: ; preds = %._crit_edge, %29
%53 = load i64, ptr %17, align 8
%54 = and i64 %53, 31
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %65
56: ; preds = %52
%57 = load ptr, ptr %16, align 8
%58 = load i64, ptr %20, align 8
%59 = getelementptr inbounds i8, ptr %57, i64 %58
%60 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
%61 = load i64, ptr %17, align 8
%62 = and i64 %61, 31
%63 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%64 = call i32 @morus_enc_aut_partialblock(ptr noundef %59, ptr noundef %60, i64 noundef %62, ptr noundef %63)
br label %65
65: ; preds = %56, %52
%66 = load i64, ptr %15, align 8
%67 = sub i64 %66, 16
%68 = load ptr, ptr %12, align 8
store i64 %67, ptr %68, align 8
store i64 0, ptr %20, align 8
%69 = load i64, ptr %20, align 8
%70 = add i64 %69, 32
%71 = load ptr, ptr %12, align 8
%72 = load i64, ptr %71, align 8
%73 = icmp ule i64 %70, %72
br i1 %73, label %.lr.ph2, label %91
.lr.ph2: ; preds = %65
br label %74
74: ; preds = %.lr.ph2, %83
%75 = load ptr, ptr %11, align 8
%76 = load i64, ptr %20, align 8
%77 = getelementptr inbounds i8, ptr %75, i64 %76
%78 = load ptr, ptr %14, align 8
%79 = load i64, ptr %20, align 8
%80 = getelementptr inbounds i8, ptr %78, i64 %79
%81 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%82 = call i32 @morus_dec_aut_step(ptr noundef %77, ptr noundef %80, ptr noundef %81)
br label %83
83: ; preds = %74
%84 = load i64, ptr %20, align 8
%85 = add i64 %84, 32
store i64 %85, ptr %20, align 8
%86 = load i64, ptr %20, align 8
%87 = add i64 %86, 32
%88 = load ptr, ptr %12, align 8
%89 = load i64, ptr %88, align 8
%90 = icmp ule i64 %87, %89
br i1 %90, label %74, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %83
br label %91
91: ; preds = %._crit_edge3, %65
%92 = load ptr, ptr %12, align 8
%93 = load i64, ptr %92, align 8
%94 = and i64 %93, 31
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %108
96: ; preds = %91
%97 = load ptr, ptr %11, align 8
%98 = load i64, ptr %20, align 8
%99 = getelementptr inbounds i8, ptr %97, i64 %98
%100 = load ptr, ptr %14, align 8
%101 = load i64, ptr %20, align 8
%102 = getelementptr inbounds i8, ptr %100, i64 %101
%103 = load ptr, ptr %12, align 8
%104 = load i64, ptr %103, align 8
%105 = and i64 %104, 31
%106 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%107 = call i32 @morus_dec_aut_partialblock(ptr noundef %99, ptr noundef %102, i64 noundef %105, ptr noundef %106)
br label %108
108: ; preds = %96, %91
%109 = load ptr, ptr %12, align 8
%110 = load i64, ptr %109, align 8
%111 = load i64, ptr %17, align 8
%112 = load ptr, ptr %14, align 8
%113 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 0
%114 = call i32 @morus_tag_verification(i64 noundef %110, i64 noundef %111, ptr noundef %112, ptr noundef %113)
store i32 %114, ptr %10, align 4
br label %115
115: ; preds = %108, %28
%116 = load i32, ptr %10, align 4
ret i32 %116
}
declare i32 @morus_initialization(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @morus_enc_aut_step(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @morus_enc_aut_partialblock(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @morus_dec_aut_step(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @morus_dec_aut_partialblock(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @morus_tag_verification(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpwk51yxdb.c'
source_filename = "/tmp/tmpwk51yxdb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @little2bigl(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = call i32 @SwapWord(ptr noundef %2, i32 noundef 8)
%4 = load i64, ptr %2, align 8
ret i64 %4
}
declare i32 @SwapWord(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/tmpwk51yxdb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @little2bigl(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = call i32 @SwapWord(ptr noundef %2, i32 noundef 8)
%4 = load i64, ptr %2, align 8
ret i64 %4
}
declare i32 @SwapWord(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/tmpsylkdv__.c'
source_filename = "/tmp/tmpsylkdv__.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @host_ipl_save() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @host_sigfillset(ptr noundef %1)
%4 = call i32 @host_sigemptyset(ptr noundef %2)
%5 = load i32, ptr @SIG_SETMASK, align 4
%6 = call i32 @host_sigprocmask(i32 noundef %5, ptr noundef %1, ptr noundef %2)
%7 = call i32 @sigisemptyset(ptr noundef %2)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
ret i32 %10
}
declare i32 @host_sigfillset(ptr noundef) #1
declare i32 @host_sigemptyset(ptr noundef) #1
declare i32 @host_sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sigisemptyset(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/tmpsylkdv__.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @host_ipl_save() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @host_sigfillset(ptr noundef %1)
%4 = call i32 @host_sigemptyset(ptr noundef %2)
%5 = load i32, ptr @SIG_SETMASK, align 4
%6 = call i32 @host_sigprocmask(i32 noundef %5, ptr noundef %1, ptr noundef %2)
%7 = call i32 @sigisemptyset(ptr noundef %2)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
ret i32 %10
}
declare i32 @host_sigfillset(ptr noundef) #1
declare i32 @host_sigemptyset(ptr noundef) #1
declare i32 @host_sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sigisemptyset(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/tmpqmbv2h5g.c'
source_filename = "/tmp/tmpqmbv2h5g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wl_mkrandtree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 103, ptr %3, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i64 @getnum(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @srandom(i64 noundef %9)
%11 = call i32 (...) @random()
%12 = srem i32 %11, 44
%13 = add nsw i32 %12, 12
store i32 %13, ptr %4, align 4
store i32 0, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 @mkrandtree_sub(i32 noundef %14, i32 noundef 0, ptr noundef %5, i32 noundef %15)
ret void
}
declare i64 @getnum(ptr noundef) #1
declare i32 @srandom(i64 noundef) #1
declare i32 @random(...) #1
declare i32 @mkrandtree_sub(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqmbv2h5g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wl_mkrandtree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 103, ptr %3, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i64 @getnum(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @srandom(i64 noundef %9)
%11 = call i32 (...) @random()
%12 = srem i32 %11, 44
%13 = add nsw i32 %12, 12
store i32 %13, ptr %4, align 4
store i32 0, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 @mkrandtree_sub(i32 noundef %14, i32 noundef 0, ptr noundef %5, i32 noundef %15)
ret void
}
declare i64 @getnum(ptr noundef) #1
declare i32 @srandom(i64 noundef) #1
declare i32 @random(...) #1
declare i32 @mkrandtree_sub(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprv925fce.c'
source_filename = "/tmp/tmprv925fce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"setenv\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%s=%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @usage(ptr noundef %12)
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 4
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 1, ptr %6, align 4
br label %18
18: ; preds = %17, %14
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %6, align 4
%26 = call i64 @_setenv(ptr noundef %21, ptr noundef %24, i32 noundef %25)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %18
%29 = call i32 @exitErr(ptr noundef @.str)
br label %30
30: ; preds = %28, %18
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
%37 = call ptr @getenv(ptr noundef %36)
%38 = call i32 @printf(ptr noundef @.str.1, ptr noundef %33, ptr noundef %37)
%39 = load i32, ptr @EXIT_SUCCESS, align 4
%40 = call i32 @exit(i32 noundef %39) #3
unreachable
}
declare i32 @usage(ptr noundef) #1
declare i64 @_setenv(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @exitErr(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprv925fce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"setenv\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%s=%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @usage(ptr noundef %12)
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 4
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 1, ptr %6, align 4
br label %18
18: ; preds = %17, %14
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %6, align 4
%26 = call i64 @_setenv(ptr noundef %21, ptr noundef %24, i32 noundef %25)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %18
%29 = call i32 @exitErr(ptr noundef @.str)
br label %30
30: ; preds = %28, %18
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
%37 = call ptr @getenv(ptr noundef %36)
%38 = call i32 @printf(ptr noundef @.str.1, ptr noundef %33, ptr noundef %37)
%39 = load i32, ptr @EXIT_SUCCESS, align 4
%40 = call i32 @exit(i32 noundef %39) #3
unreachable
}
declare i32 @usage(ptr noundef) #1
declare i64 @_setenv(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @exitErr(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @getenv(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplzg7wqw9.c'
source_filename = "/tmp/tmplzg7wqw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binsearch(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 12
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = call i32 @findfirst(ptr noundef %15, i32 noundef %16, i32 noundef %17)
store i32 %18, ptr %4, align 4
br label %81
19: ; preds = %3
%20 = load i32, ptr %7, align 4
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
%23 = load i32, ptr %22, align 4
%24 = icmp slt i32 %20, %23
br i1 %24, label %25, label %26
25: ; preds = %19
store i32 -1, ptr %4, align 4
br label %81
26: ; preds = %19
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = icmp sgt i32 %27, %33
br i1 %34, label %35, label %36
35: ; preds = %26
store i32 -1, ptr %4, align 4
br label %81
36: ; preds = %26
%37 = load i32, ptr %6, align 4
%38 = sdiv i32 %37, 2
store i32 %38, ptr %10, align 4
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %10, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
store i32 %43, ptr %11, align 4
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %11, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %52
47: ; preds = %36
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %10, align 4
%50 = load i32, ptr %7, align 4
%51 = call i32 @binsearch(ptr noundef %48, i32 noundef %49, i32 noundef %50)
store i32 %51, ptr %4, align 4
br label %81
52: ; preds = %36
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %11, align 4
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = load i32, ptr %10, align 4
store i32 %57, ptr %4, align 4
br label %81
58: ; preds = %52
%59 = load i32, ptr %6, align 4
%60 = sub nsw i32 %59, 1
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
%63 = sub nsw i32 %60, %62
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %10, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
%69 = getelementptr inbounds i32, ptr %68, i64 1
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %7, align 4
%72 = call i32 @binsearch(ptr noundef %69, i32 noundef %70, i32 noundef %71)
store i32 %72, ptr %8, align 4
%73 = load i32, ptr %8, align 4
%74 = icmp slt i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %58
store i32 -1, ptr %4, align 4
br label %81
76: ; preds = %58
%77 = load i32, ptr %8, align 4
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %77, %78
%80 = add nsw i32 %79, 1
store i32 %80, ptr %4, align 4
br label %81
81: ; preds = %76, %75, %56, %47, %35, %25, %14
%82 = load i32, ptr %4, align 4
ret i32 %82
}
declare i32 @findfirst(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplzg7wqw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binsearch(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 12
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = call i32 @findfirst(ptr noundef %15, i32 noundef %16, i32 noundef %17)
store i32 %18, ptr %4, align 4
br label %81
19: ; preds = %3
%20 = load i32, ptr %7, align 4
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
%23 = load i32, ptr %22, align 4
%24 = icmp slt i32 %20, %23
br i1 %24, label %25, label %26
25: ; preds = %19
store i32 -1, ptr %4, align 4
br label %81
26: ; preds = %19
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = icmp sgt i32 %27, %33
br i1 %34, label %35, label %36
35: ; preds = %26
store i32 -1, ptr %4, align 4
br label %81
36: ; preds = %26
%37 = load i32, ptr %6, align 4
%38 = sdiv i32 %37, 2
store i32 %38, ptr %10, align 4
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %10, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
store i32 %43, ptr %11, align 4
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %11, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %52
47: ; preds = %36
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %10, align 4
%50 = load i32, ptr %7, align 4
%51 = call i32 @binsearch(ptr noundef %48, i32 noundef %49, i32 noundef %50)
store i32 %51, ptr %4, align 4
br label %81
52: ; preds = %36
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %11, align 4
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = load i32, ptr %10, align 4
store i32 %57, ptr %4, align 4
br label %81
58: ; preds = %52
%59 = load i32, ptr %6, align 4
%60 = sub nsw i32 %59, 1
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
%63 = sub nsw i32 %60, %62
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %10, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
%69 = getelementptr inbounds i32, ptr %68, i64 1
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %7, align 4
%72 = call i32 @binsearch(ptr noundef %69, i32 noundef %70, i32 noundef %71)
store i32 %72, ptr %8, align 4
%73 = load i32, ptr %8, align 4
%74 = icmp slt i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %58
store i32 -1, ptr %4, align 4
br label %81
76: ; preds = %58
%77 = load i32, ptr %8, align 4
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %77, %78
%80 = add nsw i32 %79, 1
store i32 %80, ptr %4, align 4
br label %81
81: ; preds = %76, %75, %56, %47, %35, %25, %14
%82 = load i32, ptr %4, align 4
ret i32 %82
}
declare i32 @findfirst(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgpjf2sio.c'
source_filename = "/tmp/tmpgpjf2sio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cg_tol(double noundef %0, double noundef %1, i32 noundef %2, double noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store double %3, ptr %9, align 8
%10 = load i32, ptr %8, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %4
%13 = load double, ptr %7, align 8
%14 = load double, ptr %9, align 8
%15 = fcmp ole double %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, ptr %5, align 4
br label %29
17: ; preds = %12
br label %28
18: ; preds = %4
%19 = load double, ptr %7, align 8
%20 = load double, ptr %9, align 8
%21 = load double, ptr %6, align 8
%22 = call double @llvm.fabs.f64(double %21)
%23 = fadd double 1.000000e+00, %22
%24 = fmul double %20, %23
%25 = fcmp ole double %19, %24
br i1 %25, label %26, label %27
26: ; preds = %18
store i32 1, ptr %5, align 4
br label %29
27: ; preds = %18
br label %28
28: ; preds = %27, %17
store i32 0, ptr %5, align 4
br label %29
29: ; preds = %28, %26, %16
%30 = load i32, ptr %5, align 4
ret i32 %30
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgpjf2sio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cg_tol(double noundef %0, double noundef %1, i32 noundef %2, double noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store double %3, ptr %9, align 8
%10 = load i32, ptr %8, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %4
%13 = load double, ptr %7, align 8
%14 = load double, ptr %9, align 8
%15 = fcmp ole double %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, ptr %5, align 4
br label %29
17: ; preds = %12
br label %28
18: ; preds = %4
%19 = load double, ptr %7, align 8
%20 = load double, ptr %9, align 8
%21 = load double, ptr %6, align 8
%22 = call double @llvm.fabs.f64(double %21)
%23 = fadd double 1.000000e+00, %22
%24 = fmul double %20, %23
%25 = fcmp ole double %19, %24
br i1 %25, label %26, label %27
26: ; preds = %18
store i32 1, ptr %5, align 4
br label %29
27: ; preds = %18
br label %28
28: ; preds = %27, %17
store i32 0, ptr %5, align 4
br label %29
29: ; preds = %28, %26, %16
%30 = load i32, ptr %5, align 4
ret i32 %30
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvy1v3urd.c'
source_filename = "/tmp/tmpvy1v3urd.c"
target datalayout = "e-m:e-p270: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/tmpvy1v3urd.c"
target datalayout = "e-m:e-p270: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/tmpbsn2s0lb.c'
source_filename = "/tmp/tmpbsn2s0lb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MCL_CURRENT = dso_local global i32 0, align 4
@MCL_FUTURE = 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/tmpbsn2s0lb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MCL_CURRENT = dso_local global i32 0, align 4
@MCL_FUTURE = 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/tmptxr8uln2.c'
source_filename = "/tmp/tmptxr8uln2.c"
target datalayout = "e-m:e-p270: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/tmptxr8uln2.c"
target datalayout = "e-m:e-p270: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/tmp33okq7vp.c'
source_filename = "/tmp/tmp33okq7vp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"flush/read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @flush(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [32 x i8], align 16
store i32 %0, ptr %2, align 4
br label %5
5: ; preds = %15, %1
%6 = load i32, ptr %2, align 4
%7 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%8 = call i32 @read(i32 noundef %6, ptr noundef %7, i32 noundef 32)
store i32 %8, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %5
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @perror(ptr noundef @.str)
br label %15
15: ; preds = %13, %10
br label %5, !llvm.loop !6
16: ; preds = %5
ret void
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp33okq7vp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"flush/read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @flush(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [32 x i8], align 16
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @read(i32 noundef %5, ptr noundef %6, i32 noundef 32)
store i32 %7, ptr %3, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %14
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @perror(ptr noundef @.str)
br label %14
14: ; preds = %12, %9
%15 = load i32, ptr %2, align 4
%16 = call i32 @read(i32 noundef %15, ptr noundef %6, i32 noundef 32)
store i32 %16, ptr %3, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %18
18: ; preds = %._crit_edge, %1
ret void
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcu5rkzbh.c'
source_filename = "/tmp/tmpcu5rkzbh.c"
target datalayout = "e-m:e-p270: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.dirent = type { ptr, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"Can't open %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"/* In %s */\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_c_files(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @opendir(ptr noundef %10)
store ptr %11, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %4, align 8
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %15)
store i32 -1, ptr %3, align 4
br label %64
17: ; preds = %2
br label %18
18: ; preds = %62, %17
%19 = load ptr, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %63
21: ; preds = %18
%22 = load ptr, ptr %6, align 8
%23 = call ptr @readdir(ptr noundef %22)
store ptr %23, ptr %7, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %55
25: ; preds = %21
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.dirent, ptr %26, i32 0, i32 1
%28 = load i32, ptr %27, align 8
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.dirent, ptr %29, i32 0, i32 0
%31 = load ptr, ptr %30, align 8
%32 = call i64 @is_c_file(i32 noundef %28, ptr noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %55
34: ; preds = %25
%35 = load ptr, ptr %4, align 8
%36 = call ptr @str_coupler(ptr noundef %35, ptr noundef @.str.1)
store ptr %36, ptr %8, align 8
%37 = load ptr, ptr %8, align 8
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds %struct.dirent, ptr %38, i32 0, i32 0
%40 = load ptr, ptr %39, align 8
%41 = call ptr @str_coupler(ptr noundef %37, ptr noundef %40)
store ptr %41, ptr %9, align 8
%42 = load ptr, ptr %9, align 8
%43 = call i32 @printf(ptr noundef @.str.2, ptr noundef %42)
%44 = load ptr, ptr %9, align 8
%45 = call i32 @free(ptr noundef %44)
%46 = load ptr, ptr %8, align 8
%47 = load ptr, ptr %7, align 8
%48 = getelementptr inbounds %struct.dirent, ptr %47, i32 0, i32 0
%49 = load ptr, ptr %48, align 8
%50 = call ptr @str_coupler(ptr noundef %46, ptr noundef %49)
%51 = load ptr, ptr %5, align 8
%52 = call i32 @add_function(ptr noundef %50, ptr noundef %51)
%53 = load ptr, ptr %8, align 8
%54 = call i32 @free(ptr noundef %53)
br label %62
55: ; preds = %25, %21
%56 = load ptr, ptr %7, align 8
%57 = icmp eq ptr %56, null
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = load ptr, ptr %6, align 8
%60 = call i32 @closedir(ptr noundef %59)
store ptr null, ptr %6, align 8
br label %61
61: ; preds = %58, %55
br label %62
62: ; preds = %61, %34
br label %18, !llvm.loop !6
63: ; preds = %18
store i32 0, ptr %3, align 4
br label %64
64: ; preds = %63, %13
%65 = load i32, ptr %3, align 4
ret i32 %65
}
declare ptr @opendir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i64 @is_c_file(i32 noundef, ptr noundef) #1
declare ptr @str_coupler(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @add_function(ptr noundef, ptr noundef) #1
declare i32 @closedir(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/tmpcu5rkzbh.c"
target datalayout = "e-m:e-p270: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.dirent = type { ptr, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"Can't open %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"/* In %s */\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_c_files(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @opendir(ptr noundef %10)
store ptr %11, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %4, align 8
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %15)
store i32 -1, ptr %3, align 4
br label %65
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %64
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %61
%21 = load ptr, ptr %6, align 8
%22 = call ptr @readdir(ptr noundef %21)
store ptr %22, ptr %7, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %54
24: ; preds = %20
%25 = load ptr, ptr %7, align 8
%26 = getelementptr inbounds %struct.dirent, ptr %25, i32 0, i32 1
%27 = load i32, ptr %26, align 8
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds %struct.dirent, ptr %28, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
%31 = call i64 @is_c_file(i32 noundef %27, ptr noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %54
33: ; preds = %24
%34 = load ptr, ptr %4, align 8
%35 = call ptr @str_coupler(ptr noundef %34, ptr noundef @.str.1)
store ptr %35, ptr %8, align 8
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds %struct.dirent, ptr %37, i32 0, i32 0
%39 = load ptr, ptr %38, align 8
%40 = call ptr @str_coupler(ptr noundef %36, ptr noundef %39)
store ptr %40, ptr %9, align 8
%41 = load ptr, ptr %9, align 8
%42 = call i32 @printf(ptr noundef @.str.2, ptr noundef %41)
%43 = load ptr, ptr %9, align 8
%44 = call i32 @free(ptr noundef %43)
%45 = load ptr, ptr %8, align 8
%46 = load ptr, ptr %7, align 8
%47 = getelementptr inbounds %struct.dirent, ptr %46, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
%49 = call ptr @str_coupler(ptr noundef %45, ptr noundef %48)
%50 = load ptr, ptr %5, align 8
%51 = call i32 @add_function(ptr noundef %49, ptr noundef %50)
%52 = load ptr, ptr %8, align 8
%53 = call i32 @free(ptr noundef %52)
br label %61
54: ; preds = %24, %20
%55 = load ptr, ptr %7, align 8
%56 = icmp eq ptr %55, null
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = load ptr, ptr %6, align 8
%59 = call i32 @closedir(ptr noundef %58)
store ptr null, ptr %6, align 8
br label %60
60: ; preds = %57, %54
br label %61
61: ; preds = %60, %33
%62 = load ptr, ptr %6, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %64
64: ; preds = %._crit_edge, %17
store i32 0, ptr %3, align 4
br label %65
65: ; preds = %64, %13
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare ptr @opendir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i64 @is_c_file(i32 noundef, ptr noundef) #1
declare ptr @str_coupler(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @add_function(ptr noundef, ptr noundef) #1
declare i32 @closedir(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/tmpy375ddmq.c'
source_filename = "/tmp/tmpy375ddmq.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%d|\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"------------------\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @affichage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %40, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 9
br i1 %7, label %8, label %43
8: ; preds = %5
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %28, %8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 9
br i1 %11, label %12, label %31
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
%15 = srem i32 %14, 3
%16 = icmp ne i32 %15, 0
%17 = zext i1 %16 to i64
%18 = select i1 %16, ptr @.str, ptr @.str.1
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [9 x i32], ptr %19, i64 %21
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [9 x i32], ptr %22, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 @printf(ptr noundef %18, i32 noundef %26)
br label %28
28: ; preds = %12
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %9, !llvm.loop !6
31: ; preds = %9
%32 = call i32 @putchar(i8 noundef signext 10)
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
%35 = srem i32 %34, 3
%36 = icmp ne i32 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %31
%38 = call i32 @puts(ptr noundef @.str.2)
br label %39
39: ; preds = %37, %31
br label %40
40: ; preds = %39
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
br label %5, !llvm.loop !8
43: ; preds = %5
%44 = call i32 @puts(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @puts(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/tmpy375ddmq.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%d|\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"------------------\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @affichage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 9
br i1 %6, label %.lr.ph2, label %45
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %40
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 9
br i1 %9, label %.lr.ph, label %31
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %26
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 1
%13 = srem i32 %12, 3
%14 = icmp ne i32 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, ptr @.str, ptr @.str.1
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [9 x i32], ptr %17, i64 %19
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [9 x i32], ptr %20, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = call i32 @printf(ptr noundef %16, i32 noundef %24)
br label %26
26: ; preds = %10
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 9
br i1 %30, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %7
%32 = call i32 @putchar(i8 noundef signext 10)
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
%35 = srem i32 %34, 3
%36 = icmp ne i32 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %31
%38 = call i32 @puts(ptr noundef @.str.2)
br label %39
39: ; preds = %37, %31
br label %40
40: ; preds = %39
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp slt i32 %43, 9
br i1 %44, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %40
br label %45
45: ; preds = %._crit_edge3, %1
%46 = call i32 @puts(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @puts(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/tmpx0zmbuhh.c'
source_filename = "/tmp/tmpx0zmbuhh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ehDomingoDeCarnaval(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = call i32 @calculaDomingoCarnaval(i32 noundef %11, ptr noundef %8, ptr noundef %7)
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %3
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp eq i32 %21, %22
br label %24
24: ; preds = %20, %16, %3
%25 = phi i1 [ false, %16 ], [ false, %3 ], [ %23, %20 ]
%26 = zext i1 %25 to i32
ret i32 %26
}
declare i32 @calculaDomingoCarnaval(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/tmpx0zmbuhh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ehDomingoDeCarnaval(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = call i32 @calculaDomingoCarnaval(i32 noundef %11, ptr noundef %8, ptr noundef %7)
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %3
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp eq i32 %21, %22
br label %24
24: ; preds = %20, %16, %3
%25 = phi i1 [ false, %16 ], [ false, %3 ], [ %23, %20 ]
%26 = zext i1 %25 to i32
ret i32 %26
}
declare i32 @calculaDomingoCarnaval(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/tmpko0eqj3t.c'
source_filename = "/tmp/tmpko0eqj3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NetName.name = internal global [64 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [12 x i8] c"%d.%d.%d.%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @NetName(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [4 x i32], align 16
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = urem i64 %4, 65536
%6 = trunc i64 %5 to i32
%7 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
store i32 %6, ptr %7, align 16
%8 = load i64, ptr %2, align 8
%9 = udiv i64 %8, 65536
%10 = trunc i64 %9 to i32
%11 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
store i32 %10, ptr %11, align 8
%12 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
%13 = load i32, ptr %12, align 8
%14 = sdiv i32 %13, 256
%15 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 3
store i32 %14, ptr %15, align 4
%16 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
%17 = load i32, ptr %16, align 8
%18 = srem i32 %17, 256
store i32 %18, ptr %16, align 8
%19 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%20 = load i32, ptr %19, align 16
%21 = sdiv i32 %20, 256
%22 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%24 = load i32, ptr %23, align 16
%25 = srem i32 %24, 256
store i32 %25, ptr %23, align 16
%26 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 3
%27 = load i32, ptr %26, align 4
%28 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
%29 = load i32, ptr %28, align 8
%30 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 1
%31 = load i32, ptr %30, align 4
%32 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%33 = load i32, ptr %32, align 16
%34 = call i32 @sprintf(ptr noundef @NetName.name, ptr noundef @.str, i32 noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef %33)
ret ptr @NetName.name
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpko0eqj3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NetName.name = internal global [64 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [12 x i8] c"%d.%d.%d.%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @NetName(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [4 x i32], align 16
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = urem i64 %4, 65536
%6 = trunc i64 %5 to i32
%7 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
store i32 %6, ptr %7, align 16
%8 = load i64, ptr %2, align 8
%9 = udiv i64 %8, 65536
%10 = trunc i64 %9 to i32
%11 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
store i32 %10, ptr %11, align 8
%12 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
%13 = load i32, ptr %12, align 8
%14 = sdiv i32 %13, 256
%15 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 3
store i32 %14, ptr %15, align 4
%16 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
%17 = load i32, ptr %16, align 8
%18 = srem i32 %17, 256
store i32 %18, ptr %16, align 8
%19 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%20 = load i32, ptr %19, align 16
%21 = sdiv i32 %20, 256
%22 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%24 = load i32, ptr %23, align 16
%25 = srem i32 %24, 256
store i32 %25, ptr %23, align 16
%26 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 3
%27 = load i32, ptr %26, align 4
%28 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
%29 = load i32, ptr %28, align 8
%30 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 1
%31 = load i32, ptr %30, align 4
%32 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%33 = load i32, ptr %32, align 16
%34 = call i32 @sprintf(ptr noundef @NetName.name, ptr noundef @.str, i32 noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef %33)
ret ptr @NetName.name
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsspfbs8o.c'
source_filename = "/tmp/tmpsspfbs8o.c"
target datalayout = "e-m:e-p270: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/tmpsspfbs8o.c"
target datalayout = "e-m:e-p270: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/tmpf65eh0ya.c'
source_filename = "/tmp/tmpf65eh0ya.c"
target datalayout = "e-m:e-p270: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"pthread_mutex_t\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g_pthread_mutex_t() #0 {
%1 = call i32 @gptp(ptr noundef @.str, i32 noundef 4)
ret void
}
declare i32 @gptp(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/tmpf65eh0ya.c"
target datalayout = "e-m:e-p270: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"pthread_mutex_t\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g_pthread_mutex_t() #0 {
%1 = call i32 @gptp(ptr noundef @.str, i32 noundef 4)
ret void
}
declare i32 @gptp(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/tmpwpa7mpdc.c'
source_filename = "/tmp/tmpwpa7mpdc.c"
target datalayout = "e-m:e-p270: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/tmpwpa7mpdc.c"
target datalayout = "e-m:e-p270: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/tmpc829hzbu.c'
source_filename = "/tmp/tmpc829hzbu.c"
target datalayout = "e-m:e-p270: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/tmpc829hzbu.c"
target datalayout = "e-m:e-p270: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/tmp1icdq6zk.c'
source_filename = "/tmp/tmp1icdq6zk.c"
target datalayout = "e-m:e-p270: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/tmp1icdq6zk.c"
target datalayout = "e-m:e-p270: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/tmpe51y9uu5.c'
source_filename = "/tmp/tmpe51y9uu5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Spin() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store volatile i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %9, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 1000
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load volatile i32, ptr %1, align 4
%8 = add i32 %7, 1
store volatile i32 %8, ptr %1, align 4
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
%13 = call i32 (...) @SpinSomeMore()
ret void
}
declare i32 @SpinSomeMore(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpe51y9uu5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Spin() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store volatile i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 1000
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %8
%6 = load volatile i32, ptr %1, align 4
%7 = add i32 %6, 1
store volatile i32 %7, ptr %1, align 4
br label %8
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 1000
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %13
13: ; preds = %._crit_edge, %0
%14 = call i32 (...) @SpinSomeMore()
ret void
}
declare i32 @SpinSomeMore(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpcvduhryp.c'
source_filename = "/tmp/tmpcvduhryp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %2, %6
%7 = call i32 @sleep(i32 noundef 10000000)
br label %6
}
declare i32 @sleep(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/tmpcvduhryp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %6, %2
%7 = call i32 @sleep(i32 noundef 10000000)
br label %6
}
declare i32 @sleep(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/tmpja25zuw2.c'
source_filename = "/tmp/tmpja25zuw2.c"
target datalayout = "e-m:e-p270: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"input char array size %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c" VDISCARD not defined\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_control_char(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpja25zuw2.c"
target datalayout = "e-m:e-p270: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"input char array size %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c" VDISCARD not defined\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_control_char(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ewj68n3.c'
source_filename = "/tmp/tmp_ewj68n3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @notify_sensor_data_request() #0 {
%1 = call i32 (...) @sensor_data_request()
ret void
}
declare i32 @sensor_data_request(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_ewj68n3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @notify_sensor_data_request() #0 {
%1 = call i32 (...) @sensor_data_request()
ret void
}
declare i32 @sensor_data_request(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp23f5s665.c'
source_filename = "/tmp/tmp23f5s665.c"
target datalayout = "e-m:e-p270: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"do_aspawn\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_aspawn() #0 {
%1 = alloca i32, align 4
%2 = call i32 @bomb(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @bomb(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/tmp23f5s665.c"
target datalayout = "e-m:e-p270: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"do_aspawn\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_aspawn() #0 {
%1 = alloca i32, align 4
%2 = call i32 @bomb(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @bomb(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/tmpop8vj2ho.c'
source_filename = "/tmp/tmpop8vj2ho.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @htx_ctime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @sigemptyset(ptr noundef %4)
%10 = call i32 @sigfillset(ptr noundef %3)
%11 = load i32, ptr @errno, align 4
store i32 %11, ptr %8, align 4
%12 = load i32, ptr @SIG_BLOCK, align 4
%13 = call i32 @pthread_sigmask(i32 noundef %12, ptr noundef %3, ptr noundef %4)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %1
%17 = load i32, ptr %8, align 4
store i32 %17, ptr @errno, align 4
store i32 1, ptr %7, align 4
br label %18
18: ; preds = %16, %1
%19 = load ptr, ptr %2, align 8
%20 = call ptr @ctime(ptr noundef %19)
store ptr %20, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %18
%24 = load i32, ptr @errno, align 4
store i32 %24, ptr %8, align 4
%25 = load i32, ptr @SIG_SETMASK, align 4
%26 = call i32 @pthread_sigmask(i32 noundef %25, ptr noundef %4, ptr noundef null)
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = load i32, ptr %8, align 4
store i32 %30, ptr @errno, align 4
br label %31
31: ; preds = %29, %23
br label %32
32: ; preds = %31, %18
%33 = load ptr, ptr %5, align 8
ret ptr %33
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigfillset(ptr noundef) #1
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @ctime(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/tmpop8vj2ho.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @htx_ctime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @sigemptyset(ptr noundef %4)
%10 = call i32 @sigfillset(ptr noundef %3)
%11 = load i32, ptr @errno, align 4
store i32 %11, ptr %8, align 4
%12 = load i32, ptr @SIG_BLOCK, align 4
%13 = call i32 @pthread_sigmask(i32 noundef %12, ptr noundef %3, ptr noundef %4)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %1
%17 = load i32, ptr %8, align 4
store i32 %17, ptr @errno, align 4
store i32 1, ptr %7, align 4
br label %18
18: ; preds = %16, %1
%19 = load ptr, ptr %2, align 8
%20 = call ptr @ctime(ptr noundef %19)
store ptr %20, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %18
%24 = load i32, ptr @errno, align 4
store i32 %24, ptr %8, align 4
%25 = load i32, ptr @SIG_SETMASK, align 4
%26 = call i32 @pthread_sigmask(i32 noundef %25, ptr noundef %4, ptr noundef null)
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = load i32, ptr %8, align 4
store i32 %30, ptr @errno, align 4
br label %31
31: ; preds = %29, %23
br label %32
32: ; preds = %31, %18
%33 = load ptr, ptr %5, align 8
ret ptr %33
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigfillset(ptr noundef) #1
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @ctime(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/tmpy1vzrdtm.c'
source_filename = "/tmp/tmpy1vzrdtm.c"
target datalayout = "e-m:e-p270: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.timespec = type { double, i64 }
@.str = private unnamed_addr constant [33 x i8] c"\0AError en la reserva de memoria.\00", align 1
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Planificador static: \0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Tiempo(seg.):%11.9f\09 / Tama\C3\B1o Vector:%u\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Planificador dynamic: \0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"Planificador guided: \0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"\0A\0AValor (0,0): %d \0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Valor (n-1,n-1): %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %struct.timespec, align 8
%13 = alloca %struct.timespec, align 8
%14 = alloca %struct.timespec, align 8
%15 = alloca %struct.timespec, align 8
%16 = alloca %struct.timespec, align 8
%17 = alloca %struct.timespec, align 8
%18 = alloca double, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = 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
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 4
%33 = trunc i64 %32 to i32
%34 = call i64 @malloc(i32 noundef %33)
%35 = inttoptr i64 %34 to ptr
store ptr %35, ptr %19, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 4
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %20, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = mul i64 %43, 8
%45 = trunc i64 %44 to i32
%46 = call i64 @malloc(i32 noundef %45)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %21, align 8
store i32 0, ptr %7, align 4
br label %48
48: ; preds = %63, %2
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %66
52: ; preds = %48
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = mul i64 %54, 4
%56 = trunc i64 %55 to i32
%57 = call i64 @malloc(i32 noundef %56)
%58 = inttoptr i64 %57 to ptr
%59 = load ptr, ptr %21, align 8
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %59, i64 %61
store ptr %58, ptr %62, align 8
br label %63
63: ; preds = %52
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %7, align 4
br label %48, !llvm.loop !6
66: ; preds = %48
%67 = load ptr, ptr %19, align 8
%68 = icmp eq ptr %67, null
br i1 %68, label %75, label %69
69: ; preds = %66
%70 = load ptr, ptr %20, align 8
%71 = icmp eq ptr %70, null
br i1 %71, label %75, label %72
72: ; preds = %69
%73 = load ptr, ptr %21, align 8
%74 = icmp eq ptr %73, null
br i1 %74, label %75, label %78
75: ; preds = %72, %69, %66
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%77 = call i32 @exit(i32 noundef -1) #3
unreachable
78: ; preds = %72
%79 = call i32 @time(ptr noundef null)
%80 = call i32 @srand(i32 noundef %79)
store i32 0, ptr %7, align 4
br label %81
81: ; preds = %157, %78
%82 = load i32, ptr %7, align 4
%83 = load i32, ptr %6, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %160
85: ; preds = %81
%86 = call i32 (...) @rand()
%87 = srem i32 %86, 3
%88 = add nsw i32 %87, 1
%89 = load ptr, ptr %19, align 8
%90 = load i32, ptr %7, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %89, i64 %91
store i32 %88, ptr %92, align 4
%93 = load ptr, ptr %20, align 8
%94 = load i32, ptr %7, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
store i32 0, ptr %96, align 4
store i32 0, ptr %8, align 4
br label %97
97: ; preds = %153, %85
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr %6, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %156
101: ; preds = %97
%102 = load i32, ptr %7, align 4
%103 = icmp eq i32 %102, 0
br i1 %103, label %104, label %116
104: ; preds = %101
%105 = call i32 (...) @rand()
%106 = srem i32 %105, 4
%107 = add nsw i32 %106, 1
%108 = load ptr, ptr %21, align 8
%109 = load i32, ptr %7, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds ptr, ptr %108, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = load i32, ptr %8, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, ptr %112, i64 %114
store i32 %107, ptr %115, align 4
br label %152
116: ; preds = %101
br label %117
117: ; preds = %121, %116
%118 = load i32, ptr %7, align 4
%119 = load i32, ptr %8, align 4
%120 = icmp ne i32 %118, %119
br i1 %120, label %121, label %132
121: ; preds = %117
%122 = load ptr, ptr %21, align 8
%123 = load i32, ptr %7, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds ptr, ptr %122, i64 %124
%126 = load ptr, ptr %125, align 8
%127 = load i32, ptr %8, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i32, ptr %126, i64 %128
store i32 0, ptr %129, align 4
%130 = load i32, ptr %8, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %8, align 4
br label %117, !llvm.loop !8
132: ; preds = %117
br label %133
133: ; preds = %137, %132
%134 = load i32, ptr %8, align 4
%135 = load i32, ptr %6, align 4
%136 = icmp slt i32 %134, %135
br i1 %136, label %137, label %151
137: ; preds = %133
%138 = call i32 (...) @rand()
%139 = srem i32 %138, 4
%140 = add nsw i32 %139, 1
%141 = load ptr, ptr %21, align 8
%142 = load i32, ptr %7, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds ptr, ptr %141, i64 %143
%145 = load ptr, ptr %144, align 8
%146 = load i32, ptr %8, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i32, ptr %145, i64 %147
store i32 %140, ptr %148, align 4
%149 = load i32, ptr %8, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %8, align 4
br label %133, !llvm.loop !9
151: ; preds = %133
br label %152
152: ; preds = %151, %104
br label %153
153: ; preds = %152
%154 = load i32, ptr %8, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %8, align 4
br label %97, !llvm.loop !10
156: ; preds = %97
br label %157
157: ; preds = %156
%158 = load i32, ptr %7, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %7, align 4
br label %81, !llvm.loop !11
160: ; preds = %81
%161 = call i32 (...) @omp_get_num_procs()
store i32 %161, ptr %10, align 4
%162 = load i32, ptr @CLOCK_REALTIME, align 4
%163 = call i32 @clock_gettime(i32 noundef %162, ptr noundef %12)
store i32 0, ptr %7, align 4
br label %164
164: ; preds = %200, %160
%165 = load i32, ptr %7, align 4
%166 = load i32, ptr %6, align 4
%167 = icmp slt i32 %165, %166
br i1 %167, label %168, label %203
168: ; preds = %164
%169 = load i32, ptr %7, align 4
store i32 %169, ptr %8, align 4
br label %170
170: ; preds = %196, %168
%171 = load i32, ptr %8, align 4
%172 = load i32, ptr %6, align 4
%173 = icmp slt i32 %171, %172
br i1 %173, label %174, label %199
174: ; preds = %170
%175 = load ptr, ptr %21, align 8
%176 = load i32, ptr %7, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds ptr, ptr %175, i64 %177
%179 = load ptr, ptr %178, align 8
%180 = load i32, ptr %8, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i32, ptr %179, i64 %181
%183 = load i32, ptr %182, align 4
%184 = load ptr, ptr %19, align 8
%185 = load i32, ptr %8, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds i32, ptr %184, i64 %186
%188 = load i32, ptr %187, align 4
%189 = mul nsw i32 %183, %188
%190 = load ptr, ptr %20, align 8
%191 = load i32, ptr %7, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds i32, ptr %190, i64 %192
%194 = load i32, ptr %193, align 4
%195 = add nsw i32 %194, %189
store i32 %195, ptr %193, align 4
br label %196
196: ; preds = %174
%197 = load i32, ptr %8, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %8, align 4
br label %170, !llvm.loop !12
199: ; preds = %170
br label %200
200: ; preds = %199
%201 = load i32, ptr %7, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %7, align 4
br label %164, !llvm.loop !13
203: ; preds = %164
%204 = load i32, ptr @CLOCK_REALTIME, align 4
%205 = call i32 @clock_gettime(i32 noundef %204, ptr noundef %13)
%206 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 1
%207 = load i64, ptr %206, align 8
%208 = getelementptr inbounds %struct.timespec, ptr %12, i32 0, i32 1
%209 = load i64, ptr %208, align 8
%210 = sub nsw i64 %207, %209
%211 = sitofp i64 %210 to double
%212 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 0
%213 = load double, ptr %212, align 8
%214 = getelementptr inbounds %struct.timespec, ptr %12, i32 0, i32 0
%215 = load double, ptr %214, align 8
%216 = fsub double %213, %215
%217 = fdiv double %216, 1.000000e+09
%218 = fadd double %211, %217
store double %218, ptr %18, align 8
%219 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%220 = load double, ptr %18, align 8
%221 = load i32, ptr %6, align 4
%222 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %220, i32 noundef %221)
%223 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 0.000000e+00, ptr %18, align 8
%224 = load i32, ptr @CLOCK_REALTIME, align 4
%225 = call i32 @clock_gettime(i32 noundef %224, ptr noundef %14)
store i32 0, ptr %7, align 4
br label %226
226: ; preds = %262, %203
%227 = load i32, ptr %7, align 4
%228 = load i32, ptr %6, align 4
%229 = icmp slt i32 %227, %228
br i1 %229, label %230, label %265
230: ; preds = %226
%231 = load i32, ptr %7, align 4
store i32 %231, ptr %8, align 4
br label %232
232: ; preds = %258, %230
%233 = load i32, ptr %8, align 4
%234 = load i32, ptr %6, align 4
%235 = icmp slt i32 %233, %234
br i1 %235, label %236, label %261
236: ; preds = %232
%237 = load ptr, ptr %21, align 8
%238 = load i32, ptr %7, align 4
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds ptr, ptr %237, i64 %239
%241 = load ptr, ptr %240, align 8
%242 = load i32, ptr %8, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds i32, ptr %241, i64 %243
%245 = load i32, ptr %244, align 4
%246 = load ptr, ptr %19, align 8
%247 = load i32, ptr %8, align 4
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i32, ptr %246, i64 %248
%250 = load i32, ptr %249, align 4
%251 = mul nsw i32 %245, %250
%252 = load ptr, ptr %20, align 8
%253 = load i32, ptr %7, align 4
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds i32, ptr %252, i64 %254
%256 = load i32, ptr %255, align 4
%257 = add nsw i32 %256, %251
store i32 %257, ptr %255, align 4
br label %258
258: ; preds = %236
%259 = load i32, ptr %8, align 4
%260 = add nsw i32 %259, 1
store i32 %260, ptr %8, align 4
br label %232, !llvm.loop !14
261: ; preds = %232
br label %262
262: ; preds = %261
%263 = load i32, ptr %7, align 4
%264 = add nsw i32 %263, 1
store i32 %264, ptr %7, align 4
br label %226, !llvm.loop !15
265: ; preds = %226
%266 = load i32, ptr @CLOCK_REALTIME, align 4
%267 = call i32 @clock_gettime(i32 noundef %266, ptr noundef %15)
%268 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 1
%269 = load i64, ptr %268, align 8
%270 = getelementptr inbounds %struct.timespec, ptr %14, i32 0, i32 1
%271 = load i64, ptr %270, align 8
%272 = sub nsw i64 %269, %271
%273 = sitofp i64 %272 to double
%274 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 0
%275 = load double, ptr %274, align 8
%276 = getelementptr inbounds %struct.timespec, ptr %14, i32 0, i32 0
%277 = load double, ptr %276, align 8
%278 = fsub double %275, %277
%279 = fdiv double %278, 1.000000e+09
%280 = fadd double %273, %279
store double %280, ptr %18, align 8
%281 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%282 = load double, ptr %18, align 8
%283 = load i32, ptr %6, align 4
%284 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %282, i32 noundef %283)
%285 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 0.000000e+00, ptr %18, align 8
%286 = load i32, ptr @CLOCK_REALTIME, align 4
%287 = call i32 @clock_gettime(i32 noundef %286, ptr noundef %16)
store i32 0, ptr %7, align 4
br label %288
288: ; preds = %324, %265
%289 = load i32, ptr %7, align 4
%290 = load i32, ptr %6, align 4
%291 = icmp slt i32 %289, %290
br i1 %291, label %292, label %327
292: ; preds = %288
%293 = load i32, ptr %7, align 4
store i32 %293, ptr %8, align 4
br label %294
294: ; preds = %320, %292
%295 = load i32, ptr %8, align 4
%296 = load i32, ptr %6, align 4
%297 = icmp slt i32 %295, %296
br i1 %297, label %298, label %323
298: ; preds = %294
%299 = load ptr, ptr %21, align 8
%300 = load i32, ptr %7, align 4
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds ptr, ptr %299, i64 %301
%303 = load ptr, ptr %302, align 8
%304 = load i32, ptr %8, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds i32, ptr %303, i64 %305
%307 = load i32, ptr %306, align 4
%308 = load ptr, ptr %19, align 8
%309 = load i32, ptr %8, align 4
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds i32, ptr %308, i64 %310
%312 = load i32, ptr %311, align 4
%313 = mul nsw i32 %307, %312
%314 = load ptr, ptr %20, align 8
%315 = load i32, ptr %7, align 4
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds i32, ptr %314, i64 %316
%318 = load i32, ptr %317, align 4
%319 = add nsw i32 %318, %313
store i32 %319, ptr %317, align 4
br label %320
320: ; preds = %298
%321 = load i32, ptr %8, align 4
%322 = add nsw i32 %321, 1
store i32 %322, ptr %8, align 4
br label %294, !llvm.loop !16
323: ; preds = %294
br label %324
324: ; preds = %323
%325 = load i32, ptr %7, align 4
%326 = add nsw i32 %325, 1
store i32 %326, ptr %7, align 4
br label %288, !llvm.loop !17
327: ; preds = %288
%328 = load i32, ptr @CLOCK_REALTIME, align 4
%329 = call i32 @clock_gettime(i32 noundef %328, ptr noundef %17)
%330 = getelementptr inbounds %struct.timespec, ptr %17, i32 0, i32 1
%331 = load i64, ptr %330, align 8
%332 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 1
%333 = load i64, ptr %332, align 8
%334 = sub nsw i64 %331, %333
%335 = sitofp i64 %334 to double
%336 = getelementptr inbounds %struct.timespec, ptr %17, i32 0, i32 0
%337 = load double, ptr %336, align 8
%338 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 0
%339 = load double, ptr %338, align 8
%340 = fsub double %337, %339
%341 = fdiv double %340, 1.000000e+09
%342 = fadd double %335, %341
store double %342, ptr %18, align 8
%343 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%344 = load double, ptr %18, align 8
%345 = load i32, ptr %6, align 4
%346 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %344, i32 noundef %345)
%347 = load ptr, ptr %21, align 8
%348 = getelementptr inbounds ptr, ptr %347, i64 0
%349 = load ptr, ptr %348, align 8
%350 = getelementptr inbounds i32, ptr %349, i64 0
%351 = load i32, ptr %350, align 4
%352 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %351)
%353 = load ptr, ptr %21, align 8
%354 = load i32, ptr %6, align 4
%355 = sub nsw i32 %354, 1
%356 = sext i32 %355 to i64
%357 = getelementptr inbounds ptr, ptr %353, i64 %356
%358 = load ptr, ptr %357, align 8
%359 = load i32, ptr %6, align 4
%360 = sub nsw i32 %359, 1
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds i32, ptr %358, i64 %361
%363 = load i32, ptr %362, align 4
%364 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %363)
%365 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%366 = load i32, ptr %3, align 4
ret i32 %366
}
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @omp_get_num_procs(...) #1
declare i32 @clock_gettime(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}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy1vzrdtm.c"
target datalayout = "e-m:e-p270: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.timespec = type { double, i64 }
@.str = private unnamed_addr constant [33 x i8] c"\0AError en la reserva de memoria.\00", align 1
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Planificador static: \0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Tiempo(seg.):%11.9f\09 / Tama\C3\B1o Vector:%u\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Planificador dynamic: \0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"Planificador guided: \0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"\0A\0AValor (0,0): %d \0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Valor (n-1,n-1): %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %struct.timespec, align 8
%13 = alloca %struct.timespec, align 8
%14 = alloca %struct.timespec, align 8
%15 = alloca %struct.timespec, align 8
%16 = alloca %struct.timespec, align 8
%17 = alloca %struct.timespec, align 8
%18 = alloca double, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = 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
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 4
%33 = trunc i64 %32 to i32
%34 = call i64 @malloc(i32 noundef %33)
%35 = inttoptr i64 %34 to ptr
store ptr %35, ptr %19, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 4
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %20, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = mul i64 %43, 8
%45 = trunc i64 %44 to i32
%46 = call i64 @malloc(i32 noundef %45)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %21, align 8
store i32 0, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %.lr.ph, label %68
.lr.ph: ; preds = %2
br label %51
51: ; preds = %.lr.ph, %62
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = mul i64 %53, 4
%55 = trunc i64 %54 to i32
%56 = call i64 @malloc(i32 noundef %55)
%57 = inttoptr i64 %56 to ptr
%58 = load ptr, ptr %21, align 8
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
store ptr %57, ptr %61, align 8
br label %62
62: ; preds = %51
%63 = load i32, ptr %7, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %7, align 4
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %2
%69 = load ptr, ptr %19, align 8
%70 = icmp eq ptr %69, null
br i1 %70, label %77, label %71
71: ; preds = %68
%72 = load ptr, ptr %20, align 8
%73 = icmp eq ptr %72, null
br i1 %73, label %77, label %74
74: ; preds = %71
%75 = load ptr, ptr %21, align 8
%76 = icmp eq ptr %75, null
br i1 %76, label %77, label %80
77: ; preds = %74, %71, %68
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%79 = call i32 @exit(i32 noundef -1) #3
unreachable
80: ; preds = %74
%81 = call i32 @time(ptr noundef null)
%82 = call i32 @srand(i32 noundef %81)
store i32 0, ptr %7, align 4
%83 = load i32, ptr %7, align 4
%84 = load i32, ptr %6, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %.lr.ph11, label %170
.lr.ph11: ; preds = %80
br label %86
86: ; preds = %.lr.ph11, %164
%87 = call i32 (...) @rand()
%88 = srem i32 %87, 3
%89 = add nsw i32 %88, 1
%90 = load ptr, ptr %19, align 8
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
store i32 %89, ptr %93, align 4
%94 = load ptr, ptr %20, align 8
%95 = load i32, ptr %7, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, ptr %94, i64 %96
store i32 0, ptr %97, align 4
store i32 0, ptr %8, align 4
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr %6, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %.lr.ph8, label %163
.lr.ph8: ; preds = %86
br label %101
101: ; preds = %.lr.ph8, %157
%102 = load i32, ptr %7, align 4
%103 = icmp eq i32 %102, 0
br i1 %103, label %104, label %116
104: ; preds = %101
%105 = call i32 (...) @rand()
%106 = srem i32 %105, 4
%107 = add nsw i32 %106, 1
%108 = load ptr, ptr %21, align 8
%109 = load i32, ptr %7, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds ptr, ptr %108, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = load i32, ptr %8, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, ptr %112, i64 %114
store i32 %107, ptr %115, align 4
br label %156
116: ; preds = %101
%117 = load i32, ptr %7, align 4
%118 = load i32, ptr %8, align 4
%119 = icmp ne i32 %117, %118
br i1 %119, label %.lr.ph2, label %134
.lr.ph2: ; preds = %116
br label %120
120: ; preds = %.lr.ph2, %120
%121 = load ptr, ptr %21, align 8
%122 = load i32, ptr %7, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds ptr, ptr %121, i64 %123
%125 = load ptr, ptr %124, align 8
%126 = load i32, ptr %8, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %125, i64 %127
store i32 0, ptr %128, align 4
%129 = load i32, ptr %8, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %8, align 4
%131 = load i32, ptr %7, align 4
%132 = load i32, ptr %8, align 4
%133 = icmp ne i32 %131, %132
br i1 %133, label %120, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %120
br label %134
134: ; preds = %._crit_edge3, %116
%135 = load i32, ptr %8, align 4
%136 = load i32, ptr %6, align 4
%137 = icmp slt i32 %135, %136
br i1 %137, label %.lr.ph5, label %155
.lr.ph5: ; preds = %134
br label %138
138: ; preds = %.lr.ph5, %138
%139 = call i32 (...) @rand()
%140 = srem i32 %139, 4
%141 = add nsw i32 %140, 1
%142 = load ptr, ptr %21, align 8
%143 = load i32, ptr %7, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds ptr, ptr %142, i64 %144
%146 = load ptr, ptr %145, align 8
%147 = load i32, ptr %8, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds i32, ptr %146, i64 %148
store i32 %141, ptr %149, align 4
%150 = load i32, ptr %8, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %8, align 4
%152 = load i32, ptr %8, align 4
%153 = load i32, ptr %6, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %138, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %138
br label %155
155: ; preds = %._crit_edge6, %134
br label %156
156: ; preds = %155, %104
br label %157
157: ; preds = %156
%158 = load i32, ptr %8, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %8, align 4
%160 = load i32, ptr %8, align 4
%161 = load i32, ptr %6, align 4
%162 = icmp slt i32 %160, %161
br i1 %162, label %101, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %157
br label %163
163: ; preds = %._crit_edge9, %86
br label %164
164: ; preds = %163
%165 = load i32, ptr %7, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %7, align 4
%167 = load i32, ptr %7, align 4
%168 = load i32, ptr %6, align 4
%169 = icmp slt i32 %167, %168
br i1 %169, label %86, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %164
br label %170
170: ; preds = %._crit_edge12, %80
%171 = call i32 (...) @omp_get_num_procs()
store i32 %171, ptr %10, align 4
%172 = load i32, ptr @CLOCK_REALTIME, align 4
%173 = call i32 @clock_gettime(i32 noundef %172, ptr noundef %12)
store i32 0, ptr %7, align 4
%174 = load i32, ptr %7, align 4
%175 = load i32, ptr %6, align 4
%176 = icmp slt i32 %174, %175
br i1 %176, label %.lr.ph17, label %217
.lr.ph17: ; preds = %170
br label %177
177: ; preds = %.lr.ph17, %211
%178 = load i32, ptr %7, align 4
store i32 %178, ptr %8, align 4
%179 = load i32, ptr %8, align 4
%180 = load i32, ptr %6, align 4
%181 = icmp slt i32 %179, %180
br i1 %181, label %.lr.ph14, label %210
.lr.ph14: ; preds = %177
br label %182
182: ; preds = %.lr.ph14, %204
%183 = load ptr, ptr %21, align 8
%184 = load i32, ptr %7, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds ptr, ptr %183, i64 %185
%187 = load ptr, ptr %186, align 8
%188 = load i32, ptr %8, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds i32, ptr %187, i64 %189
%191 = load i32, ptr %190, align 4
%192 = load ptr, ptr %19, align 8
%193 = load i32, ptr %8, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds i32, ptr %192, i64 %194
%196 = load i32, ptr %195, align 4
%197 = mul nsw i32 %191, %196
%198 = load ptr, ptr %20, align 8
%199 = load i32, ptr %7, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i32, ptr %198, i64 %200
%202 = load i32, ptr %201, align 4
%203 = add nsw i32 %202, %197
store i32 %203, ptr %201, align 4
br label %204
204: ; preds = %182
%205 = load i32, ptr %8, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %8, align 4
%207 = load i32, ptr %8, align 4
%208 = load i32, ptr %6, align 4
%209 = icmp slt i32 %207, %208
br i1 %209, label %182, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %204
br label %210
210: ; preds = %._crit_edge15, %177
br label %211
211: ; preds = %210
%212 = load i32, ptr %7, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %7, align 4
%214 = load i32, ptr %7, align 4
%215 = load i32, ptr %6, align 4
%216 = icmp slt i32 %214, %215
br i1 %216, label %177, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %211
br label %217
217: ; preds = %._crit_edge18, %170
%218 = load i32, ptr @CLOCK_REALTIME, align 4
%219 = call i32 @clock_gettime(i32 noundef %218, ptr noundef %13)
%220 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 1
%221 = load i64, ptr %220, align 8
%222 = getelementptr inbounds %struct.timespec, ptr %12, i32 0, i32 1
%223 = load i64, ptr %222, align 8
%224 = sub nsw i64 %221, %223
%225 = sitofp i64 %224 to double
%226 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 0
%227 = load double, ptr %226, align 8
%228 = getelementptr inbounds %struct.timespec, ptr %12, i32 0, i32 0
%229 = load double, ptr %228, align 8
%230 = fsub double %227, %229
%231 = fdiv double %230, 1.000000e+09
%232 = fadd double %225, %231
store double %232, ptr %18, align 8
%233 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%234 = load double, ptr %18, align 8
%235 = load i32, ptr %6, align 4
%236 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %234, i32 noundef %235)
%237 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 0.000000e+00, ptr %18, align 8
%238 = load i32, ptr @CLOCK_REALTIME, align 4
%239 = call i32 @clock_gettime(i32 noundef %238, ptr noundef %14)
store i32 0, ptr %7, align 4
%240 = load i32, ptr %7, align 4
%241 = load i32, ptr %6, align 4
%242 = icmp slt i32 %240, %241
br i1 %242, label %.lr.ph23, label %283
.lr.ph23: ; preds = %217
br label %243
243: ; preds = %.lr.ph23, %277
%244 = load i32, ptr %7, align 4
store i32 %244, ptr %8, align 4
%245 = load i32, ptr %8, align 4
%246 = load i32, ptr %6, align 4
%247 = icmp slt i32 %245, %246
br i1 %247, label %.lr.ph20, label %276
.lr.ph20: ; preds = %243
br label %248
248: ; preds = %.lr.ph20, %270
%249 = load ptr, ptr %21, align 8
%250 = load i32, ptr %7, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds ptr, ptr %249, i64 %251
%253 = load ptr, ptr %252, align 8
%254 = load i32, ptr %8, align 4
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds i32, ptr %253, i64 %255
%257 = load i32, ptr %256, align 4
%258 = load ptr, ptr %19, align 8
%259 = load i32, ptr %8, align 4
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds i32, ptr %258, i64 %260
%262 = load i32, ptr %261, align 4
%263 = mul nsw i32 %257, %262
%264 = load ptr, ptr %20, align 8
%265 = load i32, ptr %7, align 4
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds i32, ptr %264, i64 %266
%268 = load i32, ptr %267, align 4
%269 = add nsw i32 %268, %263
store i32 %269, ptr %267, align 4
br label %270
270: ; preds = %248
%271 = load i32, ptr %8, align 4
%272 = add nsw i32 %271, 1
store i32 %272, ptr %8, align 4
%273 = load i32, ptr %8, align 4
%274 = load i32, ptr %6, align 4
%275 = icmp slt i32 %273, %274
br i1 %275, label %248, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %270
br label %276
276: ; preds = %._crit_edge21, %243
br label %277
277: ; preds = %276
%278 = load i32, ptr %7, align 4
%279 = add nsw i32 %278, 1
store i32 %279, ptr %7, align 4
%280 = load i32, ptr %7, align 4
%281 = load i32, ptr %6, align 4
%282 = icmp slt i32 %280, %281
br i1 %282, label %243, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %277
br label %283
283: ; preds = %._crit_edge24, %217
%284 = load i32, ptr @CLOCK_REALTIME, align 4
%285 = call i32 @clock_gettime(i32 noundef %284, ptr noundef %15)
%286 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 1
%287 = load i64, ptr %286, align 8
%288 = getelementptr inbounds %struct.timespec, ptr %14, i32 0, i32 1
%289 = load i64, ptr %288, align 8
%290 = sub nsw i64 %287, %289
%291 = sitofp i64 %290 to double
%292 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 0
%293 = load double, ptr %292, align 8
%294 = getelementptr inbounds %struct.timespec, ptr %14, i32 0, i32 0
%295 = load double, ptr %294, align 8
%296 = fsub double %293, %295
%297 = fdiv double %296, 1.000000e+09
%298 = fadd double %291, %297
store double %298, ptr %18, align 8
%299 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%300 = load double, ptr %18, align 8
%301 = load i32, ptr %6, align 4
%302 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %300, i32 noundef %301)
%303 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 0.000000e+00, ptr %18, align 8
%304 = load i32, ptr @CLOCK_REALTIME, align 4
%305 = call i32 @clock_gettime(i32 noundef %304, ptr noundef %16)
store i32 0, ptr %7, align 4
%306 = load i32, ptr %7, align 4
%307 = load i32, ptr %6, align 4
%308 = icmp slt i32 %306, %307
br i1 %308, label %.lr.ph29, label %349
.lr.ph29: ; preds = %283
br label %309
309: ; preds = %.lr.ph29, %343
%310 = load i32, ptr %7, align 4
store i32 %310, ptr %8, align 4
%311 = load i32, ptr %8, align 4
%312 = load i32, ptr %6, align 4
%313 = icmp slt i32 %311, %312
br i1 %313, label %.lr.ph26, label %342
.lr.ph26: ; preds = %309
br label %314
314: ; preds = %.lr.ph26, %336
%315 = load ptr, ptr %21, align 8
%316 = load i32, ptr %7, align 4
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds ptr, ptr %315, i64 %317
%319 = load ptr, ptr %318, align 8
%320 = load i32, ptr %8, align 4
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds i32, ptr %319, i64 %321
%323 = load i32, ptr %322, align 4
%324 = load ptr, ptr %19, align 8
%325 = load i32, ptr %8, align 4
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds i32, ptr %324, i64 %326
%328 = load i32, ptr %327, align 4
%329 = mul nsw i32 %323, %328
%330 = load ptr, ptr %20, align 8
%331 = load i32, ptr %7, align 4
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds i32, ptr %330, i64 %332
%334 = load i32, ptr %333, align 4
%335 = add nsw i32 %334, %329
store i32 %335, ptr %333, align 4
br label %336
336: ; preds = %314
%337 = load i32, ptr %8, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %8, align 4
%339 = load i32, ptr %8, align 4
%340 = load i32, ptr %6, align 4
%341 = icmp slt i32 %339, %340
br i1 %341, label %314, label %._crit_edge27, !llvm.loop !16
._crit_edge27: ; preds = %336
br label %342
342: ; preds = %._crit_edge27, %309
br label %343
343: ; preds = %342
%344 = load i32, ptr %7, align 4
%345 = add nsw i32 %344, 1
store i32 %345, ptr %7, align 4
%346 = load i32, ptr %7, align 4
%347 = load i32, ptr %6, align 4
%348 = icmp slt i32 %346, %347
br i1 %348, label %309, label %._crit_edge30, !llvm.loop !17
._crit_edge30: ; preds = %343
br label %349
349: ; preds = %._crit_edge30, %283
%350 = load i32, ptr @CLOCK_REALTIME, align 4
%351 = call i32 @clock_gettime(i32 noundef %350, ptr noundef %17)
%352 = getelementptr inbounds %struct.timespec, ptr %17, i32 0, i32 1
%353 = load i64, ptr %352, align 8
%354 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 1
%355 = load i64, ptr %354, align 8
%356 = sub nsw i64 %353, %355
%357 = sitofp i64 %356 to double
%358 = getelementptr inbounds %struct.timespec, ptr %17, i32 0, i32 0
%359 = load double, ptr %358, align 8
%360 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 0
%361 = load double, ptr %360, align 8
%362 = fsub double %359, %361
%363 = fdiv double %362, 1.000000e+09
%364 = fadd double %357, %363
store double %364, ptr %18, align 8
%365 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%366 = load double, ptr %18, align 8
%367 = load i32, ptr %6, align 4
%368 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %366, i32 noundef %367)
%369 = load ptr, ptr %21, align 8
%370 = getelementptr inbounds ptr, ptr %369, i64 0
%371 = load ptr, ptr %370, align 8
%372 = getelementptr inbounds i32, ptr %371, i64 0
%373 = load i32, ptr %372, align 4
%374 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %373)
%375 = load ptr, ptr %21, align 8
%376 = load i32, ptr %6, align 4
%377 = sub nsw i32 %376, 1
%378 = sext i32 %377 to i64
%379 = getelementptr inbounds ptr, ptr %375, i64 %378
%380 = load ptr, ptr %379, align 8
%381 = load i32, ptr %6, align 4
%382 = sub nsw i32 %381, 1
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds i32, ptr %380, i64 %383
%385 = load i32, ptr %384, align 4
%386 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %385)
%387 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%388 = load i32, ptr %3, align 4
ret i32 %388
}
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @omp_get_num_procs(...) #1
declare i32 @clock_gettime(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}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
|
; ModuleID = '/tmp/tmplcu4b0o1.c'
source_filename = "/tmp/tmplcu4b0o1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @irc_strupr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %9, %1
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %5
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = call signext i8 @_irc_toupper(i8 noundef signext %11)
%13 = load ptr, ptr %3, align 8
store i8 %12, ptr %13, align 1
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %3, align 8
br label %5, !llvm.loop !6
16: ; preds = %5
%17 = load ptr, ptr %2, align 8
ret ptr %17
}
declare signext i8 @_irc_toupper(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/tmplcu4b0o1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @irc_strupr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %5, align 1
%7 = icmp ne i8 %6, 0
br i1 %7, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %8
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = call signext i8 @_irc_toupper(i8 noundef signext %10)
%12 = load ptr, ptr %3, align 8
store i8 %11, ptr %12, align 1
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
br i1 %17, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %18
18: ; preds = %._crit_edge, %1
%19 = load ptr, ptr %2, align 8
ret ptr %19
}
declare signext i8 @_irc_toupper(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/tmpf85c0208.c'
source_filename = "/tmp/tmpf85c0208.c"
target datalayout = "e-m:e-p270: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"%f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = load float, ptr %3, align 4
store float %6, ptr %2, align 4
br label %7
7: ; preds = %17, %0
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = load float, ptr %2, align 4
%12 = load float, ptr %3, align 4
%13 = fcmp olt float %11, %12
br i1 %13, label %14, label %16
14: ; preds = %7
%15 = load float, ptr %3, align 4
store float %15, ptr %2, align 4
br label %16
16: ; preds = %14, %7
br label %17
17: ; preds = %16
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %18, 2
br i1 %19, label %7, label %20, !llvm.loop !6
20: ; preds = %17
%21 = load float, ptr %2, align 4
%22 = call i32 @printf(ptr noundef @.str.1, float noundef %21)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpf85c0208.c"
target datalayout = "e-m:e-p270: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"%f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = load float, ptr %3, align 4
store float %6, ptr %2, align 4
br label %7
7: ; preds = %17, %0
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = load float, ptr %2, align 4
%12 = load float, ptr %3, align 4
%13 = fcmp olt float %11, %12
br i1 %13, label %14, label %16
14: ; preds = %7
%15 = load float, ptr %3, align 4
store float %15, ptr %2, align 4
br label %16
16: ; preds = %14, %7
br label %17
17: ; preds = %16
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %18, 2
br i1 %19, label %7, label %20, !llvm.loop !6
20: ; preds = %17
%21 = load float, ptr %2, align 4
%22 = call i32 @printf(ptr noundef @.str.1, float noundef %21)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4tz_1psv.c'
source_filename = "/tmp/tmp4tz_1psv.c"
target datalayout = "e-m:e-p270: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"calling fopen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fopen(ptr noalias noundef %0, ptr noalias 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 = call i32 @printf(ptr noundef @.str)
%6 = call i32 (...) @__debugfs_init()
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call ptr @__real_fopen(ptr noundef %7, ptr noundef %8)
ret ptr %9
}
declare i32 @printf(ptr noundef) #1
declare i32 @__debugfs_init(...) #1
declare ptr @__real_fopen(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/tmp4tz_1psv.c"
target datalayout = "e-m:e-p270: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"calling fopen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fopen(ptr noalias noundef %0, ptr noalias 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 = call i32 @printf(ptr noundef @.str)
%6 = call i32 (...) @__debugfs_init()
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call ptr @__real_fopen(ptr noundef %7, ptr noundef %8)
ret ptr %9
}
declare i32 @printf(ptr noundef) #1
declare i32 @__debugfs_init(...) #1
declare ptr @__real_fopen(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/tmp7h9s0kc4.c'
source_filename = "/tmp/tmp7h9s0kc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@LC_NUMERIC = 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/tmp7h9s0kc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@LC_NUMERIC = 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/tmp6nwcatep.c'
source_filename = "/tmp/tmp6nwcatep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fudgeNumbers(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
%8 = load double, ptr %5, align 8
%9 = load double, ptr %6, align 8
%10 = fsub double %8, %9
%11 = call double @llvm.fabs.f64(double %10)
%12 = load double, ptr %7, align 8
%13 = fcmp ole double %11, %12
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 1, ptr %4, align 4
br label %16
15: ; preds = %3
store i32 0, ptr %4, align 4
br label %16
16: ; preds = %15, %14
%17 = load i32, ptr %4, align 4
ret i32 %17
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6nwcatep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fudgeNumbers(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
%8 = load double, ptr %5, align 8
%9 = load double, ptr %6, align 8
%10 = fsub double %8, %9
%11 = call double @llvm.fabs.f64(double %10)
%12 = load double, ptr %7, align 8
%13 = fcmp ole double %11, %12
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 1, ptr %4, align 4
br label %16
15: ; preds = %3
store i32 0, ptr %4, align 4
br label %16
16: ; preds = %15, %14
%17 = load i32, ptr %4, align 4
ret i32 %17
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp7ro7g3h.c'
source_filename = "/tmp/tmpp7ro7g3h.c"
target datalayout = "e-m:e-p270: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 [198 x i8] c"Usage: %s [OPTIONS] SYMBOL LIBRARY [--] [ARGS...]\0A\0ARun a symbol in a shared object or executable.\0A\0AOptions:\0A -h or --help Display this message.\0A -V or --version Display the version.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(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 ptr @applet(ptr noundef %6)
%8 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %7)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @applet(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/tmpp7ro7g3h.c"
target datalayout = "e-m:e-p270: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 [198 x i8] c"Usage: %s [OPTIONS] SYMBOL LIBRARY [--] [ARGS...]\0A\0ARun a symbol in a shared object or executable.\0A\0AOptions:\0A -h or --help Display this message.\0A -V or --version Display the version.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(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 ptr @applet(ptr noundef %6)
%8 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, ptr noundef %7)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @applet(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/tmpnzhqvsln.c'
source_filename = "/tmp/tmpnzhqvsln.c"
target datalayout = "e-m:e-p270: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.getArguments.delimeter = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getArguments(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i8], align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.getArguments.delimeter, i64 2, i1 false)
store ptr null, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @strtok(ptr noundef %8, ptr noundef %9)
store ptr %10, ptr %6, align 8
br label %11
11: ; preds = %14, %2
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %7, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %7, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds ptr, ptr %16, i64 %19
store ptr %15, ptr %20, align 8
%21 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%22 = call ptr @strtok(ptr noundef null, ptr noundef %21)
store ptr %22, ptr %6, align 8
br label %11, !llvm.loop !6
23: ; preds = %11
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
store ptr null, ptr %27, align 8
%28 = load i32, ptr %7, 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
declare ptr @strtok(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnzhqvsln.c"
target datalayout = "e-m:e-p270: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.getArguments.delimeter = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getArguments(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i8], align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.getArguments.delimeter, i64 2, i1 false)
store ptr null, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @strtok(ptr noundef %8, ptr noundef %9)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %13
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %7, align 4
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds ptr, ptr %15, i64 %18
store ptr %14, ptr %19, align 8
%20 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%21 = call ptr @strtok(ptr noundef null, ptr noundef %20)
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %24
24: ; preds = %._crit_edge, %2
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
store ptr null, ptr %28, align 8
%29 = load i32, ptr %7, 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
declare ptr @strtok(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.