llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpkd_hibcn.c'
source_filename = "/tmp/tmpkd_hibcn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroy_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
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/tmpkd_hibcn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroy_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
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/tmpkah743gb.c'
source_filename = "/tmp/tmpkah743gb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fatal1(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @printf(ptr noundef %5, ptr noundef %6)
%8 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkah743gb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fatal1(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @printf(ptr noundef %5, ptr noundef %6)
%8 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6vb2uvm4.c'
source_filename = "/tmp/tmp6vb2uvm4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_mult(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp eq ptr %17, %18
br i1 %19, label %24, label %20
20: ; preds = %6
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %9, align 8
%23 = icmp eq ptr %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20, %6
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %12, align 4
%27 = call ptr @new_matrix2(i32 noundef %25, i32 noundef %26)
br label %30
28: ; preds = %20
%29 = load ptr, ptr %7, align 8
br label %30
30: ; preds = %28, %24
%31 = phi ptr [ %27, %24 ], [ %29, %28 ]
store ptr %31, ptr %13, align 8
store i32 0, ptr %14, align 4
br label %32
32: ; preds = %91, %30
%33 = load i32, ptr %14, align 4
%34 = load i32, ptr %10, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %94
36: ; preds = %32
store i32 0, ptr %15, align 4
br label %37
37: ; preds = %87, %36
%38 = load i32, ptr %15, align 4
%39 = load i32, ptr %12, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %90
41: ; preds = %37
%42 = load ptr, ptr %13, align 8
%43 = load i32, ptr %14, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = load i32, ptr %15, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %46, i64 %48
store double 0.000000e+00, ptr %49, align 8
store i32 0, ptr %16, align 4
br label %50
50: ; preds = %83, %41
%51 = load i32, ptr %16, align 4
%52 = load i32, ptr %11, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %86
54: ; preds = %50
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %14, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = load i32, ptr %16, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, ptr %59, i64 %61
%63 = load double, ptr %62, align 8
%64 = load ptr, ptr %9, align 8
%65 = load i32, ptr %16, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %64, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = load i32, ptr %15, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %13, align 8
%74 = load i32, ptr %14, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds ptr, ptr %73, i64 %75
%77 = load ptr, ptr %76, align 8
%78 = load i32, ptr %15, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, ptr %77, i64 %79
%81 = load double, ptr %80, align 8
%82 = call double @llvm.fmuladd.f64(double %63, double %72, double %81)
store double %82, ptr %80, align 8
br label %83
83: ; preds = %54
%84 = load i32, ptr %16, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %16, align 4
br label %50, !llvm.loop !6
86: ; preds = %50
br label %87
87: ; preds = %86
%88 = load i32, ptr %15, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %15, align 4
br label %37, !llvm.loop !8
90: ; preds = %37
br label %91
91: ; preds = %90
%92 = load i32, ptr %14, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %14, align 4
br label %32, !llvm.loop !9
94: ; preds = %32
%95 = load ptr, ptr %7, align 8
%96 = load ptr, ptr %8, align 8
%97 = icmp eq ptr %95, %96
br i1 %97, label %102, label %98
98: ; preds = %94
%99 = load ptr, ptr %7, align 8
%100 = load ptr, ptr %9, align 8
%101 = icmp eq ptr %99, %100
br i1 %101, label %102, label %110
102: ; preds = %98, %94
%103 = load ptr, ptr %7, align 8
%104 = load ptr, ptr %13, align 8
%105 = load i32, ptr %10, align 4
%106 = load i32, ptr %12, align 4
%107 = call i32 @matrix_copy(ptr noundef %103, ptr noundef %104, i32 noundef %105, i32 noundef %106)
%108 = load ptr, ptr %13, align 8
%109 = call i32 @free_matrix2(ptr noundef %108)
br label %110
110: ; preds = %102, %98
ret void
}
declare ptr @new_matrix2(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @matrix_copy(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free_matrix2(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6vb2uvm4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_mult(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp eq ptr %17, %18
br i1 %19, label %24, label %20
20: ; preds = %6
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %9, align 8
%23 = icmp eq ptr %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20, %6
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %12, align 4
%27 = call ptr @new_matrix2(i32 noundef %25, i32 noundef %26)
br label %30
28: ; preds = %20
%29 = load ptr, ptr %7, align 8
br label %30
30: ; preds = %28, %24
%31 = phi ptr [ %27, %24 ], [ %29, %28 ]
store ptr %31, ptr %13, align 8
store i32 0, ptr %14, align 4
%32 = load i32, ptr %14, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph5, label %100
.lr.ph5: ; preds = %30
br label %35
35: ; preds = %.lr.ph5, %94
store i32 0, ptr %15, align 4
%36 = load i32, ptr %15, align 4
%37 = load i32, ptr %12, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph2, label %93
.lr.ph2: ; preds = %35
br label %39
39: ; preds = %.lr.ph2, %87
%40 = load ptr, ptr %13, align 8
%41 = load i32, ptr %14, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %40, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %15, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %44, i64 %46
store double 0.000000e+00, ptr %47, align 8
store i32 0, ptr %16, align 4
%48 = load i32, ptr %16, align 4
%49 = load i32, ptr %11, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %.lr.ph, label %86
.lr.ph: ; preds = %39
br label %51
51: ; preds = %.lr.ph, %80
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %14, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %52, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = load i32, ptr %16, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
%60 = load double, ptr %59, align 8
%61 = load ptr, ptr %9, align 8
%62 = load i32, ptr %16, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = load i32, ptr %15, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
%69 = load double, ptr %68, align 8
%70 = load ptr, ptr %13, align 8
%71 = load i32, ptr %14, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds ptr, ptr %70, i64 %72
%74 = load ptr, ptr %73, align 8
%75 = load i32, ptr %15, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, ptr %74, i64 %76
%78 = load double, ptr %77, align 8
%79 = call double @llvm.fmuladd.f64(double %60, double %69, double %78)
store double %79, ptr %77, align 8
br label %80
80: ; preds = %51
%81 = load i32, ptr %16, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %16, align 4
%83 = load i32, ptr %16, align 4
%84 = load i32, ptr %11, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %86
86: ; preds = %._crit_edge, %39
br label %87
87: ; preds = %86
%88 = load i32, ptr %15, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %15, align 4
%90 = load i32, ptr %15, align 4
%91 = load i32, ptr %12, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %39, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %87
br label %93
93: ; preds = %._crit_edge3, %35
br label %94
94: ; preds = %93
%95 = load i32, ptr %14, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %14, align 4
%97 = load i32, ptr %14, align 4
%98 = load i32, ptr %10, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %35, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %94
br label %100
100: ; preds = %._crit_edge6, %30
%101 = load ptr, ptr %7, align 8
%102 = load ptr, ptr %8, align 8
%103 = icmp eq ptr %101, %102
br i1 %103, label %108, label %104
104: ; preds = %100
%105 = load ptr, ptr %7, align 8
%106 = load ptr, ptr %9, align 8
%107 = icmp eq ptr %105, %106
br i1 %107, label %108, label %116
108: ; preds = %104, %100
%109 = load ptr, ptr %7, align 8
%110 = load ptr, ptr %13, align 8
%111 = load i32, ptr %10, align 4
%112 = load i32, ptr %12, align 4
%113 = call i32 @matrix_copy(ptr noundef %109, ptr noundef %110, i32 noundef %111, i32 noundef %112)
%114 = load ptr, ptr %13, align 8
%115 = call i32 @free_matrix2(ptr noundef %114)
br label %116
116: ; preds = %108, %104
ret void
}
declare ptr @new_matrix2(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @matrix_copy(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free_matrix2(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp2vm6jgmu.c'
source_filename = "/tmp/tmp2vm6jgmu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\0AERRO FATAL: Sem memoria para alocar.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @erroFatalMemoria() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2vm6jgmu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\0AERRO FATAL: Sem memoria para alocar.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @erroFatalMemoria() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm178c7ah.c'
source_filename = "/tmp/tmpm178c7ah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i64 0, align 8
@FSETLOCKING_BYCALLER = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm178c7ah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i64 0, align 8
@FSETLOCKING_BYCALLER = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6zxqbp4r.c'
source_filename = "/tmp/tmp6zxqbp4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setpgrp() #0 {
%1 = call i32 @setpgid(i32 noundef 0, i32 noundef 0)
ret i32 %1
}
declare i32 @setpgid(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/tmp6zxqbp4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setpgrp() #0 {
%1 = call i32 @setpgid(i32 noundef 0, i32 noundef 0)
ret i32 %1
}
declare i32 @setpgid(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/tmphhcjq0j9.c'
source_filename = "/tmp/tmphhcjq0j9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @ruth_aaron(i32 noundef 714, i32 noundef 715)
%6 = call i32 @ruth_aaron(i32 noundef 77, i32 noundef 78)
%7 = call i32 @ruth_aaron(i32 noundef 20, i32 noundef 21)
%8 = call i32 @ruth_aaron(i32 noundef 5, i32 noundef 6)
%9 = call i32 @ruth_aaron(i32 noundef 2107, i32 noundef 2108)
%10 = call i32 @ruth_aaron(i32 noundef 492, i32 noundef 493)
%11 = call i32 @ruth_aaron(i32 noundef 128, i32 noundef 129)
ret i32 0
}
declare i32 @ruth_aaron(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/tmphhcjq0j9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @ruth_aaron(i32 noundef 714, i32 noundef 715)
%6 = call i32 @ruth_aaron(i32 noundef 77, i32 noundef 78)
%7 = call i32 @ruth_aaron(i32 noundef 20, i32 noundef 21)
%8 = call i32 @ruth_aaron(i32 noundef 5, i32 noundef 6)
%9 = call i32 @ruth_aaron(i32 noundef 2107, i32 noundef 2108)
%10 = call i32 @ruth_aaron(i32 noundef 492, i32 noundef 493)
%11 = call i32 @ruth_aaron(i32 noundef 128, i32 noundef 129)
ret i32 0
}
declare i32 @ruth_aaron(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/tmphnm6bfc6.c'
source_filename = "/tmp/tmphnm6bfc6.c"
target datalayout = "e-m:e-p270: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.compiler.used = appending global [1 x ptr] [ptr @_dummy_tracepoint], section "llvm.metadata"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_dummy_tracepoint(ptr noundef %0) #0 section "dummy_tracepoint" {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @test_long_fname_1(ptr noundef %3)
ret i32 %4
}
declare i32 @test_long_fname_1(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphnm6bfc6.c"
target datalayout = "e-m:e-p270: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.compiler.used = appending global [1 x ptr] [ptr @_dummy_tracepoint], section "llvm.metadata"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_dummy_tracepoint(ptr noundef %0) #0 section "dummy_tracepoint" {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @test_long_fname_1(ptr noundef %3)
ret i32 %4
}
declare i32 @test_long_fname_1(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpck3_j5jw.c'
source_filename = "/tmp/tmpck3_j5jw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"I am %d years old.\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"I am, %d inches tall.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 72, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpck3_j5jw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"I am %d years old.\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"I am, %d inches tall.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 72, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkj0bk8b4.c'
source_filename = "/tmp/tmpkj0bk8b4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putseqend() #0 {
%1 = call i32 (...) @alignbits()
%2 = call i32 @putbits(i32 noundef 439, i32 noundef 32)
ret void
}
declare i32 @alignbits(...) #1
declare i32 @putbits(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/tmpkj0bk8b4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putseqend() #0 {
%1 = call i32 (...) @alignbits()
%2 = call i32 @putbits(i32 noundef 439, i32 noundef 32)
ret void
}
declare i32 @alignbits(...) #1
declare i32 @putbits(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/tmply49biv8.c'
source_filename = "/tmp/tmply49biv8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[2J\1B[1;1H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @CmdLineClear() #0 {
%1 = call i32 @UARTPuts(ptr noundef @.str, i32 noundef -1)
ret i32 0
}
declare i32 @UARTPuts(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/tmply49biv8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[2J\1B[1;1H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @CmdLineClear() #0 {
%1 = call i32 @UARTPuts(ptr noundef @.str, i32 noundef -1)
ret i32 0
}
declare i32 @UARTPuts(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/tmpb601gstb.c'
source_filename = "/tmp/tmpb601gstb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mbox_writeread(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %4
4: ; preds = %8, %1
%5 = call i32 @GET32(i32 noundef 536918200)
%6 = and i32 %5, -2147483648
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %4
br label %4, !llvm.loop !6
9: ; preds = %4
%10 = load i32, ptr %2, align 4
%11 = or i32 8, %10
%12 = call i32 @PUT32(i32 noundef 536918176, i32 noundef %11)
br label %13
13: ; preds = %21, %9
br label %14
14: ; preds = %18, %13
%15 = call i32 @GET32(i32 noundef 536918168)
%16 = and i32 %15, 1073741824
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %14
br label %14, !llvm.loop !8
19: ; preds = %14
%20 = call i32 @GET32(i32 noundef 536918144)
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %19
%22 = load i32, ptr %3, align 4
%23 = and i32 %22, 15
%24 = icmp ne i32 %23, 8
br i1 %24, label %13, label %25, !llvm.loop !9
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = and i32 %26, -16
ret i32 %27
}
declare i32 @GET32(i32 noundef) #1
declare i32 @PUT32(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb601gstb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mbox_writeread(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %4
4: ; preds = %4, %1
%5 = call i32 @GET32(i32 noundef 536918200)
%6 = and i32 %5, -2147483648
%7 = icmp ne i32 %6, 0
br i1 %7, label %4, label %8, !llvm.loop !6
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = or i32 8, %9
%11 = call i32 @PUT32(i32 noundef 536918176, i32 noundef %10)
br label %12
12: ; preds = %19, %8
br label %13
13: ; preds = %13, %12
%14 = call i32 @GET32(i32 noundef 536918168)
%15 = and i32 %14, 1073741824
%16 = icmp ne i32 %15, 0
br i1 %16, label %13, label %17, !llvm.loop !8
17: ; preds = %13
%18 = call i32 @GET32(i32 noundef 536918144)
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %17
%20 = load i32, ptr %3, align 4
%21 = and i32 %20, 15
%22 = icmp ne i32 %21, 8
br i1 %22, label %12, label %23, !llvm.loop !9
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = and i32 %24, -16
ret i32 %25
}
declare i32 @GET32(i32 noundef) #1
declare i32 @PUT32(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpr9_7vjsn.c'
source_filename = "/tmp/tmpr9_7vjsn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store float 0.000000e+00, ptr %8, align 4
store i32 1, ptr %9, align 4
br label %10
10: ; preds = %24, %3
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i64 @atoi(ptr noundef %19)
%21 = sitofp i64 %20 to float
%22 = load float, ptr %8, align 4
%23 = fadd float %22, %21
store float %23, ptr %8, align 4
br label %24
24: ; preds = %14
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %9, align 4
br label %10, !llvm.loop !6
27: ; preds = %10
%28 = load float, ptr %8, align 4
%29 = load i32, ptr %5, align 4
%30 = sub nsw i32 %29, 1
%31 = sitofp i32 %30 to float
%32 = fdiv float %28, %31
%33 = call i32 @printf(ptr noundef @.str, float noundef %32)
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i64 @atoi(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/tmpr9_7vjsn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store float 0.000000e+00, ptr %8, align 4
store i32 1, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %23
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i64 @atoi(ptr noundef %18)
%20 = sitofp i64 %19 to float
%21 = load float, ptr %8, align 4
%22 = fadd float %21, %20
store float %22, ptr %8, align 4
br label %23
23: ; preds = %13
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
%30 = load float, ptr %8, align 4
%31 = load i32, ptr %5, align 4
%32 = sub nsw i32 %31, 1
%33 = sitofp i32 %32 to float
%34 = fdiv float %30, %33
%35 = call i32 @printf(ptr noundef @.str, float noundef %34)
%36 = load i32, ptr %4, align 4
ret i32 %36
}
declare i64 @atoi(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/tmp8z5rxpn_.c'
source_filename = "/tmp/tmp8z5rxpn_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MyFunc() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %7, %0
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 10
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call i32 (...) @MySub()
br label %7
7: ; preds = %5
%8 = load i32, ptr %1, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %1, align 4
br label %2, !llvm.loop !6
10: ; preds = %2
ret void
}
declare i32 @MySub(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp8z5rxpn_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MyFunc() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp slt i32 %2, 10
br i1 %3, label %.lr.ph, label %11
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %6
%5 = call i32 (...) @MySub()
br label %6
6: ; preds = %4
%7 = load i32, ptr %1, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = icmp slt i32 %9, 10
br i1 %10, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %11
11: ; preds = %._crit_edge, %0
ret void
}
declare i32 @MySub(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpha9tcbuc.c'
source_filename = "/tmp/tmpha9tcbuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Usage: 6c file.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @puts(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/tmpha9tcbuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Usage: 6c file.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @puts(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/tmphexcjsn4.c'
source_filename = "/tmp/tmphexcjsn4.c"
target datalayout = "e-m:e-p270: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 [46 x i8] c"The code is going to read in Subfind groups \0A\00", align 1
@.str.1 = private unnamed_addr constant [73 x i8] c"The code was *NOT* compiled to read in velocities from the group files \0A\00", align 1
@.str.2 = private unnamed_addr constant [82 x i8] c"The code was *NOT* compiled to read allgroupvels_???.txt files for velocity info\0A\00", align 1
@.str.3 = private unnamed_addr constant [96 x i8] c"Assumes that Gadget particle ids are 4 bytes (and the total particle number is inside INT_MAX)\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Assumes particle load is smaller than INT_MAX (2 billion)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_makefile_options() #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)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphexcjsn4.c"
target datalayout = "e-m:e-p270: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 [46 x i8] c"The code is going to read in Subfind groups \0A\00", align 1
@.str.1 = private unnamed_addr constant [73 x i8] c"The code was *NOT* compiled to read in velocities from the group files \0A\00", align 1
@.str.2 = private unnamed_addr constant [82 x i8] c"The code was *NOT* compiled to read allgroupvels_???.txt files for velocity info\0A\00", align 1
@.str.3 = private unnamed_addr constant [96 x i8] c"Assumes that Gadget particle ids are 4 bytes (and the total particle number is inside INT_MAX)\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Assumes particle load is smaller than INT_MAX (2 billion)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_makefile_options() #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)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc38dp43u.c'
source_filename = "/tmp/tmpc38dp43u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"hw_unknown: Display off requested.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hw_display_off() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc38dp43u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"hw_unknown: Display off requested.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hw_display_off() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpelakzmjr.c'
source_filename = "/tmp/tmpelakzmjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmpelakzmjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmp14x787xe.c'
source_filename = "/tmp/tmp14x787xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @print()
ret i32 0
}
declare i32 @print(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp14x787xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @print()
ret i32 0
}
declare i32 @print(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgyp4ga32.c'
source_filename = "/tmp/tmpgyp4ga32.c"
target datalayout = "e-m:e-p270: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/tmpgyp4ga32.c"
target datalayout = "e-m:e-p270: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/tmpqse1zbs6.c'
source_filename = "/tmp/tmpqse1zbs6.c"
target datalayout = "e-m:e-p270: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/tmpqse1zbs6.c"
target datalayout = "e-m:e-p270: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/tmp0u0bpieq.c'
source_filename = "/tmp/tmp0u0bpieq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"\D1\86\D0\B5\D0\BB\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE: \00", align 1
@.str.1 = private unnamed_addr constant [75 x i8] c"\D0\B2\D0\B5\D1\89\D0\B5\D1\81\D1\82\D0\B2\D0\B5\D0\BD\D0\BD\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\B2 \D0\BD\D0\BE\D1\80\D0\BC\D0\B0\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D0\B7\D0\B0\D0\BF\D0\B8\D1\81\D0\B8: \00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"\D1\8D\D1\82\D0\BE \D0\BD\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \00", align 1
@.str.3 = private unnamed_addr constant [85 x i8] c"\D0\B2\D0\B5\D1\89\D0\B5\D1\81\D1\82\D0\B2\D0\B5\D0\BD\D0\BD\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\B2 \D1\8D\D0\BA\D1\81\D0\BF\D0\BE\D0\BD\D0\B5\D1\86\D0\B8\D0\B0\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D0\B7\D0\B0\D0\BF\D0\B8\D1\81\D0\B8: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
store float 1.000000e+00, ptr %4, align 4
%6 = load i8, ptr %5, align 1
%7 = call i32 @getid(i8 noundef signext %6)
%8 = load i8, ptr %5, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 45
br i1 %10, label %11, label %14
11: ; preds = %0
store float -1.000000e+00, ptr %4, align 4
%12 = load i8, ptr %5, align 1
%13 = call i32 @getid(i8 noundef signext %12)
br label %14
14: ; preds = %11, %0
%15 = load i8, ptr %5, align 1
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 57
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i8, ptr %5, align 1
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 48
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, ptr %2, align 4
br label %23
23: ; preds = %22, %18, %14
br label %24
24: ; preds = %34, %23
%25 = load i8, ptr %5, align 1
%26 = sext i8 %25 to i32
%27 = icmp sle i32 %26, 57
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i8, ptr %5, align 1
%30 = sext i8 %29 to i32
%31 = icmp sge i32 %30, 48
br label %32
32: ; preds = %28, %24
%33 = phi i1 [ false, %24 ], [ %31, %28 ]
br i1 %33, label %34, label %43
34: ; preds = %32
%35 = load i32, ptr %1, align 4
%36 = mul nsw i32 %35, 10
%37 = load i8, ptr %5, align 1
%38 = sext i8 %37 to i32
%39 = add nsw i32 %36, %38
%40 = sub nsw i32 %39, 48
store i32 %40, ptr %1, align 4
store i32 0, ptr %3, align 4
%41 = load i8, ptr %5, align 1
%42 = call i32 @getid(i8 noundef signext %41)
br label %24, !llvm.loop !6
43: ; preds = %32
store i32 1, ptr %2, align 4
br i1 true, label %44, label %184
44: ; preds = %43
%45 = load i8, ptr %5, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 32
br i1 %47, label %48, label %59
48: ; preds = %44
%49 = call i32 @print(ptr noundef @.str)
%50 = load float, ptr %4, align 4
%51 = fcmp oeq float %50, -1.000000e+00
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i32, ptr %1, align 4
%54 = mul nsw i32 %53, -1
store i32 %54, ptr %1, align 4
br label %55
55: ; preds = %52, %48
%56 = load i32, ptr %1, align 4
%57 = sitofp i32 %56 to float
%58 = call i32 @printid(float noundef %57)
br label %59
59: ; preds = %55, %44
%60 = load i8, ptr %5, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 46
br i1 %62, label %67, label %63
63: ; preds = %59
%64 = load i8, ptr %5, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 44
br i1 %66, label %67, label %113
67: ; preds = %63, %59
%68 = load i8, ptr %5, align 1
%69 = call i32 @getid(i8 noundef signext %68)
br label %70
70: ; preds = %80, %67
%71 = load i8, ptr %5, align 1
%72 = sext i8 %71 to i32
%73 = icmp sle i32 %72, 57
br i1 %73, label %74, label %78
74: ; preds = %70
%75 = load i8, ptr %5, align 1
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 48
br label %78
78: ; preds = %74, %70
%79 = phi i1 [ false, %70 ], [ %77, %74 ]
br i1 %79, label %80, label %91
80: ; preds = %78
%81 = load i32, ptr %1, align 4
%82 = mul nsw i32 %81, 10
%83 = load i8, ptr %5, align 1
%84 = sext i8 %83 to i32
%85 = add nsw i32 %82, %84
%86 = sub nsw i32 %85, 48
store i32 %86, ptr %1, align 4
%87 = load i32, ptr %3, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %3, align 4
%89 = load i8, ptr %5, align 1
%90 = call i32 @getid(i8 noundef signext %89)
br label %70, !llvm.loop !8
91: ; preds = %78
%92 = load i8, ptr %5, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 32
br i1 %94, label %95, label %110
95: ; preds = %91
%96 = load i32, ptr %3, align 4
%97 = icmp sgt i32 %96, 0
br i1 %97, label %98, label %110
98: ; preds = %95
%99 = call i32 @print(ptr noundef @.str.1)
%100 = load i32, ptr %1, align 4
%101 = sitofp i32 %100 to float
%102 = load float, ptr %4, align 4
%103 = fmul float %102, %101
store float %103, ptr %4, align 4
%104 = load i32, ptr %3, align 4
%105 = call float @p(i32 noundef 10, i32 noundef %104)
%106 = load float, ptr %4, align 4
%107 = fdiv float %106, %105
store float %107, ptr %4, align 4
%108 = load float, ptr %4, align 4
%109 = call i32 @printid(float noundef %108)
br label %112
110: ; preds = %95, %91
%111 = call i32 @print(ptr noundef @.str.2)
br label %112
112: ; preds = %110, %98
br label %113
113: ; preds = %112, %63
%114 = load i8, ptr %5, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 101
br i1 %116, label %117, label %165
117: ; preds = %113
%118 = load i8, ptr %5, align 1
%119 = call i32 @getid(i8 noundef signext %118)
%120 = load i8, ptr %5, align 1
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 45
br i1 %122, label %123, label %126
123: ; preds = %117
store i32 -1, ptr %2, align 4
%124 = load i8, ptr %5, align 1
%125 = call i32 @getid(i8 noundef signext %124)
br label %126
126: ; preds = %123, %117
br label %127
127: ; preds = %137, %126
%128 = load i8, ptr %5, align 1
%129 = sext i8 %128 to i32
%130 = icmp sle i32 %129, 57
br i1 %130, label %131, label %135
131: ; preds = %127
%132 = load i8, ptr %5, align 1
%133 = sext i8 %132 to i32
%134 = icmp sge i32 %133, 48
br label %135
135: ; preds = %131, %127
%136 = phi i1 [ false, %127 ], [ %134, %131 ]
br i1 %136, label %137, label %146
137: ; preds = %135
%138 = load i32, ptr %3, align 4
%139 = mul nsw i32 %138, 10
%140 = load i8, ptr %5, align 1
%141 = sext i8 %140 to i32
%142 = add nsw i32 %139, %141
%143 = sub nsw i32 %142, 48
store i32 %143, ptr %3, align 4
%144 = load i8, ptr %5, align 1
%145 = call i32 @getid(i8 noundef signext %144)
br label %127, !llvm.loop !9
146: ; preds = %135
%147 = load i32, ptr %2, align 4
%148 = load i32, ptr %3, align 4
%149 = mul nsw i32 %148, %147
store i32 %149, ptr %3, align 4
%150 = load i8, ptr %5, align 1
%151 = sext i8 %150 to i32
%152 = icmp eq i32 %151, 32
br i1 %152, label %153, label %162
153: ; preds = %146
%154 = call i32 @print(ptr noundef @.str.3)
%155 = load i32, ptr %1, align 4
%156 = load i32, ptr %3, align 4
%157 = call float @p(i32 noundef %155, i32 noundef %156)
%158 = load float, ptr %4, align 4
%159 = fmul float %158, %157
store float %159, ptr %4, align 4
%160 = load float, ptr %4, align 4
%161 = call i32 @printid(float noundef %160)
br label %164
162: ; preds = %146
%163 = call i32 @print(ptr noundef @.str.2)
br label %164
164: ; preds = %162, %153
br label %165
165: ; preds = %164, %113
%166 = load i8, ptr %5, align 1
%167 = sext i8 %166 to i32
%168 = icmp ne i32 %167, 32
br i1 %168, label %169, label %183
169: ; preds = %165
%170 = load i8, ptr %5, align 1
%171 = sext i8 %170 to i32
%172 = icmp ne i32 %171, 101
br i1 %172, label %173, label %183
173: ; preds = %169
%174 = load i8, ptr %5, align 1
%175 = sext i8 %174 to i32
%176 = icmp ne i32 %175, 46
br i1 %176, label %177, label %183
177: ; preds = %173
%178 = load i8, ptr %5, align 1
%179 = sext i8 %178 to i32
%180 = icmp ne i32 %179, 44
br i1 %180, label %181, label %183
181: ; preds = %177
%182 = call i32 @print(ptr noundef @.str.2)
br label %183
183: ; preds = %181, %177, %173, %169, %165
br label %184
184: ; preds = %183, %43
store i32 0, ptr %2, align 4
br i1 false, label %185, label %187
185: ; preds = %184
%186 = call i32 @print(ptr noundef @.str.2)
br label %187
187: ; preds = %185, %184
ret void
}
declare i32 @getid(i8 noundef signext) #1
declare i32 @print(ptr noundef) #1
declare i32 @printid(float noundef) #1
declare float @p(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0u0bpieq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"\D1\86\D0\B5\D0\BB\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE: \00", align 1
@.str.1 = private unnamed_addr constant [75 x i8] c"\D0\B2\D0\B5\D1\89\D0\B5\D1\81\D1\82\D0\B2\D0\B5\D0\BD\D0\BD\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\B2 \D0\BD\D0\BE\D1\80\D0\BC\D0\B0\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D0\B7\D0\B0\D0\BF\D0\B8\D1\81\D0\B8: \00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"\D1\8D\D1\82\D0\BE \D0\BD\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \00", align 1
@.str.3 = private unnamed_addr constant [85 x i8] c"\D0\B2\D0\B5\D1\89\D0\B5\D1\81\D1\82\D0\B2\D0\B5\D0\BD\D0\BD\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\B2 \D1\8D\D0\BA\D1\81\D0\BF\D0\BE\D0\BD\D0\B5\D1\86\D0\B8\D0\B0\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D0\B7\D0\B0\D0\BF\D0\B8\D1\81\D0\B8: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
store float 1.000000e+00, ptr %4, align 4
%6 = load i8, ptr %5, align 1
%7 = call i32 @getid(i8 noundef signext %6)
%8 = load i8, ptr %5, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 45
br i1 %10, label %11, label %14
11: ; preds = %0
store float -1.000000e+00, ptr %4, align 4
%12 = load i8, ptr %5, align 1
%13 = call i32 @getid(i8 noundef signext %12)
br label %14
14: ; preds = %11, %0
%15 = load i8, ptr %5, align 1
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 57
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i8, ptr %5, align 1
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 48
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, ptr %2, align 4
br label %23
23: ; preds = %22, %18, %14
br label %24
24: ; preds = %34, %23
%25 = load i8, ptr %5, align 1
%26 = sext i8 %25 to i32
%27 = icmp sle i32 %26, 57
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i8, ptr %5, align 1
%30 = sext i8 %29 to i32
%31 = icmp sge i32 %30, 48
br label %32
32: ; preds = %28, %24
%33 = phi i1 [ false, %24 ], [ %31, %28 ]
br i1 %33, label %34, label %43
34: ; preds = %32
%35 = load i32, ptr %1, align 4
%36 = mul nsw i32 %35, 10
%37 = load i8, ptr %5, align 1
%38 = sext i8 %37 to i32
%39 = add nsw i32 %36, %38
%40 = sub nsw i32 %39, 48
store i32 %40, ptr %1, align 4
store i32 0, ptr %3, align 4
%41 = load i8, ptr %5, align 1
%42 = call i32 @getid(i8 noundef signext %41)
br label %24, !llvm.loop !6
43: ; preds = %32
store i32 1, ptr %2, align 4
br i1 true, label %44, label %184
44: ; preds = %43
%45 = load i8, ptr %5, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 32
br i1 %47, label %48, label %59
48: ; preds = %44
%49 = call i32 @print(ptr noundef @.str)
%50 = load float, ptr %4, align 4
%51 = fcmp oeq float %50, -1.000000e+00
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i32, ptr %1, align 4
%54 = mul nsw i32 %53, -1
store i32 %54, ptr %1, align 4
br label %55
55: ; preds = %52, %48
%56 = load i32, ptr %1, align 4
%57 = sitofp i32 %56 to float
%58 = call i32 @printid(float noundef %57)
br label %59
59: ; preds = %55, %44
%60 = load i8, ptr %5, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 46
br i1 %62, label %67, label %63
63: ; preds = %59
%64 = load i8, ptr %5, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 44
br i1 %66, label %67, label %113
67: ; preds = %63, %59
%68 = load i8, ptr %5, align 1
%69 = call i32 @getid(i8 noundef signext %68)
br label %70
70: ; preds = %80, %67
%71 = load i8, ptr %5, align 1
%72 = sext i8 %71 to i32
%73 = icmp sle i32 %72, 57
br i1 %73, label %74, label %78
74: ; preds = %70
%75 = load i8, ptr %5, align 1
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 48
br label %78
78: ; preds = %74, %70
%79 = phi i1 [ false, %70 ], [ %77, %74 ]
br i1 %79, label %80, label %91
80: ; preds = %78
%81 = load i32, ptr %1, align 4
%82 = mul nsw i32 %81, 10
%83 = load i8, ptr %5, align 1
%84 = sext i8 %83 to i32
%85 = add nsw i32 %82, %84
%86 = sub nsw i32 %85, 48
store i32 %86, ptr %1, align 4
%87 = load i32, ptr %3, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %3, align 4
%89 = load i8, ptr %5, align 1
%90 = call i32 @getid(i8 noundef signext %89)
br label %70, !llvm.loop !8
91: ; preds = %78
%92 = load i8, ptr %5, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 32
br i1 %94, label %95, label %110
95: ; preds = %91
%96 = load i32, ptr %3, align 4
%97 = icmp sgt i32 %96, 0
br i1 %97, label %98, label %110
98: ; preds = %95
%99 = call i32 @print(ptr noundef @.str.1)
%100 = load i32, ptr %1, align 4
%101 = sitofp i32 %100 to float
%102 = load float, ptr %4, align 4
%103 = fmul float %102, %101
store float %103, ptr %4, align 4
%104 = load i32, ptr %3, align 4
%105 = call float @p(i32 noundef 10, i32 noundef %104)
%106 = load float, ptr %4, align 4
%107 = fdiv float %106, %105
store float %107, ptr %4, align 4
%108 = load float, ptr %4, align 4
%109 = call i32 @printid(float noundef %108)
br label %112
110: ; preds = %95, %91
%111 = call i32 @print(ptr noundef @.str.2)
br label %112
112: ; preds = %110, %98
br label %113
113: ; preds = %112, %63
%114 = load i8, ptr %5, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 101
br i1 %116, label %117, label %165
117: ; preds = %113
%118 = load i8, ptr %5, align 1
%119 = call i32 @getid(i8 noundef signext %118)
%120 = load i8, ptr %5, align 1
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 45
br i1 %122, label %123, label %126
123: ; preds = %117
store i32 -1, ptr %2, align 4
%124 = load i8, ptr %5, align 1
%125 = call i32 @getid(i8 noundef signext %124)
br label %126
126: ; preds = %123, %117
br label %127
127: ; preds = %137, %126
%128 = load i8, ptr %5, align 1
%129 = sext i8 %128 to i32
%130 = icmp sle i32 %129, 57
br i1 %130, label %131, label %135
131: ; preds = %127
%132 = load i8, ptr %5, align 1
%133 = sext i8 %132 to i32
%134 = icmp sge i32 %133, 48
br label %135
135: ; preds = %131, %127
%136 = phi i1 [ false, %127 ], [ %134, %131 ]
br i1 %136, label %137, label %146
137: ; preds = %135
%138 = load i32, ptr %3, align 4
%139 = mul nsw i32 %138, 10
%140 = load i8, ptr %5, align 1
%141 = sext i8 %140 to i32
%142 = add nsw i32 %139, %141
%143 = sub nsw i32 %142, 48
store i32 %143, ptr %3, align 4
%144 = load i8, ptr %5, align 1
%145 = call i32 @getid(i8 noundef signext %144)
br label %127, !llvm.loop !9
146: ; preds = %135
%147 = load i32, ptr %2, align 4
%148 = load i32, ptr %3, align 4
%149 = mul nsw i32 %148, %147
store i32 %149, ptr %3, align 4
%150 = load i8, ptr %5, align 1
%151 = sext i8 %150 to i32
%152 = icmp eq i32 %151, 32
br i1 %152, label %153, label %162
153: ; preds = %146
%154 = call i32 @print(ptr noundef @.str.3)
%155 = load i32, ptr %1, align 4
%156 = load i32, ptr %3, align 4
%157 = call float @p(i32 noundef %155, i32 noundef %156)
%158 = load float, ptr %4, align 4
%159 = fmul float %158, %157
store float %159, ptr %4, align 4
%160 = load float, ptr %4, align 4
%161 = call i32 @printid(float noundef %160)
br label %164
162: ; preds = %146
%163 = call i32 @print(ptr noundef @.str.2)
br label %164
164: ; preds = %162, %153
br label %165
165: ; preds = %164, %113
%166 = load i8, ptr %5, align 1
%167 = sext i8 %166 to i32
%168 = icmp ne i32 %167, 32
br i1 %168, label %169, label %183
169: ; preds = %165
%170 = load i8, ptr %5, align 1
%171 = sext i8 %170 to i32
%172 = icmp ne i32 %171, 101
br i1 %172, label %173, label %183
173: ; preds = %169
%174 = load i8, ptr %5, align 1
%175 = sext i8 %174 to i32
%176 = icmp ne i32 %175, 46
br i1 %176, label %177, label %183
177: ; preds = %173
%178 = load i8, ptr %5, align 1
%179 = sext i8 %178 to i32
%180 = icmp ne i32 %179, 44
br i1 %180, label %181, label %183
181: ; preds = %177
%182 = call i32 @print(ptr noundef @.str.2)
br label %183
183: ; preds = %181, %177, %173, %169, %165
br label %184
184: ; preds = %183, %43
store i32 0, ptr %2, align 4
br i1 false, label %185, label %187
185: ; preds = %184
%186 = call i32 @print(ptr noundef @.str.2)
br label %187
187: ; preds = %185, %184
ret void
}
declare i32 @getid(i8 noundef signext) #1
declare i32 @print(ptr noundef) #1
declare i32 @printid(float noundef) #1
declare float @p(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpq2jprlsf.c'
source_filename = "/tmp/tmpq2jprlsf.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq2jprlsf.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxfn82x4j.c'
source_filename = "/tmp/tmpxfn82x4j.c"
target datalayout = "e-m:e-p270: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/tmpxfn82x4j.c"
target datalayout = "e-m:e-p270: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/tmpyohcsgtm.c'
source_filename = "/tmp/tmpyohcsgtm.c"
target datalayout = "e-m:e-p270: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/tmpyohcsgtm.c"
target datalayout = "e-m:e-p270: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/tmpvjdmz9_x.c'
source_filename = "/tmp/tmpvjdmz9_x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(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 ptr, align 8
%9 = 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
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %9, align 8
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %26, %3
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %29
16: ; preds = %12
%17 = load ptr, ptr %8, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = load ptr, ptr %9, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store i8 %21, ptr %25, align 1
br label %26
26: ; preds = %16
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
br label %12, !llvm.loop !6
29: ; preds = %12
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvjdmz9_x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(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 ptr, align 8
%9 = 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
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %9, align 8
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %31
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %25
%16 = load ptr, ptr %8, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %9, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
store i8 %20, ptr %24, align 1
br label %25
25: ; preds = %15
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %3
%32 = load ptr, ptr %4, align 8
ret ptr %32
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpv0fcdvb_.c'
source_filename = "/tmp/tmpv0fcdvb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/i2c-0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"open i2c-dev error\00", align 1
@I2C_SLAVE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [15 x i8] c"set addr error\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @i2c_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [256 x i8], align 16
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 256, i1 false)
%4 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4)
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.1)
%10 = call i32 @exit(i32 noundef 1) #4
unreachable
11: ; preds = %0
%12 = load i32, ptr %1, align 4
%13 = load i32, ptr @I2C_SLAVE, align 4
%14 = call i64 @ioctl(i32 noundef %12, i32 noundef %13, i32 noundef 80)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = call i32 @perror(ptr noundef @.str.2)
%18 = call i32 @exit(i32 noundef 1) #4
unreachable
19: ; preds = %11
%20 = load i32, ptr %1, align 4
%21 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%22 = call i32 @read(i32 noundef %20, ptr noundef %21, i32 noundef 32)
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %19
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %27
store i8 0, ptr %28, align 1
%29 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%30 = call i32 @printf(ptr noundef @.str.3, ptr noundef %29)
br label %31
31: ; preds = %25, %19
%32 = load i32, ptr %1, align 4
%33 = call i32 @close(i32 noundef %32)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @ioctl(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv0fcdvb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/i2c-0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"open i2c-dev error\00", align 1
@I2C_SLAVE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [15 x i8] c"set addr error\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @i2c_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [256 x i8], align 16
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 256, i1 false)
%4 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4)
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.1)
%10 = call i32 @exit(i32 noundef 1) #4
unreachable
11: ; preds = %0
%12 = load i32, ptr %1, align 4
%13 = load i32, ptr @I2C_SLAVE, align 4
%14 = call i64 @ioctl(i32 noundef %12, i32 noundef %13, i32 noundef 80)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = call i32 @perror(ptr noundef @.str.2)
%18 = call i32 @exit(i32 noundef 1) #4
unreachable
19: ; preds = %11
%20 = load i32, ptr %1, align 4
%21 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%22 = call i32 @read(i32 noundef %20, ptr noundef %21, i32 noundef 32)
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %19
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %27
store i8 0, ptr %28, align 1
%29 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%30 = call i32 @printf(ptr noundef @.str.3, ptr noundef %29)
br label %31
31: ; preds = %25, %19
%32 = load i32, ptr %1, align 4
%33 = call i32 @close(i32 noundef %32)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @ioctl(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbdyoep93.c'
source_filename = "/tmp/tmpbdyoep93.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Dimensions: %dx%dx%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Volume (cubic inches): %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Dimensional weight (pounds): %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 8, ptr %2, align 4
store i32 12, ptr %3, align 4
store i32 10, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = mul nsw i32 %7, %8
%10 = load i32, ptr %2, align 4
%11 = mul nsw i32 %9, %10
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 165
%14 = sdiv i32 %13, 166
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %15, i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %5, align 4
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
%21 = load i32, ptr %6, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbdyoep93.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Dimensions: %dx%dx%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Volume (cubic inches): %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Dimensional weight (pounds): %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 8, ptr %2, align 4
store i32 12, ptr %3, align 4
store i32 10, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = mul nsw i32 %7, %8
%10 = load i32, ptr %2, align 4
%11 = mul nsw i32 %9, %10
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 165
%14 = sdiv i32 %13, 166
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %15, i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %5, align 4
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
%21 = load i32, ptr %6, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkj43oguq.c'
source_filename = "/tmp/tmpkj43oguq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pa\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"ab\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"bp\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Father: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i64 (...) @fork()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %34
8: ; preds = %0
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef @.str, i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr @O_WRONLY, align 4
%12 = call i32 @open(ptr noundef @.str.1, i32 noundef %11)
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %25, %8
%14 = load i32, ptr %3, align 4
%15 = call i32 @read(i32 noundef %14, ptr noundef %2, i32 noundef 4)
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = load i32, ptr %2, align 4
%21 = sdiv i32 %20, 2
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %19, %13
%23 = load i32, ptr %4, align 4
%24 = call i32 @write(i32 noundef %23, ptr noundef %2, i32 noundef 4)
br label %25
25: ; preds = %22
%26 = load i32, ptr %2, align 4
%27 = icmp sgt i32 %26, 100
br i1 %27, label %13, label %28, !llvm.loop !6
28: ; preds = %25
%29 = load i32, ptr %3, align 4
%30 = call i32 @close(i32 noundef %29)
%31 = load i32, ptr %4, align 4
%32 = call i32 @close(i32 noundef %31)
%33 = call i32 @exit(i32 noundef 0) #3
unreachable
34: ; preds = %0
%35 = call i64 (...) @fork()
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %63
37: ; preds = %34
%38 = load i32, ptr @O_RDONLY, align 4
%39 = call i32 @open(ptr noundef @.str.1, i32 noundef %38)
store i32 %39, ptr %4, align 4
%40 = load i32, ptr @O_WRONLY, align 4
%41 = call i32 @open(ptr noundef @.str.2, i32 noundef %40)
store i32 %41, ptr %5, align 4
br label %42
42: ; preds = %54, %37
%43 = load i32, ptr %4, align 4
%44 = call i32 @read(i32 noundef %43, ptr noundef %2, i32 noundef 4)
%45 = load i32, ptr %2, align 4
%46 = srem i32 %45, 3
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %42
%49 = load i32, ptr %2, align 4
%50 = sdiv i32 %49, 3
store i32 %50, ptr %2, align 4
br label %51
51: ; preds = %48, %42
%52 = load i32, ptr %5, align 4
%53 = call i32 @write(i32 noundef %52, ptr noundef %2, i32 noundef 4)
br label %54
54: ; preds = %51
%55 = load i32, ptr %2, align 4
%56 = icmp sgt i32 %55, 100
br i1 %56, label %42, label %57, !llvm.loop !8
57: ; preds = %54
%58 = load i32, ptr %4, align 4
%59 = call i32 @close(i32 noundef %58)
%60 = load i32, ptr %5, align 4
%61 = call i32 @close(i32 noundef %60)
%62 = call i32 @exit(i32 noundef 0) #3
unreachable
63: ; preds = %34
%64 = load i32, ptr @O_WRONLY, align 4
%65 = call i32 @open(ptr noundef @.str, i32 noundef %64)
store i32 %65, ptr %3, align 4
%66 = load i32, ptr @O_RDONLY, align 4
%67 = call i32 @open(ptr noundef @.str.2, i32 noundef %66)
store i32 %67, ptr %5, align 4
%68 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
br label %69
69: ; preds = %78, %63
%70 = load i32, ptr %3, align 4
%71 = call i32 @write(i32 noundef %70, ptr noundef %2, i32 noundef 4)
%72 = load i32, ptr %5, align 4
%73 = call i32 @read(i32 noundef %72, ptr noundef %2, i32 noundef 4)
%74 = load i32, ptr %2, align 4
%75 = call i32 @printf(ptr noundef @.str.4, i32 noundef %74)
%76 = load i32, ptr %2, align 4
%77 = sub nsw i32 %76, 5
store i32 %77, ptr %2, align 4
br label %78
78: ; preds = %69
%79 = load i32, ptr %2, align 4
%80 = icmp sgt i32 %79, 100
br i1 %80, label %69, label %81, !llvm.loop !9
81: ; preds = %78
%82 = load i32, ptr %3, align 4
%83 = call i32 @close(i32 noundef %82)
%84 = load i32, ptr %5, align 4
%85 = call i32 @close(i32 noundef %84)
%86 = call i32 @wait(i32 noundef 0)
%87 = call i32 @wait(i32 noundef 0)
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkj43oguq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pa\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"ab\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"bp\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Father: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i64 (...) @fork()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %34
8: ; preds = %0
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef @.str, i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr @O_WRONLY, align 4
%12 = call i32 @open(ptr noundef @.str.1, i32 noundef %11)
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %25, %8
%14 = load i32, ptr %3, align 4
%15 = call i32 @read(i32 noundef %14, ptr noundef %2, i32 noundef 4)
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = load i32, ptr %2, align 4
%21 = sdiv i32 %20, 2
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %19, %13
%23 = load i32, ptr %4, align 4
%24 = call i32 @write(i32 noundef %23, ptr noundef %2, i32 noundef 4)
br label %25
25: ; preds = %22
%26 = load i32, ptr %2, align 4
%27 = icmp sgt i32 %26, 100
br i1 %27, label %13, label %28, !llvm.loop !6
28: ; preds = %25
%29 = load i32, ptr %3, align 4
%30 = call i32 @close(i32 noundef %29)
%31 = load i32, ptr %4, align 4
%32 = call i32 @close(i32 noundef %31)
%33 = call i32 @exit(i32 noundef 0) #3
unreachable
34: ; preds = %0
%35 = call i64 (...) @fork()
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %63
37: ; preds = %34
%38 = load i32, ptr @O_RDONLY, align 4
%39 = call i32 @open(ptr noundef @.str.1, i32 noundef %38)
store i32 %39, ptr %4, align 4
%40 = load i32, ptr @O_WRONLY, align 4
%41 = call i32 @open(ptr noundef @.str.2, i32 noundef %40)
store i32 %41, ptr %5, align 4
br label %42
42: ; preds = %54, %37
%43 = load i32, ptr %4, align 4
%44 = call i32 @read(i32 noundef %43, ptr noundef %2, i32 noundef 4)
%45 = load i32, ptr %2, align 4
%46 = srem i32 %45, 3
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %42
%49 = load i32, ptr %2, align 4
%50 = sdiv i32 %49, 3
store i32 %50, ptr %2, align 4
br label %51
51: ; preds = %48, %42
%52 = load i32, ptr %5, align 4
%53 = call i32 @write(i32 noundef %52, ptr noundef %2, i32 noundef 4)
br label %54
54: ; preds = %51
%55 = load i32, ptr %2, align 4
%56 = icmp sgt i32 %55, 100
br i1 %56, label %42, label %57, !llvm.loop !8
57: ; preds = %54
%58 = load i32, ptr %4, align 4
%59 = call i32 @close(i32 noundef %58)
%60 = load i32, ptr %5, align 4
%61 = call i32 @close(i32 noundef %60)
%62 = call i32 @exit(i32 noundef 0) #3
unreachable
63: ; preds = %34
%64 = load i32, ptr @O_WRONLY, align 4
%65 = call i32 @open(ptr noundef @.str, i32 noundef %64)
store i32 %65, ptr %3, align 4
%66 = load i32, ptr @O_RDONLY, align 4
%67 = call i32 @open(ptr noundef @.str.2, i32 noundef %66)
store i32 %67, ptr %5, align 4
%68 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
br label %69
69: ; preds = %78, %63
%70 = load i32, ptr %3, align 4
%71 = call i32 @write(i32 noundef %70, ptr noundef %2, i32 noundef 4)
%72 = load i32, ptr %5, align 4
%73 = call i32 @read(i32 noundef %72, ptr noundef %2, i32 noundef 4)
%74 = load i32, ptr %2, align 4
%75 = call i32 @printf(ptr noundef @.str.4, i32 noundef %74)
%76 = load i32, ptr %2, align 4
%77 = sub nsw i32 %76, 5
store i32 %77, ptr %2, align 4
br label %78
78: ; preds = %69
%79 = load i32, ptr %2, align 4
%80 = icmp sgt i32 %79, 100
br i1 %80, label %69, label %81, !llvm.loop !9
81: ; preds = %78
%82 = load i32, ptr %3, align 4
%83 = call i32 @close(i32 noundef %82)
%84 = load i32, ptr %5, align 4
%85 = call i32 @close(i32 noundef %84)
%86 = call i32 @wait(i32 noundef 0)
%87 = call i32 @wait(i32 noundef 0)
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmptrbakfc9.c'
source_filename = "/tmp/tmptrbakfc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findOption(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %50, %3
%10 = load i32, ptr %8, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %51
14: ; preds = %9
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %8, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %7, align 8
%21 = call i32 @strcmp(ptr noundef %19, ptr noundef %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %47
23: ; preds = %14
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 0
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 45
br i1 %32, label %33, label %50
33: ; preds = %23
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %34, i64 %36
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 1
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = load ptr, ptr %7, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 2
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %41, %45
br i1 %46, label %47, label %50
47: ; preds = %33, %14
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
store i32 %49, ptr %4, align 4
br label %52
50: ; preds = %33, %23
br label %9, !llvm.loop !6
51: ; preds = %9
store i32 0, ptr %4, align 4
br label %52
52: ; preds = %51, %47
%53 = load i32, ptr %4, align 4
ret i32 %53
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptrbakfc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findOption(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %54
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %49
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i32 @strcmp(ptr noundef %18, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %46
22: ; preds = %13
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 0
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 45
br i1 %31, label %32, label %49
32: ; preds = %22
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 1
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 2
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %40, %44
br i1 %45, label %46, label %49
46: ; preds = %32, %13
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
store i32 %48, ptr %4, align 4
br label %55
49: ; preds = %32, %22
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
%52 = load i32, ptr %5, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %54
54: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %55
55: ; preds = %54, %46
%56 = load i32, ptr %4, align 4
ret i32 %56
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpas3n_ghv.c'
source_filename = "/tmp/tmpas3n_ghv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dn_comp(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpas3n_ghv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dn_comp(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprti0cu5l.c'
source_filename = "/tmp/tmprti0cu5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @decode(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 = %103, %1
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %106
12: ; preds = %4
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp sge i32 %18, 97
br i1 %19, label %20, label %28
20: ; preds = %12
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp sle i32 %26, 109
br i1 %27, label %44, label %28
28: ; preds = %20, %12
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp sge i32 %34, 65
br i1 %35, label %36, label %53
36: ; preds = %28
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp sle i32 %42, 77
br i1 %43, label %44, label %53
44: ; preds = %36, %20
%45 = load ptr, ptr %2, align 8
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = add nsw i32 %50, 13
%52 = trunc i32 %51 to i8
store i8 %52, ptr %48, align 1
br label %95
53: ; preds = %36, %28
%54 = load ptr, ptr %2, align 8
%55 = load i32, ptr %3, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp sgt i32 %59, 109
br i1 %60, label %61, label %69
61: ; preds = %53
%62 = load ptr, ptr %2, align 8
%63 = load i32, ptr %3, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp sle i32 %67, 122
br i1 %68, label %85, label %69
69: ; preds = %61, %53
%70 = load ptr, ptr %2, align 8
%71 = load i32, ptr %3, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp sgt i32 %75, 77
br i1 %76, label %77, label %94
77: ; preds = %69
%78 = load ptr, ptr %2, align 8
%79 = load i32, ptr %3, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp sle i32 %83, 90
br i1 %84, label %85, label %94
85: ; preds = %77, %61
%86 = load ptr, ptr %2, align 8
%87 = load i32, ptr %3, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = sub nsw i32 %91, 13
%93 = trunc i32 %92 to i8
store i8 %93, ptr %89, align 1
br label %94
94: ; preds = %85, %77, %69
br label %95
95: ; preds = %94, %44
%96 = load ptr, ptr %2, align 8
%97 = load i32, ptr %3, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %101)
br label %103
103: ; preds = %95
%104 = load i32, ptr %3, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %3, align 4
br label %4, !llvm.loop !6
106: ; preds = %4
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprti0cu5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @decode(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %112
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %102
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 97
br i1 %18, label %19, label %27
19: ; preds = %11
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp sle i32 %25, 109
br i1 %26, label %43, label %27
27: ; preds = %19, %11
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp sge i32 %33, 65
br i1 %34, label %35, label %52
35: ; preds = %27
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %3, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp sle i32 %41, 77
br i1 %42, label %43, label %52
43: ; preds = %35, %19
%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
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = add nsw i32 %49, 13
%51 = trunc i32 %50 to i8
store i8 %51, ptr %47, align 1
br label %94
52: ; preds = %35, %27
%53 = load ptr, ptr %2, align 8
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp sgt i32 %58, 109
br i1 %59, label %60, label %68
60: ; preds = %52
%61 = load ptr, ptr %2, align 8
%62 = load i32, ptr %3, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp sle i32 %66, 122
br i1 %67, label %84, label %68
68: ; preds = %60, %52
%69 = load ptr, ptr %2, align 8
%70 = load i32, ptr %3, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %69, i64 %71
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp sgt i32 %74, 77
br i1 %75, label %76, label %93
76: ; preds = %68
%77 = load ptr, ptr %2, align 8
%78 = load i32, ptr %3, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp sle i32 %82, 90
br i1 %83, label %84, label %93
84: ; preds = %76, %60
%85 = load ptr, ptr %2, align 8
%86 = load i32, ptr %3, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %85, i64 %87
%89 = load i8, ptr %88, align 1
%90 = sext i8 %89 to i32
%91 = sub nsw i32 %90, 13
%92 = trunc i32 %91 to i8
store i8 %92, ptr %88, align 1
br label %93
93: ; preds = %84, %76, %68
br label %94
94: ; preds = %93, %43
%95 = load ptr, ptr %2, align 8
%96 = load i32, ptr %3, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %100)
br label %102
102: ; preds = %94
%103 = load i32, ptr %3, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %3, align 4
%105 = load ptr, ptr %2, align 8
%106 = load i32, ptr %3, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, ptr %105, i64 %107
%109 = load i8, ptr %108, align 1
%110 = sext i8 %109 to i32
%111 = icmp ne i32 %110, 0
br i1 %111, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %102
br label %112
112: ; preds = %._crit_edge, %1
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3wxedkb8.c'
source_filename = "/tmp/tmp3wxedkb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"fcntl(F_GETFL) failed\00", align 1
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"fcntl(F_SETFL) failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_fd_nonblocking(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sge i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr @F_GETFL, align 4
%10 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, i32 noundef 0)
store i32 %10, ptr %3, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load i32, ptr @errno, align 4
%14 = call i32 @log_err(i32 noundef %13, ptr noundef @.str)
br label %15
15: ; preds = %12, %1
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr @F_SETFL, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr @O_NONBLOCK, align 4
%20 = or i32 %18, %19
%21 = call i32 @fcntl(i32 noundef %16, i32 noundef %17, i32 noundef %20)
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = load i32, ptr @errno, align 4
%25 = call i32 @log_err(i32 noundef %24, ptr noundef @.str.1)
br label %26
26: ; preds = %23, %15
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @log_err(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/tmp3wxedkb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"fcntl(F_GETFL) failed\00", align 1
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"fcntl(F_SETFL) failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_fd_nonblocking(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sge i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr @F_GETFL, align 4
%10 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, i32 noundef 0)
store i32 %10, ptr %3, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load i32, ptr @errno, align 4
%14 = call i32 @log_err(i32 noundef %13, ptr noundef @.str)
br label %15
15: ; preds = %12, %1
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr @F_SETFL, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr @O_NONBLOCK, align 4
%20 = or i32 %18, %19
%21 = call i32 @fcntl(i32 noundef %16, i32 noundef %17, i32 noundef %20)
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = load i32, ptr @errno, align 4
%25 = call i32 @log_err(i32 noundef %24, ptr noundef @.str.1)
br label %26
26: ; preds = %23, %15
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @log_err(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/tmprqcg_a72.c'
source_filename = "/tmp/tmprqcg_a72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"%ld %02ld:%02ld:%02ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @convert_date(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load i64, ptr %3, align 8
%11 = sdiv i64 %10, 86400
store i64 %11, ptr %8, align 8
%12 = load i64, ptr %3, align 8
%13 = srem i64 %12, 86400
store i64 %13, ptr %9, align 8
%14 = load i64, ptr %9, align 8
%15 = sdiv i64 %14, 3600
store i64 %15, ptr %7, align 8
%16 = load i64, ptr %9, align 8
%17 = srem i64 %16, 3600
store i64 %17, ptr %9, align 8
%18 = load i64, ptr %9, align 8
%19 = sdiv i64 %18, 60
store i64 %19, ptr %6, align 8
%20 = load i64, ptr %9, align 8
%21 = srem i64 %20, 60
store i64 %21, ptr %5, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %8, align 8
%24 = add nsw i64 %23, 1
%25 = load i64, ptr %7, align 8
%26 = load i64, ptr %6, align 8
%27 = load i64, ptr %5, align 8
%28 = call i32 @sprintf(ptr noundef %22, ptr noundef @.str, i64 noundef %24, i64 noundef %25, i64 noundef %26, i64 noundef %27)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprqcg_a72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"%ld %02ld:%02ld:%02ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @convert_date(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load i64, ptr %3, align 8
%11 = sdiv i64 %10, 86400
store i64 %11, ptr %8, align 8
%12 = load i64, ptr %3, align 8
%13 = srem i64 %12, 86400
store i64 %13, ptr %9, align 8
%14 = load i64, ptr %9, align 8
%15 = sdiv i64 %14, 3600
store i64 %15, ptr %7, align 8
%16 = load i64, ptr %9, align 8
%17 = srem i64 %16, 3600
store i64 %17, ptr %9, align 8
%18 = load i64, ptr %9, align 8
%19 = sdiv i64 %18, 60
store i64 %19, ptr %6, align 8
%20 = load i64, ptr %9, align 8
%21 = srem i64 %20, 60
store i64 %21, ptr %5, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %8, align 8
%24 = add nsw i64 %23, 1
%25 = load i64, ptr %7, align 8
%26 = load i64, ptr %6, align 8
%27 = load i64, ptr %5, align 8
%28 = call i32 @sprintf(ptr noundef %22, ptr noundef @.str, i64 noundef %24, i64 noundef %25, i64 noundef %26, i64 noundef %27)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsacwno5_.c'
source_filename = "/tmp/tmpsacwno5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@max = external global i32, align 4
@.str = private unnamed_addr constant [47 x i8] c"Funci\C3\B3n copia inicial, indices y apuntadores \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@linea_max = external global [1000 x i8], align 16
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr @max, align 4
br label %3
3: ; preds = %18, %0
%4 = call i32 (...) @obtenlinea()
store i32 %4, ptr %2, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %19
6: ; preds = %3
%7 = load i32, ptr %2, align 4
store i32 %7, ptr @max, align 4
%8 = load i32, ptr @max, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = call i32 @PrintSubTitles(ptr noundef @.str)
%12 = call i32 (...) @copia()
%13 = call i32 @printf(ptr noundef @.str.1, ptr noundef @linea_max)
%14 = call i32 (...) @copia_indice()
%15 = call i32 @printf(ptr noundef @.str.1, ptr noundef @linea_max)
%16 = call i32 (...) @copia_apuntador()
%17 = call i32 @printf(ptr noundef @.str.2, ptr noundef @linea_max)
br label %18
18: ; preds = %10, %6
br label %3, !llvm.loop !6
19: ; preds = %3
ret i32 0
}
declare i32 @obtenlinea(...) #1
declare i32 @PrintSubTitles(ptr noundef) #1
declare i32 @copia(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @copia_indice(...) #1
declare i32 @copia_apuntador(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsacwno5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@max = external global i32, align 4
@.str = private unnamed_addr constant [47 x i8] c"Funci\C3\B3n copia inicial, indices y apuntadores \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@linea_max = external global [1000 x i8], align 16
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr @max, align 4
%3 = call i32 (...) @obtenlinea()
store i32 %3, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %17
%6 = load i32, ptr %2, align 4
store i32 %6, ptr @max, align 4
%7 = load i32, ptr @max, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %17
9: ; preds = %5
%10 = call i32 @PrintSubTitles(ptr noundef @.str)
%11 = call i32 (...) @copia()
%12 = call i32 @printf(ptr noundef @.str.1, ptr noundef @linea_max)
%13 = call i32 (...) @copia_indice()
%14 = call i32 @printf(ptr noundef @.str.1, ptr noundef @linea_max)
%15 = call i32 (...) @copia_apuntador()
%16 = call i32 @printf(ptr noundef @.str.2, ptr noundef @linea_max)
br label %17
17: ; preds = %9, %5
%18 = call i32 (...) @obtenlinea()
store i32 %18, ptr %2, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %20
20: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @obtenlinea(...) #1
declare i32 @PrintSubTitles(ptr noundef) #1
declare i32 @copia(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @copia_indice(...) #1
declare i32 @copia_apuntador(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpt9y8o0sv.c'
source_filename = "/tmp/tmpt9y8o0sv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgeti(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %18, %1
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fgetc(ptr noundef %11)
%13 = load i32, ptr %4, align 4
%14 = shl i32 %12, %13
%15 = add nsw i32 %10, %14
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 8
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %9
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = load i32, ptr %3, align 4
%23 = load ptr, ptr %2, align 8
%24 = call i32 @fgetc(ptr noundef %23)
%25 = add nsw i32 %22, %24
ret i32 %25
}
declare i32 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt9y8o0sv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgeti(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %17
%9 = load i32, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fgetc(ptr noundef %10)
%12 = load i32, ptr %4, align 4
%13 = shl i32 %11, %12
%14 = add nsw i32 %9, %13
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 8
store i32 %16, ptr %4, align 4
br label %17
17: ; preds = %8
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %1
%23 = load i32, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = call i32 @fgetc(ptr noundef %24)
%26 = add nsw i32 %23, %25
ret i32 %26
}
declare i32 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpth5zbw76.c'
source_filename = "/tmp/tmpth5zbw76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\1B[32m\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putnbrendl_succ(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @ft_putstr(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @ft_putnbr(i32 noundef %4)
%6 = call i32 @ft_putendl(ptr noundef @.str.1)
ret void
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putnbr(i32 noundef) #1
declare i32 @ft_putendl(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpth5zbw76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\1B[32m\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putnbrendl_succ(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @ft_putstr(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @ft_putnbr(i32 noundef %4)
%6 = call i32 @ft_putendl(ptr noundef @.str.1)
ret void
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putnbr(i32 noundef) #1
declare i32 @ft_putendl(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvsu5p2j8.c'
source_filename = "/tmp/tmpvsu5p2j8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vol_draw_self_sim_cubes_hash_seed(float noundef %0, float noundef %1, float noundef %2, float noundef %3, i32 noundef %4, i32 noundef %5, i16 noundef zeroext %6) #0 {
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i16, align 2
store float %0, ptr %8, align 4
store float %1, ptr %9, align 4
store float %2, ptr %10, align 4
store float %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i16 %6, ptr %14, align 2
%15 = load i32, ptr %13, align 4
%16 = call i32 @hash32int(i32 noundef %15)
store i32 %16, ptr %13, align 4
%17 = load float, ptr %8, align 4
%18 = load float, ptr %9, align 4
%19 = load float, ptr %10, align 4
%20 = load float, ptr %11, align 4
%21 = load i32, ptr %12, align 4
%22 = load i32, ptr %13, align 4
%23 = load i16, ptr %14, align 2
%24 = call i32 @vol_draw_self_sim_cubes(float noundef %17, float noundef %18, float noundef %19, float noundef %20, i32 noundef %21, i32 noundef %22, i16 noundef zeroext %23)
ret void
}
declare i32 @hash32int(i32 noundef) #1
declare i32 @vol_draw_self_sim_cubes(float noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvsu5p2j8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vol_draw_self_sim_cubes_hash_seed(float noundef %0, float noundef %1, float noundef %2, float noundef %3, i32 noundef %4, i32 noundef %5, i16 noundef zeroext %6) #0 {
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i16, align 2
store float %0, ptr %8, align 4
store float %1, ptr %9, align 4
store float %2, ptr %10, align 4
store float %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i16 %6, ptr %14, align 2
%15 = load i32, ptr %13, align 4
%16 = call i32 @hash32int(i32 noundef %15)
store i32 %16, ptr %13, align 4
%17 = load float, ptr %8, align 4
%18 = load float, ptr %9, align 4
%19 = load float, ptr %10, align 4
%20 = load float, ptr %11, align 4
%21 = load i32, ptr %12, align 4
%22 = load i32, ptr %13, align 4
%23 = load i16, ptr %14, align 2
%24 = call i32 @vol_draw_self_sim_cubes(float noundef %17, float noundef %18, float noundef %19, float noundef %20, i32 noundef %21, i32 noundef %22, i16 noundef zeroext %23)
ret void
}
declare i32 @hash32int(i32 noundef) #1
declare i32 @vol_draw_self_sim_cubes(float noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5w365pis.c'
source_filename = "/tmp/tmp5w365pis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @enable_apic() #0 {
%1 = call i32 @hal_io_apic_read32(i32 noundef 240)
%2 = or i32 %1, 256
%3 = call i32 @hal_io_apic_write32(i32 noundef 240, i32 noundef %2)
ret void
}
declare i32 @hal_io_apic_write32(i32 noundef, i32 noundef) #1
declare i32 @hal_io_apic_read32(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/tmp5w365pis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @enable_apic() #0 {
%1 = call i32 @hal_io_apic_read32(i32 noundef 240)
%2 = or i32 %1, 256
%3 = call i32 @hal_io_apic_write32(i32 noundef 240, i32 noundef %2)
ret void
}
declare i32 @hal_io_apic_write32(i32 noundef, i32 noundef) #1
declare i32 @hal_io_apic_read32(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/tmpo63kw2bl.c'
source_filename = "/tmp/tmpo63kw2bl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"_XGetScanlinePad called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_XGetScanlinePad() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo63kw2bl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"_XGetScanlinePad called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_XGetScanlinePad() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp84ruxezn.c'
source_filename = "/tmp/tmp84ruxezn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2C_WriteWordRegister(i8 noundef zeroext %0, i8 noundef zeroext %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca [3 x i8], align 1
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
store ptr %2, ptr %6, align 8
%8 = load i8, ptr %4, align 1
%9 = call i32 @bcm2835_i2c_setSlaveAddress(i8 noundef zeroext %8)
%10 = load i8, ptr %5, align 1
%11 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store i8 %10, ptr %11, align 1
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 1
store i8 %14, ptr %15, align 1
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i8, ptr %17, align 1
%19 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 2
store i8 %18, ptr %19, align 1
%20 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @bcm2835_i2c_write(ptr noundef %20, i32 noundef 3)
ret void
}
declare i32 @bcm2835_i2c_setSlaveAddress(i8 noundef zeroext) #1
declare i32 @bcm2835_i2c_write(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/tmp84ruxezn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2C_WriteWordRegister(i8 noundef zeroext %0, i8 noundef zeroext %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca [3 x i8], align 1
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
store ptr %2, ptr %6, align 8
%8 = load i8, ptr %4, align 1
%9 = call i32 @bcm2835_i2c_setSlaveAddress(i8 noundef zeroext %8)
%10 = load i8, ptr %5, align 1
%11 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store i8 %10, ptr %11, align 1
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 1
store i8 %14, ptr %15, align 1
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i8, ptr %17, align 1
%19 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 2
store i8 %18, ptr %19, align 1
%20 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @bcm2835_i2c_write(ptr noundef %20, i32 noundef 3)
ret void
}
declare i32 @bcm2835_i2c_setSlaveAddress(i8 noundef zeroext) #1
declare i32 @bcm2835_i2c_write(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/tmpfih7nc62.c'
source_filename = "/tmp/tmpfih7nc62.c"
target datalayout = "e-m:e-p270: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.mntent = type { ptr, ptr, ptr, ptr }
@_PATH_MOUNTED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Could not open %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [23 x i8] c"%s on %s type %s (%s)\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"ext2\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Could not mount %s to %s: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [211 x i8] c"Usage:\0A mount\0A mount <source> <directory>\0A\0Aview mount points and mount file systems\0A\0AOptions:\0A -h, --help display this help\0A\0Amount is part of xelix-utils. Please report bugs to <[email protected]>.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %43
10: ; preds = %2
%11 = load ptr, ptr @_PATH_MOUNTED, align 8
%12 = call ptr @setmntent(ptr noundef %11, ptr noundef @.str)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %21, label %15
15: ; preds = %10
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr @_PATH_MOUNTED, align 8
%18 = load i32, ptr @errno, align 4
%19 = call ptr @strerror(i32 noundef %18)
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.1, ptr noundef %17, ptr noundef %19)
store i32 1, ptr %3, align 4
br label %71
21: ; preds = %10
br label %22
22: ; preds = %26, %21
%23 = load ptr, ptr %6, align 8
%24 = call ptr @getmntent(ptr noundef %23)
store ptr %24, ptr %7, align 8
%25 = icmp ne ptr null, %24
br i1 %25, label %26, label %40
26: ; preds = %22
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds %struct.mntent, ptr %27, i32 0, i32 0
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds %struct.mntent, ptr %30, i32 0, i32 1
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds %struct.mntent, ptr %33, i32 0, i32 2
%35 = load ptr, ptr %34, align 8
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds %struct.mntent, ptr %36, i32 0, i32 3
%38 = load ptr, ptr %37, align 8
%39 = call i32 @printf(ptr noundef @.str.2, ptr noundef %29, ptr noundef %32, ptr noundef %35, ptr noundef %38)
br label %22, !llvm.loop !6
40: ; preds = %22
%41 = load ptr, ptr %6, align 8
%42 = call i32 @endmntent(ptr noundef %41)
store i32 0, ptr %3, align 4
br label %71
43: ; preds = %2
%44 = load i32, ptr %4, align 4
%45 = icmp eq i32 %44, 3
br i1 %45, label %46, label %67
46: ; preds = %43
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 1
%49 = load ptr, ptr %48, align 8
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 2
%52 = load ptr, ptr %51, align 8
%53 = call i64 @mount(ptr noundef %49, ptr noundef %52, ptr noundef @.str.3, i32 noundef 0, ptr noundef null)
%54 = icmp slt i64 %53, 0
br i1 %54, label %55, label %66
55: ; preds = %46
%56 = load i32, ptr @stderr, align 4
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 2
%62 = load ptr, ptr %61, align 8
%63 = load i32, ptr @errno, align 4
%64 = call ptr @strerror(i32 noundef %63)
%65 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %56, ptr noundef @.str.4, ptr noundef %59, ptr noundef %62, ptr noundef %64)
store i32 1, ptr %3, align 4
br label %71
66: ; preds = %46
store i32 0, ptr %3, align 4
br label %71
67: ; preds = %43
br label %68
68: ; preds = %67
%69 = load i32, ptr @stderr, align 4
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %71
71: ; preds = %68, %66, %55, %40, %15
%72 = load i32, ptr %3, align 4
ret i32 %72
}
declare ptr @setmntent(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @getmntent(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @endmntent(ptr noundef) #1
declare i64 @mount(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfih7nc62.c"
target datalayout = "e-m:e-p270: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.mntent = type { ptr, ptr, ptr, ptr }
@_PATH_MOUNTED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Could not open %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [23 x i8] c"%s on %s type %s (%s)\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"ext2\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Could not mount %s to %s: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [211 x i8] c"Usage:\0A mount\0A mount <source> <directory>\0A\0Aview mount points and mount file systems\0A\0AOptions:\0A -h, --help display this help\0A\0Amount is part of xelix-utils. Please report bugs to <[email protected]>.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %45
10: ; preds = %2
%11 = load ptr, ptr @_PATH_MOUNTED, align 8
%12 = call ptr @setmntent(ptr noundef %11, ptr noundef @.str)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %21, label %15
15: ; preds = %10
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr @_PATH_MOUNTED, align 8
%18 = load i32, ptr @errno, align 4
%19 = call ptr @strerror(i32 noundef %18)
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.1, ptr noundef %17, ptr noundef %19)
store i32 1, ptr %3, align 4
br label %73
21: ; preds = %10
%22 = load ptr, ptr %6, align 8
%23 = call ptr @getmntent(ptr noundef %22)
store ptr %23, ptr %7, align 8
%24 = icmp ne ptr null, %23
br i1 %24, label %.lr.ph, label %42
.lr.ph: ; preds = %21
br label %25
25: ; preds = %.lr.ph, %25
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.mntent, ptr %26, i32 0, i32 0
%28 = load ptr, ptr %27, align 8
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.mntent, ptr %29, i32 0, i32 1
%31 = load ptr, ptr %30, align 8
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds %struct.mntent, ptr %32, i32 0, i32 2
%34 = load ptr, ptr %33, align 8
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds %struct.mntent, ptr %35, i32 0, i32 3
%37 = load ptr, ptr %36, align 8
%38 = call i32 @printf(ptr noundef @.str.2, ptr noundef %28, ptr noundef %31, ptr noundef %34, ptr noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call ptr @getmntent(ptr noundef %39)
store ptr %40, ptr %7, align 8
%41 = icmp ne ptr null, %40
br i1 %41, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %42
42: ; preds = %._crit_edge, %21
%43 = load ptr, ptr %6, align 8
%44 = call i32 @endmntent(ptr noundef %43)
store i32 0, ptr %3, align 4
br label %73
45: ; preds = %2
%46 = load i32, ptr %4, align 4
%47 = icmp eq i32 %46, 3
br i1 %47, label %48, label %69
48: ; preds = %45
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 1
%51 = load ptr, ptr %50, align 8
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 2
%54 = load ptr, ptr %53, align 8
%55 = call i64 @mount(ptr noundef %51, ptr noundef %54, ptr noundef @.str.3, i32 noundef 0, ptr noundef null)
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %68
57: ; preds = %48
%58 = load i32, ptr @stderr, align 4
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds ptr, ptr %59, i64 1
%61 = load ptr, ptr %60, align 8
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 2
%64 = load ptr, ptr %63, align 8
%65 = load i32, ptr @errno, align 4
%66 = call ptr @strerror(i32 noundef %65)
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %58, ptr noundef @.str.4, ptr noundef %61, ptr noundef %64, ptr noundef %66)
store i32 1, ptr %3, align 4
br label %73
68: ; preds = %48
store i32 0, ptr %3, align 4
br label %73
69: ; preds = %45
br label %70
70: ; preds = %69
%71 = load i32, ptr @stderr, align 4
%72 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %71, ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %73
73: ; preds = %70, %68, %57, %42, %15
%74 = load i32, ptr %3, align 4
ret i32 %74
}
declare ptr @setmntent(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @getmntent(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @endmntent(ptr noundef) #1
declare i64 @mount(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo205lzjb.c'
source_filename = "/tmp/tmpo205lzjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"QUADRADO\0A\00", align 1
@.str.1 = private unnamed_addr constant [91 x i8] c"*********\0A* *\0A* *\0A* *\0A* *\0A* *\0A* *\0A* *\0A*********\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"CIRCUNFERENCIA\0A\00", align 1
@.str.3 = private unnamed_addr constant [89 x i8] c" *** \0A * * \0A * * \0A * * \0A * * \0A * * \0A * * \0A * * \0A *** \0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"SETA\0A\00", align 1
@.str.5 = private unnamed_addr constant [91 x i8] c" * \0A *** \0A ***** \0A * \0A * \0A * \0A * \0A * \0A * \0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"LOSANGO\0A\00", align 1
@.str.7 = private unnamed_addr constant [91 x i8] c" * \0A * * \0A * * \0A * * \0A* *\0A * * \0A * * \0A * * \0A * \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo205lzjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"QUADRADO\0A\00", align 1
@.str.1 = private unnamed_addr constant [91 x i8] c"*********\0A* *\0A* *\0A* *\0A* *\0A* *\0A* *\0A* *\0A*********\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"CIRCUNFERENCIA\0A\00", align 1
@.str.3 = private unnamed_addr constant [89 x i8] c" *** \0A * * \0A * * \0A * * \0A * * \0A * * \0A * * \0A * * \0A *** \0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"SETA\0A\00", align 1
@.str.5 = private unnamed_addr constant [91 x i8] c" * \0A *** \0A ***** \0A * \0A * \0A * \0A * \0A * \0A * \0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"LOSANGO\0A\00", align 1
@.str.7 = private unnamed_addr constant [91 x i8] c" * \0A * * \0A * * \0A * * \0A* *\0A * * \0A * * \0A * * \0A * \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnszevucb.c'
source_filename = "/tmp/tmpnszevucb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printa(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %18, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnszevucb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printa(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %17
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_oybs_2m.c'
source_filename = "/tmp/tmp_oybs_2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, 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
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %9, align 8
br label %13
13: ; preds = %17, %3
%14 = load i64, ptr %6, align 8
%15 = add i64 %14, -1
store i64 %15, ptr %6, align 8
%16 = icmp ne i64 %14, 0
br i1 %16, label %17, label %23
17: ; preds = %13
%18 = load ptr, ptr %9, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %9, align 8
%20 = load i8, ptr %18, align 1
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %8, align 8
store i8 %20, ptr %21, align 1
br label %13, !llvm.loop !6
23: ; preds = %13
%24 = load ptr, ptr %7, align 8
ret ptr %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_oybs_2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, 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
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %9, align 8
%13 = load i64, ptr %6, align 8
%14 = add i64 %13, -1
store i64 %14, ptr %6, align 8
%15 = icmp ne i64 %13, 0
br i1 %15, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %16
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %9, align 8
%19 = load i8, ptr %17, align 1
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %8, align 8
store i8 %19, ptr %20, align 1
%22 = load i64, ptr %6, align 8
%23 = add i64 %22, -1
store i64 %23, ptr %6, align 8
%24 = icmp ne i64 %22, 0
br i1 %24, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %25
25: ; preds = %._crit_edge, %3
%26 = load ptr, ptr %7, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpc0fxlyob.c'
source_filename = "/tmp/tmpc0fxlyob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"i1=%d, i2=%d, i3=%d, i4=%d, i5=%d, i6=%d, i7=%d, i8=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load ptr, ptr %9, align 8
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %11, align 8
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %12, align 8
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %13, align 8
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %14, align 8
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %15, align 8
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %16, align 8
%32 = load i32, ptr %31, align 4
%33 = call i32 @printf(ptr noundef @.str, i32 noundef %18, i32 noundef %20, i32 noundef %22, i32 noundef %24, i32 noundef %26, i32 noundef %28, i32 noundef %30, i32 noundef %32)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc0fxlyob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"i1=%d, i2=%d, i3=%d, i4=%d, i5=%d, i6=%d, i7=%d, i8=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load ptr, ptr %9, align 8
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %11, align 8
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %12, align 8
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %13, align 8
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %14, align 8
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %15, align 8
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %16, align 8
%32 = load i32, ptr %31, align 4
%33 = call i32 @printf(ptr noundef @.str, i32 noundef %18, i32 noundef %20, i32 noundef %22, i32 noundef %24, i32 noundef %26, i32 noundef %28, i32 noundef %30, i32 noundef %32)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpktz5lixq.c'
source_filename = "/tmp/tmpktz5lixq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%I64d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str, i64 noundef 0)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpktz5lixq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%I64d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str, i64 noundef 0)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpphvjj3a_.c'
source_filename = "/tmp/tmpphvjj3a_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PKCS7_SIGNED_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i2d_PKCS7_SIGNED(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ASN1_item_i2d(ptr noundef %5, ptr noundef %6, ptr noundef @PKCS7_SIGNED_it)
ret i32 %7
}
declare i32 @ASN1_item_i2d(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpphvjj3a_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PKCS7_SIGNED_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i2d_PKCS7_SIGNED(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ASN1_item_i2d(ptr noundef %5, ptr noundef %6, ptr noundef @PKCS7_SIGNED_it)
ret i32 %7
}
declare i32 @ASN1_item_i2d(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv5h4lp19.c'
source_filename = "/tmp/tmpv5h4lp19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @elfrw_write_Relas(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %22, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = call i32 @elfrw_write_Rela(ptr noundef %13, ptr noundef %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %12
br label %25
21: ; preds = %12
br label %22
22: ; preds = %21
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
br label %8, !llvm.loop !6
25: ; preds = %20, %8
%26 = load i32, ptr %7, align 4
ret i32 %26
}
declare i32 @elfrw_write_Rela(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/tmpv5h4lp19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @elfrw_write_Relas(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %21
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = call i32 @elfrw_write_Rela(ptr noundef %12, ptr noundef %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %11
br label %27
20: ; preds = %11
br label %21
21: ; preds = %20
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %11, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %21
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %27
27: ; preds = %.loopexit, %19
%28 = load i32, ptr %7, align 4
ret i32 %28
}
declare i32 @elfrw_write_Rela(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/tmpw2_82vd8.c'
source_filename = "/tmp/tmpw2_82vd8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @normcdfinvf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @__ocml_ncdfinv_f32(float noundef %3)
ret float %4
}
declare float @__ocml_ncdfinv_f32(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/tmpw2_82vd8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @normcdfinvf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @__ocml_ncdfinv_f32(float noundef %3)
ret float %4
}
declare float @__ocml_ncdfinv_f32(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/tmp0bm6l2ni.c'
source_filename = "/tmp/tmp0bm6l2ni.c"
target datalayout = "e-m:e-p270: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.iovec = type { ptr, i32 }
%struct.msghdr = type { i32, ptr }
%struct.ip = type { i64, i32, i16 }
@.str = private unnamed_addr constant [19 x i8] c"Got %d bytes [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handle_data(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i16, align 2
%10 = alloca [4 x i8], align 1
%11 = alloca [2 x %struct.iovec], align 16
%12 = alloca %struct.msghdr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = getelementptr inbounds %struct.ip, ptr %14, i32 0, i32 0
%16 = load i64, ptr %15, align 8
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %65
19: ; preds = %3
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds %struct.ip, ptr %20, i32 0, i32 1
%22 = load i32, ptr %21, align 8
%23 = icmp ne i32 %22, 5
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 0, ptr %4, align 4
br label %65
25: ; preds = %19
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds %struct.ip, ptr %26, i32 0, i32 2
%28 = load i16, ptr %27, align 4
store i16 %28, ptr %9, align 2
%29 = load i32, ptr %7, align 4
%30 = sub nsw i32 %29, 20
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 20
store ptr %32, ptr %6, align 8
%33 = load i32, ptr %7, align 4
%34 = load i16, ptr %9, align 2
%35 = call i32 @ntohs(i16 noundef zeroext %34)
%36 = call i32 @printf(ptr noundef @.str, i32 noundef %33, i32 noundef %35)
%37 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%38 = call i32 @memcpy(ptr noundef %37, ptr noundef %9, i32 noundef 2)
%39 = load i32, ptr %7, align 4
%40 = call zeroext i16 @htons(i32 noundef %39)
store i16 %40, ptr %9, align 2
%41 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 2
%42 = call i32 @memcpy(ptr noundef %41, ptr noundef %9, i32 noundef 2)
%43 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%44 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%45 = getelementptr inbounds %struct.iovec, ptr %44, i32 0, i32 0
store ptr %43, ptr %45, align 16
%46 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%47 = getelementptr inbounds %struct.iovec, ptr %46, i32 0, i32 1
store i32 4, ptr %47, align 8
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%50 = getelementptr inbounds %struct.iovec, ptr %49, i32 0, i32 0
store ptr %48, ptr %50, align 16
%51 = load i32, ptr %7, align 4
%52 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%53 = getelementptr inbounds %struct.iovec, ptr %52, i32 0, i32 1
store i32 %51, ptr %53, align 8
%54 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 16)
%55 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%56 = getelementptr inbounds %struct.msghdr, ptr %12, i32 0, i32 1
store ptr %55, ptr %56, align 8
%57 = getelementptr inbounds %struct.msghdr, ptr %12, i32 0, i32 0
store i32 2, ptr %57, align 8
%58 = load i32, ptr %5, align 4
%59 = call i32 @sendmsg(i32 noundef %58, ptr noundef %12, i32 noundef 0)
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 4, %60
%62 = icmp ne i32 %59, %61
br i1 %62, label %63, label %64
63: ; preds = %25
store i32 -1, ptr %4, align 4
br label %65
64: ; preds = %25
store i32 0, ptr %4, align 4
br label %65
65: ; preds = %64, %63, %24, %18
%66 = load i32, ptr %4, align 4
ret i32 %66
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ntohs(i16 noundef zeroext) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare zeroext i16 @htons(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sendmsg(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/tmp0bm6l2ni.c"
target datalayout = "e-m:e-p270: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.iovec = type { ptr, i32 }
%struct.msghdr = type { i32, ptr }
%struct.ip = type { i64, i32, i16 }
@.str = private unnamed_addr constant [19 x i8] c"Got %d bytes [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handle_data(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i16, align 2
%10 = alloca [4 x i8], align 1
%11 = alloca [2 x %struct.iovec], align 16
%12 = alloca %struct.msghdr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = getelementptr inbounds %struct.ip, ptr %14, i32 0, i32 0
%16 = load i64, ptr %15, align 8
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %65
19: ; preds = %3
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds %struct.ip, ptr %20, i32 0, i32 1
%22 = load i32, ptr %21, align 8
%23 = icmp ne i32 %22, 5
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 0, ptr %4, align 4
br label %65
25: ; preds = %19
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds %struct.ip, ptr %26, i32 0, i32 2
%28 = load i16, ptr %27, align 4
store i16 %28, ptr %9, align 2
%29 = load i32, ptr %7, align 4
%30 = sub nsw i32 %29, 20
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 20
store ptr %32, ptr %6, align 8
%33 = load i32, ptr %7, align 4
%34 = load i16, ptr %9, align 2
%35 = call i32 @ntohs(i16 noundef zeroext %34)
%36 = call i32 @printf(ptr noundef @.str, i32 noundef %33, i32 noundef %35)
%37 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%38 = call i32 @memcpy(ptr noundef %37, ptr noundef %9, i32 noundef 2)
%39 = load i32, ptr %7, align 4
%40 = call zeroext i16 @htons(i32 noundef %39)
store i16 %40, ptr %9, align 2
%41 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 2
%42 = call i32 @memcpy(ptr noundef %41, ptr noundef %9, i32 noundef 2)
%43 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%44 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%45 = getelementptr inbounds %struct.iovec, ptr %44, i32 0, i32 0
store ptr %43, ptr %45, align 16
%46 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%47 = getelementptr inbounds %struct.iovec, ptr %46, i32 0, i32 1
store i32 4, ptr %47, align 8
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%50 = getelementptr inbounds %struct.iovec, ptr %49, i32 0, i32 0
store ptr %48, ptr %50, align 16
%51 = load i32, ptr %7, align 4
%52 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%53 = getelementptr inbounds %struct.iovec, ptr %52, i32 0, i32 1
store i32 %51, ptr %53, align 8
%54 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 16)
%55 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%56 = getelementptr inbounds %struct.msghdr, ptr %12, i32 0, i32 1
store ptr %55, ptr %56, align 8
%57 = getelementptr inbounds %struct.msghdr, ptr %12, i32 0, i32 0
store i32 2, ptr %57, align 8
%58 = load i32, ptr %5, align 4
%59 = call i32 @sendmsg(i32 noundef %58, ptr noundef %12, i32 noundef 0)
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 4, %60
%62 = icmp ne i32 %59, %61
br i1 %62, label %63, label %64
63: ; preds = %25
store i32 -1, ptr %4, align 4
br label %65
64: ; preds = %25
store i32 0, ptr %4, align 4
br label %65
65: ; preds = %64, %63, %24, %18
%66 = load i32, ptr %4, align 4
ret i32 %66
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ntohs(i16 noundef zeroext) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare zeroext i16 @htons(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sendmsg(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/tmprs1w_29g.c'
source_filename = "/tmp/tmprs1w_29g.c"
target datalayout = "e-m:e-p270: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/tmprs1w_29g.c"
target datalayout = "e-m:e-p270: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/tmpfcfbtsmf.c'
source_filename = "/tmp/tmpfcfbtsmf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ATReplyWithChar(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @__write(i8 noundef signext %3)
ret void
}
declare i32 @__write(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfcfbtsmf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ATReplyWithChar(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @__write(i8 noundef signext %3)
ret void
}
declare i32 @__write(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0sl37y19.c'
source_filename = "/tmp/tmp0sl37y19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"error on calloc, %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"error on realloc, %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 ptr, align 8
%7 = 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
%8 = call i32 (...) @mtrace()
%9 = call i64 @calloc(i32 noundef 10, i32 noundef 4)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @errno, align 4
%15 = call i32 @strerror(i32 noundef %14)
%16 = call i32 @errExit(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %13, %2
%18 = load ptr, ptr %6, align 8
%19 = call ptr @realloc(ptr noundef %18, i32 noundef 80)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = load i32, ptr @errno, align 4
%24 = call i32 @strerror(i32 noundef %23)
%25 = call i32 @errExit(ptr noundef @.str.1, i32 noundef %24)
br label %28
26: ; preds = %17
%27 = load ptr, ptr %7, align 8
store ptr %27, ptr %6, align 8
br label %28
28: ; preds = %26, %22
%29 = call i32 (...) @muntrace()
%30 = load i32, ptr @EXIT_SUCCESS, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
}
declare i32 @mtrace(...) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @errExit(ptr noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @muntrace(...) #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/tmp0sl37y19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"error on calloc, %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"error on realloc, %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 ptr, align 8
%7 = 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
%8 = call i32 (...) @mtrace()
%9 = call i64 @calloc(i32 noundef 10, i32 noundef 4)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @errno, align 4
%15 = call i32 @strerror(i32 noundef %14)
%16 = call i32 @errExit(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %13, %2
%18 = load ptr, ptr %6, align 8
%19 = call ptr @realloc(ptr noundef %18, i32 noundef 80)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = load i32, ptr @errno, align 4
%24 = call i32 @strerror(i32 noundef %23)
%25 = call i32 @errExit(ptr noundef @.str.1, i32 noundef %24)
br label %28
26: ; preds = %17
%27 = load ptr, ptr %7, align 8
store ptr %27, ptr %6, align 8
br label %28
28: ; preds = %26, %22
%29 = call i32 (...) @muntrace()
%30 = load i32, ptr @EXIT_SUCCESS, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
}
declare i32 @mtrace(...) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @errExit(ptr noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @muntrace(...) #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/tmpmlzxhoe0.c'
source_filename = "/tmp/tmpmlzxhoe0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Success\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load ptr, ptr %2, align 8
br label %9
8: ; preds = %0
br label %9
9: ; preds = %8, %6
%10 = phi ptr [ %7, %6 ], [ @.str.1, %8 ]
store ptr %10, ptr %3, align 8
%11 = call i32 @printf(ptr noundef @.str.2)
%12 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmlzxhoe0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Success\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load ptr, ptr %2, align 8
br label %9
8: ; preds = %0
br label %9
9: ; preds = %8, %6
%10 = phi ptr [ %7, %6 ], [ @.str.1, %8 ]
store ptr %10, ptr %3, align 8
%11 = call i32 @printf(ptr noundef @.str.2)
%12 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps95nhldf.c'
source_filename = "/tmp/tmps95nhldf.c"
target datalayout = "e-m:e-p270: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/tmps95nhldf.c"
target datalayout = "e-m:e-p270: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/tmpvst2wetd.c'
source_filename = "/tmp/tmpvst2wetd.c"
target datalayout = "e-m:e-p270: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 ptr null, align 8
@.str = private unnamed_addr constant [51 x i8] c"Missing arguments. Usage: ./[programName] [files]\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"Example:\0A./printfer 1.csd 2.csd 3.csd\0A./printfer *.csd\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Error opening %s\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [20 x i8] c"Processing %s ===> \00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"%s_printfed.c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"Error writing to file %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"printf(\22%s\\n\22);\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"printf(\22\\n\22);\0A\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"Complete.\0A\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"\07\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 i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca [512 x i8], align 16
%13 = 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
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 2
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load ptr, ptr @stderr, align 8
%18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str)
%19 = load ptr, ptr @stderr, align 8
%20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %123
21: ; preds = %2
store i32 1, ptr %6, align 4
br label %22
22: ; preds = %117, %21
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %120
26: ; preds = %22
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.2)
store ptr %32, ptr %7, align 8
%33 = load ptr, ptr %7, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %45
35: ; preds = %26
%36 = load ptr, ptr @stderr, align 8
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.3, ptr noundef %41)
%43 = load ptr, ptr %7, align 8
%44 = call i32 @fclose(ptr noundef %43)
br label %117
45: ; preds = %26
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr @SEEK_END, align 4
%48 = call i32 @fseek(ptr noundef %46, i64 noundef 0, i32 noundef %47)
%49 = load ptr, ptr %7, align 8
%50 = call i32 @ftell(ptr noundef %49)
store i32 %50, ptr %8, align 4
%51 = load ptr, ptr %7, align 8
%52 = call i32 @rewind(ptr noundef %51)
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = load ptr, ptr %56, align 8
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %57)
%59 = call ptr @malloc(i32 noundef 18)
store ptr %59, ptr %9, align 8
%60 = load ptr, ptr %9, align 8
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %6, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = call ptr @removeExt(ptr noundef %65)
%67 = call i32 @sprintf(ptr noundef %60, ptr noundef @.str.5, ptr noundef %66)
%68 = load ptr, ptr %9, align 8
%69 = call ptr @fopen(ptr noundef %68, ptr noundef @.str.6)
store ptr %69, ptr %10, align 8
%70 = load ptr, ptr %10, align 8
%71 = icmp eq ptr %70, null
br i1 %71, label %72, label %77
72: ; preds = %45
%73 = load ptr, ptr %9, align 8
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %73)
%75 = load ptr, ptr %10, align 8
%76 = call i32 @fclose(ptr noundef %75)
br label %117
77: ; preds = %45
%78 = load i32, ptr %8, align 4
%79 = sext i32 %78 to i64
%80 = mul i64 %79, 1
%81 = trunc i64 %80 to i32
%82 = call ptr @malloc(i32 noundef %81)
store ptr %82, ptr %11, align 8
br label %83
83: ; preds = %105, %77
%84 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%85 = load ptr, ptr %7, align 8
%86 = call i64 @fgets(ptr noundef %84, i32 noundef 512, ptr noundef %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %106
88: ; preds = %83
%89 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%90 = call i64 @strcmp(ptr noundef %89, ptr noundef @.str.8)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %102
92: ; preds = %88
%93 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%94 = call i32 @strtok(ptr noundef %93, ptr noundef @.str.8)
%95 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%96 = call ptr @escapeChars(ptr noundef %95)
store ptr %96, ptr %13, align 8
%97 = load ptr, ptr %10, align 8
%98 = load ptr, ptr %13, align 8
%99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.9, ptr noundef %98)
%100 = load ptr, ptr %13, align 8
%101 = call i32 @free(ptr noundef %100)
br label %105
102: ; preds = %88
%103 = load ptr, ptr %10, align 8
%104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.10)
br label %105
105: ; preds = %102, %92
br label %83, !llvm.loop !6
106: ; preds = %83
%107 = load ptr, ptr %7, align 8
%108 = call i32 @fclose(ptr noundef %107)
%109 = load ptr, ptr %10, align 8
%110 = call i32 @fclose(ptr noundef %109)
%111 = load ptr, ptr %9, align 8
%112 = call i32 @free(ptr noundef %111)
%113 = load ptr, ptr %11, align 8
%114 = call i32 @free(ptr noundef %113)
%115 = load ptr, ptr %9, align 8
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %115)
br label %117
117: ; preds = %106, %72, %35
%118 = load i32, ptr %6, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %6, align 4
br label %22, !llvm.loop !8
120: ; preds = %22
%121 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %123
123: ; preds = %120, %16
%124 = load i32, ptr %3, align 4
ret i32 %124
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @removeExt(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strtok(ptr noundef, ptr noundef) #1
declare ptr @escapeChars(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvst2wetd.c"
target datalayout = "e-m:e-p270: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 ptr null, align 8
@.str = private unnamed_addr constant [51 x i8] c"Missing arguments. Usage: ./[programName] [files]\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"Example:\0A./printfer 1.csd 2.csd 3.csd\0A./printfer *.csd\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Error opening %s\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [20 x i8] c"Processing %s ===> \00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"%s_printfed.c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"Error writing to file %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"printf(\22%s\\n\22);\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"printf(\22\\n\22);\0A\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"Complete.\0A\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"\07\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 i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca [512 x i8], align 16
%13 = 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
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 2
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load ptr, ptr @stderr, align 8
%18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str)
%19 = load ptr, ptr @stderr, align 8
%20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %127
21: ; preds = %2
store i32 1, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph2, label %124
.lr.ph2: ; preds = %21
br label %25
25: ; preds = %.lr.ph2, %118
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = call ptr @fopen(ptr noundef %30, ptr noundef @.str.2)
store ptr %31, ptr %7, align 8
%32 = load ptr, ptr %7, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %44
34: ; preds = %25
%35 = load ptr, ptr @stderr, align 8
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.3, ptr noundef %40)
%42 = load ptr, ptr %7, align 8
%43 = call i32 @fclose(ptr noundef %42)
br label %118
44: ; preds = %25
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr @SEEK_END, align 4
%47 = call i32 @fseek(ptr noundef %45, i64 noundef 0, i32 noundef %46)
%48 = load ptr, ptr %7, align 8
%49 = call i32 @ftell(ptr noundef %48)
store i32 %49, ptr %8, align 4
%50 = load ptr, ptr %7, align 8
%51 = call i32 @rewind(ptr noundef %50)
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %52, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %56)
%58 = call ptr @malloc(i32 noundef 18)
store ptr %58, ptr %9, align 8
%59 = load ptr, ptr %9, align 8
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %6, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = call ptr @removeExt(ptr noundef %64)
%66 = call i32 @sprintf(ptr noundef %59, ptr noundef @.str.5, ptr noundef %65)
%67 = load ptr, ptr %9, align 8
%68 = call ptr @fopen(ptr noundef %67, ptr noundef @.str.6)
store ptr %68, ptr %10, align 8
%69 = load ptr, ptr %10, align 8
%70 = icmp eq ptr %69, null
br i1 %70, label %71, label %76
71: ; preds = %44
%72 = load ptr, ptr %9, align 8
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %72)
%74 = load ptr, ptr %10, align 8
%75 = call i32 @fclose(ptr noundef %74)
br label %118
76: ; preds = %44
%77 = load i32, ptr %8, align 4
%78 = sext i32 %77 to i64
%79 = mul i64 %78, 1
%80 = trunc i64 %79 to i32
%81 = call ptr @malloc(i32 noundef %80)
store ptr %81, ptr %11, align 8
%82 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%83 = load ptr, ptr %7, align 8
%84 = call i64 @fgets(ptr noundef %82, i32 noundef 512, ptr noundef %83)
%85 = icmp ne i64 %84, 0
br i1 %85, label %.lr.ph, label %107
.lr.ph: ; preds = %76
br label %86
86: ; preds = %.lr.ph, %103
%87 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%88 = call i64 @strcmp(ptr noundef %87, ptr noundef @.str.8)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %100
90: ; preds = %86
%91 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%92 = call i32 @strtok(ptr noundef %91, ptr noundef @.str.8)
%93 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%94 = call ptr @escapeChars(ptr noundef %93)
store ptr %94, ptr %13, align 8
%95 = load ptr, ptr %10, align 8
%96 = load ptr, ptr %13, align 8
%97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.9, ptr noundef %96)
%98 = load ptr, ptr %13, align 8
%99 = call i32 @free(ptr noundef %98)
br label %103
100: ; preds = %86
%101 = load ptr, ptr %10, align 8
%102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.10)
br label %103
103: ; preds = %100, %90
%104 = load ptr, ptr %7, align 8
%105 = call i64 @fgets(ptr noundef %82, i32 noundef 512, ptr noundef %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %86, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %103
br label %107
107: ; preds = %._crit_edge, %76
%108 = load ptr, ptr %7, align 8
%109 = call i32 @fclose(ptr noundef %108)
%110 = load ptr, ptr %10, align 8
%111 = call i32 @fclose(ptr noundef %110)
%112 = load ptr, ptr %9, align 8
%113 = call i32 @free(ptr noundef %112)
%114 = load ptr, ptr %11, align 8
%115 = call i32 @free(ptr noundef %114)
%116 = load ptr, ptr %9, align 8
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %116)
br label %118
118: ; preds = %107, %71, %34
%119 = load i32, ptr %6, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %6, align 4
%121 = load i32, ptr %6, align 4
%122 = load i32, ptr %4, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %118
br label %124
124: ; preds = %._crit_edge3, %21
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %127
127: ; preds = %124, %16
%128 = load i32, ptr %3, align 4
ret i32 %128
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @removeExt(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strtok(ptr noundef, ptr noundef) #1
declare ptr @escapeChars(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbcayhvza.c'
source_filename = "/tmp/tmpbcayhvza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 0, ptr %1, align 4
%3 = call signext i8 (...) @getchar()
store i8 %3, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 97
br i1 %6, label %7, label %19
7: ; preds = %0
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 122
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = load i8, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = sub nsw i32 122, %13
%15 = add nsw i32 %14, 97
%16 = trunc i32 %15 to i8
store i8 %16, ptr %2, align 1
%17 = load i8, ptr %2, align 1
%18 = call i32 @printf(ptr noundef @.str, i8 noundef signext %17)
br label %19
19: ; preds = %11, %7, %0
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbcayhvza.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 0, ptr %1, align 4
%3 = call signext i8 (...) @getchar()
store i8 %3, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 97
br i1 %6, label %7, label %19
7: ; preds = %0
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 122
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = load i8, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = sub nsw i32 122, %13
%15 = add nsw i32 %14, 97
%16 = trunc i32 %15 to i8
store i8 %16, ptr %2, align 1
%17 = load i8, ptr %2, align 1
%18 = call i32 @printf(ptr noundef @.str, i8 noundef signext %17)
br label %19
19: ; preds = %11, %7, %0
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpceuhiuyd.c'
source_filename = "/tmp/tmpceuhiuyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfsetispeed(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @cfsetspeed(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @cfsetspeed(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/tmpceuhiuyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfsetispeed(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @cfsetspeed(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @cfsetspeed(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/tmpdv0cgvn8.c'
source_filename = "/tmp/tmpdv0cgvn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cgi_parse_stdin() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr null, ptr %2, align 8
%5 = call i32 (...) @cgi_content_length()
store i32 %5, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %0
store ptr null, ptr %1, align 8
br label %27
9: ; preds = %0
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, 1
%12 = call i64 @malloc(i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr @stdin, align 4
%21 = call i32 @fread(ptr noundef %18, i32 noundef 1, i32 noundef %19, i32 noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = call ptr @cgi_parse_string(ptr noundef %22)
store ptr %23, ptr %2, align 8
%24 = load ptr, ptr %3, align 8
%25 = call i32 @free(ptr noundef %24)
%26 = load ptr, ptr %2, align 8
store ptr %26, ptr %1, align 8
br label %27
27: ; preds = %9, %8
%28 = load ptr, ptr %1, align 8
ret ptr %28
}
declare i32 @cgi_content_length(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @cgi_parse_string(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/tmpdv0cgvn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cgi_parse_stdin() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr null, ptr %2, align 8
%5 = call i32 (...) @cgi_content_length()
store i32 %5, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %0
store ptr null, ptr %1, align 8
br label %27
9: ; preds = %0
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, 1
%12 = call i64 @malloc(i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr @stdin, align 4
%21 = call i32 @fread(ptr noundef %18, i32 noundef 1, i32 noundef %19, i32 noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = call ptr @cgi_parse_string(ptr noundef %22)
store ptr %23, ptr %2, align 8
%24 = load ptr, ptr %3, align 8
%25 = call i32 @free(ptr noundef %24)
%26 = load ptr, ptr %2, align 8
store ptr %26, ptr %1, align 8
br label %27
27: ; preds = %9, %8
%28 = load ptr, ptr %1, align 8
ret ptr %28
}
declare i32 @cgi_content_length(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @cgi_parse_string(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/tmplx0erv26.c'
source_filename = "/tmp/tmplx0erv26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"Unacceptable long delay; asked for 1000 usec, got %li usec \0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [61 x i8] c"Unacceptable long delay; asked for 2000 usec, got %li usec \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 i64, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %11, %0
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 100
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = call i64 @do_time(i32 noundef 1000)
%9 = load i64, ptr %2, align 8
%10 = add i64 %9, %8
store i64 %10, ptr %2, align 8
br label %11
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = load i64, ptr %2, align 8
%16 = udiv i64 %15, 100
store i64 %16, ptr %2, align 8
%17 = load i64, ptr %2, align 8
%18 = icmp ugt i64 %17, 2500
br i1 %18, label %19, label %24
19: ; preds = %14
%20 = load i64, ptr %2, align 8
%21 = call i32 @printf(ptr noundef @.str, i64 noundef %20)
%22 = load i32, ptr @EXIT_FAILURE, align 4
%23 = call i32 @exit(i32 noundef %22) #3
unreachable
24: ; preds = %14
store i64 0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %32, %24
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %26, 100
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = call i64 @do_time(i32 noundef 2000)
%30 = load i64, ptr %2, align 8
%31 = add i64 %30, %29
store i64 %31, ptr %2, align 8
br label %32
32: ; preds = %28
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
br label %25, !llvm.loop !8
35: ; preds = %25
%36 = load i64, ptr %2, align 8
%37 = udiv i64 %36, 100
store i64 %37, ptr %2, align 8
%38 = load i64, ptr %2, align 8
%39 = icmp ugt i64 %38, 3500
br i1 %39, label %40, label %45
40: ; preds = %35
%41 = load i64, ptr %2, align 8
%42 = call i32 @printf(ptr noundef @.str.1, i64 noundef %41)
%43 = load i32, ptr @EXIT_FAILURE, align 4
%44 = call i32 @exit(i32 noundef %43) #3
unreachable
45: ; preds = %35
%46 = load i32, ptr @EXIT_SUCCESS, align 4
%47 = call i32 @exit(i32 noundef %46) #3
unreachable
}
declare i64 @do_time(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplx0erv26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"Unacceptable long delay; asked for 1000 usec, got %li usec \0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [61 x i8] c"Unacceptable long delay; asked for 2000 usec, got %li usec \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 i64, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 100
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %10
%7 = call i64 @do_time(i32 noundef 1000)
%8 = load i64, ptr %2, align 8
%9 = add i64 %8, %7
store i64 %9, ptr %2, align 8
br label %10
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 100
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
%16 = load i64, ptr %2, align 8
%17 = udiv i64 %16, 100
store i64 %17, ptr %2, align 8
%18 = load i64, ptr %2, align 8
%19 = icmp ugt i64 %18, 2500
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load i64, ptr %2, align 8
%22 = call i32 @printf(ptr noundef @.str, i64 noundef %21)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %15
store i64 0, ptr %2, align 8
store i32 0, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %26, 100
br i1 %27, label %.lr.ph2, label %37
.lr.ph2: ; preds = %25
br label %28
28: ; preds = %.lr.ph2, %32
%29 = call i64 @do_time(i32 noundef 2000)
%30 = load i64, ptr %2, align 8
%31 = add i64 %30, %29
store i64 %31, ptr %2, align 8
br label %32
32: ; preds = %28
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 100
br i1 %36, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %37
37: ; preds = %._crit_edge3, %25
%38 = load i64, ptr %2, align 8
%39 = udiv i64 %38, 100
store i64 %39, ptr %2, align 8
%40 = load i64, ptr %2, align 8
%41 = icmp ugt i64 %40, 3500
br i1 %41, label %42, label %47
42: ; preds = %37
%43 = load i64, ptr %2, align 8
%44 = call i32 @printf(ptr noundef @.str.1, i64 noundef %43)
%45 = load i32, ptr @EXIT_FAILURE, align 4
%46 = call i32 @exit(i32 noundef %45) #3
unreachable
47: ; preds = %37
%48 = load i32, ptr @EXIT_SUCCESS, align 4
%49 = call i32 @exit(i32 noundef %48) #3
unreachable
}
declare i64 @do_time(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7tii2cgr.c'
source_filename = "/tmp/tmp7tii2cgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cpu_index() #0 {
%1 = call i32 (...) @get_asr17()
%2 = ashr i32 %1, 28
%3 = and i32 %2, 15
ret i32 %3
}
declare i32 @get_asr17(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7tii2cgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cpu_index() #0 {
%1 = call i32 (...) @get_asr17()
%2 = ashr i32 %1, 28
%3 = and i32 %2, 15
ret i32 %3
}
declare i32 @get_asr17(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp34z38ca3.c'
source_filename = "/tmp/tmp34z38ca3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OSAL_MutexGet(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @pthread_mutex_lock(ptr noundef %3)
ret i32 %4
}
declare i32 @pthread_mutex_lock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp34z38ca3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OSAL_MutexGet(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @pthread_mutex_lock(ptr noundef %3)
ret i32 %4
}
declare i32 @pthread_mutex_lock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl6gw_vre.c'
source_filename = "/tmp/tmpl6gw_vre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"socket: \00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_bind(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
store i32 %0, ptr %3, align 4
%7 = load i32, ptr @AF_INET, align 4
%8 = load i32, ptr @SOCK_STREAM, align 4
%9 = call i32 @socket(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %35
14: ; preds = %1
%15 = call i32 @bzero(ptr noundef %6, i32 noundef 12)
%16 = load i32, ptr @AF_INET, align 4
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = load i32, ptr @INADDR_ANY, align 4
%19 = call i32 @htonl(i32 noundef %18)
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr %3, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i32 %23, ptr %24, align 4
store i32 12, ptr %5, align 4
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %5, align 4
%27 = call i64 @bind(i32 noundef %25, ptr noundef %6, i32 noundef %26)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %14
%30 = load i32, ptr %4, align 4
%31 = call i32 @close(i32 noundef %30)
store i32 -1, ptr %2, align 4
br label %35
32: ; preds = %14
%33 = load i32, ptr %4, align 4
%34 = call i32 @close(i32 noundef %33)
store i32 0, ptr %2, align 4
br label %35
35: ; preds = %32, %29, %12
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl6gw_vre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"socket: \00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_bind(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
store i32 %0, ptr %3, align 4
%7 = load i32, ptr @AF_INET, align 4
%8 = load i32, ptr @SOCK_STREAM, align 4
%9 = call i32 @socket(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %35
14: ; preds = %1
%15 = call i32 @bzero(ptr noundef %6, i32 noundef 12)
%16 = load i32, ptr @AF_INET, align 4
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = load i32, ptr @INADDR_ANY, align 4
%19 = call i32 @htonl(i32 noundef %18)
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr %3, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i32 %23, ptr %24, align 4
store i32 12, ptr %5, align 4
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %5, align 4
%27 = call i64 @bind(i32 noundef %25, ptr noundef %6, i32 noundef %26)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %14
%30 = load i32, ptr %4, align 4
%31 = call i32 @close(i32 noundef %30)
store i32 -1, ptr %2, align 4
br label %35
32: ; preds = %14
%33 = load i32, ptr %4, align 4
%34 = call i32 @close(i32 noundef %33)
store i32 0, ptr %2, align 4
br label %35
35: ; preds = %32, %29, %12
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfbrss51e.c'
source_filename = "/tmp/tmpfbrss51e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Holberton!\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @str_len(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @str_len(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfbrss51e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Holberton!\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @str_len(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @str_len(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmyoldu_3.c'
source_filename = "/tmp/tmpmyoldu_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"! \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 5, ptr %1, align 4
br label %3
3: ; preds = %18, %0
%4 = load i32, ptr %1, align 4
%5 = icmp slt i32 %4, 30
br i1 %5, label %6, label %21
6: ; preds = %3
store i32 1, ptr %2, align 4
br label %7
7: ; preds = %13, %6
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %1, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = call i32 @printf(ptr noundef @.str)
br label %13
13: ; preds = %11
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %7, !llvm.loop !6
16: ; preds = %7
%17 = call i32 @printf(ptr noundef @.str.1)
br label %18
18: ; preds = %16
%19 = load i32, ptr %1, align 4
%20 = add nsw i32 %19, 3
store i32 %20, ptr %1, align 4
br label %3, !llvm.loop !8
21: ; preds = %3
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmyoldu_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"! \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 5, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 30
br i1 %4, label %.lr.ph2, label %24
.lr.ph2: ; preds = %0
br label %5
5: ; preds = %.lr.ph2, %19
store i32 1, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %1, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %5
br label %9
9: ; preds = %.lr.ph, %11
%10 = call i32 @printf(ptr noundef @.str)
br label %11
11: ; preds = %9
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %1, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %17
17: ; preds = %._crit_edge, %5
%18 = call i32 @printf(ptr noundef @.str.1)
br label %19
19: ; preds = %17
%20 = load i32, ptr %1, align 4
%21 = add nsw i32 %20, 3
store i32 %21, ptr %1, align 4
%22 = load i32, ptr %1, align 4
%23 = icmp slt i32 %22, 30
br i1 %23, label %5, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %19
br label %24
24: ; preds = %._crit_edge3, %0
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4rx0g2p0.c'
source_filename = "/tmp/tmp4rx0g2p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_namelist_member(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i64 0, ptr %8, align 8
br label %9
9: ; preds = %25, %3
%10 = load i64, ptr %8, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %26
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = load i64, ptr %8, align 8
%17 = getelementptr inbounds ptr, ptr %15, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i64 @strcmp(ptr noundef %14, ptr noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %13
store i32 1, ptr %7, align 4
br label %26
22: ; preds = %13
%23 = load i64, ptr %8, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %8, align 8
br label %25
25: ; preds = %22
br label %9, !llvm.loop !6
26: ; preds = %21, %9
%27 = load i32, ptr %7, align 4
ret i32 %27
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4rx0g2p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_namelist_member(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i64 0, ptr %8, align 8
%9 = load i64, ptr %8, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %24
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %8, align 8
%16 = getelementptr inbounds ptr, ptr %14, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %13, ptr noundef %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %12
store i32 1, ptr %7, align 4
br label %28
21: ; preds = %12
%22 = load i64, ptr %8, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %8, align 8
br label %24
24: ; preds = %21
%25 = load i64, ptr %8, align 8
%26 = load i64, ptr %4, align 8
%27 = icmp ult i64 %25, %26
br i1 %27, label %12, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %24
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %28
28: ; preds = %.loopexit, %20
%29 = load i32, ptr %7, align 4
ret i32 %29
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpaej77tp1.c'
source_filename = "/tmp/tmpaej77tp1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cntArgs(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %5, align 8
%7 = load i64, ptr %6, align 8
%8 = add i64 %7, -1
store i64 %8, ptr %6, align 8
br label %9
9: ; preds = %29, %2
%10 = load i64, ptr %6, align 8
%11 = add i64 %10, 1
store i64 %11, ptr %6, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 32
br i1 %17, label %25, label %18
18: ; preds = %9
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %6, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %18, %9
%26 = load i64, ptr %5, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %5, align 8
br label %28
28: ; preds = %25, %18
br label %29
29: ; preds = %28
%30 = load ptr, ptr %3, align 8
%31 = load i64, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %9, label %36, !llvm.loop !6
36: ; preds = %29
%37 = load i64, ptr %5, align 8
ret i64 %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 = '<stdin>'
source_filename = "/tmp/tmpaej77tp1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cntArgs(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %5, align 8
%7 = load i64, ptr %6, align 8
%8 = add i64 %7, -1
store i64 %8, ptr %6, align 8
br label %9
9: ; preds = %29, %2
%10 = load i64, ptr %6, align 8
%11 = add i64 %10, 1
store i64 %11, ptr %6, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 32
br i1 %17, label %25, label %18
18: ; preds = %9
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %6, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %18, %9
%26 = load i64, ptr %5, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %5, align 8
br label %28
28: ; preds = %25, %18
br label %29
29: ; preds = %28
%30 = load ptr, ptr %3, align 8
%31 = load i64, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %9, label %36, !llvm.loop !6
36: ; preds = %29
%37 = load i64, ptr %5, align 8
ret i64 %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/tmp300dis1g.c'
source_filename = "/tmp/tmp300dis1g.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [26 x i8] c"sigprocmask remove block\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rm_block_SIGUSR1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @SIG_SETMASK, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i64 @sigprocmask(i32 noundef %3, ptr noundef %4, ptr noundef null)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 @perror(ptr noundef @.str)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %1
ret void
}
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(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/tmp300dis1g.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [26 x i8] c"sigprocmask remove block\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rm_block_SIGUSR1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @SIG_SETMASK, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i64 @sigprocmask(i32 noundef %3, ptr noundef %4, ptr noundef null)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 @perror(ptr noundef @.str)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %1
ret void
}
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(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/tmp97n_7rw_.c'
source_filename = "/tmp/tmp97n_7rw_.c"
target datalayout = "e-m:e-p270: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/tmp97n_7rw_.c"
target datalayout = "e-m:e-p270: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/tmpxf6uokgr.c'
source_filename = "/tmp/tmpxf6uokgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello, world!\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %3
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxf6uokgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello, world!\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %3
}
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"}
|
; ModuleID = '/tmp/tmps9k4975m.c'
source_filename = "/tmp/tmps9k4975m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bsp_csi_set_base_addr(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load i64, ptr %4, align 8
%7 = call i32 @csi_set_base_addr(i32 noundef %5, i64 noundef %6)
ret i32 %7
}
declare i32 @csi_set_base_addr(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps9k4975m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bsp_csi_set_base_addr(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load i64, ptr %4, align 8
%7 = call i32 @csi_set_base_addr(i32 noundef %5, i64 noundef %6)
ret i32 %7
}
declare i32 @csi_set_base_addr(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpss5rx0lg.c'
source_filename = "/tmp/tmpss5rx0lg.c"
target datalayout = "e-m:e-p270: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/tmpss5rx0lg.c"
target datalayout = "e-m:e-p270: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/tmpdfuj22mh.c'
source_filename = "/tmp/tmpdfuj22mh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eb128_less_264(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i64 @eb128_compose_264(i32 noundef %9, i32 noundef %10)
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = call i64 @eb128_compose_264(i32 noundef %12, i32 noundef %13)
%15 = icmp slt i64 %11, %14
%16 = zext i1 %15 to i32
ret i32 %16
}
declare i64 @eb128_compose_264(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/tmpdfuj22mh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eb128_less_264(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i64 @eb128_compose_264(i32 noundef %9, i32 noundef %10)
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = call i64 @eb128_compose_264(i32 noundef %12, i32 noundef %13)
%15 = icmp slt i64 %11, %14
%16 = zext i1 %15 to i32
ret i32 %16
}
declare i64 @eb128_compose_264(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/tmpvy_egzx5.c'
source_filename = "/tmp/tmpvy_egzx5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"Error, can't create directory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @makeDirectory(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @S_IRUSR, align 4
%5 = load i32, ptr @S_IWUSR, align 4
%6 = or i32 %4, %5
%7 = load i32, ptr @S_IXUSR, align 4
%8 = or i32 %6, %7
%9 = call i64 @mkdir(ptr noundef %3, i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @printf(ptr noundef @.str)
br label %13
13: ; preds = %11, %1
ret void
}
declare i64 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvy_egzx5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"Error, can't create directory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @makeDirectory(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @S_IRUSR, align 4
%5 = load i32, ptr @S_IWUSR, align 4
%6 = or i32 %4, %5
%7 = load i32, ptr @S_IXUSR, align 4
%8 = or i32 %6, %7
%9 = call i64 @mkdir(ptr noundef %3, i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @printf(ptr noundef @.str)
br label %13
13: ; preds = %11, %1
ret void
}
declare i64 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg1x2onzd.c'
source_filename = "/tmp/tmpg1x2onzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rig_awaken(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @post_event(ptr noundef %3, i32 noundef 0)
ret i32 %4
}
declare i32 @post_event(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/tmpg1x2onzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rig_awaken(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @post_event(ptr noundef %3, i32 noundef 0)
ret i32 %4
}
declare i32 @post_event(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/tmpevue6yrq.c'
source_filename = "/tmp/tmpevue6yrq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"#\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 1, ptr %4, align 4
br label %7
7: ; preds = %26, %0
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %29
12: ; preds = %7
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %22, %12
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %4, align 4
%16 = mul nsw i32 %15, 2
%17 = sub nsw i32 %16, 1
%18 = icmp slt i32 %14, %17
br i1 %18, label %19, label %25
19: ; preds = %13
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
br label %13, !llvm.loop !6
25: ; preds = %13
br label %26
26: ; preds = %25
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
br label %7, !llvm.loop !8
29: ; preds = %7
%30 = load i32, ptr %5, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %30)
store i32 0, ptr %2, align 4
br label %32
32: ; preds = %39, %29
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = sub nsw i32 %34, 1
%36 = icmp slt i32 %33, %35
br i1 %36, label %37, label %42
37: ; preds = %32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %39
39: ; preds = %37
%40 = load i32, ptr %2, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %2, align 4
br label %32, !llvm.loop !9
42: ; preds = %32
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %44
44: ; preds = %51, %42
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %3, align 4
%47 = sub nsw i32 %46, 1
%48 = icmp slt i32 %45, %47
br i1 %48, label %49, label %54
49: ; preds = %44
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %51
51: ; preds = %49
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %2, align 4
br label %44, !llvm.loop !10
54: ; preds = %44
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %4, align 4
br label %56
56: ; preds = %103, %54
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %3, align 4
%59 = sub nsw i32 %58, 1
%60 = icmp slt i32 %57, %59
br i1 %60, label %61, label %106
61: ; preds = %56
%62 = load i32, ptr %3, align 4
%63 = load i32, ptr %4, align 4
%64 = sub nsw i32 %62, %63
%65 = sub nsw i32 %64, 1
store i32 %65, ptr %2, align 4
br label %66
66: ; preds = %71, %61
%67 = load i32, ptr %2, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %66
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %71
71: ; preds = %69
%72 = load i32, ptr %2, align 4
%73 = add nsw i32 %72, -1
store i32 %73, ptr %2, align 4
br label %66, !llvm.loop !11
74: ; preds = %66
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %76
76: ; preds = %84, %74
%77 = load i32, ptr %2, align 4
%78 = load i32, ptr %4, align 4
%79 = mul nsw i32 %78, 2
%80 = sub nsw i32 %79, 1
%81 = icmp slt i32 %77, %80
br i1 %81, label %82, label %87
82: ; preds = %76
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %84
84: ; preds = %82
%85 = load i32, ptr %2, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %2, align 4
br label %76, !llvm.loop !12
87: ; preds = %76
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%89 = load i32, ptr %3, align 4
%90 = load i32, ptr %4, align 4
%91 = sub nsw i32 %89, %90
%92 = sub nsw i32 %91, 1
store i32 %92, ptr %2, align 4
br label %93
93: ; preds = %98, %87
%94 = load i32, ptr %2, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %101
96: ; preds = %93
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %98
98: ; preds = %96
%99 = load i32, ptr %2, align 4
%100 = add nsw i32 %99, -1
store i32 %100, ptr %2, align 4
br label %93, !llvm.loop !13
101: ; preds = %93
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %103
103: ; preds = %101
%104 = load i32, ptr %4, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %4, align 4
br label %56, !llvm.loop !14
106: ; preds = %56
store i32 0, ptr %2, align 4
br label %107
107: ; preds = %115, %106
%108 = load i32, ptr %2, align 4
%109 = load i32, ptr %3, align 4
%110 = mul nsw i32 %109, 2
%111 = sub nsw i32 %110, 1
%112 = icmp slt i32 %108, %111
br i1 %112, label %113, label %118
113: ; preds = %107
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %115
115: ; preds = %113
%116 = load i32, ptr %2, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %2, align 4
br label %107, !llvm.loop !15
118: ; preds = %107
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpevue6yrq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"#\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph2, label %36
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %29
store i32 0, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %4, align 4
%14 = mul nsw i32 %13, 2
%15 = sub nsw i32 %14, 1
%16 = icmp slt i32 %12, %15
br i1 %16, label %.lr.ph, label %28
.lr.ph: ; preds = %11
br label %17
17: ; preds = %.lr.ph, %20
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %20
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr %4, align 4
%25 = mul nsw i32 %24, 2
%26 = sub nsw i32 %25, 1
%27 = icmp slt i32 %23, %26
br i1 %27, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %28
28: ; preds = %._crit_edge, %11
br label %29
29: ; preds = %28
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %3, align 4
%34 = sub nsw i32 %33, 1
%35 = icmp slt i32 %32, %34
br i1 %35, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %36
36: ; preds = %._crit_edge3, %0
%37 = load i32, ptr %5, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %37)
store i32 0, ptr %2, align 4
%39 = load i32, ptr %2, align 4
%40 = load i32, ptr %3, align 4
%41 = sub nsw i32 %40, 1
%42 = icmp slt i32 %39, %41
br i1 %42, label %.lr.ph5, label %52
.lr.ph5: ; preds = %36
br label %43
43: ; preds = %.lr.ph5, %45
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %45
45: ; preds = %43
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %2, align 4
%48 = load i32, ptr %2, align 4
%49 = load i32, ptr %3, align 4
%50 = sub nsw i32 %49, 1
%51 = icmp slt i32 %48, %50
br i1 %51, label %43, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %45
br label %52
52: ; preds = %._crit_edge6, %36
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %3, align 4
%56 = sub nsw i32 %55, 1
%57 = icmp slt i32 %54, %56
br i1 %57, label %.lr.ph8, label %67
.lr.ph8: ; preds = %52
br label %58
58: ; preds = %.lr.ph8, %60
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %60
60: ; preds = %58
%61 = load i32, ptr %2, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %2, align 4
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %3, align 4
%65 = sub nsw i32 %64, 1
%66 = icmp slt i32 %63, %65
br i1 %66, label %58, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %60
br label %67
67: ; preds = %._crit_edge9, %52
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = load i32, ptr %3, align 4
%71 = sub nsw i32 %70, 1
%72 = icmp slt i32 %69, %71
br i1 %72, label %.lr.ph20, label %128
.lr.ph20: ; preds = %67
br label %73
73: ; preds = %.lr.ph20, %121
%74 = load i32, ptr %3, align 4
%75 = load i32, ptr %4, align 4
%76 = sub nsw i32 %74, %75
%77 = sub nsw i32 %76, 1
store i32 %77, ptr %2, align 4
%78 = load i32, ptr %2, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %.lr.ph11, label %87
.lr.ph11: ; preds = %73
br label %80
80: ; preds = %.lr.ph11, %82
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %82
82: ; preds = %80
%83 = load i32, ptr %2, align 4
%84 = add nsw i32 %83, -1
store i32 %84, ptr %2, align 4
%85 = load i32, ptr %2, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %80, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %82
br label %87
87: ; preds = %._crit_edge12, %73
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%89 = load i32, ptr %2, align 4
%90 = load i32, ptr %4, align 4
%91 = mul nsw i32 %90, 2
%92 = sub nsw i32 %91, 1
%93 = icmp slt i32 %89, %92
br i1 %93, label %.lr.ph14, label %104
.lr.ph14: ; preds = %87
br label %94
94: ; preds = %.lr.ph14, %96
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %96
96: ; preds = %94
%97 = load i32, ptr %2, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %2, align 4
%99 = load i32, ptr %2, align 4
%100 = load i32, ptr %4, align 4
%101 = mul nsw i32 %100, 2
%102 = sub nsw i32 %101, 1
%103 = icmp slt i32 %99, %102
br i1 %103, label %94, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %96
br label %104
104: ; preds = %._crit_edge15, %87
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%106 = load i32, ptr %3, align 4
%107 = load i32, ptr %4, align 4
%108 = sub nsw i32 %106, %107
%109 = sub nsw i32 %108, 1
store i32 %109, ptr %2, align 4
%110 = load i32, ptr %2, align 4
%111 = icmp ne i32 %110, 0
br i1 %111, label %.lr.ph17, label %119
.lr.ph17: ; preds = %104
br label %112
112: ; preds = %.lr.ph17, %114
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %114
114: ; preds = %112
%115 = load i32, ptr %2, align 4
%116 = add nsw i32 %115, -1
store i32 %116, ptr %2, align 4
%117 = load i32, ptr %2, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %112, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %114
br label %119
119: ; preds = %._crit_edge18, %104
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %121
121: ; preds = %119
%122 = load i32, ptr %4, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %4, align 4
%124 = load i32, ptr %4, align 4
%125 = load i32, ptr %3, align 4
%126 = sub nsw i32 %125, 1
%127 = icmp slt i32 %124, %126
br i1 %127, label %73, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %121
br label %128
128: ; preds = %._crit_edge21, %67
store i32 0, ptr %2, align 4
%129 = load i32, ptr %2, align 4
%130 = load i32, ptr %3, align 4
%131 = mul nsw i32 %130, 2
%132 = sub nsw i32 %131, 1
%133 = icmp slt i32 %129, %132
br i1 %133, label %.lr.ph23, label %144
.lr.ph23: ; preds = %128
br label %134
134: ; preds = %.lr.ph23, %136
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %136
136: ; preds = %134
%137 = load i32, ptr %2, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %2, align 4
%139 = load i32, ptr %2, align 4
%140 = load i32, ptr %3, align 4
%141 = mul nsw i32 %140, 2
%142 = sub nsw i32 %141, 1
%143 = icmp slt i32 %139, %142
br i1 %143, label %134, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %136
br label %144
144: ; preds = %._crit_edge24, %128
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmp55g9ftn8.c'
source_filename = "/tmp/tmp55g9ftn8.c"
target datalayout = "e-m:e-p270: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/tmp55g9ftn8.c"
target datalayout = "e-m:e-p270: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/tmpkvzhs64y.c'
source_filename = "/tmp/tmpkvzhs64y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_exit = dso_local global i32 0, align 4
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @SYS_exit, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @syscall(i32 noundef %3, i32 noundef %4)
%6 = call i32 (...) @abort() #3
unreachable
}
declare i32 @syscall(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpkvzhs64y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_exit = dso_local global i32 0, align 4
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @SYS_exit, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @syscall(i32 noundef %3, i32 noundef %4)
%6 = call i32 (...) @abort() #3
unreachable
}
declare i32 @syscall(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpifh5njx_.c'
source_filename = "/tmp/tmpifh5njx_.c"
target datalayout = "e-m:e-p270: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 [23 x i8] c"ERROR: [%s:%d] %s: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ystk/debian-freeipmi/refs/heads/master/ipmipower/src/wrappers.c\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"listen\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Listen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @listen(i32 noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %2
br label %12
12: ; preds = %11
%13 = load i32, ptr @stderr, align 4
%14 = load i32, ptr @errno, align 4
%15 = call ptr @strerror(i32 noundef %14)
%16 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 179, ptr noundef @.str.2, ptr noundef %15)
br label %17
17: ; preds = %12
br label %18
18: ; preds = %17, %2
%19 = load i32, ptr %5, align 4
ret i32 %19
}
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpifh5njx_.c"
target datalayout = "e-m:e-p270: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 [23 x i8] c"ERROR: [%s:%d] %s: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ystk/debian-freeipmi/refs/heads/master/ipmipower/src/wrappers.c\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"listen\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Listen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @listen(i32 noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %2
br label %12
12: ; preds = %11
%13 = load i32, ptr @stderr, align 4
%14 = load i32, ptr @errno, align 4
%15 = call ptr @strerror(i32 noundef %14)
%16 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 179, ptr noundef @.str.2, ptr noundef %15)
br label %17
17: ; preds = %12
br label %18
18: ; preds = %17, %2
%19 = load i32, ptr %5, align 4
ret i32 %19
}
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3pddxcix.c'
source_filename = "/tmp/tmp3pddxcix.c"
target datalayout = "e-m:e-p270: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/tmp3pddxcix.c"
target datalayout = "e-m:e-p270: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/tmpc6k_bsol.c'
source_filename = "/tmp/tmpc6k_bsol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRPOLYBEZIER_safe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @core1_safe(ptr noundef %3)
ret i32 %4
}
declare i32 @core1_safe(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc6k_bsol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRPOLYBEZIER_safe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @core1_safe(ptr noundef %3)
ret i32 %4
}
declare i32 @core1_safe(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp886x8zg.c'
source_filename = "/tmp/tmpp886x8zg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 3, ptr %6, align 4
br label %7
7: ; preds = %13, %2
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 1024
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load i32, ptr %6, align 4
%12 = call i32 @close(i32 noundef %11)
br label %13
13: ; preds = %10
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %6, align 4
br label %7, !llvm.loop !6
16: ; preds = %7
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = call i32 @execvp(ptr noundef %19, ptr noundef %21)
ret i32 %22
}
declare i32 @close(i32 noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpp886x8zg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 3, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = icmp slt i32 %7, 1024
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %12
%10 = load i32, ptr %6, align 4
%11 = call i32 @close(i32 noundef %10)
br label %12
12: ; preds = %9
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 1024
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = call i32 @execvp(ptr noundef %20, ptr noundef %22)
ret i32 %23
}
declare i32 @close(i32 noundef) #1
declare i32 @execvp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpry_gmnja.c'
source_filename = "/tmp/tmpry_gmnja.c"
target datalayout = "e-m:e-p270: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/tmpry_gmnja.c"
target datalayout = "e-m:e-p270: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/tmpj1kfupwh.c'
source_filename = "/tmp/tmpj1kfupwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sum1 = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"sum2 = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"sum3 = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Compiler error: WASTED!!!!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 33, ptr %2, align 4
store i32 27, ptr %3, align 4
store i32 51, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj1kfupwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sum1 = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"sum2 = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"sum3 = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Compiler error: WASTED!!!!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 33, ptr %2, align 4
store i32 27, ptr %3, align 4
store i32 51, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9oyszuls.c'
source_filename = "/tmp/tmp9oyszuls.c"
target datalayout = "e-m:e-p270: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.rlimit = type { i32 }
%struct.sigaction = type { i64, i32, i32 }
@RLIMIT_NOFILE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"error : can't get file limit\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"error : can't fork\0A\00", align 1
@SIG_IGN = dso_local global i32 0, align 4
@SIGHUP = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"error : can't ignor SIGHUP\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"error : can't chdir\0A\00", align 1
@RLIM_INFINITY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@LOG_CONS = dso_local global i32 0, align 4
@LOG_DAEMON = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [37 x i8] c"unexpected file descriptors %d %d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @daemonize(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 i32, align 4
%7 = alloca i64, align 8
%8 = alloca %struct.rlimit, align 4
%9 = alloca %struct.sigaction, align 8
store ptr %0, ptr %2, align 8
%10 = call i32 @umask(i32 noundef 0)
%11 = load i32, ptr @RLIMIT_NOFILE, align 4
%12 = call i64 @getrlimit(i32 noundef %11, ptr noundef %8)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %1
%15 = call i32 @printf(ptr noundef @.str)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %1
%18 = call i64 (...) @fork()
store i64 %18, ptr %7, align 8
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %17
%24 = load i64, ptr %7, align 8
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %23
br label %29
29: ; preds = %28
%30 = call i32 (...) @setsid()
%31 = load i32, ptr @SIG_IGN, align 4
%32 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 2
store i32 %31, ptr %32, align 4
%33 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 1
%34 = call i32 @sigemptyset(ptr noundef %33)
%35 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 0
store i64 0, ptr %35, align 8
%36 = load i32, ptr @SIGHUP, align 4
%37 = call i64 @sigaction(i32 noundef %36, ptr noundef %9, ptr noundef null)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %29
%40 = call i32 @printf(ptr noundef @.str.2)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %29
%43 = call i64 (...) @fork()
store i64 %43, ptr %7, align 8
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @printf(ptr noundef @.str.1)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %42
%49 = load i64, ptr %7, align 8
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @exit(i32 noundef 0) #3
unreachable
53: ; preds = %48
br label %54
54: ; preds = %53
%55 = call i64 @chdir(ptr noundef @.str.3)
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = call i32 @printf(ptr noundef @.str.4)
%59 = call i32 @exit(i32 noundef 1) #3
unreachable
60: ; preds = %54
%61 = getelementptr inbounds %struct.rlimit, ptr %8, i32 0, i32 0
%62 = load i32, ptr %61, align 4
%63 = load i32, ptr @RLIM_INFINITY, align 4
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %60
%66 = getelementptr inbounds %struct.rlimit, ptr %8, i32 0, i32 0
store i32 1024, ptr %66, align 4
br label %67
67: ; preds = %65, %60
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %76, %67
%69 = load i32, ptr %3, align 4
%70 = getelementptr inbounds %struct.rlimit, ptr %8, i32 0, i32 0
%71 = load i32, ptr %70, align 4
%72 = icmp slt i32 %69, %71
br i1 %72, label %73, label %79
73: ; preds = %68
%74 = load i32, ptr %3, align 4
%75 = call i32 @close(i32 noundef %74)
br label %76
76: ; preds = %73
%77 = load i32, ptr %3, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %3, align 4
br label %68, !llvm.loop !6
79: ; preds = %68
%80 = load i32, ptr @O_RDWR, align 4
%81 = call i32 @open(ptr noundef @.str.5, i32 noundef %80)
store i32 %81, ptr %4, align 4
%82 = call i32 @dup(i32 noundef 0)
store i32 %82, ptr %5, align 4
%83 = call i32 @dup(i32 noundef 0)
store i32 %83, ptr %6, align 4
%84 = load ptr, ptr %2, align 8
%85 = load i32, ptr @LOG_CONS, align 4
%86 = load i32, ptr @LOG_DAEMON, align 4
%87 = call i32 @openlog(ptr noundef %84, i32 noundef %85, i32 noundef %86)
%88 = load i32, ptr %4, align 4
%89 = icmp ne i32 %88, 0
br i1 %89, label %96, label %90
90: ; preds = %79
%91 = load i32, ptr %5, align 4
%92 = icmp ne i32 %91, 1
br i1 %92, label %96, label %93
93: ; preds = %90
%94 = load i32, ptr %6, align 4
%95 = icmp ne i32 %94, 2
br i1 %95, label %96, label %103
96: ; preds = %93, %90, %79
%97 = load i32, ptr @LOG_ERR, align 4
%98 = load i32, ptr %4, align 4
%99 = load i32, ptr %5, align 4
%100 = load i32, ptr %6, align 4
%101 = call i32 @syslog(i32 noundef %97, ptr noundef @.str.6, i32 noundef %98, i32 noundef %99, i32 noundef %100)
%102 = call i32 @exit(i32 noundef 1) #3
unreachable
103: ; preds = %93
ret void
}
declare i32 @umask(i32 noundef) #1
declare i64 @getrlimit(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fork(...) #1
declare i32 @setsid(...) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i64 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @chdir(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @dup(i32 noundef) #1
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9oyszuls.c"
target datalayout = "e-m:e-p270: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.rlimit = type { i32 }
%struct.sigaction = type { i64, i32, i32 }
@RLIMIT_NOFILE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"error : can't get file limit\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"error : can't fork\0A\00", align 1
@SIG_IGN = dso_local global i32 0, align 4
@SIGHUP = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"error : can't ignor SIGHUP\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"error : can't chdir\0A\00", align 1
@RLIM_INFINITY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@LOG_CONS = dso_local global i32 0, align 4
@LOG_DAEMON = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [37 x i8] c"unexpected file descriptors %d %d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @daemonize(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 i32, align 4
%7 = alloca i64, align 8
%8 = alloca %struct.rlimit, align 4
%9 = alloca %struct.sigaction, align 8
store ptr %0, ptr %2, align 8
%10 = call i32 @umask(i32 noundef 0)
%11 = load i32, ptr @RLIMIT_NOFILE, align 4
%12 = call i64 @getrlimit(i32 noundef %11, ptr noundef %8)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %1
%15 = call i32 @printf(ptr noundef @.str)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %1
%18 = call i64 (...) @fork()
store i64 %18, ptr %7, align 8
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %17
%24 = load i64, ptr %7, align 8
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %23
br label %29
29: ; preds = %28
%30 = call i32 (...) @setsid()
%31 = load i32, ptr @SIG_IGN, align 4
%32 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 2
store i32 %31, ptr %32, align 4
%33 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 1
%34 = call i32 @sigemptyset(ptr noundef %33)
%35 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 0
store i64 0, ptr %35, align 8
%36 = load i32, ptr @SIGHUP, align 4
%37 = call i64 @sigaction(i32 noundef %36, ptr noundef %9, ptr noundef null)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %29
%40 = call i32 @printf(ptr noundef @.str.2)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %29
%43 = call i64 (...) @fork()
store i64 %43, ptr %7, align 8
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @printf(ptr noundef @.str.1)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %42
%49 = load i64, ptr %7, align 8
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @exit(i32 noundef 0) #3
unreachable
53: ; preds = %48
br label %54
54: ; preds = %53
%55 = call i64 @chdir(ptr noundef @.str.3)
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = call i32 @printf(ptr noundef @.str.4)
%59 = call i32 @exit(i32 noundef 1) #3
unreachable
60: ; preds = %54
%61 = getelementptr inbounds %struct.rlimit, ptr %8, i32 0, i32 0
%62 = load i32, ptr %61, align 4
%63 = load i32, ptr @RLIM_INFINITY, align 4
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %60
%66 = getelementptr inbounds %struct.rlimit, ptr %8, i32 0, i32 0
store i32 1024, ptr %66, align 4
br label %67
67: ; preds = %65, %60
store i32 0, ptr %3, align 4
%68 = load i32, ptr %3, align 4
%69 = getelementptr inbounds %struct.rlimit, ptr %8, i32 0, i32 0
%70 = load i32, ptr %69, align 4
%71 = icmp slt i32 %68, %70
br i1 %71, label %.lr.ph, label %81
.lr.ph: ; preds = %67
br label %72
72: ; preds = %.lr.ph, %75
%73 = load i32, ptr %3, align 4
%74 = call i32 @close(i32 noundef %73)
br label %75
75: ; preds = %72
%76 = load i32, ptr %3, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %3, align 4
%78 = load i32, ptr %3, align 4
%79 = load i32, ptr %69, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %72, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %81
81: ; preds = %._crit_edge, %67
%82 = load i32, ptr @O_RDWR, align 4
%83 = call i32 @open(ptr noundef @.str.5, i32 noundef %82)
store i32 %83, ptr %4, align 4
%84 = call i32 @dup(i32 noundef 0)
store i32 %84, ptr %5, align 4
%85 = call i32 @dup(i32 noundef 0)
store i32 %85, ptr %6, align 4
%86 = load ptr, ptr %2, align 8
%87 = load i32, ptr @LOG_CONS, align 4
%88 = load i32, ptr @LOG_DAEMON, align 4
%89 = call i32 @openlog(ptr noundef %86, i32 noundef %87, i32 noundef %88)
%90 = load i32, ptr %4, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %98, label %92
92: ; preds = %81
%93 = load i32, ptr %5, align 4
%94 = icmp ne i32 %93, 1
br i1 %94, label %98, label %95
95: ; preds = %92
%96 = load i32, ptr %6, align 4
%97 = icmp ne i32 %96, 2
br i1 %97, label %98, label %105
98: ; preds = %95, %92, %81
%99 = load i32, ptr @LOG_ERR, align 4
%100 = load i32, ptr %4, align 4
%101 = load i32, ptr %5, align 4
%102 = load i32, ptr %6, align 4
%103 = call i32 @syslog(i32 noundef %99, ptr noundef @.str.6, i32 noundef %100, i32 noundef %101, i32 noundef %102)
%104 = call i32 @exit(i32 noundef 1) #3
unreachable
105: ; preds = %95
ret void
}
declare i32 @umask(i32 noundef) #1
declare i64 @getrlimit(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fork(...) #1
declare i32 @setsid(...) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i64 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @chdir(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @dup(i32 noundef) #1
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp08ztyznp.c'
source_filename = "/tmp/tmp08ztyznp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sais_int_bwt(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%14 = load ptr, ptr %7, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %28, label %16
16: ; preds = %5
%17 = load ptr, ptr %8, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %28, label %19
19: ; preds = %16
%20 = load ptr, ptr %9, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %28, label %22
22: ; preds = %19
%23 = load i32, ptr %10, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i32, ptr %11, align 4
%27 = icmp sle i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25, %22, %19, %16, %5
store i32 -1, ptr %6, align 4
br label %104
29: ; preds = %25
%30 = load i32, ptr %10, align 4
%31 = icmp sle i32 %30, 1
br i1 %31, label %32, label %43
32: ; preds = %29
%33 = load i32, ptr %10, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %41
35: ; preds = %32
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 0
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %8, align 8
%40 = getelementptr inbounds i32, ptr %39, i64 0
store i32 %38, ptr %40, align 4
br label %41
41: ; preds = %35, %32
%42 = load i32, ptr %10, align 4
store i32 %42, ptr %6, align 4
br label %104
43: ; preds = %29
%44 = load ptr, ptr %7, align 8
%45 = load ptr, ptr %9, align 8
%46 = load i32, ptr %10, align 4
%47 = load i32, ptr %11, align 4
%48 = call i32 @sais_main(ptr noundef %44, ptr noundef %45, i32 noundef 0, i32 noundef %46, i32 noundef %47, i32 noundef 4, i32 noundef 1)
store i32 %48, ptr %13, align 4
%49 = load i32, ptr %13, align 4
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %43
%52 = load i32, ptr %13, align 4
store i32 %52, ptr %6, align 4
br label %104
53: ; preds = %43
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %10, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %54, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load ptr, ptr %8, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 0
store i32 %59, ptr %61, align 4
store i32 0, ptr %12, align 4
br label %62
62: ; preds = %77, %53
%63 = load i32, ptr %12, align 4
%64 = load i32, ptr %13, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %80
66: ; preds = %62
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %12, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4
%72 = load ptr, ptr %8, align 8
%73 = load i32, ptr %12, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %72, i64 %75
store i32 %71, ptr %76, align 4
br label %77
77: ; preds = %66
%78 = load i32, ptr %12, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %12, align 4
br label %62, !llvm.loop !6
80: ; preds = %62
%81 = load i32, ptr %12, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %12, align 4
br label %83
83: ; preds = %97, %80
%84 = load i32, ptr %12, align 4
%85 = load i32, ptr %10, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %100
87: ; preds = %83
%88 = load ptr, ptr %9, align 8
%89 = load i32, ptr %12, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %88, i64 %90
%92 = load i32, ptr %91, align 4
%93 = load ptr, ptr %8, align 8
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
store i32 %92, ptr %96, align 4
br label %97
97: ; preds = %87
%98 = load i32, ptr %12, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %12, align 4
br label %83, !llvm.loop !8
100: ; preds = %83
%101 = load i32, ptr %13, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %13, align 4
%103 = load i32, ptr %13, align 4
store i32 %103, ptr %6, align 4
br label %104
104: ; preds = %100, %51, %41, %28
%105 = load i32, ptr %6, align 4
ret i32 %105
}
declare i32 @sais_main(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp08ztyznp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sais_int_bwt(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%14 = load ptr, ptr %7, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %28, label %16
16: ; preds = %5
%17 = load ptr, ptr %8, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %28, label %19
19: ; preds = %16
%20 = load ptr, ptr %9, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %28, label %22
22: ; preds = %19
%23 = load i32, ptr %10, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i32, ptr %11, align 4
%27 = icmp sle i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25, %22, %19, %16, %5
store i32 -1, ptr %6, align 4
br label %108
29: ; preds = %25
%30 = load i32, ptr %10, align 4
%31 = icmp sle i32 %30, 1
br i1 %31, label %32, label %43
32: ; preds = %29
%33 = load i32, ptr %10, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %41
35: ; preds = %32
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 0
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %8, align 8
%40 = getelementptr inbounds i32, ptr %39, i64 0
store i32 %38, ptr %40, align 4
br label %41
41: ; preds = %35, %32
%42 = load i32, ptr %10, align 4
store i32 %42, ptr %6, align 4
br label %108
43: ; preds = %29
%44 = load ptr, ptr %7, align 8
%45 = load ptr, ptr %9, align 8
%46 = load i32, ptr %10, align 4
%47 = load i32, ptr %11, align 4
%48 = call i32 @sais_main(ptr noundef %44, ptr noundef %45, i32 noundef 0, i32 noundef %46, i32 noundef %47, i32 noundef 4, i32 noundef 1)
store i32 %48, ptr %13, align 4
%49 = load i32, ptr %13, align 4
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %43
%52 = load i32, ptr %13, align 4
store i32 %52, ptr %6, align 4
br label %108
53: ; preds = %43
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %10, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %54, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load ptr, ptr %8, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 0
store i32 %59, ptr %61, align 4
store i32 0, ptr %12, align 4
%62 = load i32, ptr %12, align 4
%63 = load i32, ptr %13, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %.lr.ph, label %82
.lr.ph: ; preds = %53
br label %65
65: ; preds = %.lr.ph, %76
%66 = load ptr, ptr %9, align 8
%67 = load i32, ptr %12, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = load ptr, ptr %8, align 8
%72 = load i32, ptr %12, align 4
%73 = add nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %71, i64 %74
store i32 %70, ptr %75, align 4
br label %76
76: ; preds = %65
%77 = load i32, ptr %12, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %12, align 4
%79 = load i32, ptr %12, align 4
%80 = load i32, ptr %13, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %65, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %76
br label %82
82: ; preds = %._crit_edge, %53
%83 = load i32, ptr %12, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %12, align 4
%85 = load i32, ptr %12, align 4
%86 = load i32, ptr %10, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %.lr.ph2, label %104
.lr.ph2: ; preds = %82
br label %88
88: ; preds = %.lr.ph2, %98
%89 = load ptr, ptr %9, align 8
%90 = load i32, ptr %12, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %89, i64 %91
%93 = load i32, ptr %92, align 4
%94 = load ptr, ptr %8, align 8
%95 = load i32, ptr %12, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, ptr %94, i64 %96
store i32 %93, ptr %97, align 4
br label %98
98: ; preds = %88
%99 = load i32, ptr %12, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %12, align 4
%101 = load i32, ptr %12, align 4
%102 = load i32, ptr %10, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %88, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %98
br label %104
104: ; preds = %._crit_edge3, %82
%105 = load i32, ptr %13, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %13, align 4
%107 = load i32, ptr %13, align 4
store i32 %107, ptr %6, align 4
br label %108
108: ; preds = %104, %51, %41, %28
%109 = load i32, ptr %6, align 4
ret i32 %109
}
declare i32 @sais_main(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp74grgzcx.c'
source_filename = "/tmp/tmp74grgzcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Enter the binary number\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"The converted binary digits in dicimal is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %9
9: ; preds = %12, %0
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %23
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 10
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %6, align 4
%17 = mul nsw i32 %15, %16
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %4, align 4
%19 = mul nsw i32 %18, 2
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %20, %21
store i32 %22, ptr %5, align 4
br label %9, !llvm.loop !6
23: ; preds = %9
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74grgzcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Enter the binary number\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"The converted binary digits in dicimal is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %5, align 4
store i32 1, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 10
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %6, align 4
%16 = mul nsw i32 %14, %15
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = mul nsw i32 %17, 2
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %19, %20
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %24
24: ; preds = %._crit_edge, %0
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp2p6u3vc.c'
source_filename = "/tmp/tmpp2p6u3vc.c"
target datalayout = "e-m:e-p270: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/tmpp2p6u3vc.c"
target datalayout = "e-m:e-p270: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/tmpu4sviilu.c'
source_filename = "/tmp/tmpu4sviilu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"malloc\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"-> Merging chunks at offset %zu/%zu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @external_merge_sort(ptr noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = call ptr @malloc(i64 noundef %13)
store ptr %14, ptr %11, align 8
%15 = load ptr, ptr %11, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %4
%18 = call i32 @perror(ptr noundef @.str)
%19 = load i32, ptr @ENOMEM, align 4
%20 = sub nsw i32 0, %19
store i32 %20, ptr %5, align 4
br label %58
21: ; preds = %4
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = load ptr, ptr %8, align 8
%25 = load ptr, ptr %11, align 8
%26 = load i64, ptr %9, align 8
%27 = call i32 @split(ptr noundef %22, i32 noundef %23, ptr noundef %24, ptr noundef %25, i64 noundef %26)
store i32 %27, ptr %10, align 4
%28 = load i32, ptr %10, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %21
%31 = load ptr, ptr %11, align 8
%32 = call i32 @free(ptr noundef %31)
store i32 -1, ptr %5, align 4
br label %58
33: ; preds = %21
store i64 0, ptr %12, align 8
br label %34
34: ; preds = %38, %33
%35 = load i64, ptr %12, align 8
%36 = load i64, ptr %9, align 8
%37 = icmp ult i64 %35, %36
br i1 %37, label %38, label %55
38: ; preds = %34
%39 = load i32, ptr @stderr, align 4
%40 = load i64, ptr %12, align 8
%41 = load i64, ptr %9, align 8
%42 = call i32 @fprintf(i32 noundef %39, ptr noundef @.str.1, i64 noundef %40, i64 noundef %41)
%43 = load ptr, ptr %8, align 8
%44 = load ptr, ptr %11, align 8
%45 = load i64, ptr %9, align 8
%46 = load i32, ptr %10, align 4
%47 = load i64, ptr %12, align 8
%48 = call i32 @merge(ptr noundef %43, ptr noundef %44, i64 noundef %45, i32 noundef %46, i64 noundef %47)
%49 = load i64, ptr %9, align 8
%50 = load i32, ptr %10, align 4
%51 = sext i32 %50 to i64
%52 = udiv i64 %49, %51
%53 = load i64, ptr %12, align 8
%54 = add i64 %53, %52
store i64 %54, ptr %12, align 8
br label %34, !llvm.loop !6
55: ; preds = %34
%56 = load ptr, ptr %11, align 8
%57 = call i32 @free(ptr noundef %56)
store i32 0, ptr %5, align 4
br label %58
58: ; preds = %55, %30, %17
%59 = load i32, ptr %5, align 4
ret i32 %59
}
declare ptr @malloc(i64 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @split(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @merge(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu4sviilu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"malloc\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"-> Merging chunks at offset %zu/%zu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @external_merge_sort(ptr noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = call ptr @malloc(i64 noundef %13)
store ptr %14, ptr %11, align 8
%15 = load ptr, ptr %11, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %4
%18 = call i32 @perror(ptr noundef @.str)
%19 = load i32, ptr @ENOMEM, align 4
%20 = sub nsw i32 0, %19
store i32 %20, ptr %5, align 4
br label %60
21: ; preds = %4
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = load ptr, ptr %8, align 8
%25 = load ptr, ptr %11, align 8
%26 = load i64, ptr %9, align 8
%27 = call i32 @split(ptr noundef %22, i32 noundef %23, ptr noundef %24, ptr noundef %25, i64 noundef %26)
store i32 %27, ptr %10, align 4
%28 = load i32, ptr %10, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %21
%31 = load ptr, ptr %11, align 8
%32 = call i32 @free(ptr noundef %31)
store i32 -1, ptr %5, align 4
br label %60
33: ; preds = %21
store i64 0, ptr %12, align 8
%34 = load i64, ptr %12, align 8
%35 = load i64, ptr %9, align 8
%36 = icmp ult i64 %34, %35
br i1 %36, label %.lr.ph, label %57
.lr.ph: ; preds = %33
br label %37
37: ; preds = %.lr.ph, %37
%38 = load i32, ptr @stderr, align 4
%39 = load i64, ptr %12, align 8
%40 = load i64, ptr %9, align 8
%41 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str.1, i64 noundef %39, i64 noundef %40)
%42 = load ptr, ptr %8, align 8
%43 = load ptr, ptr %11, align 8
%44 = load i64, ptr %9, align 8
%45 = load i32, ptr %10, align 4
%46 = load i64, ptr %12, align 8
%47 = call i32 @merge(ptr noundef %42, ptr noundef %43, i64 noundef %44, i32 noundef %45, i64 noundef %46)
%48 = load i64, ptr %9, align 8
%49 = load i32, ptr %10, align 4
%50 = sext i32 %49 to i64
%51 = udiv i64 %48, %50
%52 = load i64, ptr %12, align 8
%53 = add i64 %52, %51
store i64 %53, ptr %12, align 8
%54 = load i64, ptr %12, align 8
%55 = load i64, ptr %9, align 8
%56 = icmp ult i64 %54, %55
br i1 %56, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %57
57: ; preds = %._crit_edge, %33
%58 = load ptr, ptr %11, align 8
%59 = call i32 @free(ptr noundef %58)
store i32 0, ptr %5, align 4
br label %60
60: ; preds = %57, %30, %17
%61 = load i32, ptr %5, align 4
ret i32 %61
}
declare ptr @malloc(i64 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @split(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @merge(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8ker0mkk.c'
source_filename = "/tmp/tmp8ker0mkk.c"
target datalayout = "e-m:e-p270: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.sample = private unnamed_addr constant [20 x i32] [i32 2, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 5, i32 5, i32 3, i32 3, i32 2, i32 3, i32 4, i32 5, i32 8, i32 9, i32 3, i32 2, i32 3], align 16
@.str = private unnamed_addr constant [7 x i8] c"%s\09%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Rate\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Frequency\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%d\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [20 x i32], align 16
%5 = alloca [11 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.sample, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 44, i1 false)
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %18, %0
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %7, 19
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [11 x i32], ptr %5, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %15, align 4
br label %18
18: ; preds = %9
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %23
23: ; preds = %33, %21
%24 = load i32, ptr %3, align 4
%25 = icmp sle i32 %24, 10
br i1 %25, label %26, label %36
26: ; preds = %23
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [11 x i32], ptr %5, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %31)
br label %33
33: ; preds = %26
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %23, !llvm.loop !8
36: ; preds = %23
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ker0mkk.c"
target datalayout = "e-m:e-p270: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.sample = private unnamed_addr constant [20 x i32] [i32 2, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 5, i32 5, i32 3, i32 3, i32 2, i32 3, i32 4, i32 5, i32 8, i32 9, i32 3, i32 2, i32 3], align 16
@.str = private unnamed_addr constant [7 x i8] c"%s\09%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Rate\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Frequency\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%d\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [20 x i32], align 16
%5 = alloca [11 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.sample, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 44, i1 false)
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 19
br i1 %7, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %17
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [11 x i32], ptr %5, i64 0, i64 %13
%15 = load i32, ptr %14, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %14, align 4
br label %17
17: ; preds = %8
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp sle i32 %20, 19
br i1 %21, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp sle i32 %24, 10
br i1 %25, label %.lr.ph2, label %38
.lr.ph2: ; preds = %22
br label %26
26: ; preds = %.lr.ph2, %33
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [11 x i32], ptr %5, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %31)
br label %33
33: ; preds = %26
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp sle i32 %36, 10
br i1 %37, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %38
38: ; preds = %._crit_edge3, %22
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpajgarw9x.c'
source_filename = "/tmp/tmpajgarw9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ds2unprotect_() #0 {
%1 = call i32 (...) @ds2unprotect()
ret void
}
declare i32 @ds2unprotect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpajgarw9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ds2unprotect_() #0 {
%1 = call i32 (...) @ds2unprotect()
ret void
}
declare i32 @ds2unprotect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxvb_qovc.c'
source_filename = "/tmp/tmpxvb_qovc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alloc(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = call ptr @malloc(i64 noundef %6) #4
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = call i32 @perror(ptr noundef %11)
%13 = call i32 @exit(i32 noundef -1) #5
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(0) }
attributes #5 = { 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/tmpxvb_qovc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alloc(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = call ptr @malloc(i64 noundef %6) #4
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = call i32 @perror(ptr noundef %11)
%13 = call i32 @exit(i32 noundef -1) #5
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(0) }
attributes #5 = { 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/tmpto43nmir.c'
source_filename = "/tmp/tmpto43nmir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMR8B_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmpto43nmir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMR8B_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmpiscndi1j.c'
source_filename = "/tmp/tmpiscndi1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @test(i32 noundef 4)
%3 = call i32 @test(i32 noundef 6)
%4 = call i32 @test(i32 noundef 9)
%5 = call i32 @test(i32 noundef 14)
%6 = call i32 @test(i32 noundef 25)
ret i32 0
}
declare i32 @test(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/tmpiscndi1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @test(i32 noundef 4)
%3 = call i32 @test(i32 noundef 6)
%4 = call i32 @test(i32 noundef 9)
%5 = call i32 @test(i32 noundef 14)
%6 = call i32 @test(i32 noundef 25)
ret i32 0
}
declare i32 @test(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/tmpcy5p9ysx.c'
source_filename = "/tmp/tmpcy5p9ysx.c"
target datalayout = "e-m:e-p270: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/tmpcy5p9ysx.c"
target datalayout = "e-m:e-p270: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/tmpwa1gjtm1.c'
source_filename = "/tmp/tmpwa1gjtm1.c"
target datalayout = "e-m:e-p270: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/tmpwa1gjtm1.c"
target datalayout = "e-m:e-p270: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/tmp15sf1vtu.c'
source_filename = "/tmp/tmp15sf1vtu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %25, %2
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = call double (...) @rand_double()
%21 = call double @llvm.fmuladd.f64(double %20, double 2.000000e+04, double -1.000000e+04)
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %14, i64 %23
store double %21, ptr %24, align 8
br label %25
25: ; preds = %19
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %10, align 4
br label %15, !llvm.loop !6
28: ; preds = %15
store double 0.000000e+00, ptr %8, align 8
%29 = call double (...) @tic()
store double %29, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %30
30: ; preds = %43, %28
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = load i32, ptr %4, align 4
%36 = call double @stdlib_strided_dvariance(i32 noundef %35, double noundef 1.000000e+00, ptr noundef %14, i32 noundef 1)
store double %36, ptr %8, align 8
%37 = load double, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = fcmp une double %37, %38
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 @printf(ptr noundef @.str)
br label %46
42: ; preds = %34
br label %43
43: ; preds = %42
%44 = load i32, ptr %10, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %10, align 4
br label %30, !llvm.loop !8
46: ; preds = %40, %30
%47 = call double (...) @tic()
%48 = load double, ptr %9, align 8
%49 = fsub double %47, %48
store double %49, ptr %5, align 8
%50 = load double, ptr %8, align 8
%51 = load double, ptr %8, align 8
%52 = fcmp une double %50, %51
br i1 %52, label %53, label %55
53: ; preds = %46
%54 = call i32 @printf(ptr noundef @.str)
br label %55
55: ; preds = %53, %46
%56 = load double, ptr %5, align 8
%57 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %57)
ret double %56
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @rand_double(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @tic(...) #2
declare double @stdlib_strided_dvariance(i32 noundef, double noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp15sf1vtu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %24
%19 = call double (...) @rand_double()
%20 = call double @llvm.fmuladd.f64(double %19, double 2.000000e+04, double -1.000000e+04)
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %14, i64 %22
store double %20, ptr %23, align 8
br label %24
24: ; preds = %18
%25 = load i32, ptr %10, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %2
store double 0.000000e+00, ptr %8, align 8
%31 = call double (...) @tic()
store double %31, ptr %9, align 8
store i32 0, ptr %10, align 4
%32 = load i32, ptr %10, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %44
%36 = load i32, ptr %4, align 4
%37 = call double @stdlib_strided_dvariance(i32 noundef %36, double noundef 1.000000e+00, ptr noundef %14, i32 noundef 1)
store double %37, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = load double, ptr %8, align 8
%40 = fcmp une double %38, %39
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str)
br label %50
43: ; preds = %35
br label %44
44: ; preds = %43
%45 = load i32, ptr %10, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %35, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %44
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %50
50: ; preds = %.loopexit, %41
%51 = call double (...) @tic()
%52 = load double, ptr %9, align 8
%53 = fsub double %51, %52
store double %53, ptr %5, align 8
%54 = load double, ptr %8, align 8
%55 = load double, ptr %8, align 8
%56 = fcmp une double %54, %55
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = call i32 @printf(ptr noundef @.str)
br label %59
59: ; preds = %57, %50
%60 = load double, ptr %5, align 8
%61 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %61)
ret double %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @rand_double(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @tic(...) #2
declare double @stdlib_strided_dvariance(i32 noundef, double noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpg7q1isw3.c'
source_filename = "/tmp/tmpg7q1isw3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @decode_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
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/tmpg7q1isw3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @decode_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
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/tmpts58hbqh.c'
source_filename = "/tmp/tmpts58hbqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.A = private unnamed_addr constant [10 x i32] [i32 123, i32 4123, i32 412, i32 41234, i32 41234, i32 44324, i32 2313, i32 22, i32 1, i32 83838], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.A, i64 40, i1 false)
%2 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @radixSort(ptr noundef %2, i32 noundef 10)
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @printArray(ptr noundef %4, i32 noundef 10)
%6 = call i32 (...) @getchar()
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 @radixSort(ptr noundef, i32 noundef) #2
declare i32 @printArray(ptr noundef, i32 noundef) #2
declare i32 @getchar(...) #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/tmpts58hbqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.A = private unnamed_addr constant [10 x i32] [i32 123, i32 4123, i32 412, i32 41234, i32 41234, i32 44324, i32 2313, i32 22, i32 1, i32 83838], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.A, i64 40, i1 false)
%2 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @radixSort(ptr noundef %2, i32 noundef 10)
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @printArray(ptr noundef %4, i32 noundef 10)
%6 = call i32 (...) @getchar()
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 @radixSort(ptr noundef, i32 noundef) #2
declare i32 @printArray(ptr noundef, i32 noundef) #2
declare i32 @getchar(...) #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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.