llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp6f6f5e6e.c'
source_filename = "/tmp/tmp6f6f5e6e.c"
target datalayout = "e-m:e-p270: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/tmp6f6f5e6e.c"
target datalayout = "e-m:e-p270: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/tmplurca64q.c'
source_filename = "/tmp/tmplurca64q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @list_begin(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call ptr @list_head(ptr noundef %7)
ret ptr %8
}
declare i32 @assert(i32 noundef) #1
declare ptr @list_head(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplurca64q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @list_begin(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call ptr @list_head(ptr noundef %7)
ret ptr %8
}
declare i32 @assert(i32 noundef) #1
declare ptr @list_head(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx1oymbxl.c'
source_filename = "/tmp/tmpx1oymbxl.c"
target datalayout = "e-m:e-p270: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/tmpx1oymbxl.c"
target datalayout = "e-m:e-p270: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/tmps5zp_ivv.c'
source_filename = "/tmp/tmps5zp_ivv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mmadd(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = mul i64 %11, %12
%14 = mul i64 %13, 4
%15 = call i64 @malloc(i64 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %10, align 8
store i32 0, ptr %9, align 4
br label %17
17: ; preds = %40, %4
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %7, align 8
%21 = load i64, ptr %8, align 8
%22 = mul i64 %20, %21
%23 = icmp ult i64 %19, %22
br i1 %23, label %24, label %43
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds float, ptr %25, i64 %27
%29 = load float, ptr %28, align 4
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds float, ptr %30, i64 %32
%34 = load float, ptr %33, align 4
%35 = fadd float %29, %34
%36 = load ptr, ptr %10, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds float, ptr %36, i64 %38
store float %35, ptr %39, align 4
br label %40
40: ; preds = %24
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
br label %17, !llvm.loop !6
43: ; preds = %17
%44 = load ptr, ptr %10, align 8
ret ptr %44
}
declare i64 @malloc(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/tmps5zp_ivv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mmadd(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = mul i64 %11, %12
%14 = mul i64 %13, 4
%15 = call i64 @malloc(i64 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %10, align 8
store i32 0, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = sext i32 %17 to i64
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %8, align 8
%21 = mul i64 %19, %20
%22 = icmp ult i64 %18, %21
br i1 %22, label %.lr.ph, label %48
.lr.ph: ; preds = %4
br label %23
23: ; preds = %.lr.ph, %39
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, ptr %24, i64 %26
%28 = load float, ptr %27, align 4
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds float, ptr %29, i64 %31
%33 = load float, ptr %32, align 4
%34 = fadd float %28, %33
%35 = load ptr, ptr %10, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds float, ptr %35, i64 %37
store float %34, ptr %38, align 4
br label %39
39: ; preds = %23
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = load i64, ptr %7, align 8
%45 = load i64, ptr %8, align 8
%46 = mul i64 %44, %45
%47 = icmp ult i64 %43, %46
br i1 %47, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %48
48: ; preds = %._crit_edge, %4
%49 = load ptr, ptr %10, align 8
ret ptr %49
}
declare i64 @malloc(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/tmpuun53wdx.c'
source_filename = "/tmp/tmpuun53wdx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @helper2(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %25, label %16
16: ; preds = %5
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %10, align 4
%19 = sub nsw i32 %18, 1
%20 = icmp sgt i32 %17, %19
br i1 %20, label %25, label %21
21: ; preds = %16
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %21, %16, %5
store i32 0, ptr %6, align 4
br label %111
26: ; preds = %21
%27 = load ptr, ptr %11, align 8
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr @INT_MIN, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %38, label %48
38: ; preds = %26
%39 = load ptr, ptr %11, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
store i32 %47, ptr %6, align 4
br label %111
48: ; preds = %26
%49 = load i32, ptr %7, align 4
store i32 %49, ptr %12, align 4
br label %50
50: ; preds = %98, %48
%51 = load i32, ptr %12, align 4
%52 = load i32, ptr %8, align 4
%53 = icmp sle i32 %51, %52
br i1 %53, label %54, label %101
54: ; preds = %50
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %12, align 4
%57 = sub nsw i32 %56, 2
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %10, align 4
%60 = load ptr, ptr %11, align 8
%61 = call i32 @helper2(i32 noundef %55, i32 noundef %57, ptr noundef %58, i32 noundef %59, ptr noundef %60)
%62 = load i32, ptr %12, align 4
%63 = add nsw i32 %62, 2
%64 = load i32, ptr %8, align 4
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %10, align 4
%67 = load ptr, ptr %11, align 8
%68 = call i32 @helper2(i32 noundef %63, i32 noundef %64, ptr noundef %65, i32 noundef %66, ptr noundef %67)
%69 = add nsw i32 %61, %68
%70 = load ptr, ptr %9, align 8
%71 = load i32, ptr %12, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %70, i64 %72
%74 = load i32, ptr %73, align 4
%75 = add nsw i32 %69, %74
store i32 %75, ptr %13, align 4
%76 = load ptr, ptr %11, align 8
%77 = load i32, ptr %7, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %76, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = load i32, ptr %8, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %80, i64 %82
%84 = load i32, ptr %83, align 4
%85 = load i32, ptr %13, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %97
87: ; preds = %54
%88 = load i32, ptr %13, align 4
%89 = load ptr, ptr %11, align 8
%90 = load i32, ptr %7, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds ptr, ptr %89, i64 %91
%93 = load ptr, ptr %92, align 8
%94 = load i32, ptr %8, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
store i32 %88, ptr %96, align 4
br label %97
97: ; preds = %87, %54
br label %98
98: ; preds = %97
%99 = load i32, ptr %12, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %12, align 4
br label %50, !llvm.loop !6
101: ; preds = %50
%102 = load ptr, ptr %11, align 8
%103 = load i32, ptr %7, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds ptr, ptr %102, i64 %104
%106 = load ptr, ptr %105, align 8
%107 = load i32, ptr %8, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32, ptr %106, i64 %108
%110 = load i32, ptr %109, align 4
store i32 %110, ptr %6, align 4
br label %111
111: ; preds = %101, %38, %25
%112 = load i32, ptr %6, align 4
ret i32 %112
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpuun53wdx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @helper2(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %25, label %16
16: ; preds = %5
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %10, align 4
%19 = sub nsw i32 %18, 1
%20 = icmp sgt i32 %17, %19
br i1 %20, label %25, label %21
21: ; preds = %16
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %21, %16, %5
store i32 0, ptr %6, align 4
br label %113
26: ; preds = %21
%27 = load ptr, ptr %11, align 8
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr @INT_MIN, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %38, label %48
38: ; preds = %26
%39 = load ptr, ptr %11, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
store i32 %47, ptr %6, align 4
br label %113
48: ; preds = %26
%49 = load i32, ptr %7, align 4
store i32 %49, ptr %12, align 4
%50 = load i32, ptr %12, align 4
%51 = load i32, ptr %8, align 4
%52 = icmp sle i32 %50, %51
br i1 %52, label %.lr.ph, label %103
.lr.ph: ; preds = %48
br label %53
53: ; preds = %.lr.ph, %97
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %12, align 4
%56 = sub nsw i32 %55, 2
%57 = load ptr, ptr %9, align 8
%58 = load i32, ptr %10, align 4
%59 = load ptr, ptr %11, align 8
%60 = call i32 @helper2(i32 noundef %54, i32 noundef %56, ptr noundef %57, i32 noundef %58, ptr noundef %59)
%61 = load i32, ptr %12, align 4
%62 = add nsw i32 %61, 2
%63 = load i32, ptr %8, align 4
%64 = load ptr, ptr %9, align 8
%65 = load i32, ptr %10, align 4
%66 = load ptr, ptr %11, align 8
%67 = call i32 @helper2(i32 noundef %62, i32 noundef %63, ptr noundef %64, i32 noundef %65, ptr noundef %66)
%68 = add nsw i32 %60, %67
%69 = load ptr, ptr %9, align 8
%70 = load i32, ptr %12, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
%73 = load i32, ptr %72, align 4
%74 = add nsw i32 %68, %73
store i32 %74, ptr %13, align 4
%75 = load ptr, ptr %11, align 8
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %75, i64 %77
%79 = load ptr, ptr %78, align 8
%80 = load i32, ptr %8, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %79, i64 %81
%83 = load i32, ptr %82, align 4
%84 = load i32, ptr %13, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %96
86: ; preds = %53
%87 = load i32, ptr %13, align 4
%88 = load ptr, ptr %11, align 8
%89 = load i32, ptr %7, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds ptr, ptr %88, i64 %90
%92 = load ptr, ptr %91, align 8
%93 = load i32, ptr %8, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %92, i64 %94
store i32 %87, ptr %95, align 4
br label %96
96: ; preds = %86, %53
br label %97
97: ; preds = %96
%98 = load i32, ptr %12, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %12, align 4
%100 = load i32, ptr %12, align 4
%101 = load i32, ptr %8, align 4
%102 = icmp sle i32 %100, %101
br i1 %102, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %103
103: ; preds = %._crit_edge, %48
%104 = load ptr, ptr %11, align 8
%105 = load i32, ptr %7, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds ptr, ptr %104, i64 %106
%108 = load ptr, ptr %107, align 8
%109 = load i32, ptr %8, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
%112 = load i32, ptr %111, align 4
store i32 %112, ptr %6, align 4
br label %113
113: ; preds = %103, %38, %25
%114 = load i32, ptr %6, align 4
ret i32 %114
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4buj912i.c'
source_filename = "/tmp/tmp4buj912i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter a string > \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"e\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"i\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"o\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"u\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"The number of syllables is %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%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 %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
%9 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %3, align 4
store i32 0, ptr %5, align 4
br label %11
11: ; preds = %73, %0
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %76
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr @.str.2, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %20, %22
br i1 %23, label %69, label %24
24: ; preds = %15
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = load i8, ptr @.str.3, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %29, %31
br i1 %32, label %69, label %33
33: ; preds = %24
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load i8, ptr @.str.4, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %38, %40
br i1 %41, label %69, label %42
42: ; preds = %33
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = load i8, ptr @.str.5, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %47, %49
br i1 %50, label %69, label %51
51: ; preds = %42
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = load i8, ptr @.str.6, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %56, %58
br i1 %59, label %69, label %60
60: ; preds = %51
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = load i8, ptr @.str.7, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %65, %67
br i1 %68, label %69, label %72
69: ; preds = %60, %51, %42, %33, %24, %15
%70 = load i32, ptr %4, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %4, align 4
br label %72
72: ; preds = %69, %60
br label %73
73: ; preds = %72
%74 = load i32, ptr %5, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %5, align 4
br label %11, !llvm.loop !6
76: ; preds = %11
%77 = load i32, ptr %4, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %77)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4buj912i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter a string > \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"e\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"i\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"o\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"u\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"The number of syllables is %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%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 %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
%9 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %3, align 4
store i32 0, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %78
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %72
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load i8, ptr @.str.2, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %19, %21
br i1 %22, label %68, label %23
23: ; preds = %14
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load i8, ptr @.str.3, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %28, %30
br i1 %31, label %68, label %32
32: ; preds = %23
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i8, ptr @.str.4, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %37, %39
br i1 %40, label %68, label %41
41: ; preds = %32
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = load i8, ptr @.str.5, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %46, %48
br i1 %49, label %68, label %50
50: ; preds = %41
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = load i8, ptr @.str.6, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %55, %57
br i1 %58, label %68, label %59
59: ; preds = %50
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = load i8, ptr @.str.7, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %64, %66
br i1 %67, label %68, label %71
68: ; preds = %59, %50, %41, %32, %23, %14
%69 = load i32, ptr %4, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %4, align 4
br label %71
71: ; preds = %68, %59
br label %72
72: ; preds = %71
%73 = load i32, ptr %5, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %5, align 4
%75 = load i32, ptr %5, align 4
%76 = load i32, ptr %3, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %78
78: ; preds = %._crit_edge, %0
%79 = load i32, ptr %4, align 4
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %79)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpu23jiha0.c'
source_filename = "/tmp/tmpu23jiha0.c"
target datalayout = "e-m:e-p270: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
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu23jiha0.c"
target datalayout = "e-m:e-p270: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
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1yj69to4.c'
source_filename = "/tmp/tmp1yj69to4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaSubet(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %9, align 8
%12 = load ptr, ptr %10, align 8
%13 = call i32 @sla_subet_(ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %11, ptr noundef %12)
ret void
}
declare i32 @sla_subet_(ptr noundef, ptr noundef, 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/tmp1yj69to4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaSubet(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %9, align 8
%12 = load ptr, ptr %10, align 8
%13 = call i32 @sla_subet_(ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %11, ptr noundef %12)
ret void
}
declare i32 @sla_subet_(ptr noundef, ptr noundef, 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/tmpf09ckodo.c'
source_filename = "/tmp/tmpf09ckodo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isPalindrome(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %5, align 4
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 1, ptr %2, align 4
br label %64
12: ; preds = %1
br label %13
13: ; preds = %53, %36, %25, %12
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %58
17: ; preds = %13
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = call i32 @is_character(i8 noundef signext %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %17
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %13, !llvm.loop !6
28: ; preds = %17
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = call i32 @is_character(i8 noundef signext %33)
%35 = icmp ne i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %28
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %5, align 4
br label %13, !llvm.loop !6
39: ; preds = %28
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %5, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = call i32 @is_match(i8 noundef signext %44, i8 noundef signext %49)
%51 = icmp ne i32 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %39
store i32 0, ptr %2, align 4
br label %64
53: ; preds = %39
%54 = load i32, ptr %4, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, -1
store i32 %57, ptr %5, align 4
br label %13, !llvm.loop !6
58: ; preds = %13
%59 = load i32, ptr %4, align 4
%60 = load i32, ptr %5, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
store i32 0, ptr %2, align 4
br label %64
63: ; preds = %58
store i32 1, ptr %2, align 4
br label %64
64: ; preds = %63, %62, %52, %11
%65 = load i32, ptr %2, align 4
ret i32 %65
}
declare i32 @strlen(ptr noundef) #1
declare i32 @is_character(i8 noundef signext) #1
declare i32 @is_match(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf09ckodo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isPalindrome(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %5, align 4
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 1, ptr %2, align 4
br label %66
12: ; preds = %1
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %60
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %.backedge
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = call i32 @is_character(i8 noundef signext %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %30, label %24
24: ; preds = %16
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %.backedge
.backedge: ; preds = %24, %38, %55
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %16, label %._crit_edge, !llvm.loop !6
30: ; preds = %16
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = call i32 @is_character(i8 noundef signext %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %30
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %5, align 4
br label %.backedge
41: ; preds = %30
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
%52 = call i32 @is_match(i8 noundef signext %46, i8 noundef signext %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %55, label %54
54: ; preds = %41
store i32 0, ptr %2, align 4
br label %66
55: ; preds = %41
%56 = load i32, ptr %4, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %4, align 4
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %5, align 4
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %60
60: ; preds = %._crit_edge, %12
%61 = load i32, ptr %4, align 4
%62 = load i32, ptr %5, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 0, ptr %2, align 4
br label %66
65: ; preds = %60
store i32 1, ptr %2, align 4
br label %66
66: ; preds = %65, %64, %54, %11
%67 = load i32, ptr %2, align 4
ret i32 %67
}
declare i32 @strlen(ptr noundef) #1
declare i32 @is_character(i8 noundef signext) #1
declare i32 @is_match(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyllpklzn.c'
source_filename = "/tmp/tmpyllpklzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [8 x i32] [i32 -1, i32 2, i32 -5, i32 6, i32 1, i32 4, i32 -2, i32 3], align 16
@.str = private unnamed_addr constant [48 x i8] c"maximum sum: %i start_index: %i end_index: %i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 32, i1 false)
store i32 -1, ptr %3, align 4
store i32 -1, ptr %4, align 4
%8 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
%9 = load i32, ptr %8, align 16
store i32 %9, ptr %7, align 4
store i32 %9, ptr %6, align 4
store i32 1, ptr %5, align 4
br label %10
10: ; preds = %49, %0
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = icmp ult i64 %12, 8
br i1 %13, label %14, label %52
14: ; preds = %10
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %15, %19
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = icmp sgt i32 %20, %24
br i1 %25, label %26, label %33
26: ; preds = %14
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, %30
store i32 %32, ptr %6, align 4
br label %39
33: ; preds = %14
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %5, align 4
store i32 %38, ptr %3, align 4
br label %39
39: ; preds = %33, %26
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = icmp sgt i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = load i32, ptr %6, align 4
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %5, align 4
store i32 %47, ptr %4, align 4
br label %48
48: ; preds = %45, %39
br label %49
49: ; preds = %48
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
br label %10, !llvm.loop !6
52: ; preds = %10
%53 = load i32, ptr %6, align 4
%54 = load i32, ptr %3, align 4
%55 = load i32, ptr %4, align 4
%56 = call i32 @printf(ptr noundef @.str, i32 noundef %53, i32 noundef %54, i32 noundef %55)
%57 = load i32, ptr %1, align 4
ret i32 %57
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyllpklzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [8 x i32] [i32 -1, i32 2, i32 -5, i32 6, i32 1, i32 4, i32 -2, i32 3], align 16
@.str = private unnamed_addr constant [48 x i8] c"maximum sum: %i start_index: %i end_index: %i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 32, i1 false)
store i32 -1, ptr %3, align 4
store i32 -1, ptr %4, align 4
%8 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
%9 = load i32, ptr %8, align 16
store i32 %9, ptr %7, align 4
store i32 %9, ptr %6, align 4
store i32 1, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = icmp ult i64 %11, 8
br i1 %12, label %.lr.ph, label %54
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %48
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = add nsw i32 %14, %18
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp sgt i32 %19, %23
br i1 %24, label %25, label %32
25: ; preds = %13
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, %29
store i32 %31, ptr %6, align 4
br label %38
32: ; preds = %13
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
store i32 %36, ptr %6, align 4
%37 = load i32, ptr %5, align 4
store i32 %37, ptr %3, align 4
br label %38
38: ; preds = %32, %25
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr %6, align 4
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %5, align 4
store i32 %46, ptr %4, align 4
br label %47
47: ; preds = %44, %38
br label %48
48: ; preds = %47
%49 = load i32, ptr %5, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = icmp ult i64 %52, 8
br i1 %53, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %54
54: ; preds = %._crit_edge, %0
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr %3, align 4
%57 = load i32, ptr %4, align 4
%58 = call i32 @printf(ptr noundef @.str, i32 noundef %55, i32 noundef %56, i32 noundef %57)
%59 = load i32, ptr %1, align 4
ret i32 %59
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9uctw9u5.c'
source_filename = "/tmp/tmp9uctw9u5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_empty(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
%5 = zext i1 %4 to i64
%6 = select i1 %4, i32 1, i32 0
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9uctw9u5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_empty(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
%5 = zext i1 %4 to i64
%6 = select i1 %4, i32 1, i32 0
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppxuw6spq.c'
source_filename = "/tmp/tmppxuw6spq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calculateFirstRoot(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %6, align 8
%8 = fcmp oeq double %7, 0.000000e+00
br i1 %8, label %9, label %15
9: ; preds = %3
%10 = load double, ptr %5, align 8
%11 = fneg double %10
%12 = load double, ptr %4, align 8
%13 = fmul double 2.000000e+00, %12
%14 = fdiv double %11, %13
br label %24
15: ; preds = %3
%16 = load double, ptr %5, align 8
%17 = fneg double %16
%18 = load double, ptr %6, align 8
%19 = call double @sqrt(double noundef %18) #2
%20 = fadd double %17, %19
%21 = load double, ptr %4, align 8
%22 = fmul double 2.000000e+00, %21
%23 = fdiv double %20, %22
br label %24
24: ; preds = %15, %9
%25 = phi double [ %14, %9 ], [ %23, %15 ]
ret double %25
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppxuw6spq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calculateFirstRoot(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %6, align 8
%8 = fcmp oeq double %7, 0.000000e+00
br i1 %8, label %9, label %15
9: ; preds = %3
%10 = load double, ptr %5, align 8
%11 = fneg double %10
%12 = load double, ptr %4, align 8
%13 = fmul double 2.000000e+00, %12
%14 = fdiv double %11, %13
br label %24
15: ; preds = %3
%16 = load double, ptr %5, align 8
%17 = fneg double %16
%18 = load double, ptr %6, align 8
%19 = call double @sqrt(double noundef %18) #2
%20 = fadd double %17, %19
%21 = load double, ptr %4, align 8
%22 = fmul double 2.000000e+00, %21
%23 = fdiv double %20, %22
br label %24
24: ; preds = %15, %9
%25 = phi double [ %14, %9 ], [ %23, %15 ]
ret double %25
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkhyyrotf.c'
source_filename = "/tmp/tmpkhyyrotf.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"Errore numero argomenti.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"%s %d %s\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Terminazione foglia processo: \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %11, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %63
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @atoi(ptr noundef %20)
store i32 %21, ptr %6, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %26
26: ; preds = %46, %17
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, ptr %11, align 4
%32 = icmp ne i32 %31, 0
br label %33
33: ; preds = %30, %26
%34 = phi i1 [ false, %26 ], [ %32, %30 ]
br i1 %34, label %35, label %49
35: ; preds = %33
%36 = call i64 (...) @fork()
store i64 %36, ptr %9, align 8
%37 = load i64, ptr %9, align 8
%38 = icmp sgt i64 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = call i64 (...) @fork()
store i64 %40, ptr %10, align 8
%41 = load i64, ptr %10, align 8
%42 = icmp sgt i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %39
store i32 0, ptr %11, align 4
br label %44
44: ; preds = %43, %39
br label %45
45: ; preds = %44, %35
br label %46
46: ; preds = %45
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %26, !llvm.loop !6
49: ; preds = %33
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %62
53: ; preds = %49
%54 = load i32, ptr %11, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %53
%57 = load i32, ptr %7, align 4
%58 = call i32 @sleep(i32 noundef %57)
%59 = load i32, ptr @stdout, align 4
%60 = call i32 (...) @getpid()
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %60, ptr noundef @.str.3)
br label %62
62: ; preds = %56, %53, %49
store i32 0, ptr %3, align 4
br label %63
63: ; preds = %62, %14
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkhyyrotf.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"Errore numero argomenti.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"%s %d %s\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Terminazione foglia processo: \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %11, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %63
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @atoi(ptr noundef %20)
store i32 %21, ptr %6, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 2
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %26
26: ; preds = %46, %17
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, ptr %11, align 4
%32 = icmp ne i32 %31, 0
br label %33
33: ; preds = %30, %26
%34 = phi i1 [ false, %26 ], [ %32, %30 ]
br i1 %34, label %35, label %49
35: ; preds = %33
%36 = call i64 (...) @fork()
store i64 %36, ptr %9, align 8
%37 = load i64, ptr %9, align 8
%38 = icmp sgt i64 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = call i64 (...) @fork()
store i64 %40, ptr %10, align 8
%41 = load i64, ptr %10, align 8
%42 = icmp sgt i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %39
store i32 0, ptr %11, align 4
br label %44
44: ; preds = %43, %39
br label %45
45: ; preds = %44, %35
br label %46
46: ; preds = %45
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %26, !llvm.loop !6
49: ; preds = %33
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %62
53: ; preds = %49
%54 = load i32, ptr %11, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %53
%57 = load i32, ptr %7, align 4
%58 = call i32 @sleep(i32 noundef %57)
%59 = load i32, ptr @stdout, align 4
%60 = call i32 (...) @getpid()
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %60, ptr noundef @.str.3)
br label %62
62: ; preds = %56, %53, %49
store i32 0, ptr %3, align 4
br label %63
63: ; preds = %62, %14
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfqvrwhqt.c'
source_filename = "/tmp/tmpfqvrwhqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(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 ptr @xaprintf(ptr noundef @.str, ptr noundef %3)
ret ptr %4
}
declare ptr @xaprintf(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/tmpfqvrwhqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xstrdup(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 ptr @xaprintf(ptr noundef @.str, ptr noundef %3)
ret ptr %4
}
declare ptr @xaprintf(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/tmp_cv5ma2p.c'
source_filename = "/tmp/tmp_cv5ma2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Entra la temperatura en F: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"La temperatura en Celcius es %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load float, ptr %2, align 4
%7 = fsub float %6, 3.200000e+01
%8 = fpext float %7 to double
%9 = fdiv double %8, 1.800000e+00
%10 = fptrunc double %9 to float
store float %10, ptr %3, align 4
%11 = load float, ptr %3, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %12)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_cv5ma2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Entra la temperatura en F: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"La temperatura en Celcius es %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load float, ptr %2, align 4
%7 = fsub float %6, 3.200000e+01
%8 = fpext float %7 to double
%9 = fdiv double %8, 1.800000e+00
%10 = fptrunc double %9 to float
store float %10, ptr %3, align 4
%11 = load float, ptr %3, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %12)
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"}
|
; ModuleID = '/tmp/tmpriaud68e.c'
source_filename = "/tmp/tmpriaud68e.c"
target datalayout = "e-m:e-p270: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/tmpriaud68e.c"
target datalayout = "e-m:e-p270: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/tmppbzrb2v8.c'
source_filename = "/tmp/tmppbzrb2v8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsumount(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @real_umount(i32 noundef %6, ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %18, label %10
10: ; preds = %2
%11 = load i32, ptr %3, align 4
%12 = call i32 @quota_ctl(i32 noundef %11, i32 noundef 2)
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = call i32 @quota_off(i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %14, %10
br label %18
18: ; preds = %17, %2
%19 = load i32, ptr %5, align 4
ret i32 %19
}
declare i32 @real_umount(i32 noundef, ptr noundef) #1
declare i32 @quota_ctl(i32 noundef, i32 noundef) #1
declare i32 @quota_off(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/tmppbzrb2v8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsumount(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @real_umount(i32 noundef %6, ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %18, label %10
10: ; preds = %2
%11 = load i32, ptr %3, align 4
%12 = call i32 @quota_ctl(i32 noundef %11, i32 noundef 2)
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = call i32 @quota_off(i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %14, %10
br label %18
18: ; preds = %17, %2
%19 = load i32, ptr %5, align 4
ret i32 %19
}
declare i32 @real_umount(i32 noundef, ptr noundef) #1
declare i32 @quota_ctl(i32 noundef, i32 noundef) #1
declare i32 @quota_off(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/tmpwp0r0uq7.c'
source_filename = "/tmp/tmpwp0r0uq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"%s - Parse OPAL plaform error logs\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [445 x i8] c"Usage: %s { -d <logid> | -e <logid> | -a | -l | -s | -h } [ -p dir | -f file]\0A\0A\09-a - Display all error log entry details\0A\09-d logid - Display error log entry details\0A\09-e logid - Erase error log entry details (cannot be combined with -f)\0A\09-l - List all error logs\0A\09-s - List all service action logs\0A\09-p dir - Use dir as elog directory (default %s)\0A\09-f file - Specify elog by filename\0A\09-h - Print this message and exit\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"/var/log/opal-elog\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %5, ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwp0r0uq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"%s - Parse OPAL plaform error logs\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [445 x i8] c"Usage: %s { -d <logid> | -e <logid> | -a | -l | -s | -h } [ -p dir | -f file]\0A\0A\09-a - Display all error log entry details\0A\09-d logid - Display error log entry details\0A\09-e logid - Erase error log entry details (cannot be combined with -f)\0A\09-l - List all error logs\0A\09-s - List all service action logs\0A\09-p dir - Use dir as elog directory (default %s)\0A\09-f file - Specify elog by filename\0A\09-h - Print this message and exit\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"/var/log/opal-elog\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %5, ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqrfwoudb.c'
source_filename = "/tmp/tmpqrfwoudb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"ERROR: Must provide at least one argument!\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Done sorting... Result is {\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\08\08}\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 i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #4
unreachable
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %16, 1
%18 = zext i32 %17 to i64
%19 = call ptr @llvm.stacksave()
store ptr %19, ptr %6, align 8
%20 = alloca i32, i64 %18, align 16
store i64 %18, ptr %7, align 8
store i32 1, ptr %8, align 4
br label %21
21: ; preds = %36, %15
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %39
25: ; preds = %21
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %8, 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 i32 @atoi(ptr noundef %30)
%32 = load i32, ptr %8, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %20, i64 %34
store i32 %31, ptr %35, align 4
br label %36
36: ; preds = %25
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %8, align 4
br label %21, !llvm.loop !6
39: ; preds = %21
%40 = load i32, ptr %4, align 4
%41 = sub nsw i32 %40, 1
%42 = call i32 @bogoSort(ptr noundef %20, i32 noundef %41)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %9, align 4
br label %44
44: ; preds = %55, %39
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %4, align 4
%47 = sub nsw i32 %46, 1
%48 = icmp slt i32 %45, %47
br i1 %48, label %49, label %58
49: ; preds = %44
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %20, i64 %51
%53 = load i32, ptr %52, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %53)
br label %55
55: ; preds = %49
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
br label %44, !llvm.loop !8
58: ; preds = %44
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%60 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %60)
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @atoi(ptr noundef) #1
declare i32 @bogoSort(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqrfwoudb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"ERROR: Must provide at least one argument!\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Done sorting... Result is {\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\08\08}\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 i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #4
unreachable
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %16, 1
%18 = zext i32 %17 to i64
%19 = call ptr @llvm.stacksave()
store ptr %19, ptr %6, align 8
%20 = alloca i32, i64 %18, align 16
store i64 %18, ptr %7, align 8
store i32 1, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %41
.lr.ph: ; preds = %15
br label %24
24: ; preds = %.lr.ph, %35
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = call i32 @atoi(ptr noundef %29)
%31 = load i32, ptr %8, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %20, i64 %33
store i32 %30, ptr %34, align 4
br label %35
35: ; preds = %24
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %15
%42 = load i32, ptr %4, align 4
%43 = sub nsw i32 %42, 1
%44 = call i32 @bogoSort(ptr noundef %20, i32 noundef %43)
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %4, align 4
%48 = sub nsw i32 %47, 1
%49 = icmp slt i32 %46, %48
br i1 %49, label %.lr.ph2, label %63
.lr.ph2: ; preds = %41
br label %50
50: ; preds = %.lr.ph2, %56
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %20, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %54)
br label %56
56: ; preds = %50
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %9, align 4
%59 = load i32, ptr %9, align 4
%60 = load i32, ptr %4, align 4
%61 = sub nsw i32 %60, 1
%62 = icmp slt i32 %59, %61
br i1 %62, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %63
63: ; preds = %._crit_edge3, %41
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%65 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %65)
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @atoi(ptr noundef) #1
declare i32 @bogoSort(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpa96eczeu.c'
source_filename = "/tmp/tmpa96eczeu.c"
target datalayout = "e-m:e-p270: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/tmpa96eczeu.c"
target datalayout = "e-m:e-p270: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/tmp6nxju07j.c'
source_filename = "/tmp/tmp6nxju07j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Graphics Algorithms\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 800, ptr %1, align 4
store i32 600, ptr %2, align 4
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @gfx_open(i32 noundef %7, i32 noundef %8, ptr noundef @.str)
%10 = call i32 @gfx_color(i32 noundef 0, i32 noundef 200, i32 noundef 100)
store i32 20, ptr %3, align 4
store i32 10, ptr %4, align 4
store i32 30, ptr %5, align 4
store i32 18, ptr %6, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @bresenham(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14)
%16 = call i32 (...) @window_wait()
ret i32 0
}
declare i32 @gfx_open(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @gfx_color(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bresenham(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @window_wait(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6nxju07j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Graphics Algorithms\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 800, ptr %1, align 4
store i32 600, ptr %2, align 4
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @gfx_open(i32 noundef %7, i32 noundef %8, ptr noundef @.str)
%10 = call i32 @gfx_color(i32 noundef 0, i32 noundef 200, i32 noundef 100)
store i32 20, ptr %3, align 4
store i32 10, ptr %4, align 4
store i32 30, ptr %5, align 4
store i32 18, ptr %6, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @bresenham(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14)
%16 = call i32 (...) @window_wait()
ret i32 0
}
declare i32 @gfx_open(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @gfx_color(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bresenham(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @window_wait(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgke2ugql.c'
source_filename = "/tmp/tmpgke2ugql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ERR = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_key_pressed() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @getch()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @ERR, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %1, align 4
br label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %10
10: ; preds = %9, %7
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgke2ugql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ERR = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_key_pressed() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @getch()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @ERR, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %1, align 4
br label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %10
10: ; preds = %9, %7
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv6ild4kj.c'
source_filename = "/tmp/tmpv6ild4kj.c"
target datalayout = "e-m:e-p270: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/tmpv6ild4kj.c"
target datalayout = "e-m:e-p270: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/tmptowm98mr.c'
source_filename = "/tmp/tmptowm98mr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_mm_cmpneq_sd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_mm_cmpneq_sd(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_cmpneq_sd(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/tmptowm98mr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_mm_cmpneq_sd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_mm_cmpneq_sd(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_cmpneq_sd(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/tmpgvtsktt2.c'
source_filename = "/tmp/tmpgvtsktt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -100, ptr %2, align 4
store i32 2, ptr %3, align 4
store i32 3, ptr %4, align 4
store i32 -5, ptr %5, align 4
store i32 3, ptr %6, align 4
store i32 -100, ptr %7, align 4
br label %8
8: ; preds = %33, %0
%9 = load i32, ptr %2, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %34
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %15, %16
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 4
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 4
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %22, %23
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %25, %26
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %33
31: ; preds = %11
%32 = call i32 (...) @remove_me()
br label %33
33: ; preds = %31, %11
br label %8, !llvm.loop !6
34: ; preds = %8
%35 = load i32, ptr %1, align 4
ret i32 %35
}
declare i32 @remove_me(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpgvtsktt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -100, ptr %2, align 4
store i32 2, ptr %3, align 4
store i32 3, ptr %4, align 4
store i32 -5, ptr %5, align 4
store i32 3, ptr %6, align 4
store i32 -100, ptr %7, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %35
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %32
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %14, %15
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 4
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 4
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %21, %22
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %24, %25
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %10
%31 = call i32 (...) @remove_me()
br label %32
32: ; preds = %30, %10
%33 = load i32, ptr %2, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %35
35: ; preds = %._crit_edge, %0
%36 = load i32, ptr %1, align 4
ret i32 %36
}
declare i32 @remove_me(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpckoxe213.c'
source_filename = "/tmp/tmpckoxe213.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Please type a character :\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Thank you for typing %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 i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call signext i8 (...) @getchar()
store i8 %4, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %6)
%8 = call signext i8 (...) @getchar()
store i8 %8, ptr %2, align 1
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = call signext i8 (...) @getchar()
store i8 %12, ptr %2, align 1
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14)
%16 = call signext i8 (...) @getchar()
store i8 %16, ptr %2, align 1
%17 = load i8, ptr %2, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
%20 = call signext i8 (...) @getchar()
store i8 %20, ptr %2, align 1
%21 = load i8, ptr %2, align 1
%22 = sext i8 %21 to i32
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpckoxe213.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Please type a character :\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Thank you for typing %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 i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call signext i8 (...) @getchar()
store i8 %4, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %6)
%8 = call signext i8 (...) @getchar()
store i8 %8, ptr %2, align 1
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = call signext i8 (...) @getchar()
store i8 %12, ptr %2, align 1
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14)
%16 = call signext i8 (...) @getchar()
store i8 %16, ptr %2, align 1
%17 = load i8, ptr %2, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
%20 = call signext i8 (...) @getchar()
store i8 %20, ptr %2, align 1
%21 = load i8, ptr %2, align 1
%22 = sext i8 %21 to i32
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0v164pnc.c'
source_filename = "/tmp/tmp0v164pnc.c"
target datalayout = "e-m:e-p270: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.svc_req = type { %struct.TYPE_8__, ptr }
%struct.TYPE_8__ = type { i32 }
%struct.rpc_msg = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { %struct.TYPE_8__ }
%struct.TYPE_7__ = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i64, i32 }
@AUTH_NULL = dso_local global i32 0, align 4
@AUTH_UNIX = dso_local global i32 0, align 4
@AUTH_REJECTEDCRED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @svcbyz_authenticate(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds %struct.svc_req, ptr %7, i32 0, i32 0
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds %struct.rpc_msg, ptr %9, i32 0, i32 0
%11 = getelementptr inbounds %struct.TYPE_5__, ptr %10, i32 0, i32 0
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 4 %11, i64 4, i1 false)
%12 = load i32, ptr @AUTH_NULL, align 4
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds %struct.svc_req, ptr %13, i32 0, i32 1
%15 = load ptr, ptr %14, align 8
%16 = getelementptr inbounds %struct.TYPE_7__, ptr %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_6__, ptr %16, i32 0, i32 1
store i32 %12, ptr %17, align 8
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds %struct.svc_req, ptr %18, i32 0, i32 1
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds %struct.TYPE_7__, ptr %20, i32 0, i32 0
%22 = getelementptr inbounds %struct.TYPE_6__, ptr %21, i32 0, i32 0
store i64 0, ptr %22, align 8
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds %struct.svc_req, ptr %23, i32 0, i32 0
%25 = getelementptr inbounds %struct.TYPE_8__, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 8
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr @AUTH_UNIX, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %34
30: ; preds = %2
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %5, align 8
%33 = call i32 @svcbyz_auth_unix(ptr noundef %31, ptr noundef %32)
store i32 %33, ptr %3, align 4
br label %36
34: ; preds = %2
%35 = load i32, ptr @AUTH_REJECTEDCRED, align 4
store i32 %35, ptr %3, align 4
br label %36
36: ; preds = %34, %30
%37 = load i32, ptr %3, align 4
ret i32 %37
}
; 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 @svcbyz_auth_unix(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0v164pnc.c"
target datalayout = "e-m:e-p270: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.svc_req = type { %struct.TYPE_8__, ptr }
%struct.TYPE_8__ = type { i32 }
%struct.rpc_msg = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { %struct.TYPE_8__ }
%struct.TYPE_7__ = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i64, i32 }
@AUTH_NULL = dso_local global i32 0, align 4
@AUTH_UNIX = dso_local global i32 0, align 4
@AUTH_REJECTEDCRED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @svcbyz_authenticate(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds %struct.svc_req, ptr %7, i32 0, i32 0
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds %struct.rpc_msg, ptr %9, i32 0, i32 0
%11 = getelementptr inbounds %struct.TYPE_5__, ptr %10, i32 0, i32 0
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 4 %11, i64 4, i1 false)
%12 = load i32, ptr @AUTH_NULL, align 4
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds %struct.svc_req, ptr %13, i32 0, i32 1
%15 = load ptr, ptr %14, align 8
%16 = getelementptr inbounds %struct.TYPE_7__, ptr %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_6__, ptr %16, i32 0, i32 1
store i32 %12, ptr %17, align 8
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds %struct.svc_req, ptr %18, i32 0, i32 1
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds %struct.TYPE_7__, ptr %20, i32 0, i32 0
%22 = getelementptr inbounds %struct.TYPE_6__, ptr %21, i32 0, i32 0
store i64 0, ptr %22, align 8
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds %struct.svc_req, ptr %23, i32 0, i32 0
%25 = getelementptr inbounds %struct.TYPE_8__, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 8
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr @AUTH_UNIX, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %34
30: ; preds = %2
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %5, align 8
%33 = call i32 @svcbyz_auth_unix(ptr noundef %31, ptr noundef %32)
store i32 %33, ptr %3, align 4
br label %36
34: ; preds = %2
%35 = load i32, ptr @AUTH_REJECTEDCRED, align 4
store i32 %35, ptr %3, align 4
br label %36
36: ; preds = %34, %30
%37 = load i32, ptr %3, align 4
ret i32 %37
}
; 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 @svcbyz_auth_unix(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj178nyc9.c'
source_filename = "/tmp/tmpj178nyc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @FormatNumber(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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %4, align 4
store i32 0, ptr %5, align 4
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
store i32 0, ptr %8, align 4
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %3, align 4
br label %12
12: ; preds = %35, %1
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ult i32 %13, %14
br i1 %15, label %16, label %38
16: ; preds = %12
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 101
br i1 %23, label %32, label %24
24: ; preds = %16
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 69
br i1 %31, label %32, label %34
32: ; preds = %24, %16
store i32 1, ptr %8, align 4
%33 = load i32, ptr %3, align 4
store i32 %33, ptr %5, align 4
br label %38
34: ; preds = %24
br label %35
35: ; preds = %34
%36 = load i32, ptr %3, align 4
%37 = add i32 %36, 1
store i32 %37, ptr %3, align 4
br label %12, !llvm.loop !6
38: ; preds = %32, %12
%39 = load i32, ptr %8, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %63
41: ; preds = %38
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %5, align 4
%44 = call ptr @GetSubString(ptr noundef %42, i32 noundef 0, i32 noundef %43)
store ptr %44, ptr %6, align 8
%45 = load ptr, ptr %2, align 8
%46 = load i32, ptr %5, align 4
%47 = add i32 %46, 1
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %5, align 4
%50 = sub i32 %48, %49
%51 = sub i32 %50, 1
%52 = call ptr @GetSubString(ptr noundef %45, i32 noundef %47, i32 noundef %51)
store ptr %52, ptr %7, align 8
%53 = load ptr, ptr %6, align 8
%54 = call double @atof(ptr noundef %53)
%55 = load ptr, ptr %7, align 8
%56 = call i32 @atoi(ptr noundef %55)
%57 = call double @_Power(double noundef 1.000000e+01, i32 noundef %56)
%58 = fmul double %54, %57
store double %58, ptr %9, align 8
%59 = load ptr, ptr %6, align 8
%60 = call i32 @free(ptr noundef %59)
%61 = load ptr, ptr %7, align 8
%62 = call i32 @free(ptr noundef %61)
br label %66
63: ; preds = %38
%64 = load ptr, ptr %2, align 8
%65 = call double @atof(ptr noundef %64)
store double %65, ptr %9, align 8
br label %66
66: ; preds = %63, %41
%67 = load double, ptr %9, align 8
ret double %67
}
declare i32 @strlen(ptr noundef) #1
declare ptr @GetSubString(ptr noundef, i32 noundef, i32 noundef) #1
declare double @atof(ptr noundef) #1
declare double @_Power(double noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj178nyc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @FormatNumber(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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %4, align 4
store i32 0, ptr %5, align 4
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
store i32 0, ptr %8, align 4
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ult i32 %12, %13
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %34
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 101
br i1 %22, label %31, label %23
23: ; preds = %15
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 69
br i1 %30, label %31, label %33
31: ; preds = %23, %15
store i32 1, ptr %8, align 4
%32 = load i32, ptr %3, align 4
store i32 %32, ptr %5, align 4
br label %40
33: ; preds = %23
br label %34
34: ; preds = %33
%35 = load i32, ptr %3, align 4
%36 = add i32 %35, 1
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp ult i32 %37, %38
br i1 %39, label %15, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %34
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %40
40: ; preds = %.loopexit, %31
%41 = load i32, ptr %8, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %65
43: ; preds = %40
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %5, align 4
%46 = call ptr @GetSubString(ptr noundef %44, i32 noundef 0, i32 noundef %45)
store ptr %46, ptr %6, align 8
%47 = load ptr, ptr %2, align 8
%48 = load i32, ptr %5, align 4
%49 = add i32 %48, 1
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %5, align 4
%52 = sub i32 %50, %51
%53 = sub i32 %52, 1
%54 = call ptr @GetSubString(ptr noundef %47, i32 noundef %49, i32 noundef %53)
store ptr %54, ptr %7, align 8
%55 = load ptr, ptr %6, align 8
%56 = call double @atof(ptr noundef %55)
%57 = load ptr, ptr %7, align 8
%58 = call i32 @atoi(ptr noundef %57)
%59 = call double @_Power(double noundef 1.000000e+01, i32 noundef %58)
%60 = fmul double %56, %59
store double %60, ptr %9, align 8
%61 = load ptr, ptr %6, align 8
%62 = call i32 @free(ptr noundef %61)
%63 = load ptr, ptr %7, align 8
%64 = call i32 @free(ptr noundef %63)
br label %68
65: ; preds = %40
%66 = load ptr, ptr %2, align 8
%67 = call double @atof(ptr noundef %66)
store double %67, ptr %9, align 8
br label %68
68: ; preds = %65, %43
%69 = load double, ptr %9, align 8
ret double %69
}
declare i32 @strlen(ptr noundef) #1
declare ptr @GetSubString(ptr noundef, i32 noundef, i32 noundef) #1
declare double @atof(ptr noundef) #1
declare double @_Power(double noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf6xo87xb.c'
source_filename = "/tmp/tmpf6xo87xb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @scan_dir_or_archive(ptr noundef @.str)
ret i32 0
}
declare i32 @scan_dir_or_archive(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf6xo87xb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @scan_dir_or_archive(ptr noundef @.str)
ret i32 0
}
declare i32 @scan_dir_or_archive(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwlal88zz.c'
source_filename = "/tmp/tmpwlal88zz.c"
target datalayout = "e-m:e-p270: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/tmpwlal88zz.c"
target datalayout = "e-m:e-p270: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/tmp5ln3etl7.c'
source_filename = "/tmp/tmp5ln3etl7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Rank max : 4, \00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Rank max : 3, \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Rank max : 2, \00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Rank max : 1, \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Rank min : 4 | \00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Rank min : 3 | \00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Rank min : 2 | \00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Rank min : 1 | \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBytesAsRank(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 i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 31, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = lshr i32 %8, %9
%11 = and i32 %10, 1
%12 = icmp eq i32 %11, 1
%13 = zext i1 %12 to i32
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = sub nsw i32 %15, 1
%17 = lshr i32 %14, %16
%18 = and i32 %17, 1
%19 = icmp eq i32 %18, 1
%20 = zext i1 %19 to i32
store i32 %20, ptr %5, align 4
store i32 29, ptr %3, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = lshr i32 %21, %22
%24 = and i32 %23, 1
%25 = icmp eq i32 %24, 1
%26 = zext i1 %25 to i32
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %3, align 4
%29 = sub nsw i32 %28, 1
%30 = lshr i32 %27, %29
%31 = and i32 %30, 1
%32 = icmp eq i32 %31, 1
%33 = zext i1 %32 to i32
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %44
36: ; preds = %1
%37 = load i32, ptr %5, align 4
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(ptr noundef @.str)
br label %43
41: ; preds = %36
%42 = call i32 @printf(ptr noundef @.str.1)
br label %43
43: ; preds = %41, %39
br label %52
44: ; preds = %1
%45 = load i32, ptr %5, align 4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @printf(ptr noundef @.str.2)
br label %51
49: ; preds = %44
%50 = call i32 @printf(ptr noundef @.str.3)
br label %51
51: ; preds = %49, %47
br label %52
52: ; preds = %51, %43
%53 = load i32, ptr %6, align 4
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = load i32, ptr %7, align 4
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @printf(ptr noundef @.str.4)
br label %62
60: ; preds = %55
%61 = call i32 @printf(ptr noundef @.str.5)
br label %62
62: ; preds = %60, %58
br label %71
63: ; preds = %52
%64 = load i32, ptr %7, align 4
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = call i32 @printf(ptr noundef @.str.6)
br label %70
68: ; preds = %63
%69 = call i32 @printf(ptr noundef @.str.7)
br label %70
70: ; preds = %68, %66
br label %71
71: ; preds = %70, %62
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/tmp5ln3etl7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Rank max : 4, \00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Rank max : 3, \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Rank max : 2, \00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Rank max : 1, \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Rank min : 4 | \00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Rank min : 3 | \00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Rank min : 2 | \00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Rank min : 1 | \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBytesAsRank(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 i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 31, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = lshr i32 %8, %9
%11 = and i32 %10, 1
%12 = icmp eq i32 %11, 1
%13 = zext i1 %12 to i32
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = sub nsw i32 %15, 1
%17 = lshr i32 %14, %16
%18 = and i32 %17, 1
%19 = icmp eq i32 %18, 1
%20 = zext i1 %19 to i32
store i32 %20, ptr %5, align 4
store i32 29, ptr %3, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = lshr i32 %21, %22
%24 = and i32 %23, 1
%25 = icmp eq i32 %24, 1
%26 = zext i1 %25 to i32
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %3, align 4
%29 = sub nsw i32 %28, 1
%30 = lshr i32 %27, %29
%31 = and i32 %30, 1
%32 = icmp eq i32 %31, 1
%33 = zext i1 %32 to i32
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %44
36: ; preds = %1
%37 = load i32, ptr %5, align 4
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(ptr noundef @.str)
br label %43
41: ; preds = %36
%42 = call i32 @printf(ptr noundef @.str.1)
br label %43
43: ; preds = %41, %39
br label %52
44: ; preds = %1
%45 = load i32, ptr %5, align 4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @printf(ptr noundef @.str.2)
br label %51
49: ; preds = %44
%50 = call i32 @printf(ptr noundef @.str.3)
br label %51
51: ; preds = %49, %47
br label %52
52: ; preds = %51, %43
%53 = load i32, ptr %6, align 4
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = load i32, ptr %7, align 4
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @printf(ptr noundef @.str.4)
br label %62
60: ; preds = %55
%61 = call i32 @printf(ptr noundef @.str.5)
br label %62
62: ; preds = %60, %58
br label %71
63: ; preds = %52
%64 = load i32, ptr %7, align 4
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = call i32 @printf(ptr noundef @.str.6)
br label %70
68: ; preds = %63
%69 = call i32 @printf(ptr noundef @.str.7)
br label %70
70: ; preds = %68, %66
br label %71
71: ; preds = %70, %62
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/tmp69e7dfau.c'
source_filename = "/tmp/tmp69e7dfau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@errno = 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/tmp69e7dfau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@errno = 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/tmpvvsh50kr.c'
source_filename = "/tmp/tmpvvsh50kr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nthSuperUglyNumber(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 ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %3
store i32 0, ptr %4, align 4
br label %137
18: ; preds = %3
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %7, align 4
%21 = mul nsw i32 2, %20
%22 = add nsw i32 %19, %21
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %9, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 0
store i32 1, ptr %29, align 4
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
store ptr %33, ptr %8, align 8
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 4
%38 = trunc i64 %37 to i32
%39 = call i32 @memset(ptr noundef %34, i32 noundef 0, i32 noundef %38)
%40 = load ptr, ptr %8, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store ptr %43, ptr %10, align 8
store i32 1, ptr %11, align 4
br label %44
44: ; preds = %124, %18
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %127
48: ; preds = %44
%49 = load i32, ptr @INT_MAX, align 4
store i32 %49, ptr %13, align 4
store i32 0, ptr %12, align 4
br label %50
50: ; preds = %91, %48
%51 = load i32, ptr %12, align 4
%52 = load i32, ptr %7, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %94
54: ; preds = %50
%55 = load ptr, ptr %9, align 8
%56 = load ptr, ptr %8, align 8
%57 = load i32, ptr %12, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %55, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr %12, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %64, i64 %66
%68 = load i32, ptr %67, align 4
%69 = mul nsw i32 %63, %68
%70 = load ptr, ptr %10, align 8
%71 = load i32, ptr %12, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %70, i64 %72
store i32 %69, ptr %73, align 4
%74 = load ptr, ptr %10, align 8
%75 = load i32, ptr %12, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
%79 = load i32, ptr %13, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %87
81: ; preds = %54
%82 = load ptr, ptr %10, align 8
%83 = load i32, ptr %12, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
%86 = load i32, ptr %85, align 4
br label %89
87: ; preds = %54
%88 = load i32, ptr %13, align 4
br label %89
89: ; preds = %87, %81
%90 = phi i32 [ %86, %81 ], [ %88, %87 ]
store i32 %90, ptr %13, align 4
br label %91
91: ; preds = %89
%92 = load i32, ptr %12, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %12, align 4
br label %50, !llvm.loop !6
94: ; preds = %50
store i32 0, ptr %12, align 4
br label %95
95: ; preds = %115, %94
%96 = load i32, ptr %12, align 4
%97 = load i32, ptr %7, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %118
99: ; preds = %95
%100 = load i32, ptr %13, align 4
%101 = load ptr, ptr %10, align 8
%102 = load i32, ptr %12, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
%105 = load i32, ptr %104, align 4
%106 = icmp eq i32 %100, %105
br i1 %106, label %107, label %114
107: ; preds = %99
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %12, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
%112 = load i32, ptr %111, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %111, align 4
br label %114
114: ; preds = %107, %99
br label %115
115: ; preds = %114
%116 = load i32, ptr %12, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %12, align 4
br label %95, !llvm.loop !8
118: ; preds = %95
%119 = load i32, ptr %13, align 4
%120 = load ptr, ptr %9, align 8
%121 = load i32, ptr %11, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, ptr %120, i64 %122
store i32 %119, ptr %123, align 4
br label %124
124: ; preds = %118
%125 = load i32, ptr %11, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %11, align 4
br label %44, !llvm.loop !9
127: ; preds = %44
%128 = load ptr, ptr %9, align 8
%129 = load i32, ptr %5, align 4
%130 = sub nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, ptr %128, i64 %131
%133 = load i32, ptr %132, align 4
store i32 %133, ptr %14, align 4
%134 = load ptr, ptr %9, align 8
%135 = call i32 @free(ptr noundef %134)
%136 = load i32, ptr %14, align 4
store i32 %136, ptr %4, align 4
br label %137
137: ; preds = %127, %17
%138 = load i32, ptr %4, align 4
ret i32 %138
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvvsh50kr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nthSuperUglyNumber(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 ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %3
store i32 0, ptr %4, align 4
br label %143
18: ; preds = %3
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %7, align 4
%21 = mul nsw i32 2, %20
%22 = add nsw i32 %19, %21
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %9, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 0
store i32 1, ptr %29, align 4
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
store ptr %33, ptr %8, align 8
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 4
%38 = trunc i64 %37 to i32
%39 = call i32 @memset(ptr noundef %34, i32 noundef 0, i32 noundef %38)
%40 = load ptr, ptr %8, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store ptr %43, ptr %10, align 8
store i32 1, ptr %11, align 4
%44 = load i32, ptr %11, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %.lr.ph5, label %133
.lr.ph5: ; preds = %18
br label %47
47: ; preds = %.lr.ph5, %127
%48 = load i32, ptr @INT_MAX, align 4
store i32 %48, ptr %13, align 4
store i32 0, ptr %12, align 4
%49 = load i32, ptr %12, align 4
%50 = load i32, ptr %7, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %.lr.ph, label %95
.lr.ph: ; preds = %47
br label %52
52: ; preds = %.lr.ph, %89
%53 = load ptr, ptr %9, align 8
%54 = load ptr, ptr %8, align 8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
%58 = load i32, ptr %57, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %53, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
%67 = mul nsw i32 %61, %66
%68 = load ptr, ptr %10, align 8
%69 = load i32, ptr %12, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
store i32 %67, ptr %71, align 4
%72 = load ptr, ptr %10, align 8
%73 = load i32, ptr %12, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %13, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %85
79: ; preds = %52
%80 = load ptr, ptr %10, align 8
%81 = load i32, ptr %12, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %80, i64 %82
%84 = load i32, ptr %83, align 4
br label %87
85: ; preds = %52
%86 = load i32, ptr %13, align 4
br label %87
87: ; preds = %85, %79
%88 = phi i32 [ %84, %79 ], [ %86, %85 ]
store i32 %88, ptr %13, align 4
br label %89
89: ; preds = %87
%90 = load i32, ptr %12, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %12, align 4
%92 = load i32, ptr %12, align 4
%93 = load i32, ptr %7, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %89
br label %95
95: ; preds = %._crit_edge, %47
store i32 0, ptr %12, align 4
%96 = load i32, ptr %12, align 4
%97 = load i32, ptr %7, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %.lr.ph2, label %121
.lr.ph2: ; preds = %95
br label %99
99: ; preds = %.lr.ph2, %115
%100 = load i32, ptr %13, align 4
%101 = load ptr, ptr %10, align 8
%102 = load i32, ptr %12, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
%105 = load i32, ptr %104, align 4
%106 = icmp eq i32 %100, %105
br i1 %106, label %107, label %114
107: ; preds = %99
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %12, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
%112 = load i32, ptr %111, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %111, align 4
br label %114
114: ; preds = %107, %99
br label %115
115: ; preds = %114
%116 = load i32, ptr %12, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %12, align 4
%118 = load i32, ptr %12, align 4
%119 = load i32, ptr %7, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %99, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %115
br label %121
121: ; preds = %._crit_edge3, %95
%122 = load i32, ptr %13, align 4
%123 = load ptr, ptr %9, align 8
%124 = load i32, ptr %11, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %123, i64 %125
store i32 %122, ptr %126, align 4
br label %127
127: ; preds = %121
%128 = load i32, ptr %11, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %11, align 4
%130 = load i32, ptr %11, align 4
%131 = load i32, ptr %5, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %47, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %127
br label %133
133: ; preds = %._crit_edge6, %18
%134 = load ptr, ptr %9, align 8
%135 = load i32, ptr %5, align 4
%136 = sub nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, ptr %134, i64 %137
%139 = load i32, ptr %138, align 4
store i32 %139, ptr %14, align 4
%140 = load ptr, ptr %9, align 8
%141 = call i32 @free(ptr noundef %140)
%142 = load i32, ptr %14, align 4
store i32 %142, ptr %4, align 4
br label %143
143: ; preds = %133, %17
%144 = load i32, ptr %4, align 4
ret i32 %144
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp9196d0m1.c'
source_filename = "/tmp/tmp9196d0m1.c"
target datalayout = "e-m:e-p270: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 [54 x i8] c"random_name(): malloc() failed: insufficient memory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @random_name(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = add i32 %7, 1
%9 = call i64 @malloc(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %17, label %13
13: ; preds = %1
%14 = load i32, ptr @stderr, align 4
%15 = call ptr @gettext(ptr noundef @.str)
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef %15)
store ptr null, ptr %2, align 8
br label %62
17: ; preds = %1
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %3, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 0, ptr %21, align 1
store i32 0, ptr %6, align 4
br label %22
22: ; preds = %57, %17
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp ult i32 %23, %24
br i1 %25, label %26, label %60
26: ; preds = %22
br label %27
27: ; preds = %48, %26
%28 = call i64 (...) @rand()
%29 = trunc i64 %28 to i32
%30 = urem i32 %29, 123
store i32 %30, ptr %5, align 4
br label %31
31: ; preds = %27
%32 = load i32, ptr %5, align 4
%33 = icmp ult i32 %32, 48
br i1 %33, label %48, label %34
34: ; preds = %31
%35 = load i32, ptr %5, align 4
%36 = icmp ugt i32 %35, 57
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr %5, align 4
%39 = icmp ult i32 %38, 65
br i1 %39, label %48, label %40
40: ; preds = %37, %34
%41 = load i32, ptr %5, align 4
%42 = icmp ugt i32 %41, 90
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load i32, ptr %5, align 4
%45 = icmp ult i32 %44, 97
br label %46
46: ; preds = %43, %40
%47 = phi i1 [ false, %40 ], [ %45, %43 ]
br label %48
48: ; preds = %46, %37, %31
%49 = phi i1 [ true, %37 ], [ true, %31 ], [ %47, %46 ]
br i1 %49, label %27, label %50, !llvm.loop !6
50: ; preds = %48
%51 = load i32, ptr %5, align 4
%52 = trunc i32 %51 to i8
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 %52, ptr %56, align 1
br label %57
57: ; preds = %50
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
br label %22, !llvm.loop !8
60: ; preds = %22
%61 = load ptr, ptr %4, align 8
store ptr %61, ptr %2, align 8
br label %62
62: ; preds = %60, %13
%63 = load ptr, ptr %2, align 8
ret ptr %63
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @gettext(ptr noundef) #1
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9196d0m1.c"
target datalayout = "e-m:e-p270: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 [54 x i8] c"random_name(): malloc() failed: insufficient memory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @random_name(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = add i32 %7, 1
%9 = call i64 @malloc(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %17, label %13
13: ; preds = %1
%14 = load i32, ptr @stderr, align 4
%15 = call ptr @gettext(ptr noundef @.str)
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef %15)
store ptr null, ptr %2, align 8
br label %64
17: ; preds = %1
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %3, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 0, ptr %21, align 1
store i32 0, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp ult i32 %22, %23
br i1 %24, label %.lr.ph, label %62
.lr.ph: ; preds = %17
br label %25
25: ; preds = %.lr.ph, %56
br label %26
26: ; preds = %47, %25
%27 = call i64 (...) @rand()
%28 = trunc i64 %27 to i32
%29 = urem i32 %28, 123
store i32 %29, ptr %5, align 4
br label %30
30: ; preds = %26
%31 = load i32, ptr %5, align 4
%32 = icmp ult i32 %31, 48
br i1 %32, label %47, label %33
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = icmp ugt i32 %34, 57
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load i32, ptr %5, align 4
%38 = icmp ult i32 %37, 65
br i1 %38, label %47, label %39
39: ; preds = %36, %33
%40 = load i32, ptr %5, align 4
%41 = icmp ugt i32 %40, 90
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load i32, ptr %5, align 4
%44 = icmp ult i32 %43, 97
br label %45
45: ; preds = %42, %39
%46 = phi i1 [ false, %39 ], [ %44, %42 ]
br label %47
47: ; preds = %45, %36, %30
%48 = phi i1 [ true, %36 ], [ true, %30 ], [ %46, %45 ]
br i1 %48, label %26, label %49, !llvm.loop !6
49: ; preds = %47
%50 = load i32, ptr %5, align 4
%51 = trunc i32 %50 to i8
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 %51, ptr %55, align 1
br label %56
56: ; preds = %49
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %3, align 4
%61 = icmp ult i32 %59, %60
br i1 %61, label %25, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %17
%63 = load ptr, ptr %4, align 8
store ptr %63, ptr %2, align 8
br label %64
64: ; preds = %62, %13
%65 = load ptr, ptr %2, align 8
ret ptr %65
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @gettext(ptr noundef) #1
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6_zc4rbi.c'
source_filename = "/tmp/tmp6_zc4rbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_line(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
br label %4
4: ; preds = %16, %1
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 10
br i1 %8, label %9, label %19
9: ; preds = %4
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = call i64 @check_char(ptr noundef %10, ptr noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %9
store i32 1, ptr %2, align 4
br label %20
16: ; preds = %9
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %3, align 8
br label %4, !llvm.loop !6
19: ; preds = %4
store i32 0, ptr %2, align 4
br label %20
20: ; preds = %19, %15
%21 = load i32, ptr %2, align 4
ret i32 %21
}
declare i64 @check_char(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/tmp6_zc4rbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_line(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 10
br i1 %7, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %15
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 1
%12 = call i64 @check_char(ptr noundef %9, ptr noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %8
store i32 1, ptr %2, align 4
br label %23
15: ; preds = %8
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 10
br i1 %21, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %22
22: ; preds = %._crit_edge, %1
store i32 0, ptr %2, align 4
br label %23
23: ; preds = %22, %14
%24 = load i32, ptr %2, align 4
ret i32 %24
}
declare i64 @check_char(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/tmps_sdyd7y.c'
source_filename = "/tmp/tmps_sdyd7y.c"
target datalayout = "e-m:e-p270: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/tmps_sdyd7y.c"
target datalayout = "e-m:e-p270: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/tmp956gm0yh.c'
source_filename = "/tmp/tmp956gm0yh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mkdir_as(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @mkdir(ptr noundef %9, i32 noundef 493)
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = call i32 @chown(ptr noundef %14, i32 noundef %15, i32 noundef %16)
store i32 %17, ptr %4, align 4
br label %25
18: ; preds = %3
%19 = load i64, ptr @errno, align 8
%20 = load i64, ptr @EEXIST, align 8
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 0, ptr %4, align 4
br label %25
23: ; preds = %18
%24 = load i32, ptr %8, align 4
store i32 %24, ptr %4, align 4
br label %25
25: ; preds = %23, %22, %13
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @chown(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp956gm0yh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mkdir_as(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @mkdir(ptr noundef %9, i32 noundef 493)
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = call i32 @chown(ptr noundef %14, i32 noundef %15, i32 noundef %16)
store i32 %17, ptr %4, align 4
br label %25
18: ; preds = %3
%19 = load i64, ptr @errno, align 8
%20 = load i64, ptr @EEXIST, align 8
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 0, ptr %4, align 4
br label %25
23: ; preds = %18
%24 = load i32, ptr %8, align 4
store i32 %24, ptr %4, align 4
br label %25
25: ; preds = %23, %22, %13
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @chown(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxn08dc9k.c'
source_filename = "/tmp/tmpxn08dc9k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Mio padre \C3\A8: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\0AMio padre \C3\A8: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Io sono il processo %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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call i32 (...) @fork()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %23
7: ; preds = %0
%8 = call i32 (...) @getppid()
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = call i32 @sleep(i32 noundef 2)
store i32 0, ptr %3, align 4
br label %11
11: ; preds = %17, %7
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 100
br i1 %13, label %14, label %20
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = call i32 @printf(ptr noundef @.str.1, i32 noundef %15)
br label %17
17: ; preds = %14
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %11, !llvm.loop !6
20: ; preds = %11
%21 = call i32 (...) @getppid()
%22 = call i32 @printf(ptr noundef @.str.2, i32 noundef %21)
br label %27
23: ; preds = %0
%24 = call i32 (...) @getpid()
%25 = call i32 @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = call i32 @sleep(i32 noundef 1)
br label %27
27: ; preds = %23, %20
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getppid(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxn08dc9k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Mio padre \C3\A8: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\0AMio padre \C3\A8: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Io sono il processo %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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call i32 (...) @fork()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %24
7: ; preds = %0
%8 = call i32 (...) @getppid()
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = call i32 @sleep(i32 noundef 2)
store i32 0, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %11, 100
br i1 %12, label %.lr.ph, label %21
.lr.ph: ; preds = %7
br label %13
13: ; preds = %.lr.ph, %16
%14 = load i32, ptr %3, align 4
%15 = call i32 @printf(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %19, 100
br i1 %20, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %7
%22 = call i32 (...) @getppid()
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
br label %28
24: ; preds = %0
%25 = call i32 (...) @getpid()
%26 = call i32 @printf(ptr noundef @.str.3, i32 noundef %25)
%27 = call i32 @sleep(i32 noundef 1)
br label %28
28: ; preds = %24, %21
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getppid(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzobjegtd.c'
source_filename = "/tmp/tmpzobjegtd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"*****************ODHGIES:*****************\0A\00", align 1
@.str.1 = private unnamed_addr constant [109 x i8] c"EPILEXTE: \0A-eite paixth me vash to id tou\0A-eite 0 gia exodo\0A-eite otidhpote allo gia provolh neas kartelas.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = 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/tmpzobjegtd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"*****************ODHGIES:*****************\0A\00", align 1
@.str.1 = private unnamed_addr constant [109 x i8] c"EPILEXTE: \0A-eite paixth me vash to id tou\0A-eite 0 gia exodo\0A-eite otidhpote allo gia provolh neas kartelas.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = 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/tmp4wu3ahev.c'
source_filename = "/tmp/tmp4wu3ahev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @region_uninit(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 @assert(ptr noundef %3)
ret void
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4wu3ahev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @region_uninit(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 @assert(ptr noundef %3)
ret void
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa5e8v63c.c'
source_filename = "/tmp/tmpa5e8v63c.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"unbalanced brackets in constraint\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"unbalanced brackets in constraints\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"unbalanced brackets in constraint string\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @constrain_ptypes(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca i8, align 1
%21 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%22 = load ptr, ptr %7, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %6
br label %546
25: ; preds = %6
%26 = load ptr, ptr %7, align 8
%27 = call i64 @strlen(ptr noundef %26)
%28 = trunc i64 %27 to i32
store i32 %28, ptr %13, align 4
%29 = load i32, ptr %13, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = mul i64 4, %31
%33 = trunc i64 %32 to i32
%34 = call ptr @vrna_alloc(i32 noundef %33)
store ptr %34, ptr %19, align 8
%35 = load i32, ptr %12, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %310, label %37
37: ; preds = %25
%38 = load i32, ptr %8, align 4
%39 = call ptr @vrna_idx_col_wise(i32 noundef %38)
store ptr %39, ptr %21, align 8
store i32 0, ptr %18, align 4
store i32 1, ptr %15, align 4
br label %40
40: ; preds = %306, %37
%41 = load i32, ptr %15, align 4
%42 = load i32, ptr %13, align 4
%43 = icmp sle i32 %41, %42
br i1 %43, label %44, label %309
44: ; preds = %40
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr %15, align 4
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %45, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
switch i32 %51, label %305 [
i32 124, label %52
i32 120, label %61
i32 40, label %106
i32 60, label %113
i32 41, label %135
i32 62, label %281
]
52: ; preds = %44
%53 = load ptr, ptr %10, align 8
%54 = icmp ne ptr %53, null
br i1 %54, label %55, label %60
55: ; preds = %52
%56 = load ptr, ptr %10, align 8
%57 = load i32, ptr %15, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
store i32 -1, ptr %59, align 4
br label %60
60: ; preds = %55, %52
br label %305
61: ; preds = %44
store i32 1, ptr %17, align 4
br label %62
62: ; preds = %79, %61
%63 = load i32, ptr %17, align 4
%64 = load i32, ptr %15, align 4
%65 = load i32, ptr %11, align 4
%66 = sub nsw i32 %64, %65
%67 = icmp slt i32 %63, %66
br i1 %67, label %68, label %82
68: ; preds = %62
%69 = load ptr, ptr %9, align 8
%70 = load ptr, ptr %21, align 8
%71 = load i32, ptr %15, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %70, i64 %72
%74 = load i32, ptr %73, align 4
%75 = load i32, ptr %17, align 4
%76 = add nsw i32 %74, %75
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %69, i64 %77
store i8 0, ptr %78, align 1
br label %79
79: ; preds = %68
%80 = load i32, ptr %17, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %17, align 4
br label %62, !llvm.loop !6
82: ; preds = %62
%83 = load i32, ptr %15, align 4
%84 = load i32, ptr %11, align 4
%85 = add nsw i32 %83, %84
%86 = add nsw i32 %85, 1
store i32 %86, ptr %17, align 4
br label %87
87: ; preds = %102, %82
%88 = load i32, ptr %17, align 4
%89 = load i32, ptr %8, align 4
%90 = icmp sle i32 %88, %89
br i1 %90, label %91, label %105
91: ; preds = %87
%92 = load ptr, ptr %9, align 8
%93 = load ptr, ptr %21, align 8
%94 = load i32, ptr %17, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
%97 = load i32, ptr %96, align 4
%98 = load i32, ptr %15, align 4
%99 = add nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %92, i64 %100
store i8 0, ptr %101, align 1
br label %102
102: ; preds = %91
%103 = load i32, ptr %17, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %17, align 4
br label %87, !llvm.loop !8
105: ; preds = %87
br label %305
106: ; preds = %44
%107 = load i32, ptr %15, align 4
%108 = load ptr, ptr %19, align 8
%109 = load i32, ptr %18, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %18, align 4
%111 = sext i32 %109 to i64
%112 = getelementptr inbounds i32, ptr %108, i64 %111
store i32 %107, ptr %112, align 4
br label %113
113: ; preds = %44, %106
store i32 1, ptr %17, align 4
br label %114
114: ; preds = %131, %113
%115 = load i32, ptr %17, align 4
%116 = load i32, ptr %15, align 4
%117 = load i32, ptr %11, align 4
%118 = sub nsw i32 %116, %117
%119 = icmp slt i32 %115, %118
br i1 %119, label %120, label %134
120: ; preds = %114
%121 = load ptr, ptr %9, align 8
%122 = load ptr, ptr %21, align 8
%123 = load i32, ptr %15, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, ptr %122, i64 %124
%126 = load i32, ptr %125, align 4
%127 = load i32, ptr %17, align 4
%128 = add nsw i32 %126, %127
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8, ptr %121, i64 %129
store i8 0, ptr %130, align 1
br label %131
131: ; preds = %120
%132 = load i32, ptr %17, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %17, align 4
br label %114, !llvm.loop !9
134: ; preds = %114
br label %305
135: ; preds = %44
%136 = load i32, ptr %18, align 4
%137 = icmp sle i32 %136, 0
br i1 %137, label %138, label %143
138: ; preds = %135
%139 = load i32, ptr @stderr, align 4
%140 = load ptr, ptr %7, align 8
%141 = call i32 @fprintf(i32 noundef %139, ptr noundef @.str, ptr noundef %140)
%142 = call i32 @vrna_message_error(ptr noundef @.str.1)
br label %143
143: ; preds = %138, %135
%144 = load ptr, ptr %19, align 8
%145 = load i32, ptr %18, align 4
%146 = add nsw i32 %145, -1
store i32 %146, ptr %18, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i32, ptr %144, i64 %147
%149 = load i32, ptr %148, align 4
store i32 %149, ptr %14, align 4
%150 = load ptr, ptr %9, align 8
%151 = load ptr, ptr %21, align 8
%152 = load i32, ptr %15, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, ptr %151, i64 %153
%155 = load i32, ptr %154, align 4
%156 = load i32, ptr %14, align 4
%157 = add nsw i32 %155, %156
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i8, ptr %150, i64 %158
%160 = load i8, ptr %159, align 1
store i8 %160, ptr %20, align 1
%161 = load i32, ptr %14, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %16, align 4
br label %163
163: ; preds = %178, %143
%164 = load i32, ptr %16, align 4
%165 = load i32, ptr %8, align 4
%166 = icmp sle i32 %164, %165
br i1 %166, label %167, label %181
167: ; preds = %163
%168 = load ptr, ptr %9, align 8
%169 = load ptr, ptr %21, align 8
%170 = load i32, ptr %16, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i32, ptr %169, i64 %171
%173 = load i32, ptr %172, align 4
%174 = load i32, ptr %14, align 4
%175 = add nsw i32 %173, %174
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds i8, ptr %168, i64 %176
store i8 0, ptr %177, align 1
br label %178
178: ; preds = %167
%179 = load i32, ptr %16, align 4
%180 = add nsw i32 %179, 1
store i32 %180, ptr %16, align 4
br label %163, !llvm.loop !10
181: ; preds = %163
%182 = load i32, ptr %15, align 4
store i32 %182, ptr %17, align 4
br label %183
183: ; preds = %209, %181
%184 = load i32, ptr %17, align 4
%185 = load i32, ptr %8, align 4
%186 = icmp sle i32 %184, %185
br i1 %186, label %187, label %212
187: ; preds = %183
%188 = load i32, ptr %14, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %16, align 4
br label %190
190: ; preds = %205, %187
%191 = load i32, ptr %16, align 4
%192 = load i32, ptr %15, align 4
%193 = icmp sle i32 %191, %192
br i1 %193, label %194, label %208
194: ; preds = %190
%195 = load ptr, ptr %9, align 8
%196 = load ptr, ptr %21, align 8
%197 = load i32, ptr %17, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i32, ptr %196, i64 %198
%200 = load i32, ptr %199, align 4
%201 = load i32, ptr %16, align 4
%202 = add nsw i32 %200, %201
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds i8, ptr %195, i64 %203
store i8 0, ptr %204, align 1
br label %205
205: ; preds = %194
%206 = load i32, ptr %16, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %16, align 4
br label %190, !llvm.loop !11
208: ; preds = %190
br label %209
209: ; preds = %208
%210 = load i32, ptr %17, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %17, align 4
br label %183, !llvm.loop !12
212: ; preds = %183
%213 = load i32, ptr %14, align 4
store i32 %213, ptr %17, align 4
br label %214
214: ; preds = %238, %212
%215 = load i32, ptr %17, align 4
%216 = load i32, ptr %15, align 4
%217 = icmp sle i32 %215, %216
br i1 %217, label %218, label %241
218: ; preds = %214
store i32 1, ptr %16, align 4
br label %219
219: ; preds = %234, %218
%220 = load i32, ptr %16, align 4
%221 = load i32, ptr %14, align 4
%222 = icmp sle i32 %220, %221
br i1 %222, label %223, label %237
223: ; preds = %219
%224 = load ptr, ptr %9, align 8
%225 = load ptr, ptr %21, align 8
%226 = load i32, ptr %17, align 4
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i32, ptr %225, i64 %227
%229 = load i32, ptr %228, align 4
%230 = load i32, ptr %16, align 4
%231 = add nsw i32 %229, %230
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds i8, ptr %224, i64 %232
store i8 0, ptr %233, align 1
br label %234
234: ; preds = %223
%235 = load i32, ptr %16, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr %16, align 4
br label %219, !llvm.loop !13
237: ; preds = %219
br label %238
238: ; preds = %237
%239 = load i32, ptr %17, align 4
%240 = add nsw i32 %239, 1
store i32 %240, ptr %17, align 4
br label %214, !llvm.loop !14
241: ; preds = %214
store i32 1, ptr %16, align 4
br label %242
242: ; preds = %257, %241
%243 = load i32, ptr %16, align 4
%244 = load i32, ptr %15, align 4
%245 = icmp slt i32 %243, %244
br i1 %245, label %246, label %260
246: ; preds = %242
%247 = load ptr, ptr %9, align 8
%248 = load ptr, ptr %21, align 8
%249 = load i32, ptr %15, align 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds i32, ptr %248, i64 %250
%252 = load i32, ptr %251, align 4
%253 = load i32, ptr %16, align 4
%254 = add nsw i32 %252, %253
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds i8, ptr %247, i64 %255
store i8 0, ptr %256, align 1
br label %257
257: ; preds = %246
%258 = load i32, ptr %16, align 4
%259 = add nsw i32 %258, 1
store i32 %259, ptr %16, align 4
br label %242, !llvm.loop !15
260: ; preds = %242
%261 = load i8, ptr %20, align 1
%262 = sext i8 %261 to i32
%263 = icmp eq i32 %262, 0
br i1 %263, label %264, label %265
264: ; preds = %260
br label %268
265: ; preds = %260
%266 = load i8, ptr %20, align 1
%267 = sext i8 %266 to i32
br label %268
268: ; preds = %265, %264
%269 = phi i32 [ 7, %264 ], [ %267, %265 ]
%270 = trunc i32 %269 to i8
%271 = load ptr, ptr %9, align 8
%272 = load ptr, ptr %21, align 8
%273 = load i32, ptr %15, align 4
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds i32, ptr %272, i64 %274
%276 = load i32, ptr %275, align 4
%277 = load i32, ptr %14, align 4
%278 = add nsw i32 %276, %277
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds i8, ptr %271, i64 %279
store i8 %270, ptr %280, align 1
br label %281
281: ; preds = %44, %268
%282 = load i32, ptr %15, align 4
%283 = load i32, ptr %11, align 4
%284 = add nsw i32 %282, %283
%285 = add nsw i32 %284, 1
store i32 %285, ptr %17, align 4
br label %286
286: ; preds = %301, %281
%287 = load i32, ptr %17, align 4
%288 = load i32, ptr %8, align 4
%289 = icmp sle i32 %287, %288
br i1 %289, label %290, label %304
290: ; preds = %286
%291 = load ptr, ptr %9, align 8
%292 = load ptr, ptr %21, align 8
%293 = load i32, ptr %17, align 4
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds i32, ptr %292, i64 %294
%296 = load i32, ptr %295, align 4
%297 = load i32, ptr %15, align 4
%298 = add nsw i32 %296, %297
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds i8, ptr %291, i64 %299
store i8 0, ptr %300, align 1
br label %301
301: ; preds = %290
%302 = load i32, ptr %17, align 4
%303 = add nsw i32 %302, 1
store i32 %303, ptr %17, align 4
br label %286, !llvm.loop !16
304: ; preds = %286
br label %305
305: ; preds = %44, %304, %134, %105, %60
br label %306
306: ; preds = %305
%307 = load i32, ptr %15, align 4
%308 = add nsw i32 %307, 1
store i32 %308, ptr %15, align 4
br label %40, !llvm.loop !17
309: ; preds = %40
br label %533
310: ; preds = %25
%311 = load i32, ptr %8, align 4
%312 = call ptr @vrna_idx_row_wise(i32 noundef %311)
store ptr %312, ptr %21, align 8
store i32 0, ptr %18, align 4
store i32 1, ptr %15, align 4
br label %313
313: ; preds = %529, %310
%314 = load i32, ptr %15, align 4
%315 = load i32, ptr %13, align 4
%316 = icmp sle i32 %314, %315
br i1 %316, label %317, label %532
317: ; preds = %313
%318 = load ptr, ptr %7, align 8
%319 = load i32, ptr %15, align 4
%320 = sub nsw i32 %319, 1
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds i8, ptr %318, i64 %321
%323 = load i8, ptr %322, align 1
%324 = sext i8 %323 to i32
switch i32 %324, label %528 [
i32 120, label %325
i32 40, label %370
i32 60, label %377
i32 41, label %399
i32 62, label %504
]
325: ; preds = %317
store i32 1, ptr %17, align 4
br label %326
326: ; preds = %343, %325
%327 = load i32, ptr %17, align 4
%328 = load i32, ptr %15, align 4
%329 = load i32, ptr %11, align 4
%330 = sub nsw i32 %328, %329
%331 = icmp slt i32 %327, %330
br i1 %331, label %332, label %346
332: ; preds = %326
%333 = load ptr, ptr %9, align 8
%334 = load ptr, ptr %21, align 8
%335 = load i32, ptr %17, align 4
%336 = sext i32 %335 to i64
%337 = getelementptr inbounds i32, ptr %334, i64 %336
%338 = load i32, ptr %337, align 4
%339 = load i32, ptr %15, align 4
%340 = sub nsw i32 %338, %339
%341 = sext i32 %340 to i64
%342 = getelementptr inbounds i8, ptr %333, i64 %341
store i8 0, ptr %342, align 1
br label %343
343: ; preds = %332
%344 = load i32, ptr %17, align 4
%345 = add nsw i32 %344, 1
store i32 %345, ptr %17, align 4
br label %326, !llvm.loop !18
346: ; preds = %326
%347 = load i32, ptr %15, align 4
%348 = load i32, ptr %11, align 4
%349 = add nsw i32 %347, %348
%350 = add nsw i32 %349, 1
store i32 %350, ptr %17, align 4
br label %351
351: ; preds = %366, %346
%352 = load i32, ptr %17, align 4
%353 = load i32, ptr %8, align 4
%354 = icmp sle i32 %352, %353
br i1 %354, label %355, label %369
355: ; preds = %351
%356 = load ptr, ptr %9, align 8
%357 = load ptr, ptr %21, align 8
%358 = load i32, ptr %15, align 4
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds i32, ptr %357, i64 %359
%361 = load i32, ptr %360, align 4
%362 = load i32, ptr %17, align 4
%363 = sub nsw i32 %361, %362
%364 = sext i32 %363 to i64
%365 = getelementptr inbounds i8, ptr %356, i64 %364
store i8 0, ptr %365, align 1
br label %366
366: ; preds = %355
%367 = load i32, ptr %17, align 4
%368 = add nsw i32 %367, 1
store i32 %368, ptr %17, align 4
br label %351, !llvm.loop !19
369: ; preds = %351
br label %528
370: ; preds = %317
%371 = load i32, ptr %15, align 4
%372 = load ptr, ptr %19, align 8
%373 = load i32, ptr %18, align 4
%374 = add nsw i32 %373, 1
store i32 %374, ptr %18, align 4
%375 = sext i32 %373 to i64
%376 = getelementptr inbounds i32, ptr %372, i64 %375
store i32 %371, ptr %376, align 4
br label %377
377: ; preds = %317, %370
store i32 1, ptr %17, align 4
br label %378
378: ; preds = %395, %377
%379 = load i32, ptr %17, align 4
%380 = load i32, ptr %15, align 4
%381 = load i32, ptr %11, align 4
%382 = sub nsw i32 %380, %381
%383 = icmp slt i32 %379, %382
br i1 %383, label %384, label %398
384: ; preds = %378
%385 = load ptr, ptr %9, align 8
%386 = load ptr, ptr %21, align 8
%387 = load i32, ptr %17, align 4
%388 = sext i32 %387 to i64
%389 = getelementptr inbounds i32, ptr %386, i64 %388
%390 = load i32, ptr %389, align 4
%391 = load i32, ptr %15, align 4
%392 = sub nsw i32 %390, %391
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds i8, ptr %385, i64 %393
store i8 0, ptr %394, align 1
br label %395
395: ; preds = %384
%396 = load i32, ptr %17, align 4
%397 = add nsw i32 %396, 1
store i32 %397, ptr %17, align 4
br label %378, !llvm.loop !20
398: ; preds = %378
br label %528
399: ; preds = %317
%400 = load i32, ptr %18, align 4
%401 = icmp sle i32 %400, 0
br i1 %401, label %402, label %407
402: ; preds = %399
%403 = load i32, ptr @stderr, align 4
%404 = load ptr, ptr %7, align 8
%405 = call i32 @fprintf(i32 noundef %403, ptr noundef @.str, ptr noundef %404)
%406 = call i32 @vrna_message_error(ptr noundef @.str.2)
br label %407
407: ; preds = %402, %399
%408 = load ptr, ptr %19, align 8
%409 = load i32, ptr %18, align 4
%410 = add nsw i32 %409, -1
store i32 %410, ptr %18, align 4
%411 = sext i32 %410 to i64
%412 = getelementptr inbounds i32, ptr %408, i64 %411
%413 = load i32, ptr %412, align 4
store i32 %413, ptr %14, align 4
%414 = load ptr, ptr %9, align 8
%415 = load ptr, ptr %21, align 8
%416 = load i32, ptr %14, align 4
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds i32, ptr %415, i64 %417
%419 = load i32, ptr %418, align 4
%420 = load i32, ptr %15, align 4
%421 = sub nsw i32 %419, %420
%422 = sext i32 %421 to i64
%423 = getelementptr inbounds i8, ptr %414, i64 %422
%424 = load i8, ptr %423, align 1
store i8 %424, ptr %20, align 1
%425 = load i32, ptr %14, align 4
store i32 %425, ptr %16, align 4
br label %426
426: ; preds = %451, %407
%427 = load i32, ptr %16, align 4
%428 = load i32, ptr %15, align 4
%429 = icmp sle i32 %427, %428
br i1 %429, label %430, label %454
430: ; preds = %426
%431 = load i32, ptr %15, align 4
store i32 %431, ptr %17, align 4
br label %432
432: ; preds = %447, %430
%433 = load i32, ptr %17, align 4
%434 = load i32, ptr %8, align 4
%435 = icmp sle i32 %433, %434
br i1 %435, label %436, label %450
436: ; preds = %432
%437 = load ptr, ptr %9, align 8
%438 = load ptr, ptr %21, align 8
%439 = load i32, ptr %16, align 4
%440 = sext i32 %439 to i64
%441 = getelementptr inbounds i32, ptr %438, i64 %440
%442 = load i32, ptr %441, align 4
%443 = load i32, ptr %17, align 4
%444 = sub nsw i32 %442, %443
%445 = sext i32 %444 to i64
%446 = getelementptr inbounds i8, ptr %437, i64 %445
store i8 0, ptr %446, align 1
br label %447
447: ; preds = %436
%448 = load i32, ptr %17, align 4
%449 = add nsw i32 %448, 1
store i32 %449, ptr %17, align 4
br label %432, !llvm.loop !21
450: ; preds = %432
br label %451
451: ; preds = %450
%452 = load i32, ptr %16, align 4
%453 = add nsw i32 %452, 1
store i32 %453, ptr %16, align 4
br label %426, !llvm.loop !22
454: ; preds = %426
store i32 1, ptr %16, align 4
br label %455
455: ; preds = %480, %454
%456 = load i32, ptr %16, align 4
%457 = load i32, ptr %14, align 4
%458 = icmp sle i32 %456, %457
br i1 %458, label %459, label %483
459: ; preds = %455
%460 = load i32, ptr %14, align 4
store i32 %460, ptr %17, align 4
br label %461
461: ; preds = %476, %459
%462 = load i32, ptr %17, align 4
%463 = load i32, ptr %15, align 4
%464 = icmp sle i32 %462, %463
br i1 %464, label %465, label %479
465: ; preds = %461
%466 = load ptr, ptr %9, align 8
%467 = load ptr, ptr %21, align 8
%468 = load i32, ptr %16, align 4
%469 = sext i32 %468 to i64
%470 = getelementptr inbounds i32, ptr %467, i64 %469
%471 = load i32, ptr %470, align 4
%472 = load i32, ptr %17, align 4
%473 = sub nsw i32 %471, %472
%474 = sext i32 %473 to i64
%475 = getelementptr inbounds i8, ptr %466, i64 %474
store i8 0, ptr %475, align 1
br label %476
476: ; preds = %465
%477 = load i32, ptr %17, align 4
%478 = add nsw i32 %477, 1
store i32 %478, ptr %17, align 4
br label %461, !llvm.loop !23
479: ; preds = %461
br label %480
480: ; preds = %479
%481 = load i32, ptr %16, align 4
%482 = add nsw i32 %481, 1
store i32 %482, ptr %16, align 4
br label %455, !llvm.loop !24
483: ; preds = %455
%484 = load i8, ptr %20, align 1
%485 = sext i8 %484 to i32
%486 = icmp eq i32 %485, 0
br i1 %486, label %487, label %488
487: ; preds = %483
br label %491
488: ; preds = %483
%489 = load i8, ptr %20, align 1
%490 = sext i8 %489 to i32
br label %491
491: ; preds = %488, %487
%492 = phi i32 [ 7, %487 ], [ %490, %488 ]
%493 = trunc i32 %492 to i8
%494 = load ptr, ptr %9, align 8
%495 = load ptr, ptr %21, align 8
%496 = load i32, ptr %14, align 4
%497 = sext i32 %496 to i64
%498 = getelementptr inbounds i32, ptr %495, i64 %497
%499 = load i32, ptr %498, align 4
%500 = load i32, ptr %15, align 4
%501 = sub nsw i32 %499, %500
%502 = sext i32 %501 to i64
%503 = getelementptr inbounds i8, ptr %494, i64 %502
store i8 %493, ptr %503, align 1
br label %504
504: ; preds = %317, %491
%505 = load i32, ptr %15, align 4
%506 = load i32, ptr %11, align 4
%507 = add nsw i32 %505, %506
%508 = add nsw i32 %507, 1
store i32 %508, ptr %17, align 4
br label %509
509: ; preds = %524, %504
%510 = load i32, ptr %17, align 4
%511 = load i32, ptr %8, align 4
%512 = icmp sle i32 %510, %511
br i1 %512, label %513, label %527
513: ; preds = %509
%514 = load ptr, ptr %9, align 8
%515 = load ptr, ptr %21, align 8
%516 = load i32, ptr %15, align 4
%517 = sext i32 %516 to i64
%518 = getelementptr inbounds i32, ptr %515, i64 %517
%519 = load i32, ptr %518, align 4
%520 = load i32, ptr %17, align 4
%521 = sub nsw i32 %519, %520
%522 = sext i32 %521 to i64
%523 = getelementptr inbounds i8, ptr %514, i64 %522
store i8 0, ptr %523, align 1
br label %524
524: ; preds = %513
%525 = load i32, ptr %17, align 4
%526 = add nsw i32 %525, 1
store i32 %526, ptr %17, align 4
br label %509, !llvm.loop !25
527: ; preds = %509
br label %528
528: ; preds = %317, %527, %398, %369
br label %529
529: ; preds = %528
%530 = load i32, ptr %15, align 4
%531 = add nsw i32 %530, 1
store i32 %531, ptr %15, align 4
br label %313, !llvm.loop !26
532: ; preds = %313
br label %533
533: ; preds = %532, %309
%534 = load i32, ptr %18, align 4
%535 = icmp ne i32 %534, 0
br i1 %535, label %536, label %541
536: ; preds = %533
%537 = load i32, ptr @stderr, align 4
%538 = load ptr, ptr %7, align 8
%539 = call i32 @fprintf(i32 noundef %537, ptr noundef @.str, ptr noundef %538)
%540 = call i32 @vrna_message_error(ptr noundef @.str.3)
br label %541
541: ; preds = %536, %533
%542 = load ptr, ptr %21, align 8
%543 = call i32 @free(ptr noundef %542)
%544 = load ptr, ptr %19, align 8
%545 = call i32 @free(ptr noundef %544)
br label %546
546: ; preds = %541, %24
ret void
}
declare i64 @strlen(ptr noundef) #1
declare ptr @vrna_alloc(i32 noundef) #1
declare ptr @vrna_idx_col_wise(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @vrna_message_error(ptr noundef) #1
declare ptr @vrna_idx_row_wise(i32 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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
!22 = distinct !{!22, !7}
!23 = distinct !{!23, !7}
!24 = distinct !{!24, !7}
!25 = distinct !{!25, !7}
!26 = distinct !{!26, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa5e8v63c.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"unbalanced brackets in constraint\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"unbalanced brackets in constraints\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"unbalanced brackets in constraint string\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @constrain_ptypes(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca i8, align 1
%21 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%22 = load ptr, ptr %7, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %6
br label %594
25: ; preds = %6
%26 = load ptr, ptr %7, align 8
%27 = call i64 @strlen(ptr noundef %26)
%28 = trunc i64 %27 to i32
store i32 %28, ptr %13, align 4
%29 = load i32, ptr %13, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = mul i64 4, %31
%33 = trunc i64 %32 to i32
%34 = call ptr @vrna_alloc(i32 noundef %33)
store ptr %34, ptr %19, align 8
%35 = load i32, ptr %12, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %336, label %37
37: ; preds = %25
%38 = load i32, ptr %8, align 4
%39 = call ptr @vrna_idx_col_wise(i32 noundef %38)
store ptr %39, ptr %21, align 8
store i32 0, ptr %18, align 4
store i32 1, ptr %15, align 4
%40 = load i32, ptr %15, align 4
%41 = load i32, ptr %13, align 4
%42 = icmp sle i32 %40, %41
br i1 %42, label %.lr.ph29, label %335
.lr.ph29: ; preds = %37
br label %43
43: ; preds = %.lr.ph29, %329
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %15, align 4
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %44, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
switch i32 %50, label %328 [
i32 124, label %51
i32 120, label %60
i32 40, label %111
i32 60, label %118
i32 41, label %144
i32 62, label %302
]
51: ; preds = %43
%52 = load ptr, ptr %10, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load ptr, ptr %10, align 8
%56 = load i32, ptr %15, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
store i32 -1, ptr %58, align 4
br label %59
59: ; preds = %54, %51
br label %328
60: ; preds = %43
store i32 1, ptr %17, align 4
%61 = load i32, ptr %17, align 4
%62 = load i32, ptr %15, align 4
%63 = load i32, ptr %11, align 4
%64 = sub nsw i32 %62, %63
%65 = icmp slt i32 %61, %64
br i1 %65, label %.lr.ph23, label %85
.lr.ph23: ; preds = %60
br label %66
66: ; preds = %.lr.ph23, %77
%67 = load ptr, ptr %9, align 8
%68 = load ptr, ptr %21, align 8
%69 = load i32, ptr %15, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %71, align 4
%73 = load i32, ptr %17, align 4
%74 = add nsw i32 %72, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %67, i64 %75
store i8 0, ptr %76, align 1
br label %77
77: ; preds = %66
%78 = load i32, ptr %17, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %17, align 4
%80 = load i32, ptr %17, align 4
%81 = load i32, ptr %15, align 4
%82 = load i32, ptr %11, align 4
%83 = sub nsw i32 %81, %82
%84 = icmp slt i32 %80, %83
br i1 %84, label %66, label %._crit_edge24, !llvm.loop !6
._crit_edge24: ; preds = %77
br label %85
85: ; preds = %._crit_edge24, %60
%86 = load i32, ptr %15, align 4
%87 = load i32, ptr %11, align 4
%88 = add nsw i32 %86, %87
%89 = add nsw i32 %88, 1
store i32 %89, ptr %17, align 4
%90 = load i32, ptr %17, align 4
%91 = load i32, ptr %8, align 4
%92 = icmp sle i32 %90, %91
br i1 %92, label %.lr.ph26, label %110
.lr.ph26: ; preds = %85
br label %93
93: ; preds = %.lr.ph26, %104
%94 = load ptr, ptr %9, align 8
%95 = load ptr, ptr %21, align 8
%96 = load i32, ptr %17, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
%99 = load i32, ptr %98, align 4
%100 = load i32, ptr %15, align 4
%101 = add nsw i32 %99, %100
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %94, i64 %102
store i8 0, ptr %103, align 1
br label %104
104: ; preds = %93
%105 = load i32, ptr %17, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %17, align 4
%107 = load i32, ptr %17, align 4
%108 = load i32, ptr %8, align 4
%109 = icmp sle i32 %107, %108
br i1 %109, label %93, label %._crit_edge27, !llvm.loop !8
._crit_edge27: ; preds = %104
br label %110
110: ; preds = %._crit_edge27, %85
br label %328
111: ; preds = %43
%112 = load i32, ptr %15, align 4
%113 = load ptr, ptr %19, align 8
%114 = load i32, ptr %18, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %18, align 4
%116 = sext i32 %114 to i64
%117 = getelementptr inbounds i32, ptr %113, i64 %116
store i32 %112, ptr %117, align 4
br label %118
118: ; preds = %111, %43
store i32 1, ptr %17, align 4
%119 = load i32, ptr %17, align 4
%120 = load i32, ptr %15, align 4
%121 = load i32, ptr %11, align 4
%122 = sub nsw i32 %120, %121
%123 = icmp slt i32 %119, %122
br i1 %123, label %.lr.ph20, label %143
.lr.ph20: ; preds = %118
br label %124
124: ; preds = %.lr.ph20, %135
%125 = load ptr, ptr %9, align 8
%126 = load ptr, ptr %21, align 8
%127 = load i32, ptr %15, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i32, ptr %126, i64 %128
%130 = load i32, ptr %129, align 4
%131 = load i32, ptr %17, align 4
%132 = add nsw i32 %130, %131
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, ptr %125, i64 %133
store i8 0, ptr %134, align 1
br label %135
135: ; preds = %124
%136 = load i32, ptr %17, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %17, align 4
%138 = load i32, ptr %17, align 4
%139 = load i32, ptr %15, align 4
%140 = load i32, ptr %11, align 4
%141 = sub nsw i32 %139, %140
%142 = icmp slt i32 %138, %141
br i1 %142, label %124, label %._crit_edge21, !llvm.loop !9
._crit_edge21: ; preds = %135
br label %143
143: ; preds = %._crit_edge21, %118
br label %328
144: ; preds = %43
%145 = load i32, ptr %18, align 4
%146 = icmp sle i32 %145, 0
br i1 %146, label %147, label %152
147: ; preds = %144
%148 = load i32, ptr @stderr, align 4
%149 = load ptr, ptr %7, align 8
%150 = call i32 @fprintf(i32 noundef %148, ptr noundef @.str, ptr noundef %149)
%151 = call i32 @vrna_message_error(ptr noundef @.str.1)
br label %152
152: ; preds = %147, %144
%153 = load ptr, ptr %19, align 8
%154 = load i32, ptr %18, align 4
%155 = add nsw i32 %154, -1
store i32 %155, ptr %18, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i32, ptr %153, i64 %156
%158 = load i32, ptr %157, align 4
store i32 %158, ptr %14, align 4
%159 = load ptr, ptr %9, align 8
%160 = load ptr, ptr %21, align 8
%161 = load i32, ptr %15, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i32, ptr %160, i64 %162
%164 = load i32, ptr %163, align 4
%165 = load i32, ptr %14, align 4
%166 = add nsw i32 %164, %165
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i8, ptr %159, i64 %167
%169 = load i8, ptr %168, align 1
store i8 %169, ptr %20, align 1
%170 = load i32, ptr %14, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %16, align 4
%172 = load i32, ptr %16, align 4
%173 = load i32, ptr %8, align 4
%174 = icmp sle i32 %172, %173
br i1 %174, label %.lr.ph, label %192
.lr.ph: ; preds = %152
br label %175
175: ; preds = %.lr.ph, %186
%176 = load ptr, ptr %9, align 8
%177 = load ptr, ptr %21, align 8
%178 = load i32, ptr %16, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i32, ptr %177, i64 %179
%181 = load i32, ptr %180, align 4
%182 = load i32, ptr %14, align 4
%183 = add nsw i32 %181, %182
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, ptr %176, i64 %184
store i8 0, ptr %185, align 1
br label %186
186: ; preds = %175
%187 = load i32, ptr %16, align 4
%188 = add nsw i32 %187, 1
store i32 %188, ptr %16, align 4
%189 = load i32, ptr %16, align 4
%190 = load i32, ptr %8, align 4
%191 = icmp sle i32 %189, %190
br i1 %191, label %175, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %186
br label %192
192: ; preds = %._crit_edge, %152
%193 = load i32, ptr %15, align 4
store i32 %193, ptr %17, align 4
%194 = load i32, ptr %17, align 4
%195 = load i32, ptr %8, align 4
%196 = icmp sle i32 %194, %195
br i1 %196, label %.lr.ph5, label %227
.lr.ph5: ; preds = %192
br label %197
197: ; preds = %.lr.ph5, %221
%198 = load i32, ptr %14, align 4
%199 = add nsw i32 %198, 1
store i32 %199, ptr %16, align 4
%200 = load i32, ptr %16, align 4
%201 = load i32, ptr %15, align 4
%202 = icmp sle i32 %200, %201
br i1 %202, label %.lr.ph2, label %220
.lr.ph2: ; preds = %197
br label %203
203: ; preds = %.lr.ph2, %214
%204 = load ptr, ptr %9, align 8
%205 = load ptr, ptr %21, align 8
%206 = load i32, ptr %17, align 4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds i32, ptr %205, i64 %207
%209 = load i32, ptr %208, align 4
%210 = load i32, ptr %16, align 4
%211 = add nsw i32 %209, %210
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds i8, ptr %204, i64 %212
store i8 0, ptr %213, align 1
br label %214
214: ; preds = %203
%215 = load i32, ptr %16, align 4
%216 = add nsw i32 %215, 1
store i32 %216, ptr %16, align 4
%217 = load i32, ptr %16, align 4
%218 = load i32, ptr %15, align 4
%219 = icmp sle i32 %217, %218
br i1 %219, label %203, label %._crit_edge3, !llvm.loop !11
._crit_edge3: ; preds = %214
br label %220
220: ; preds = %._crit_edge3, %197
br label %221
221: ; preds = %220
%222 = load i32, ptr %17, align 4
%223 = add nsw i32 %222, 1
store i32 %223, ptr %17, align 4
%224 = load i32, ptr %17, align 4
%225 = load i32, ptr %8, align 4
%226 = icmp sle i32 %224, %225
br i1 %226, label %197, label %._crit_edge6, !llvm.loop !12
._crit_edge6: ; preds = %221
br label %227
227: ; preds = %._crit_edge6, %192
%228 = load i32, ptr %14, align 4
store i32 %228, ptr %17, align 4
%229 = load i32, ptr %17, align 4
%230 = load i32, ptr %15, align 4
%231 = icmp sle i32 %229, %230
br i1 %231, label %.lr.ph11, label %260
.lr.ph11: ; preds = %227
br label %232
232: ; preds = %.lr.ph11, %254
store i32 1, ptr %16, align 4
%233 = load i32, ptr %16, align 4
%234 = load i32, ptr %14, align 4
%235 = icmp sle i32 %233, %234
br i1 %235, label %.lr.ph8, label %253
.lr.ph8: ; preds = %232
br label %236
236: ; preds = %.lr.ph8, %247
%237 = load ptr, ptr %9, align 8
%238 = load ptr, ptr %21, align 8
%239 = load i32, ptr %17, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds i32, ptr %238, i64 %240
%242 = load i32, ptr %241, align 4
%243 = load i32, ptr %16, align 4
%244 = add nsw i32 %242, %243
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds i8, ptr %237, i64 %245
store i8 0, ptr %246, align 1
br label %247
247: ; preds = %236
%248 = load i32, ptr %16, align 4
%249 = add nsw i32 %248, 1
store i32 %249, ptr %16, align 4
%250 = load i32, ptr %16, align 4
%251 = load i32, ptr %14, align 4
%252 = icmp sle i32 %250, %251
br i1 %252, label %236, label %._crit_edge9, !llvm.loop !13
._crit_edge9: ; preds = %247
br label %253
253: ; preds = %._crit_edge9, %232
br label %254
254: ; preds = %253
%255 = load i32, ptr %17, align 4
%256 = add nsw i32 %255, 1
store i32 %256, ptr %17, align 4
%257 = load i32, ptr %17, align 4
%258 = load i32, ptr %15, align 4
%259 = icmp sle i32 %257, %258
br i1 %259, label %232, label %._crit_edge12, !llvm.loop !14
._crit_edge12: ; preds = %254
br label %260
260: ; preds = %._crit_edge12, %227
store i32 1, ptr %16, align 4
%261 = load i32, ptr %16, align 4
%262 = load i32, ptr %15, align 4
%263 = icmp slt i32 %261, %262
br i1 %263, label %.lr.ph14, label %281
.lr.ph14: ; preds = %260
br label %264
264: ; preds = %.lr.ph14, %275
%265 = load ptr, ptr %9, align 8
%266 = load ptr, ptr %21, align 8
%267 = load i32, ptr %15, align 4
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds i32, ptr %266, i64 %268
%270 = load i32, ptr %269, align 4
%271 = load i32, ptr %16, align 4
%272 = add nsw i32 %270, %271
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds i8, ptr %265, i64 %273
store i8 0, ptr %274, align 1
br label %275
275: ; preds = %264
%276 = load i32, ptr %16, align 4
%277 = add nsw i32 %276, 1
store i32 %277, ptr %16, align 4
%278 = load i32, ptr %16, align 4
%279 = load i32, ptr %15, align 4
%280 = icmp slt i32 %278, %279
br i1 %280, label %264, label %._crit_edge15, !llvm.loop !15
._crit_edge15: ; preds = %275
br label %281
281: ; preds = %._crit_edge15, %260
%282 = load i8, ptr %20, align 1
%283 = sext i8 %282 to i32
%284 = icmp eq i32 %283, 0
br i1 %284, label %285, label %286
285: ; preds = %281
br label %289
286: ; preds = %281
%287 = load i8, ptr %20, align 1
%288 = sext i8 %287 to i32
br label %289
289: ; preds = %286, %285
%290 = phi i32 [ 7, %285 ], [ %288, %286 ]
%291 = trunc i32 %290 to i8
%292 = load ptr, ptr %9, align 8
%293 = load ptr, ptr %21, align 8
%294 = load i32, ptr %15, align 4
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds i32, ptr %293, i64 %295
%297 = load i32, ptr %296, align 4
%298 = load i32, ptr %14, align 4
%299 = add nsw i32 %297, %298
%300 = sext i32 %299 to i64
%301 = getelementptr inbounds i8, ptr %292, i64 %300
store i8 %291, ptr %301, align 1
br label %302
302: ; preds = %289, %43
%303 = load i32, ptr %15, align 4
%304 = load i32, ptr %11, align 4
%305 = add nsw i32 %303, %304
%306 = add nsw i32 %305, 1
store i32 %306, ptr %17, align 4
%307 = load i32, ptr %17, align 4
%308 = load i32, ptr %8, align 4
%309 = icmp sle i32 %307, %308
br i1 %309, label %.lr.ph17, label %327
.lr.ph17: ; preds = %302
br label %310
310: ; preds = %.lr.ph17, %321
%311 = load ptr, ptr %9, align 8
%312 = load ptr, ptr %21, align 8
%313 = load i32, ptr %17, align 4
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds i32, ptr %312, i64 %314
%316 = load i32, ptr %315, align 4
%317 = load i32, ptr %15, align 4
%318 = add nsw i32 %316, %317
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds i8, ptr %311, i64 %319
store i8 0, ptr %320, align 1
br label %321
321: ; preds = %310
%322 = load i32, ptr %17, align 4
%323 = add nsw i32 %322, 1
store i32 %323, ptr %17, align 4
%324 = load i32, ptr %17, align 4
%325 = load i32, ptr %8, align 4
%326 = icmp sle i32 %324, %325
br i1 %326, label %310, label %._crit_edge18, !llvm.loop !16
._crit_edge18: ; preds = %321
br label %327
327: ; preds = %._crit_edge18, %302
br label %328
328: ; preds = %327, %143, %110, %59, %43
br label %329
329: ; preds = %328
%330 = load i32, ptr %15, align 4
%331 = add nsw i32 %330, 1
store i32 %331, ptr %15, align 4
%332 = load i32, ptr %15, align 4
%333 = load i32, ptr %13, align 4
%334 = icmp sle i32 %332, %333
br i1 %334, label %43, label %._crit_edge30, !llvm.loop !17
._crit_edge30: ; preds = %329
br label %335
335: ; preds = %._crit_edge30, %37
br label %581
336: ; preds = %25
%337 = load i32, ptr %8, align 4
%338 = call ptr @vrna_idx_row_wise(i32 noundef %337)
store ptr %338, ptr %21, align 8
store i32 0, ptr %18, align 4
store i32 1, ptr %15, align 4
%339 = load i32, ptr %15, align 4
%340 = load i32, ptr %13, align 4
%341 = icmp sle i32 %339, %340
br i1 %341, label %.lr.ph56, label %580
.lr.ph56: ; preds = %336
br label %342
342: ; preds = %.lr.ph56, %574
%343 = load ptr, ptr %7, align 8
%344 = load i32, ptr %15, align 4
%345 = sub nsw i32 %344, 1
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds i8, ptr %343, i64 %346
%348 = load i8, ptr %347, align 1
%349 = sext i8 %348 to i32
switch i32 %349, label %573 [
i32 120, label %350
i32 40, label %401
i32 60, label %408
i32 41, label %434
i32 62, label %547
]
350: ; preds = %342
store i32 1, ptr %17, align 4
%351 = load i32, ptr %17, align 4
%352 = load i32, ptr %15, align 4
%353 = load i32, ptr %11, align 4
%354 = sub nsw i32 %352, %353
%355 = icmp slt i32 %351, %354
br i1 %355, label %.lr.ph50, label %375
.lr.ph50: ; preds = %350
br label %356
356: ; preds = %.lr.ph50, %367
%357 = load ptr, ptr %9, align 8
%358 = load ptr, ptr %21, align 8
%359 = load i32, ptr %17, align 4
%360 = sext i32 %359 to i64
%361 = getelementptr inbounds i32, ptr %358, i64 %360
%362 = load i32, ptr %361, align 4
%363 = load i32, ptr %15, align 4
%364 = sub nsw i32 %362, %363
%365 = sext i32 %364 to i64
%366 = getelementptr inbounds i8, ptr %357, i64 %365
store i8 0, ptr %366, align 1
br label %367
367: ; preds = %356
%368 = load i32, ptr %17, align 4
%369 = add nsw i32 %368, 1
store i32 %369, ptr %17, align 4
%370 = load i32, ptr %17, align 4
%371 = load i32, ptr %15, align 4
%372 = load i32, ptr %11, align 4
%373 = sub nsw i32 %371, %372
%374 = icmp slt i32 %370, %373
br i1 %374, label %356, label %._crit_edge51, !llvm.loop !18
._crit_edge51: ; preds = %367
br label %375
375: ; preds = %._crit_edge51, %350
%376 = load i32, ptr %15, align 4
%377 = load i32, ptr %11, align 4
%378 = add nsw i32 %376, %377
%379 = add nsw i32 %378, 1
store i32 %379, ptr %17, align 4
%380 = load i32, ptr %17, align 4
%381 = load i32, ptr %8, align 4
%382 = icmp sle i32 %380, %381
br i1 %382, label %.lr.ph53, label %400
.lr.ph53: ; preds = %375
br label %383
383: ; preds = %.lr.ph53, %394
%384 = load ptr, ptr %9, align 8
%385 = load ptr, ptr %21, align 8
%386 = load i32, ptr %15, align 4
%387 = sext i32 %386 to i64
%388 = getelementptr inbounds i32, ptr %385, i64 %387
%389 = load i32, ptr %388, align 4
%390 = load i32, ptr %17, align 4
%391 = sub nsw i32 %389, %390
%392 = sext i32 %391 to i64
%393 = getelementptr inbounds i8, ptr %384, i64 %392
store i8 0, ptr %393, align 1
br label %394
394: ; preds = %383
%395 = load i32, ptr %17, align 4
%396 = add nsw i32 %395, 1
store i32 %396, ptr %17, align 4
%397 = load i32, ptr %17, align 4
%398 = load i32, ptr %8, align 4
%399 = icmp sle i32 %397, %398
br i1 %399, label %383, label %._crit_edge54, !llvm.loop !19
._crit_edge54: ; preds = %394
br label %400
400: ; preds = %._crit_edge54, %375
br label %573
401: ; preds = %342
%402 = load i32, ptr %15, align 4
%403 = load ptr, ptr %19, align 8
%404 = load i32, ptr %18, align 4
%405 = add nsw i32 %404, 1
store i32 %405, ptr %18, align 4
%406 = sext i32 %404 to i64
%407 = getelementptr inbounds i32, ptr %403, i64 %406
store i32 %402, ptr %407, align 4
br label %408
408: ; preds = %401, %342
store i32 1, ptr %17, align 4
%409 = load i32, ptr %17, align 4
%410 = load i32, ptr %15, align 4
%411 = load i32, ptr %11, align 4
%412 = sub nsw i32 %410, %411
%413 = icmp slt i32 %409, %412
br i1 %413, label %.lr.ph47, label %433
.lr.ph47: ; preds = %408
br label %414
414: ; preds = %.lr.ph47, %425
%415 = load ptr, ptr %9, align 8
%416 = load ptr, ptr %21, align 8
%417 = load i32, ptr %17, align 4
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds i32, ptr %416, i64 %418
%420 = load i32, ptr %419, align 4
%421 = load i32, ptr %15, align 4
%422 = sub nsw i32 %420, %421
%423 = sext i32 %422 to i64
%424 = getelementptr inbounds i8, ptr %415, i64 %423
store i8 0, ptr %424, align 1
br label %425
425: ; preds = %414
%426 = load i32, ptr %17, align 4
%427 = add nsw i32 %426, 1
store i32 %427, ptr %17, align 4
%428 = load i32, ptr %17, align 4
%429 = load i32, ptr %15, align 4
%430 = load i32, ptr %11, align 4
%431 = sub nsw i32 %429, %430
%432 = icmp slt i32 %428, %431
br i1 %432, label %414, label %._crit_edge48, !llvm.loop !20
._crit_edge48: ; preds = %425
br label %433
433: ; preds = %._crit_edge48, %408
br label %573
434: ; preds = %342
%435 = load i32, ptr %18, align 4
%436 = icmp sle i32 %435, 0
br i1 %436, label %437, label %442
437: ; preds = %434
%438 = load i32, ptr @stderr, align 4
%439 = load ptr, ptr %7, align 8
%440 = call i32 @fprintf(i32 noundef %438, ptr noundef @.str, ptr noundef %439)
%441 = call i32 @vrna_message_error(ptr noundef @.str.2)
br label %442
442: ; preds = %437, %434
%443 = load ptr, ptr %19, align 8
%444 = load i32, ptr %18, align 4
%445 = add nsw i32 %444, -1
store i32 %445, ptr %18, align 4
%446 = sext i32 %445 to i64
%447 = getelementptr inbounds i32, ptr %443, i64 %446
%448 = load i32, ptr %447, align 4
store i32 %448, ptr %14, align 4
%449 = load ptr, ptr %9, align 8
%450 = load ptr, ptr %21, align 8
%451 = load i32, ptr %14, align 4
%452 = sext i32 %451 to i64
%453 = getelementptr inbounds i32, ptr %450, i64 %452
%454 = load i32, ptr %453, align 4
%455 = load i32, ptr %15, align 4
%456 = sub nsw i32 %454, %455
%457 = sext i32 %456 to i64
%458 = getelementptr inbounds i8, ptr %449, i64 %457
%459 = load i8, ptr %458, align 1
store i8 %459, ptr %20, align 1
%460 = load i32, ptr %14, align 4
store i32 %460, ptr %16, align 4
%461 = load i32, ptr %16, align 4
%462 = load i32, ptr %15, align 4
%463 = icmp sle i32 %461, %462
br i1 %463, label %.lr.ph35, label %493
.lr.ph35: ; preds = %442
br label %464
464: ; preds = %.lr.ph35, %487
%465 = load i32, ptr %15, align 4
store i32 %465, ptr %17, align 4
%466 = load i32, ptr %17, align 4
%467 = load i32, ptr %8, align 4
%468 = icmp sle i32 %466, %467
br i1 %468, label %.lr.ph32, label %486
.lr.ph32: ; preds = %464
br label %469
469: ; preds = %.lr.ph32, %480
%470 = load ptr, ptr %9, align 8
%471 = load ptr, ptr %21, align 8
%472 = load i32, ptr %16, align 4
%473 = sext i32 %472 to i64
%474 = getelementptr inbounds i32, ptr %471, i64 %473
%475 = load i32, ptr %474, align 4
%476 = load i32, ptr %17, align 4
%477 = sub nsw i32 %475, %476
%478 = sext i32 %477 to i64
%479 = getelementptr inbounds i8, ptr %470, i64 %478
store i8 0, ptr %479, align 1
br label %480
480: ; preds = %469
%481 = load i32, ptr %17, align 4
%482 = add nsw i32 %481, 1
store i32 %482, ptr %17, align 4
%483 = load i32, ptr %17, align 4
%484 = load i32, ptr %8, align 4
%485 = icmp sle i32 %483, %484
br i1 %485, label %469, label %._crit_edge33, !llvm.loop !21
._crit_edge33: ; preds = %480
br label %486
486: ; preds = %._crit_edge33, %464
br label %487
487: ; preds = %486
%488 = load i32, ptr %16, align 4
%489 = add nsw i32 %488, 1
store i32 %489, ptr %16, align 4
%490 = load i32, ptr %16, align 4
%491 = load i32, ptr %15, align 4
%492 = icmp sle i32 %490, %491
br i1 %492, label %464, label %._crit_edge36, !llvm.loop !22
._crit_edge36: ; preds = %487
br label %493
493: ; preds = %._crit_edge36, %442
store i32 1, ptr %16, align 4
%494 = load i32, ptr %16, align 4
%495 = load i32, ptr %14, align 4
%496 = icmp sle i32 %494, %495
br i1 %496, label %.lr.ph41, label %526
.lr.ph41: ; preds = %493
br label %497
497: ; preds = %.lr.ph41, %520
%498 = load i32, ptr %14, align 4
store i32 %498, ptr %17, align 4
%499 = load i32, ptr %17, align 4
%500 = load i32, ptr %15, align 4
%501 = icmp sle i32 %499, %500
br i1 %501, label %.lr.ph38, label %519
.lr.ph38: ; preds = %497
br label %502
502: ; preds = %.lr.ph38, %513
%503 = load ptr, ptr %9, align 8
%504 = load ptr, ptr %21, align 8
%505 = load i32, ptr %16, align 4
%506 = sext i32 %505 to i64
%507 = getelementptr inbounds i32, ptr %504, i64 %506
%508 = load i32, ptr %507, align 4
%509 = load i32, ptr %17, align 4
%510 = sub nsw i32 %508, %509
%511 = sext i32 %510 to i64
%512 = getelementptr inbounds i8, ptr %503, i64 %511
store i8 0, ptr %512, align 1
br label %513
513: ; preds = %502
%514 = load i32, ptr %17, align 4
%515 = add nsw i32 %514, 1
store i32 %515, ptr %17, align 4
%516 = load i32, ptr %17, align 4
%517 = load i32, ptr %15, align 4
%518 = icmp sle i32 %516, %517
br i1 %518, label %502, label %._crit_edge39, !llvm.loop !23
._crit_edge39: ; preds = %513
br label %519
519: ; preds = %._crit_edge39, %497
br label %520
520: ; preds = %519
%521 = load i32, ptr %16, align 4
%522 = add nsw i32 %521, 1
store i32 %522, ptr %16, align 4
%523 = load i32, ptr %16, align 4
%524 = load i32, ptr %14, align 4
%525 = icmp sle i32 %523, %524
br i1 %525, label %497, label %._crit_edge42, !llvm.loop !24
._crit_edge42: ; preds = %520
br label %526
526: ; preds = %._crit_edge42, %493
%527 = load i8, ptr %20, align 1
%528 = sext i8 %527 to i32
%529 = icmp eq i32 %528, 0
br i1 %529, label %530, label %531
530: ; preds = %526
br label %534
531: ; preds = %526
%532 = load i8, ptr %20, align 1
%533 = sext i8 %532 to i32
br label %534
534: ; preds = %531, %530
%535 = phi i32 [ 7, %530 ], [ %533, %531 ]
%536 = trunc i32 %535 to i8
%537 = load ptr, ptr %9, align 8
%538 = load ptr, ptr %21, align 8
%539 = load i32, ptr %14, align 4
%540 = sext i32 %539 to i64
%541 = getelementptr inbounds i32, ptr %538, i64 %540
%542 = load i32, ptr %541, align 4
%543 = load i32, ptr %15, align 4
%544 = sub nsw i32 %542, %543
%545 = sext i32 %544 to i64
%546 = getelementptr inbounds i8, ptr %537, i64 %545
store i8 %536, ptr %546, align 1
br label %547
547: ; preds = %534, %342
%548 = load i32, ptr %15, align 4
%549 = load i32, ptr %11, align 4
%550 = add nsw i32 %548, %549
%551 = add nsw i32 %550, 1
store i32 %551, ptr %17, align 4
%552 = load i32, ptr %17, align 4
%553 = load i32, ptr %8, align 4
%554 = icmp sle i32 %552, %553
br i1 %554, label %.lr.ph44, label %572
.lr.ph44: ; preds = %547
br label %555
555: ; preds = %.lr.ph44, %566
%556 = load ptr, ptr %9, align 8
%557 = load ptr, ptr %21, align 8
%558 = load i32, ptr %15, align 4
%559 = sext i32 %558 to i64
%560 = getelementptr inbounds i32, ptr %557, i64 %559
%561 = load i32, ptr %560, align 4
%562 = load i32, ptr %17, align 4
%563 = sub nsw i32 %561, %562
%564 = sext i32 %563 to i64
%565 = getelementptr inbounds i8, ptr %556, i64 %564
store i8 0, ptr %565, align 1
br label %566
566: ; preds = %555
%567 = load i32, ptr %17, align 4
%568 = add nsw i32 %567, 1
store i32 %568, ptr %17, align 4
%569 = load i32, ptr %17, align 4
%570 = load i32, ptr %8, align 4
%571 = icmp sle i32 %569, %570
br i1 %571, label %555, label %._crit_edge45, !llvm.loop !25
._crit_edge45: ; preds = %566
br label %572
572: ; preds = %._crit_edge45, %547
br label %573
573: ; preds = %572, %433, %400, %342
br label %574
574: ; preds = %573
%575 = load i32, ptr %15, align 4
%576 = add nsw i32 %575, 1
store i32 %576, ptr %15, align 4
%577 = load i32, ptr %15, align 4
%578 = load i32, ptr %13, align 4
%579 = icmp sle i32 %577, %578
br i1 %579, label %342, label %._crit_edge57, !llvm.loop !26
._crit_edge57: ; preds = %574
br label %580
580: ; preds = %._crit_edge57, %336
br label %581
581: ; preds = %580, %335
%582 = load i32, ptr %18, align 4
%583 = icmp ne i32 %582, 0
br i1 %583, label %584, label %589
584: ; preds = %581
%585 = load i32, ptr @stderr, align 4
%586 = load ptr, ptr %7, align 8
%587 = call i32 @fprintf(i32 noundef %585, ptr noundef @.str, ptr noundef %586)
%588 = call i32 @vrna_message_error(ptr noundef @.str.3)
br label %589
589: ; preds = %584, %581
%590 = load ptr, ptr %21, align 8
%591 = call i32 @free(ptr noundef %590)
%592 = load ptr, ptr %19, align 8
%593 = call i32 @free(ptr noundef %592)
br label %594
594: ; preds = %589, %24
ret void
}
declare i64 @strlen(ptr noundef) #1
declare ptr @vrna_alloc(i32 noundef) #1
declare ptr @vrna_idx_col_wise(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @vrna_message_error(ptr noundef) #1
declare ptr @vrna_idx_row_wise(i32 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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
!22 = distinct !{!22, !7}
!23 = distinct !{!23, !7}
!24 = distinct !{!24, !7}
!25 = distinct !{!25, !7}
!26 = distinct !{!26, !7}
|
; ModuleID = '/tmp/tmp6sj_5bfy.c'
source_filename = "/tmp/tmp6sj_5bfy.c"
target datalayout = "e-m:e-p270: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 [73 x i8] c"Asking for too much, vector.wast only allows 1M elements, setting to 1M\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run_wasm(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 1000000, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %6, 1000000
br i1 %7, label %8, label %11
8: ; preds = %1
store i32 1000000, ptr %2, align 4
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
br label %11
11: ; preds = %8, %1
store i32 0, ptr %5, align 4
br label %12
12: ; preds = %23, %11
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 1000
br i1 %14, label %15, label %26
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = call i64 @wm_1_daxpy(i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = add nsw i64 %20, %18
%22 = trunc i64 %21 to i32
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %15
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %12, !llvm.loop !6
26: ; preds = %12
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @wm_1_daxpy(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6sj_5bfy.c"
target datalayout = "e-m:e-p270: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 [73 x i8] c"Asking for too much, vector.wast only allows 1M elements, setting to 1M\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run_wasm(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 1000000, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %6, 1000000
br i1 %7, label %8, label %11
8: ; preds = %1
store i32 1000000, ptr %2, align 4
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
br label %11
11: ; preds = %8, %1
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 1000
br i1 %13, label %.lr.ph, label %27
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %22
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = call i64 @wm_1_daxpy(i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = add nsw i64 %19, %17
%21 = trunc i64 %20 to i32
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %14
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %25, 1000
br i1 %26, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %11
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @wm_1_daxpy(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9o5mcaf1.c'
source_filename = "/tmp/tmp9o5mcaf1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leggiStream(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @read(i32 noundef %7, ptr noundef %8, i32 noundef %9)
%11 = icmp ne i32 %10, -1
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9o5mcaf1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leggiStream(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @read(i32 noundef %7, ptr noundef %8, i32 noundef %9)
%11 = icmp ne i32 %10, -1
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph6q8vq4r.c'
source_filename = "/tmp/tmph6q8vq4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msgbox(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 @MsgBox25(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @MsgBox25(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/tmph6q8vq4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msgbox(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 @MsgBox25(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @MsgBox25(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/tmp0aauecd3.c'
source_filename = "/tmp/tmp0aauecd3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PAGER\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"/bin/less\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @util_viewFile(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = call ptr @getenv(ptr noundef @.str)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store ptr @.str.1, ptr %4, align 8
br label %11
11: ; preds = %10, %1
%12 = call i32 (...) @fork()
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %3, align 8
%19 = call i32 @execl(ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef null)
br label %27
20: ; preds = %11
%21 = load i32, ptr %5, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %24
23: ; preds = %20
store i32 1, ptr %2, align 4
br label %28
24: ; preds = %20
%25 = call i32 @wait(ptr noundef %6)
br label %26
26: ; preds = %24
br label %27
27: ; preds = %26, %15
store i32 0, ptr %2, align 4
br label %28
28: ; preds = %27, %23
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare ptr @getenv(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0aauecd3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PAGER\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"/bin/less\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @util_viewFile(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = call ptr @getenv(ptr noundef @.str)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store ptr @.str.1, ptr %4, align 8
br label %11
11: ; preds = %10, %1
%12 = call i32 (...) @fork()
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %3, align 8
%19 = call i32 @execl(ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef null)
br label %27
20: ; preds = %11
%21 = load i32, ptr %5, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %24
23: ; preds = %20
store i32 1, ptr %2, align 4
br label %28
24: ; preds = %20
%25 = call i32 @wait(ptr noundef %6)
br label %26
26: ; preds = %24
br label %27
27: ; preds = %26, %15
store i32 0, ptr %2, align 4
br label %28
28: ; preds = %27, %23
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare ptr @getenv(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsic78ht1.c'
source_filename = "/tmp/tmpsic78ht1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\09\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_seq_from_to_rev(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca ptr, align 8
%19 = alloca i8, align 1
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i64, align 8
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store i64 %2, ptr %12, align 8
store i64 %3, ptr %13, align 8
store i64 %4, ptr %14, align 8
store i64 %5, ptr %15, align 8
store i64 %6, ptr %16, align 8
store i64 %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%23 = load ptr, ptr %10, align 8
%24 = load i64, ptr %14, align 8
%25 = load i32, ptr @SEEK_SET, align 4
%26 = call i32 @fseek(ptr noundef %23, i64 noundef %24, i32 noundef %25)
%27 = load ptr, ptr %10, align 8
%28 = call signext i8 @fgetc(ptr noundef %27)
store i8 %28, ptr %19, align 1
br label %29
29: ; preds = %33, %9
%30 = load i8, ptr %19, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 10
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load ptr, ptr %10, align 8
%35 = call signext i8 @fgetc(ptr noundef %34)
store i8 %35, ptr %19, align 1
br label %29, !llvm.loop !6
36: ; preds = %29
%37 = load i64, ptr %12, align 8
%38 = load i64, ptr %15, align 8
%39 = sub nsw i64 %37, %38
store i64 %39, ptr %20, align 8
store i64 0, ptr %21, align 8
br label %40
40: ; preds = %53, %36
%41 = load i64, ptr %21, align 8
%42 = load i64, ptr %20, align 8
%43 = icmp slt i64 %41, %42
br i1 %43, label %44, label %54
44: ; preds = %40
%45 = load ptr, ptr %10, align 8
%46 = call signext i8 @fgetc(ptr noundef %45)
store i8 %46, ptr %19, align 1
%47 = load i8, ptr %19, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 10
br i1 %49, label %50, label %53
50: ; preds = %44
%51 = load i64, ptr %21, align 8
%52 = add nsw i64 %51, 1
store i64 %52, ptr %21, align 8
br label %53
53: ; preds = %50, %44
br label %40, !llvm.loop !8
54: ; preds = %40
store i64 0, ptr %21, align 8
%55 = load ptr, ptr %10, align 8
%56 = call signext i8 @fgetc(ptr noundef %55)
store i8 %56, ptr %19, align 1
%57 = load ptr, ptr %18, align 8
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str)
store i64 0, ptr %22, align 8
br label %59
59: ; preds = %93, %54
%60 = load i64, ptr %21, align 8
%61 = load i64, ptr %17, align 8
%62 = icmp slt i64 %60, %61
br i1 %62, label %63, label %94
63: ; preds = %59
%64 = load i8, ptr %19, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 10
br i1 %66, label %67, label %72
67: ; preds = %63
%68 = load ptr, ptr %18, align 8
%69 = load i8, ptr %19, align 1
%70 = sext i8 %69 to i32
%71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.1, i32 noundef %70)
br label %72
72: ; preds = %67, %63
%73 = load ptr, ptr %10, align 8
%74 = call signext i8 @fgetc(ptr noundef %73)
store i8 %74, ptr %19, align 1
%75 = load i8, ptr %19, align 1
%76 = sext i8 %75 to i32
%77 = icmp ne i32 %76, 10
br i1 %77, label %82, label %78
78: ; preds = %72
%79 = load ptr, ptr %10, align 8
%80 = call i64 @feof(ptr noundef %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %78, %72
%83 = load i64, ptr %21, align 8
%84 = add nsw i64 %83, 1
store i64 %84, ptr %21, align 8
%85 = load i64, ptr %22, align 8
%86 = add nsw i64 %85, 1
store i64 %86, ptr %22, align 8
br label %87
87: ; preds = %82, %78
%88 = load i64, ptr %22, align 8
%89 = icmp eq i64 %88, 70
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = load ptr, ptr %18, align 8
%92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.2)
store i64 0, ptr %22, align 8
br label %93
93: ; preds = %90, %87
br label %59, !llvm.loop !9
94: ; preds = %59
%95 = load ptr, ptr %18, align 8
%96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.3)
ret void
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @feof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsic78ht1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\09\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_seq_from_to_rev(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca ptr, align 8
%19 = alloca i8, align 1
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i64, align 8
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store i64 %2, ptr %12, align 8
store i64 %3, ptr %13, align 8
store i64 %4, ptr %14, align 8
store i64 %5, ptr %15, align 8
store i64 %6, ptr %16, align 8
store i64 %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%23 = load ptr, ptr %10, align 8
%24 = load i64, ptr %14, align 8
%25 = load i32, ptr @SEEK_SET, align 4
%26 = call i32 @fseek(ptr noundef %23, i64 noundef %24, i32 noundef %25)
%27 = load ptr, ptr %10, align 8
%28 = call signext i8 @fgetc(ptr noundef %27)
store i8 %28, ptr %19, align 1
%29 = load i8, ptr %19, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 10
br i1 %31, label %.lr.ph, label %38
.lr.ph: ; preds = %9
br label %32
32: ; preds = %.lr.ph, %32
%33 = load ptr, ptr %10, align 8
%34 = call signext i8 @fgetc(ptr noundef %33)
store i8 %34, ptr %19, align 1
%35 = load i8, ptr %19, align 1
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 10
br i1 %37, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %9
%39 = load i64, ptr %12, align 8
%40 = load i64, ptr %15, align 8
%41 = sub nsw i64 %39, %40
store i64 %41, ptr %20, align 8
store i64 0, ptr %21, align 8
%42 = load i64, ptr %21, align 8
%43 = load i64, ptr %20, align 8
%44 = icmp slt i64 %42, %43
br i1 %44, label %.lr.ph2, label %58
.lr.ph2: ; preds = %38
br label %45
45: ; preds = %.lr.ph2, %54
%46 = load ptr, ptr %10, align 8
%47 = call signext i8 @fgetc(ptr noundef %46)
store i8 %47, ptr %19, align 1
%48 = load i8, ptr %19, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 10
br i1 %50, label %51, label %54
51: ; preds = %45
%52 = load i64, ptr %21, align 8
%53 = add nsw i64 %52, 1
store i64 %53, ptr %21, align 8
br label %54
54: ; preds = %51, %45
%55 = load i64, ptr %21, align 8
%56 = load i64, ptr %20, align 8
%57 = icmp slt i64 %55, %56
br i1 %57, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %58
58: ; preds = %._crit_edge3, %38
store i64 0, ptr %21, align 8
%59 = load ptr, ptr %10, align 8
%60 = call signext i8 @fgetc(ptr noundef %59)
store i8 %60, ptr %19, align 1
%61 = load ptr, ptr %18, align 8
%62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str)
store i64 0, ptr %22, align 8
%63 = load i64, ptr %21, align 8
%64 = load i64, ptr %17, align 8
%65 = icmp slt i64 %63, %64
br i1 %65, label %.lr.ph5, label %100
.lr.ph5: ; preds = %58
br label %66
66: ; preds = %.lr.ph5, %96
%67 = load i8, ptr %19, align 1
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 10
br i1 %69, label %70, label %75
70: ; preds = %66
%71 = load ptr, ptr %18, align 8
%72 = load i8, ptr %19, align 1
%73 = sext i8 %72 to i32
%74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.1, i32 noundef %73)
br label %75
75: ; preds = %70, %66
%76 = load ptr, ptr %10, align 8
%77 = call signext i8 @fgetc(ptr noundef %76)
store i8 %77, ptr %19, align 1
%78 = load i8, ptr %19, align 1
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %79, 10
br i1 %80, label %85, label %81
81: ; preds = %75
%82 = load ptr, ptr %10, align 8
%83 = call i64 @feof(ptr noundef %82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %81, %75
%86 = load i64, ptr %21, align 8
%87 = add nsw i64 %86, 1
store i64 %87, ptr %21, align 8
%88 = load i64, ptr %22, align 8
%89 = add nsw i64 %88, 1
store i64 %89, ptr %22, align 8
br label %90
90: ; preds = %85, %81
%91 = load i64, ptr %22, align 8
%92 = icmp eq i64 %91, 70
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load ptr, ptr %18, align 8
%95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.2)
store i64 0, ptr %22, align 8
br label %96
96: ; preds = %93, %90
%97 = load i64, ptr %21, align 8
%98 = load i64, ptr %17, align 8
%99 = icmp slt i64 %97, %98
br i1 %99, label %66, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %96
br label %100
100: ; preds = %._crit_edge6, %58
%101 = load ptr, ptr %18, align 8
%102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.3)
ret void
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @feof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpr545h9pt.c'
source_filename = "/tmp/tmpr545h9pt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isOlder(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @length_of(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @length_of(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %7, align 4
%17 = call i32 @check_year(ptr noundef %13, i32 noundef %14, ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %2
%21 = load i32, ptr %8, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load i32, ptr %8, align 4
store i32 %24, ptr %3, align 4
br label %68
25: ; preds = %20
store i32 -1, ptr %3, align 4
br label %68
26: ; preds = %2
%27 = load ptr, ptr %4, align 8
%28 = call i32 @length_of(ptr noundef %27)
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @length_of(ptr noundef %29)
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %6, align 4
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %7, align 4
%35 = call i32 @check_month(ptr noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34)
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %26
%39 = load i32, ptr %8, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = load i32, ptr %8, align 4
store i32 %42, ptr %3, align 4
br label %68
43: ; preds = %38
store i32 -1, ptr %3, align 4
br label %68
44: ; preds = %26
%45 = load ptr, ptr %4, align 8
%46 = call i32 @length_of(ptr noundef %45)
store i32 %46, ptr %6, align 4
%47 = load ptr, ptr %5, align 8
%48 = call i32 @length_of(ptr noundef %47)
store i32 %48, ptr %7, align 4
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %6, align 4
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %7, align 4
%53 = call i32 @check_days(ptr noundef %49, i32 noundef %50, ptr noundef %51, i32 noundef %52)
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %66
56: ; preds = %44
%57 = load i32, ptr %8, align 4
%58 = icmp sgt i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = load i32, ptr %8, align 4
store i32 %60, ptr %3, align 4
br label %68
61: ; preds = %56
%62 = load i32, ptr %8, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %61
store i32 -1, ptr %3, align 4
br label %68
65: ; preds = %61
store i32 0, ptr %3, align 4
br label %68
66: ; preds = %44
br label %67
67: ; preds = %66
br label %68
68: ; preds = %23, %25, %41, %43, %59, %64, %65, %67
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @length_of(ptr noundef) #1
declare i32 @check_year(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @check_month(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @check_days(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr545h9pt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isOlder(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @length_of(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @length_of(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %7, align 4
%17 = call i32 @check_year(ptr noundef %13, i32 noundef %14, ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %2
%21 = load i32, ptr %8, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load i32, ptr %8, align 4
store i32 %24, ptr %3, align 4
br label %68
25: ; preds = %20
store i32 -1, ptr %3, align 4
br label %68
26: ; preds = %2
%27 = load ptr, ptr %4, align 8
%28 = call i32 @length_of(ptr noundef %27)
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @length_of(ptr noundef %29)
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %6, align 4
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %7, align 4
%35 = call i32 @check_month(ptr noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34)
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %26
%39 = load i32, ptr %8, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = load i32, ptr %8, align 4
store i32 %42, ptr %3, align 4
br label %68
43: ; preds = %38
store i32 -1, ptr %3, align 4
br label %68
44: ; preds = %26
%45 = load ptr, ptr %4, align 8
%46 = call i32 @length_of(ptr noundef %45)
store i32 %46, ptr %6, align 4
%47 = load ptr, ptr %5, align 8
%48 = call i32 @length_of(ptr noundef %47)
store i32 %48, ptr %7, align 4
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %6, align 4
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %7, align 4
%53 = call i32 @check_days(ptr noundef %49, i32 noundef %50, ptr noundef %51, i32 noundef %52)
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %66
56: ; preds = %44
%57 = load i32, ptr %8, align 4
%58 = icmp sgt i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = load i32, ptr %8, align 4
store i32 %60, ptr %3, align 4
br label %68
61: ; preds = %56
%62 = load i32, ptr %8, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %61
store i32 -1, ptr %3, align 4
br label %68
65: ; preds = %61
store i32 0, ptr %3, align 4
br label %68
66: ; preds = %44
br label %67
67: ; preds = %66
br label %68
68: ; preds = %67, %65, %64, %59, %43, %41, %25, %23
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @length_of(ptr noundef) #1
declare i32 @check_year(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @check_month(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @check_days(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpknnp7p_j.c'
source_filename = "/tmp/tmpknnp7p_j.c"
target datalayout = "e-m:e-p270: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.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @random_updates(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr 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 %struct.timeval, align 8
%10 = alloca %struct.timeval, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%16 = call i32 @time(i32 noundef 0)
%17 = call i32 @srand(i32 noundef %16)
%18 = call i32 @gettimeofday(ptr noundef %9, ptr noundef null)
store double 0.000000e+00, ptr %11, align 8
br label %19
19: ; preds = %4, %162
%20 = call i32 @gettimeofday(ptr noundef %10, ptr noundef null)
%21 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 1
%22 = load i64, ptr %21, align 8
%23 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
%24 = load i64, ptr %23, align 8
%25 = sub nsw i64 %22, %24
%26 = sitofp i64 %25 to double
%27 = fdiv double %26, 1.000000e+06
%28 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 0
%29 = load i64, ptr %28, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
%31 = load i64, ptr %30, align 8
%32 = sub nsw i64 %29, %31
%33 = sitofp i64 %32 to double
%34 = fadd double %27, %33
store double %34, ptr %11, align 8
%35 = load double, ptr %11, align 8
%36 = fcmp ogt double %35, 1.990000e+00
br i1 %36, label %37, label %38
37: ; preds = %19
br label %163
38: ; preds = %19
%39 = call i32 (...) @rand()
%40 = load i32, ptr %5, align 4
%41 = sub nsw i32 %40, 1
%42 = srem i32 %39, %41
%43 = add nsw i32 1, %42
store i32 %43, ptr %12, align 4
%44 = call i32 (...) @rand()
%45 = load i32, ptr %5, align 4
%46 = sub nsw i32 %45, 1
%47 = srem i32 %44, %46
%48 = add nsw i32 1, %47
store i32 %48, ptr %13, align 4
br label %49
49: ; preds = %53, %38
%50 = load i32, ptr %12, align 4
%51 = load i32, ptr %13, align 4
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %64
53: ; preds = %49
%54 = call i32 (...) @rand()
%55 = load i32, ptr %5, align 4
%56 = sub nsw i32 %55, 1
%57 = srem i32 %54, %56
%58 = add nsw i32 1, %57
store i32 %58, ptr %12, align 4
%59 = call i32 (...) @rand()
%60 = load i32, ptr %5, align 4
%61 = sub nsw i32 %60, 1
%62 = srem i32 %59, %61
%63 = add nsw i32 1, %62
store i32 %63, ptr %13, align 4
br label %49, !llvm.loop !6
64: ; preds = %49
store i32 0, ptr %14, align 4
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %13, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
%69 = load i32, ptr %68, align 4
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %12, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %70, i64 %72
%74 = load i32, ptr %73, align 4
%75 = xor i32 %74, %69
store i32 %75, ptr %73, align 4
%76 = load ptr, ptr %6, align 8
%77 = load i32, ptr %13, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %76, i64 %78
%80 = load i32, ptr %79, align 4
%81 = xor i32 %80, %75
store i32 %81, ptr %79, align 4
%82 = load ptr, ptr %6, align 8
%83 = load i32, ptr %12, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
%86 = load i32, ptr %85, align 4
%87 = xor i32 %86, %81
store i32 %87, ptr %85, align 4
store i32 1, ptr %15, align 4
br label %88
88: ; preds = %114, %64
%89 = load i32, ptr %15, align 4
%90 = load i32, ptr %5, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %117
92: ; preds = %88
%93 = load ptr, ptr %8, align 8
%94 = load ptr, ptr %6, align 8
%95 = load i32, ptr %15, align 4
%96 = sub nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %94, i64 %97
%99 = load i32, ptr %98, align 4
%100 = load i32, ptr %5, align 4
%101 = mul nsw i32 %99, %100
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %93, i64 %102
%104 = load ptr, ptr %6, align 8
%105 = load i32, ptr %15, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
%108 = load i32, ptr %107, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %103, i64 %109
%111 = load i32, ptr %110, align 4
%112 = load i32, ptr %14, align 4
%113 = add nsw i32 %112, %111
store i32 %113, ptr %14, align 4
br label %114
114: ; preds = %92
%115 = load i32, ptr %15, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %15, align 4
br label %88, !llvm.loop !8
117: ; preds = %88
%118 = load ptr, ptr %8, align 8
%119 = load ptr, ptr %6, align 8
%120 = load i32, ptr %5, align 4
%121 = sub nsw i32 %120, 1
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, ptr %119, i64 %122
%124 = load i32, ptr %123, align 4
%125 = load i32, ptr %5, align 4
%126 = mul nsw i32 %124, %125
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %118, i64 %127
%129 = getelementptr inbounds i32, ptr %128, i64 0
%130 = load i32, ptr %129, align 4
%131 = load i32, ptr %14, align 4
%132 = add nsw i32 %131, %130
store i32 %132, ptr %14, align 4
%133 = load i32, ptr %14, align 4
%134 = load i32, ptr %7, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %136, label %138
136: ; preds = %117
%137 = load i32, ptr %14, align 4
store i32 %137, ptr %7, align 4
br label %162
138: ; preds = %117
%139 = load ptr, ptr %6, align 8
%140 = load i32, ptr %13, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i32, ptr %139, i64 %141
%143 = load i32, ptr %142, align 4
%144 = load ptr, ptr %6, align 8
%145 = load i32, ptr %12, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i32, ptr %144, i64 %146
%148 = load i32, ptr %147, align 4
%149 = xor i32 %148, %143
store i32 %149, ptr %147, align 4
%150 = load ptr, ptr %6, align 8
%151 = load i32, ptr %13, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds i32, ptr %150, i64 %152
%154 = load i32, ptr %153, align 4
%155 = xor i32 %154, %149
store i32 %155, ptr %153, align 4
%156 = load ptr, ptr %6, align 8
%157 = load i32, ptr %12, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i32, ptr %156, i64 %158
%160 = load i32, ptr %159, align 4
%161 = xor i32 %160, %155
store i32 %161, ptr %159, align 4
br label %162
162: ; preds = %138, %136
br label %19
163: ; preds = %37
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpknnp7p_j.c"
target datalayout = "e-m:e-p270: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.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @random_updates(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr 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 %struct.timeval, align 8
%10 = alloca %struct.timeval, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%16 = call i32 @time(i32 noundef 0)
%17 = call i32 @srand(i32 noundef %16)
%18 = call i32 @gettimeofday(ptr noundef %9, ptr noundef null)
store double 0.000000e+00, ptr %11, align 8
br label %19
19: ; preds = %166, %4
%20 = call i32 @gettimeofday(ptr noundef %10, ptr noundef null)
%21 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 1
%22 = load i64, ptr %21, align 8
%23 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
%24 = load i64, ptr %23, align 8
%25 = sub nsw i64 %22, %24
%26 = sitofp i64 %25 to double
%27 = fdiv double %26, 1.000000e+06
%28 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 0
%29 = load i64, ptr %28, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
%31 = load i64, ptr %30, align 8
%32 = sub nsw i64 %29, %31
%33 = sitofp i64 %32 to double
%34 = fadd double %27, %33
store double %34, ptr %11, align 8
%35 = load double, ptr %11, align 8
%36 = fcmp ogt double %35, 1.990000e+00
br i1 %36, label %37, label %38
37: ; preds = %19
br label %167
38: ; preds = %19
%39 = call i32 (...) @rand()
%40 = load i32, ptr %5, align 4
%41 = sub nsw i32 %40, 1
%42 = srem i32 %39, %41
%43 = add nsw i32 1, %42
store i32 %43, ptr %12, align 4
%44 = call i32 (...) @rand()
%45 = load i32, ptr %5, align 4
%46 = sub nsw i32 %45, 1
%47 = srem i32 %44, %46
%48 = add nsw i32 1, %47
store i32 %48, ptr %13, align 4
%49 = load i32, ptr %12, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %.lr.ph, label %66
.lr.ph: ; preds = %38
br label %52
52: ; preds = %.lr.ph, %52
%53 = call i32 (...) @rand()
%54 = load i32, ptr %5, align 4
%55 = sub nsw i32 %54, 1
%56 = srem i32 %53, %55
%57 = add nsw i32 1, %56
store i32 %57, ptr %12, align 4
%58 = call i32 (...) @rand()
%59 = load i32, ptr %5, align 4
%60 = sub nsw i32 %59, 1
%61 = srem i32 %58, %60
%62 = add nsw i32 1, %61
store i32 %62, ptr %13, align 4
%63 = load i32, ptr %12, align 4
%64 = load i32, ptr %13, align 4
%65 = icmp eq i32 %63, %64
br i1 %65, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %66
66: ; preds = %._crit_edge, %38
store i32 0, ptr %14, align 4
%67 = load ptr, ptr %6, align 8
%68 = load i32, ptr %13, 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 %6, align 8
%73 = load i32, ptr %12, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = xor i32 %76, %71
store i32 %77, ptr %75, align 4
%78 = load ptr, ptr %6, align 8
%79 = load i32, ptr %13, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %81, align 4
%83 = xor i32 %82, %77
store i32 %83, ptr %81, align 4
%84 = load ptr, ptr %6, align 8
%85 = load i32, ptr %12, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
%88 = load i32, ptr %87, align 4
%89 = xor i32 %88, %83
store i32 %89, ptr %87, align 4
store i32 1, ptr %15, align 4
%90 = load i32, ptr %15, align 4
%91 = load i32, ptr %5, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %.lr.ph2, label %121
.lr.ph2: ; preds = %66
br label %93
93: ; preds = %.lr.ph2, %115
%94 = load ptr, ptr %8, align 8
%95 = load ptr, ptr %6, align 8
%96 = load i32, ptr %15, align 4
%97 = sub nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %95, i64 %98
%100 = load i32, ptr %99, align 4
%101 = load i32, ptr %5, align 4
%102 = mul nsw i32 %100, %101
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %94, i64 %103
%105 = load ptr, ptr %6, align 8
%106 = load i32, ptr %15, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, ptr %105, i64 %107
%109 = load i32, ptr %108, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %104, i64 %110
%112 = load i32, ptr %111, align 4
%113 = load i32, ptr %14, align 4
%114 = add nsw i32 %113, %112
store i32 %114, ptr %14, align 4
br label %115
115: ; preds = %93
%116 = load i32, ptr %15, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %15, align 4
%118 = load i32, ptr %15, align 4
%119 = load i32, ptr %5, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %93, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %115
br label %121
121: ; preds = %._crit_edge3, %66
%122 = load ptr, ptr %8, align 8
%123 = load ptr, ptr %6, align 8
%124 = load i32, ptr %5, align 4
%125 = sub nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, ptr %123, i64 %126
%128 = load i32, ptr %127, align 4
%129 = load i32, ptr %5, align 4
%130 = mul nsw i32 %128, %129
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, ptr %122, i64 %131
%133 = getelementptr inbounds i32, ptr %132, i64 0
%134 = load i32, ptr %133, align 4
%135 = load i32, ptr %14, align 4
%136 = add nsw i32 %135, %134
store i32 %136, ptr %14, align 4
%137 = load i32, ptr %14, align 4
%138 = load i32, ptr %7, align 4
%139 = icmp slt i32 %137, %138
br i1 %139, label %140, label %142
140: ; preds = %121
%141 = load i32, ptr %14, align 4
store i32 %141, ptr %7, align 4
br label %166
142: ; preds = %121
%143 = load ptr, ptr %6, align 8
%144 = load i32, ptr %13, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, ptr %143, i64 %145
%147 = load i32, ptr %146, align 4
%148 = load ptr, ptr %6, align 8
%149 = load i32, ptr %12, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, ptr %148, i64 %150
%152 = load i32, ptr %151, align 4
%153 = xor i32 %152, %147
store i32 %153, ptr %151, align 4
%154 = load ptr, ptr %6, align 8
%155 = load i32, ptr %13, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i32, ptr %154, i64 %156
%158 = load i32, ptr %157, align 4
%159 = xor i32 %158, %153
store i32 %159, ptr %157, align 4
%160 = load ptr, ptr %6, align 8
%161 = load i32, ptr %12, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i32, ptr %160, i64 %162
%164 = load i32, ptr %163, align 4
%165 = xor i32 %164, %159
store i32 %165, ptr %163, align 4
br label %166
166: ; preds = %142, %140
br label %19
167: ; preds = %37
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzbmc8hba.c'
source_filename = "/tmp/tmpzbmc8hba.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cdpvs:gfm:\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@optarg = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @getopt(i32 noundef %9, ptr noundef %10, ptr noundef @.str)
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp eq i32 %12, 63
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, ptr @EXIT_FAILURE, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = call i32 (...) @usage()
%22 = load i32, ptr @EXIT_FAILURE, align 4
%23 = call i32 @exit(i32 noundef %22) #3
unreachable
24: ; preds = %17
%25 = call i32 @ftok(ptr noundef @.str.1, i8 noundef signext 115)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %6, align 4
switch i32 %26, label %74 [
i32 99, label %27
i32 112, label %30
i32 118, label %37
i32 100, label %44
i32 115, label %49
i32 103, label %56
i32 102, label %61
i32 109, label %66
]
27: ; preds = %24
%28 = load i32, ptr %7, align 4
%29 = call i32 @sem_create(i32 noundef %28)
br label %74
30: ; preds = %24
%31 = load i32, ptr %7, align 4
%32 = call i32 @sem_open(i32 noundef %31)
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = call i32 @sem_p(i32 noundef %33)
%35 = load i32, ptr %8, align 4
%36 = call i32 @sem_getval(i32 noundef %35)
br label %74
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = call i32 @sem_open(i32 noundef %38)
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = call i32 @sem_v(i32 noundef %40)
%42 = load i32, ptr %8, align 4
%43 = call i32 @sem_getval(i32 noundef %42)
br label %74
44: ; preds = %24
%45 = load i32, ptr %7, align 4
%46 = call i32 @sem_open(i32 noundef %45)
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %8, align 4
%48 = call i32 @sem_d(i32 noundef %47)
br label %74
49: ; preds = %24
%50 = load i32, ptr %7, align 4
%51 = call i32 @sem_open(i32 noundef %50)
store i32 %51, ptr %8, align 4
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr @optarg, align 4
%54 = call i32 @atoi(i32 noundef %53)
%55 = call i32 @sem_setval(i32 noundef %52, i32 noundef %54)
br label %74
56: ; preds = %24
%57 = load i32, ptr %7, align 4
%58 = call i32 @sem_open(i32 noundef %57)
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = call i32 @sem_getval(i32 noundef %59)
br label %74
61: ; preds = %24
%62 = load i32, ptr %7, align 4
%63 = call i32 @sem_open(i32 noundef %62)
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = call i32 @sem_getmode(i32 noundef %64)
br label %74
66: ; preds = %24
%67 = load i32, ptr %7, align 4
%68 = call i32 @sem_open(i32 noundef %67)
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 2
%72 = load ptr, ptr %71, align 8
%73 = call i32 @sem_setmode(i32 noundef %69, ptr noundef %72)
br label %74
74: ; preds = %24, %66, %61, %56, %49, %44, %37, %30, %27
ret i32 0
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @usage(...) #1
declare i32 @ftok(ptr noundef, i8 noundef signext) #1
declare i32 @sem_create(i32 noundef) #1
declare i32 @sem_open(i32 noundef) #1
declare i32 @sem_p(i32 noundef) #1
declare i32 @sem_getval(i32 noundef) #1
declare i32 @sem_v(i32 noundef) #1
declare i32 @sem_d(i32 noundef) #1
declare i32 @sem_setval(i32 noundef, i32 noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @sem_getmode(i32 noundef) #1
declare i32 @sem_setmode(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzbmc8hba.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cdpvs:gfm:\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@optarg = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @getopt(i32 noundef %9, ptr noundef %10, ptr noundef @.str)
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp eq i32 %12, 63
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, ptr @EXIT_FAILURE, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = call i32 (...) @usage()
%22 = load i32, ptr @EXIT_FAILURE, align 4
%23 = call i32 @exit(i32 noundef %22) #3
unreachable
24: ; preds = %17
%25 = call i32 @ftok(ptr noundef @.str.1, i8 noundef signext 115)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %6, align 4
switch i32 %26, label %74 [
i32 99, label %27
i32 112, label %30
i32 118, label %37
i32 100, label %44
i32 115, label %49
i32 103, label %56
i32 102, label %61
i32 109, label %66
]
27: ; preds = %24
%28 = load i32, ptr %7, align 4
%29 = call i32 @sem_create(i32 noundef %28)
br label %74
30: ; preds = %24
%31 = load i32, ptr %7, align 4
%32 = call i32 @sem_open(i32 noundef %31)
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = call i32 @sem_p(i32 noundef %33)
%35 = load i32, ptr %8, align 4
%36 = call i32 @sem_getval(i32 noundef %35)
br label %74
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = call i32 @sem_open(i32 noundef %38)
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = call i32 @sem_v(i32 noundef %40)
%42 = load i32, ptr %8, align 4
%43 = call i32 @sem_getval(i32 noundef %42)
br label %74
44: ; preds = %24
%45 = load i32, ptr %7, align 4
%46 = call i32 @sem_open(i32 noundef %45)
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %8, align 4
%48 = call i32 @sem_d(i32 noundef %47)
br label %74
49: ; preds = %24
%50 = load i32, ptr %7, align 4
%51 = call i32 @sem_open(i32 noundef %50)
store i32 %51, ptr %8, align 4
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr @optarg, align 4
%54 = call i32 @atoi(i32 noundef %53)
%55 = call i32 @sem_setval(i32 noundef %52, i32 noundef %54)
br label %74
56: ; preds = %24
%57 = load i32, ptr %7, align 4
%58 = call i32 @sem_open(i32 noundef %57)
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = call i32 @sem_getval(i32 noundef %59)
br label %74
61: ; preds = %24
%62 = load i32, ptr %7, align 4
%63 = call i32 @sem_open(i32 noundef %62)
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = call i32 @sem_getmode(i32 noundef %64)
br label %74
66: ; preds = %24
%67 = load i32, ptr %7, align 4
%68 = call i32 @sem_open(i32 noundef %67)
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 2
%72 = load ptr, ptr %71, align 8
%73 = call i32 @sem_setmode(i32 noundef %69, ptr noundef %72)
br label %74
74: ; preds = %66, %61, %56, %49, %44, %37, %30, %27, %24
ret i32 0
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @usage(...) #1
declare i32 @ftok(ptr noundef, i8 noundef signext) #1
declare i32 @sem_create(i32 noundef) #1
declare i32 @sem_open(i32 noundef) #1
declare i32 @sem_p(i32 noundef) #1
declare i32 @sem_getval(i32 noundef) #1
declare i32 @sem_v(i32 noundef) #1
declare i32 @sem_d(i32 noundef) #1
declare i32 @sem_setval(i32 noundef, i32 noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @sem_getmode(i32 noundef) #1
declare i32 @sem_setmode(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqcx16a8r.c'
source_filename = "/tmp/tmpqcx16a8r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.TYPE_8__ = type { i32, i32 }
%struct.TYPE_6__ = type { i64, i32 }
%struct.TYPE_5__ = type { i32, i32 }
%struct.TYPE_7__ = type { i64, i32 }
@PROT_WRITE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"loader [bin file] [elf file]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@PROT_EXEC = dso_local global i32 0, align 4
@SHT_SYMTAB = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [9 x i8] c"_start_c\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"libc.so\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"LANG=C\00", align 1
@AT_BASE = dso_local global i64 0, align 8
@AT_NULL = dso_local global i64 0, align 8
@PT_DYNAMIC = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [34 x i8] c"Jumping to %p in %s loaded at %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca [9 x i64], align 16
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = 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
call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 72, i1 false)
%23 = load i32, ptr @PROT_WRITE, align 4
%24 = load i32, ptr @PROT_READ, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @MAP_PRIVATE, align 4
%27 = load i32, ptr @MAP_ANONYMOUS, align 4
%28 = or i32 %26, %27
%29 = call ptr @mmap(i32 noundef 0, i32 noundef 4, i32 noundef %25, i32 noundef %28, i64 noundef 0, i32 noundef 0)
store ptr %29, ptr %8, align 8
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 3
br i1 %31, label %32, label %36
32: ; preds = %2
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%34 = load i32, ptr @EXIT_FAILURE, align 4
%35 = call i32 @exit(i32 noundef %34) #4
unreachable
36: ; preds = %2
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr @O_RDONLY, align 4
%41 = call i64 @open(ptr noundef %39, i32 noundef %40)
store i64 %41, ptr %6, align 8
%42 = load i64, ptr %6, align 8
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %36
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 1
%47 = load ptr, ptr %46, align 8
%48 = call i32 @perror(ptr noundef %47)
%49 = load i32, ptr @EXIT_FAILURE, align 4
%50 = call i32 @exit(i32 noundef %49) #4
unreachable
51: ; preds = %36
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 2
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr @O_RDONLY, align 4
%56 = call i64 @open(ptr noundef %54, i32 noundef %55)
store i64 %56, ptr %7, align 8
%57 = load i64, ptr %7, align 8
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %66
59: ; preds = %51
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 2
%62 = load ptr, ptr %61, align 8
%63 = call i32 @perror(ptr noundef %62)
%64 = load i32, ptr @EXIT_FAILURE, align 4
%65 = call i32 @exit(i32 noundef %64) #4
unreachable
66: ; preds = %51
%67 = load i64, ptr %6, align 8
%68 = load ptr, ptr %8, align 8
%69 = call i32 @fstat(i64 noundef %67, ptr noundef %68)
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds %struct.stat, ptr %70, i32 0, i32 0
%72 = load i32, ptr %71, align 4
%73 = load i32, ptr @PROT_EXEC, align 4
%74 = load i32, ptr @PROT_WRITE, align 4
%75 = or i32 %73, %74
%76 = load i32, ptr @PROT_READ, align 4
%77 = or i32 %75, %76
%78 = load i32, ptr @MAP_PRIVATE, align 4
%79 = load i64, ptr %6, align 8
%80 = call ptr @mmap(i32 noundef 0, i32 noundef %72, i32 noundef %77, i32 noundef %78, i64 noundef %79, i32 noundef 0)
store ptr %80, ptr %9, align 8
%81 = load i64, ptr %7, align 8
%82 = load ptr, ptr %8, align 8
%83 = call i32 @fstat(i64 noundef %81, ptr noundef %82)
%84 = load ptr, ptr %8, align 8
%85 = getelementptr inbounds %struct.stat, ptr %84, i32 0, i32 0
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr @PROT_EXEC, align 4
%88 = load i32, ptr @PROT_WRITE, align 4
%89 = or i32 %87, %88
%90 = load i32, ptr @PROT_READ, align 4
%91 = or i32 %89, %90
%92 = load i32, ptr @MAP_PRIVATE, align 4
%93 = load i64, ptr %7, align 8
%94 = call ptr @mmap(i32 noundef 0, i32 noundef %86, i32 noundef %91, i32 noundef %92, i64 noundef %93, i32 noundef 0)
store ptr %94, ptr %10, align 8
%95 = load ptr, ptr %10, align 8
store ptr %95, ptr %19, align 8
%96 = load ptr, ptr %10, align 8
%97 = load ptr, ptr %19, align 8
%98 = getelementptr inbounds %struct.TYPE_8__, ptr %97, i32 0, i32 0
%99 = load i32, ptr %98, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %96, i64 %100
store ptr %101, ptr %20, align 8
%102 = load ptr, ptr %10, align 8
%103 = load ptr, ptr %19, align 8
%104 = getelementptr inbounds %struct.TYPE_8__, ptr %103, i32 0, i32 1
%105 = load i32, ptr %104, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %102, i64 %106
store ptr %107, ptr %21, align 8
br label %108
108: ; preds = %114, %66
%109 = load ptr, ptr %21, align 8
%110 = getelementptr inbounds %struct.TYPE_6__, ptr %109, i32 0, i32 0
%111 = load i64, ptr %110, align 8
%112 = load i64, ptr @SHT_SYMTAB, align 8
%113 = icmp ne i64 %111, %112
br i1 %113, label %114, label %117
114: ; preds = %108
%115 = load ptr, ptr %21, align 8
%116 = getelementptr inbounds %struct.TYPE_6__, ptr %115, i32 1
store ptr %116, ptr %21, align 8
br label %108, !llvm.loop !6
117: ; preds = %108
%118 = load ptr, ptr %10, align 8
%119 = load ptr, ptr %21, align 8
%120 = getelementptr inbounds %struct.TYPE_6__, ptr %119, i32 0, i32 1
%121 = load i32, ptr %120, align 8
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %118, i64 %122
store ptr %123, ptr %22, align 8
br label %124
124: ; preds = %132, %117
%125 = load ptr, ptr %10, align 8
%126 = load ptr, ptr %22, align 8
%127 = getelementptr inbounds %struct.TYPE_5__, ptr %126, i32 0, i32 1
%128 = load i32, ptr %127, align 4
%129 = call i32 @st_str(ptr noundef %125, i32 noundef %128)
%130 = call i64 @strcmp(i32 noundef %129, ptr noundef @.str.1)
%131 = icmp ne i64 %130, 0
br i1 %131, label %132, label %135
132: ; preds = %124
%133 = load ptr, ptr %22, align 8
%134 = getelementptr inbounds %struct.TYPE_5__, ptr %133, i32 1
store ptr %134, ptr %22, align 8
br label %124, !llvm.loop !8
135: ; preds = %124
%136 = load ptr, ptr %9, align 8
%137 = load ptr, ptr %22, align 8
%138 = getelementptr inbounds %struct.TYPE_5__, ptr %137, i32 0, i32 0
%139 = load i32, ptr %138, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8, ptr %136, i64 %140
store ptr %141, ptr %11, align 8
%142 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 0
store i64 1, ptr %142, align 16
%143 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 1
store i64 ptrtoint (ptr @.str.2 to i64), ptr %143, align 8
%144 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 2
store i64 0, ptr %144, align 16
%145 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 3
store i64 ptrtoint (ptr @.str.3 to i64), ptr %145, align 8
%146 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 4
store i64 0, ptr %146, align 16
%147 = load i64, ptr @AT_BASE, align 8
%148 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 5
store i64 %147, ptr %148, align 8
%149 = load ptr, ptr %9, align 8
%150 = ptrtoint ptr %149 to i64
%151 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 6
store i64 %150, ptr %151, align 16
%152 = load i64, ptr @AT_NULL, align 8
%153 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 7
store i64 %152, ptr %153, align 8
%154 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 8
store i64 0, ptr %154, align 16
br label %155
155: ; preds = %161, %135
%156 = load ptr, ptr %20, align 8
%157 = getelementptr inbounds %struct.TYPE_7__, ptr %156, i32 0, i32 0
%158 = load i64, ptr %157, align 8
%159 = load i64, ptr @PT_DYNAMIC, align 8
%160 = icmp ne i64 %158, %159
br i1 %160, label %161, label %164
161: ; preds = %155
%162 = load ptr, ptr %20, align 8
%163 = getelementptr inbounds %struct.TYPE_7__, ptr %162, i32 1
store ptr %163, ptr %20, align 8
br label %155, !llvm.loop !9
164: ; preds = %155
%165 = load ptr, ptr %9, align 8
%166 = load ptr, ptr %20, align 8
%167 = getelementptr inbounds %struct.TYPE_7__, ptr %166, i32 0, i32 1
%168 = load i32, ptr %167, align 8
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds i8, ptr %165, i64 %169
store ptr %170, ptr %18, align 8
%171 = load ptr, ptr %11, align 8
%172 = load ptr, ptr %5, align 8
%173 = getelementptr inbounds ptr, ptr %172, i64 1
%174 = load ptr, ptr %173, align 8
%175 = load ptr, ptr %9, align 8
%176 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %171, ptr noundef %174, ptr noundef %175)
%177 = load ptr, ptr %11, align 8
%178 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 0
%179 = load ptr, ptr %18, align 8
call void %177(ptr noundef %178, ptr noundef %179)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @open(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @fstat(i64 noundef, ptr noundef) #2
declare i64 @strcmp(i32 noundef, ptr noundef) #2
declare i32 @st_str(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqcx16a8r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.TYPE_8__ = type { i32, i32 }
%struct.TYPE_6__ = type { i64, i32 }
%struct.TYPE_5__ = type { i32, i32 }
%struct.TYPE_7__ = type { i64, i32 }
@PROT_WRITE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"loader [bin file] [elf file]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@PROT_EXEC = dso_local global i32 0, align 4
@SHT_SYMTAB = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [9 x i8] c"_start_c\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"libc.so\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"LANG=C\00", align 1
@AT_BASE = dso_local global i64 0, align 8
@AT_NULL = dso_local global i64 0, align 8
@PT_DYNAMIC = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [34 x i8] c"Jumping to %p in %s loaded at %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca [9 x i64], align 16
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = 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
call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 72, i1 false)
%23 = load i32, ptr @PROT_WRITE, align 4
%24 = load i32, ptr @PROT_READ, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @MAP_PRIVATE, align 4
%27 = load i32, ptr @MAP_ANONYMOUS, align 4
%28 = or i32 %26, %27
%29 = call ptr @mmap(i32 noundef 0, i32 noundef 4, i32 noundef %25, i32 noundef %28, i64 noundef 0, i32 noundef 0)
store ptr %29, ptr %8, align 8
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 3
br i1 %31, label %32, label %36
32: ; preds = %2
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%34 = load i32, ptr @EXIT_FAILURE, align 4
%35 = call i32 @exit(i32 noundef %34) #4
unreachable
36: ; preds = %2
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr @O_RDONLY, align 4
%41 = call i64 @open(ptr noundef %39, i32 noundef %40)
store i64 %41, ptr %6, align 8
%42 = load i64, ptr %6, align 8
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %36
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 1
%47 = load ptr, ptr %46, align 8
%48 = call i32 @perror(ptr noundef %47)
%49 = load i32, ptr @EXIT_FAILURE, align 4
%50 = call i32 @exit(i32 noundef %49) #4
unreachable
51: ; preds = %36
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 2
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr @O_RDONLY, align 4
%56 = call i64 @open(ptr noundef %54, i32 noundef %55)
store i64 %56, ptr %7, align 8
%57 = load i64, ptr %7, align 8
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %66
59: ; preds = %51
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 2
%62 = load ptr, ptr %61, align 8
%63 = call i32 @perror(ptr noundef %62)
%64 = load i32, ptr @EXIT_FAILURE, align 4
%65 = call i32 @exit(i32 noundef %64) #4
unreachable
66: ; preds = %51
%67 = load i64, ptr %6, align 8
%68 = load ptr, ptr %8, align 8
%69 = call i32 @fstat(i64 noundef %67, ptr noundef %68)
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds %struct.stat, ptr %70, i32 0, i32 0
%72 = load i32, ptr %71, align 4
%73 = load i32, ptr @PROT_EXEC, align 4
%74 = load i32, ptr @PROT_WRITE, align 4
%75 = or i32 %73, %74
%76 = load i32, ptr @PROT_READ, align 4
%77 = or i32 %75, %76
%78 = load i32, ptr @MAP_PRIVATE, align 4
%79 = load i64, ptr %6, align 8
%80 = call ptr @mmap(i32 noundef 0, i32 noundef %72, i32 noundef %77, i32 noundef %78, i64 noundef %79, i32 noundef 0)
store ptr %80, ptr %9, align 8
%81 = load i64, ptr %7, align 8
%82 = load ptr, ptr %8, align 8
%83 = call i32 @fstat(i64 noundef %81, ptr noundef %82)
%84 = load ptr, ptr %8, align 8
%85 = getelementptr inbounds %struct.stat, ptr %84, i32 0, i32 0
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr @PROT_EXEC, align 4
%88 = load i32, ptr @PROT_WRITE, align 4
%89 = or i32 %87, %88
%90 = load i32, ptr @PROT_READ, align 4
%91 = or i32 %89, %90
%92 = load i32, ptr @MAP_PRIVATE, align 4
%93 = load i64, ptr %7, align 8
%94 = call ptr @mmap(i32 noundef 0, i32 noundef %86, i32 noundef %91, i32 noundef %92, i64 noundef %93, i32 noundef 0)
store ptr %94, ptr %10, align 8
%95 = load ptr, ptr %10, align 8
store ptr %95, ptr %19, align 8
%96 = load ptr, ptr %10, align 8
%97 = load ptr, ptr %19, align 8
%98 = getelementptr inbounds %struct.TYPE_8__, ptr %97, i32 0, i32 0
%99 = load i32, ptr %98, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %96, i64 %100
store ptr %101, ptr %20, align 8
%102 = load ptr, ptr %10, align 8
%103 = load ptr, ptr %19, align 8
%104 = getelementptr inbounds %struct.TYPE_8__, ptr %103, i32 0, i32 1
%105 = load i32, ptr %104, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %102, i64 %106
store ptr %107, ptr %21, align 8
%108 = load ptr, ptr %21, align 8
%109 = load i64, ptr %108, align 8
%110 = load i64, ptr @SHT_SYMTAB, align 8
%111 = icmp ne i64 %109, %110
br i1 %111, label %.lr.ph, label %120
.lr.ph: ; preds = %66
br label %112
112: ; preds = %.lr.ph, %112
%113 = load ptr, ptr %21, align 8
%114 = getelementptr inbounds %struct.TYPE_6__, ptr %113, i32 1
store ptr %114, ptr %21, align 8
%115 = load ptr, ptr %21, align 8
%116 = getelementptr inbounds %struct.TYPE_6__, ptr %115, i32 0, i32 0
%117 = load i64, ptr %116, align 8
%118 = load i64, ptr @SHT_SYMTAB, align 8
%119 = icmp ne i64 %117, %118
br i1 %119, label %112, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %112
br label %120
120: ; preds = %._crit_edge, %66
%121 = load ptr, ptr %10, align 8
%122 = load ptr, ptr %21, align 8
%123 = getelementptr inbounds %struct.TYPE_6__, ptr %122, i32 0, i32 1
%124 = load i32, ptr %123, align 8
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, ptr %121, i64 %125
store ptr %126, ptr %22, align 8
%127 = load ptr, ptr %10, align 8
%128 = load ptr, ptr %22, align 8
%129 = getelementptr inbounds %struct.TYPE_5__, ptr %128, i32 0, i32 1
%130 = load i32, ptr %129, align 4
%131 = call i32 @st_str(ptr noundef %127, i32 noundef %130)
%132 = call i64 @strcmp(i32 noundef %131, ptr noundef @.str.1)
%133 = icmp ne i64 %132, 0
br i1 %133, label %.lr.ph2, label %144
.lr.ph2: ; preds = %120
br label %134
134: ; preds = %.lr.ph2, %134
%135 = load ptr, ptr %22, align 8
%136 = getelementptr inbounds %struct.TYPE_5__, ptr %135, i32 1
store ptr %136, ptr %22, align 8
%137 = load ptr, ptr %10, align 8
%138 = load ptr, ptr %22, align 8
%139 = getelementptr inbounds %struct.TYPE_5__, ptr %138, i32 0, i32 1
%140 = load i32, ptr %139, align 4
%141 = call i32 @st_str(ptr noundef %137, i32 noundef %140)
%142 = call i64 @strcmp(i32 noundef %141, ptr noundef @.str.1)
%143 = icmp ne i64 %142, 0
br i1 %143, label %134, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %134
br label %144
144: ; preds = %._crit_edge3, %120
%145 = load ptr, ptr %9, align 8
%146 = load ptr, ptr %22, align 8
%147 = getelementptr inbounds %struct.TYPE_5__, ptr %146, i32 0, i32 0
%148 = load i32, ptr %147, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i8, ptr %145, i64 %149
store ptr %150, ptr %11, align 8
%151 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 0
store i64 1, ptr %151, align 16
%152 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 1
store i64 ptrtoint (ptr @.str.2 to i64), ptr %152, align 8
%153 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 2
store i64 0, ptr %153, align 16
%154 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 3
store i64 ptrtoint (ptr @.str.3 to i64), ptr %154, align 8
%155 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 4
store i64 0, ptr %155, align 16
%156 = load i64, ptr @AT_BASE, align 8
%157 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 5
store i64 %156, ptr %157, align 8
%158 = load ptr, ptr %9, align 8
%159 = ptrtoint ptr %158 to i64
%160 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 6
store i64 %159, ptr %160, align 16
%161 = load i64, ptr @AT_NULL, align 8
%162 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 7
store i64 %161, ptr %162, align 8
%163 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 8
store i64 0, ptr %163, align 16
%164 = load ptr, ptr %20, align 8
%165 = load i64, ptr %164, align 8
%166 = load i64, ptr @PT_DYNAMIC, align 8
%167 = icmp ne i64 %165, %166
br i1 %167, label %.lr.ph5, label %176
.lr.ph5: ; preds = %144
br label %168
168: ; preds = %.lr.ph5, %168
%169 = load ptr, ptr %20, align 8
%170 = getelementptr inbounds %struct.TYPE_7__, ptr %169, i32 1
store ptr %170, ptr %20, align 8
%171 = load ptr, ptr %20, align 8
%172 = getelementptr inbounds %struct.TYPE_7__, ptr %171, i32 0, i32 0
%173 = load i64, ptr %172, align 8
%174 = load i64, ptr @PT_DYNAMIC, align 8
%175 = icmp ne i64 %173, %174
br i1 %175, label %168, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %168
br label %176
176: ; preds = %._crit_edge6, %144
%177 = load ptr, ptr %9, align 8
%178 = load ptr, ptr %20, align 8
%179 = getelementptr inbounds %struct.TYPE_7__, ptr %178, i32 0, i32 1
%180 = load i32, ptr %179, align 8
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i8, ptr %177, i64 %181
store ptr %182, ptr %18, align 8
%183 = load ptr, ptr %11, align 8
%184 = load ptr, ptr %5, align 8
%185 = getelementptr inbounds ptr, ptr %184, i64 1
%186 = load ptr, ptr %185, align 8
%187 = load ptr, ptr %9, align 8
%188 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %183, ptr noundef %186, ptr noundef %187)
%189 = load ptr, ptr %11, align 8
%190 = getelementptr inbounds [9 x i64], ptr %17, i64 0, i64 0
%191 = load ptr, ptr %18, align 8
call void %189(ptr noundef %190, ptr noundef %191)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @open(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @fstat(i64 noundef, ptr noundef) #2
declare i64 @strcmp(i32 noundef, ptr noundef) #2
declare i32 @st_str(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxs5se2de.c'
source_filename = "/tmp/tmpxs5se2de.c"
target datalayout = "e-m:e-p270: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/tmpxs5se2de.c"
target datalayout = "e-m:e-p270: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/tmpy4_b_grc.c'
source_filename = "/tmp/tmpy4_b_grc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caller() #0 {
%1 = call i32 (...) @direct()
%2 = call i32 (...) @indirect()
ret void
}
declare i32 @direct(...) #1
declare i32 @indirect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy4_b_grc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caller() #0 {
%1 = call i32 (...) @direct()
%2 = call i32 (...) @indirect()
ret void
}
declare i32 @direct(...) #1
declare i32 @indirect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr9k4k3v3.c'
source_filename = "/tmp/tmpr9k4k3v3.c"
target datalayout = "e-m:e-p270: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/tmpr9k4k3v3.c"
target datalayout = "e-m:e-p270: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/tmpi3xivkie.c'
source_filename = "/tmp/tmpi3xivkie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"You didn't give any arguments!\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Here's your arguments:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"Only 2 arguments are allowed; you gave %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %41
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %35
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %35
17: ; preds = %14
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %19
19: ; preds = %30, %17
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
br label %30
30: ; preds = %23
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %19, !llvm.loop !6
33: ; preds = %19
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %39
35: ; preds = %14, %11
%36 = load i32, ptr %4, align 4
%37 = sub nsw i32 %36, 1
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %37)
store i32 1, ptr %3, align 4
br label %41
39: ; preds = %33
br label %40
40: ; preds = %39
store i32 0, ptr %3, align 4
br label %41
41: ; preds = %40, %35, %9
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi3xivkie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"You didn't give any arguments!\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Here's your arguments:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"Only 2 arguments are allowed; you gave %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %43
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %37
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %37
17: ; preds = %14
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %35
.lr.ph: ; preds = %17
br label %22
22: ; preds = %.lr.ph, %29
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
br label %29
29: ; preds = %22
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %17
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %41
37: ; preds = %14, %11
%38 = load i32, ptr %4, align 4
%39 = sub nsw i32 %38, 1
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %39)
store i32 1, ptr %3, align 4
br label %43
41: ; preds = %35
br label %42
42: ; preds = %41
store i32 0, ptr %3, align 4
br label %43
43: ; preds = %42, %37, %9
%44 = load i32, ptr %3, align 4
ret i32 %44
}
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/tmpsk34rf3b.c'
source_filename = "/tmp/tmpsk34rf3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gmp_add(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @mpz_add(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %6, align 4
%13 = call i64 @mpz_cmp(i32 noundef %11, i32 noundef %12)
%14 = icmp sge i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @mpz_sub(i32 noundef %16, i32 noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
ret void
}
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp(i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(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/tmpsk34rf3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gmp_add(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @mpz_add(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %6, align 4
%13 = call i64 @mpz_cmp(i32 noundef %11, i32 noundef %12)
%14 = icmp sge i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @mpz_sub(i32 noundef %16, i32 noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
ret void
}
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp(i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(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/tmpqu8084pb.c'
source_filename = "/tmp/tmpqu8084pb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = 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/tmpqu8084pb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = 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/tmpia45cvy1.c'
source_filename = "/tmp/tmpia45cvy1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Hello World from thread = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Number of threads = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @omp_get_thread_num()
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %7, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = call i32 (...) @omp_get_num_threads()
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @printf(ptr noundef @.str.1, i32 noundef %15)
br label %17
17: ; preds = %13, %2
ret i32 0
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @omp_get_num_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpia45cvy1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Hello World from thread = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Number of threads = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @omp_get_thread_num()
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %7, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = call i32 (...) @omp_get_num_threads()
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @printf(ptr noundef @.str.1, i32 noundef %15)
br label %17
17: ; preds = %13, %2
ret i32 0
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @omp_get_num_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp826hn5ci.c'
source_filename = "/tmp/tmp826hn5ci.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
store i64 %9, ptr %4, align 8
%10 = load i64, ptr %4, align 8
%11 = call ptr @malloc(i64 noundef %10) #3
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = call ptr @memcpy(ptr noundef %16, ptr noundef %17, i64 noundef %18)
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %15, %14
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare ptr @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp826hn5ci.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
store i64 %9, ptr %4, align 8
%10 = load i64, ptr %4, align 8
%11 = call ptr @malloc(i64 noundef %10) #3
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %20
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = call ptr @memcpy(ptr noundef %16, ptr noundef %17, i64 noundef %18)
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %15, %14
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare ptr @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpefnzotpa.c'
source_filename = "/tmp/tmpefnzotpa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.2lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 3.000000e+05, ptr %2, align 8
store double 6.000000e+03, ptr %3, align 8
store double 1.000000e-02, ptr %4, align 8
%6 = load double, ptr %3, align 8
%7 = fptosi double %6 to i32
%8 = call double @log10(i32 noundef %7)
%9 = load double, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = load double, ptr %4, align 8
%12 = fneg double %10
%13 = call double @llvm.fmuladd.f64(double %12, double %11, double %9)
%14 = fptosi double %13 to i32
%15 = call double @log10(i32 noundef %14)
%16 = fsub double %8, %15
%17 = load double, ptr %4, align 8
%18 = fadd double 1.000000e+00, %17
%19 = fptosi double %18 to i32
%20 = call double @log10(i32 noundef %19)
%21 = fdiv double %16, %20
store double %21, ptr %5, align 8
%22 = load double, ptr %5, align 8
%23 = call i32 @printf(ptr noundef @.str, double noundef %22)
ret i32 0
}
declare double @log10(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpefnzotpa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.2lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 3.000000e+05, ptr %2, align 8
store double 6.000000e+03, ptr %3, align 8
store double 1.000000e-02, ptr %4, align 8
%6 = load double, ptr %3, align 8
%7 = fptosi double %6 to i32
%8 = call double @log10(i32 noundef %7)
%9 = load double, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = load double, ptr %4, align 8
%12 = fneg double %10
%13 = call double @llvm.fmuladd.f64(double %12, double %11, double %9)
%14 = fptosi double %13 to i32
%15 = call double @log10(i32 noundef %14)
%16 = fsub double %8, %15
%17 = load double, ptr %4, align 8
%18 = fadd double 1.000000e+00, %17
%19 = fptosi double %18 to i32
%20 = call double @log10(i32 noundef %19)
%21 = fdiv double %16, %20
store double %21, ptr %5, align 8
%22 = load double, ptr %5, align 8
%23 = call i32 @printf(ptr noundef @.str, double noundef %22)
ret i32 0
}
declare double @log10(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqgeh1co_.c'
source_filename = "/tmp/tmpqgeh1co_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @maximo(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds double, ptr %9, i64 %11
%13 = load double, ptr %12, align 8
%14 = call double @llvm.fabs.f64(double %13)
store double %14, ptr %8, align 8
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %7, align 4
br label %17
17: ; preds = %38, %3
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %41
21: ; preds = %17
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %22, i64 %24
%26 = load double, ptr %25, align 8
%27 = call double @llvm.fabs.f64(double %26)
%28 = load double, ptr %8, align 8
%29 = fcmp ogt double %27, %28
br i1 %29, label %30, label %37
30: ; preds = %21
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = call double @llvm.fabs.f64(double %35)
store double %36, ptr %8, align 8
br label %37
37: ; preds = %30, %21
br label %38
38: ; preds = %37
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
br label %17, !llvm.loop !6
41: ; preds = %17
%42 = load double, ptr %8, align 8
ret double %42
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqgeh1co_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @maximo(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds double, ptr %9, i64 %11
%13 = load double, ptr %12, align 8
%14 = call double @llvm.fabs.f64(double %13)
store double %14, ptr %8, align 8
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %43
.lr.ph: ; preds = %3
br label %20
20: ; preds = %.lr.ph, %37
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
%25 = load double, ptr %24, align 8
%26 = call double @llvm.fabs.f64(double %25)
%27 = load double, ptr %8, align 8
%28 = fcmp ogt double %26, %27
br i1 %28, label %29, label %36
29: ; preds = %20
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %30, i64 %32
%34 = load double, ptr %33, align 8
%35 = call double @llvm.fabs.f64(double %34)
store double %35, ptr %8, align 8
br label %36
36: ; preds = %29, %20
br label %37
37: ; preds = %36
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %3
%44 = load double, ptr %8, align 8
ret double %44
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7us73wch.c'
source_filename = "/tmp/tmp7us73wch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysCtlLDOSleepGet() #0 {
%1 = load volatile i64, ptr inttoptr (i64 1074782644 to ptr), align 8
ret i64 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7us73wch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysCtlLDOSleepGet() #0 {
%1 = load volatile i64, ptr inttoptr (i64 1074782644 to ptr), align 8
ret i64 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp029pukzf.c'
source_filename = "/tmp/tmp029pukzf.c"
target datalayout = "e-m:e-p270: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/tmp029pukzf.c"
target datalayout = "e-m:e-p270: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/tmp5l5ov93n.c'
source_filename = "/tmp/tmp5l5ov93n.c"
target datalayout = "e-m:e-p270: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/tmp5l5ov93n.c"
target datalayout = "e-m:e-p270: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/tmpgo2r9dl7.c'
source_filename = "/tmp/tmpgo2r9dl7.c"
target datalayout = "e-m:e-p270: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/tmpgo2r9dl7.c"
target datalayout = "e-m:e-p270: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/tmpwq1q98_n.c'
source_filename = "/tmp/tmpwq1q98_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@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
@S_IROTH = dso_local global i32 0, align 4
@S_IWOTH = dso_local global i32 0, align 4
@S_IXOTH = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IXGRP = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"create file %s failed:%d:%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%s-tmp-file\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"pwrite on %s failed at %llu:%d:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prep_file(ptr noundef %0, i64 noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 -1, ptr %9, align 4
store i32 -1, ptr %10, align 4
store i32 0, ptr %11, align 4
store i64 0, ptr %12, align 8
store i64 0, ptr %13, align 8
%18 = load i32, ptr @PATH_MAX, align 4
%19 = zext i32 %18 to i64
%20 = call ptr @llvm.stacksave()
store ptr %20, ptr %14, align 8
%21 = alloca i8, i64 %19, align 16
store i64 %19, ptr %15, align 8
store ptr null, ptr %16, align 8
%22 = load i32, ptr @O_CREAT, align 4
%23 = load i32, ptr @O_RDWR, align 4
%24 = or i32 %22, %23
%25 = load i32, ptr @O_APPEND, align 4
%26 = or i32 %24, %25
%27 = load i32, ptr @O_TRUNC, align 4
%28 = or i32 %26, %27
store i32 %28, ptr %17, align 4
%29 = load i64, ptr %7, align 8
%30 = call i64 @malloc(i64 noundef %29)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %16, align 8
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %17, align 4
%34 = load i32, ptr @S_IRUSR, align 4
%35 = load i32, ptr @S_IWUSR, align 4
%36 = or i32 %34, %35
%37 = load i32, ptr @S_IXUSR, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr @S_IROTH, align 4
%40 = or i32 %38, %39
%41 = load i32, ptr @S_IWOTH, align 4
%42 = or i32 %40, %41
%43 = load i32, ptr @S_IXOTH, align 4
%44 = or i32 %42, %43
%45 = load i32, ptr @S_IRGRP, align 4
%46 = or i32 %44, %45
%47 = load i32, ptr @S_IWGRP, align 4
%48 = or i32 %46, %47
%49 = load i32, ptr @S_IXGRP, align 4
%50 = or i32 %48, %49
%51 = call i32 @open64(ptr noundef %32, i32 noundef %33, i32 noundef %50)
store i32 %51, ptr %9, align 4
%52 = load i32, ptr %9, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %64
54: ; preds = %4
%55 = load i32, ptr %9, align 4
store i32 %55, ptr %11, align 4
%56 = load i32, ptr @errno, align 4
store i32 %56, ptr %9, align 4
%57 = load i32, ptr @stderr, align 4
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = load i32, ptr %9, align 4
%62 = call ptr @strerror(i32 noundef %61)
%63 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %57, ptr noundef @.str, ptr noundef %58, i64 noundef %60, ptr noundef %62)
br label %161
64: ; preds = %4
%65 = load ptr, ptr %16, align 8
%66 = load i64, ptr %7, align 8
%67 = call i32 @memset(ptr noundef %65, i8 noundef signext 97, i64 noundef %66)
%68 = load i32, ptr @PATH_MAX, align 4
%69 = load ptr, ptr %5, align 8
%70 = call i32 @snprintf(ptr noundef %21, i32 noundef %68, ptr noundef @.str.1, ptr noundef %69)
%71 = load i32, ptr %17, align 4
%72 = load i32, ptr @S_IRUSR, align 4
%73 = load i32, ptr @S_IWUSR, align 4
%74 = or i32 %72, %73
%75 = load i32, ptr @S_IXUSR, align 4
%76 = or i32 %74, %75
%77 = load i32, ptr @S_IROTH, align 4
%78 = or i32 %76, %77
%79 = load i32, ptr @S_IWOTH, align 4
%80 = or i32 %78, %79
%81 = load i32, ptr @S_IXOTH, align 4
%82 = or i32 %80, %81
%83 = load i32, ptr @S_IRGRP, align 4
%84 = or i32 %82, %83
%85 = load i32, ptr @S_IWGRP, align 4
%86 = or i32 %84, %85
%87 = load i32, ptr @S_IXGRP, align 4
%88 = or i32 %86, %87
%89 = call i32 @open64(ptr noundef %21, i32 noundef %71, i32 noundef %88)
store i32 %89, ptr %10, align 4
%90 = load i32, ptr %10, align 4
%91 = icmp slt i32 %90, 0
br i1 %91, label %92, label %101
92: ; preds = %64
%93 = load i32, ptr %10, align 4
store i32 %93, ptr %11, align 4
%94 = load i32, ptr @errno, align 4
store i32 %94, ptr %10, align 4
%95 = load i32, ptr @stderr, align 4
%96 = load i32, ptr %10, align 4
%97 = sext i32 %96 to i64
%98 = load i32, ptr %10, align 4
%99 = call ptr @strerror(i32 noundef %98)
%100 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %95, ptr noundef @.str, ptr noundef %21, i64 noundef %97, ptr noundef %99)
br label %161
101: ; preds = %64
%102 = load i32, ptr %8, align 4
%103 = icmp ne i32 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = call i32 @unlink(ptr noundef %21)
br label %106
106: ; preds = %104, %101
br label %107
107: ; preds = %156, %106
%108 = load i64, ptr %12, align 8
%109 = load i64, ptr %6, align 8
%110 = icmp ult i64 %108, %109
br i1 %110, label %111, label %160
111: ; preds = %107
%112 = load i64, ptr %12, align 8
%113 = load i64, ptr %7, align 8
%114 = add i64 %112, %113
%115 = load i64, ptr %6, align 8
%116 = icmp ugt i64 %114, %115
br i1 %116, label %117, label %121
117: ; preds = %111
%118 = load i64, ptr %6, align 8
%119 = load i64, ptr %12, align 8
%120 = sub i64 %118, %119
store i64 %120, ptr %13, align 8
br label %123
121: ; preds = %111
%122 = load i64, ptr %7, align 8
store i64 %122, ptr %13, align 8
br label %123
123: ; preds = %121, %117
%124 = load i32, ptr %9, align 4
%125 = load ptr, ptr %16, align 8
%126 = load i64, ptr %13, align 8
%127 = load i64, ptr %12, align 8
%128 = call i32 @pwrite(i32 noundef %124, ptr noundef %125, i64 noundef %126, i64 noundef %127)
store i32 %128, ptr %11, align 4
%129 = load i32, ptr %11, align 4
%130 = icmp slt i32 %129, 0
br i1 %130, label %131, label %140
131: ; preds = %123
%132 = load i32, ptr @errno, align 4
store i32 %132, ptr %11, align 4
%133 = load i32, ptr @stderr, align 4
%134 = load ptr, ptr %5, align 8
%135 = load i64, ptr %12, align 8
%136 = load i32, ptr %11, align 4
%137 = load i32, ptr %11, align 4
%138 = call ptr @strerror(i32 noundef %137)
%139 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %133, ptr noundef @.str.2, ptr noundef %134, i64 noundef %135, i32 noundef %136, ptr noundef %138)
br label %161
140: ; preds = %123
%141 = load i32, ptr %10, align 4
%142 = load ptr, ptr %16, align 8
%143 = load i64, ptr %13, align 8
%144 = load i64, ptr %12, align 8
%145 = call i32 @pwrite(i32 noundef %141, ptr noundef %142, i64 noundef %143, i64 noundef %144)
store i32 %145, ptr %11, align 4
%146 = load i32, ptr %11, align 4
%147 = icmp slt i32 %146, 0
br i1 %147, label %148, label %156
148: ; preds = %140
%149 = load i32, ptr @errno, align 4
store i32 %149, ptr %11, align 4
%150 = load i32, ptr @stderr, align 4
%151 = load i64, ptr %12, align 8
%152 = load i32, ptr %11, align 4
%153 = load i32, ptr %11, align 4
%154 = call ptr @strerror(i32 noundef %153)
%155 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %150, ptr noundef @.str.2, ptr noundef %21, i64 noundef %151, i32 noundef %152, ptr noundef %154)
br label %161
156: ; preds = %140
%157 = load i64, ptr %13, align 8
%158 = load i64, ptr %12, align 8
%159 = add i64 %158, %157
store i64 %159, ptr %12, align 8
br label %107, !llvm.loop !6
160: ; preds = %107
store i32 0, ptr %11, align 4
br label %161
161: ; preds = %160, %148, %131, %92, %54
%162 = load ptr, ptr %16, align 8
%163 = icmp ne ptr %162, null
br i1 %163, label %164, label %167
164: ; preds = %161
%165 = load ptr, ptr %16, align 8
%166 = call i32 @free(ptr noundef %165)
br label %167
167: ; preds = %164, %161
%168 = load i32, ptr %10, align 4
%169 = icmp sgt i32 %168, 0
br i1 %169, label %170, label %173
170: ; preds = %167
%171 = load i32, ptr %10, align 4
%172 = call i32 @close(i32 noundef %171)
br label %173
173: ; preds = %170, %167
%174 = load i32, ptr %9, align 4
%175 = icmp sgt i32 %174, 0
br i1 %175, label %176, label %179
176: ; preds = %173
%177 = load i32, ptr %9, align 4
%178 = call i32 @close(i32 noundef %177)
br label %179
179: ; preds = %176, %173
%180 = load i32, ptr %11, align 4
%181 = load ptr, ptr %14, align 8
call void @llvm.stackrestore(ptr %181)
ret i32 %180
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i64 @malloc(i64 noundef) #2
declare i32 @open64(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i64 noundef, ...) #2
declare ptr @strerror(i32 noundef) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i64 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @unlink(ptr noundef) #2
declare i32 @pwrite(i32 noundef, ptr noundef, i64 noundef, i64 noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @close(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwq1q98_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@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
@S_IROTH = dso_local global i32 0, align 4
@S_IWOTH = dso_local global i32 0, align 4
@S_IXOTH = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IXGRP = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"create file %s failed:%d:%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%s-tmp-file\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"pwrite on %s failed at %llu:%d:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prep_file(ptr noundef %0, i64 noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 -1, ptr %9, align 4
store i32 -1, ptr %10, align 4
store i32 0, ptr %11, align 4
store i64 0, ptr %12, align 8
store i64 0, ptr %13, align 8
%18 = load i32, ptr @PATH_MAX, align 4
%19 = zext i32 %18 to i64
%20 = call ptr @llvm.stacksave()
store ptr %20, ptr %14, align 8
%21 = alloca i8, i64 %19, align 16
store i64 %19, ptr %15, align 8
store ptr null, ptr %16, align 8
%22 = load i32, ptr @O_CREAT, align 4
%23 = load i32, ptr @O_RDWR, align 4
%24 = or i32 %22, %23
%25 = load i32, ptr @O_APPEND, align 4
%26 = or i32 %24, %25
%27 = load i32, ptr @O_TRUNC, align 4
%28 = or i32 %26, %27
store i32 %28, ptr %17, align 4
%29 = load i64, ptr %7, align 8
%30 = call i64 @malloc(i64 noundef %29)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %16, align 8
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %17, align 4
%34 = load i32, ptr @S_IRUSR, align 4
%35 = load i32, ptr @S_IWUSR, align 4
%36 = or i32 %34, %35
%37 = load i32, ptr @S_IXUSR, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr @S_IROTH, align 4
%40 = or i32 %38, %39
%41 = load i32, ptr @S_IWOTH, align 4
%42 = or i32 %40, %41
%43 = load i32, ptr @S_IXOTH, align 4
%44 = or i32 %42, %43
%45 = load i32, ptr @S_IRGRP, align 4
%46 = or i32 %44, %45
%47 = load i32, ptr @S_IWGRP, align 4
%48 = or i32 %46, %47
%49 = load i32, ptr @S_IXGRP, align 4
%50 = or i32 %48, %49
%51 = call i32 @open64(ptr noundef %32, i32 noundef %33, i32 noundef %50)
store i32 %51, ptr %9, align 4
%52 = load i32, ptr %9, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %64
54: ; preds = %4
%55 = load i32, ptr %9, align 4
store i32 %55, ptr %11, align 4
%56 = load i32, ptr @errno, align 4
store i32 %56, ptr %9, align 4
%57 = load i32, ptr @stderr, align 4
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = load i32, ptr %9, align 4
%62 = call ptr @strerror(i32 noundef %61)
%63 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %57, ptr noundef @.str, ptr noundef %58, i64 noundef %60, ptr noundef %62)
br label %163
64: ; preds = %4
%65 = load ptr, ptr %16, align 8
%66 = load i64, ptr %7, align 8
%67 = call i32 @memset(ptr noundef %65, i8 noundef signext 97, i64 noundef %66)
%68 = load i32, ptr @PATH_MAX, align 4
%69 = load ptr, ptr %5, align 8
%70 = call i32 @snprintf(ptr noundef %21, i32 noundef %68, ptr noundef @.str.1, ptr noundef %69)
%71 = load i32, ptr %17, align 4
%72 = load i32, ptr @S_IRUSR, align 4
%73 = load i32, ptr @S_IWUSR, align 4
%74 = or i32 %72, %73
%75 = load i32, ptr @S_IXUSR, align 4
%76 = or i32 %74, %75
%77 = load i32, ptr @S_IROTH, align 4
%78 = or i32 %76, %77
%79 = load i32, ptr @S_IWOTH, align 4
%80 = or i32 %78, %79
%81 = load i32, ptr @S_IXOTH, align 4
%82 = or i32 %80, %81
%83 = load i32, ptr @S_IRGRP, align 4
%84 = or i32 %82, %83
%85 = load i32, ptr @S_IWGRP, align 4
%86 = or i32 %84, %85
%87 = load i32, ptr @S_IXGRP, align 4
%88 = or i32 %86, %87
%89 = call i32 @open64(ptr noundef %21, i32 noundef %71, i32 noundef %88)
store i32 %89, ptr %10, align 4
%90 = load i32, ptr %10, align 4
%91 = icmp slt i32 %90, 0
br i1 %91, label %92, label %101
92: ; preds = %64
%93 = load i32, ptr %10, align 4
store i32 %93, ptr %11, align 4
%94 = load i32, ptr @errno, align 4
store i32 %94, ptr %10, align 4
%95 = load i32, ptr @stderr, align 4
%96 = load i32, ptr %10, align 4
%97 = sext i32 %96 to i64
%98 = load i32, ptr %10, align 4
%99 = call ptr @strerror(i32 noundef %98)
%100 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %95, ptr noundef @.str, ptr noundef %21, i64 noundef %97, ptr noundef %99)
br label %163
101: ; preds = %64
%102 = load i32, ptr %8, align 4
%103 = icmp ne i32 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = call i32 @unlink(ptr noundef %21)
br label %106
106: ; preds = %104, %101
%107 = load i64, ptr %12, align 8
%108 = load i64, ptr %6, align 8
%109 = icmp ult i64 %107, %108
br i1 %109, label %.lr.ph, label %162
.lr.ph: ; preds = %106
br label %110
110: ; preds = %.lr.ph, %155
%111 = load i64, ptr %12, align 8
%112 = load i64, ptr %7, align 8
%113 = add i64 %111, %112
%114 = load i64, ptr %6, align 8
%115 = icmp ugt i64 %113, %114
br i1 %115, label %116, label %120
116: ; preds = %110
%117 = load i64, ptr %6, align 8
%118 = load i64, ptr %12, align 8
%119 = sub i64 %117, %118
store i64 %119, ptr %13, align 8
br label %122
120: ; preds = %110
%121 = load i64, ptr %7, align 8
store i64 %121, ptr %13, align 8
br label %122
122: ; preds = %120, %116
%123 = load i32, ptr %9, align 4
%124 = load ptr, ptr %16, align 8
%125 = load i64, ptr %13, align 8
%126 = load i64, ptr %12, align 8
%127 = call i32 @pwrite(i32 noundef %123, ptr noundef %124, i64 noundef %125, i64 noundef %126)
store i32 %127, ptr %11, align 4
%128 = load i32, ptr %11, align 4
%129 = icmp slt i32 %128, 0
br i1 %129, label %130, label %139
130: ; preds = %122
%131 = load i32, ptr @errno, align 4
store i32 %131, ptr %11, align 4
%132 = load i32, ptr @stderr, align 4
%133 = load ptr, ptr %5, align 8
%134 = load i64, ptr %12, align 8
%135 = load i32, ptr %11, align 4
%136 = load i32, ptr %11, align 4
%137 = call ptr @strerror(i32 noundef %136)
%138 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %132, ptr noundef @.str.2, ptr noundef %133, i64 noundef %134, i32 noundef %135, ptr noundef %137)
br label %163
139: ; preds = %122
%140 = load i32, ptr %10, align 4
%141 = load ptr, ptr %16, align 8
%142 = load i64, ptr %13, align 8
%143 = load i64, ptr %12, align 8
%144 = call i32 @pwrite(i32 noundef %140, ptr noundef %141, i64 noundef %142, i64 noundef %143)
store i32 %144, ptr %11, align 4
%145 = load i32, ptr %11, align 4
%146 = icmp slt i32 %145, 0
br i1 %146, label %147, label %155
147: ; preds = %139
%148 = load i32, ptr @errno, align 4
store i32 %148, ptr %11, align 4
%149 = load i32, ptr @stderr, align 4
%150 = load i64, ptr %12, align 8
%151 = load i32, ptr %11, align 4
%152 = load i32, ptr %11, align 4
%153 = call ptr @strerror(i32 noundef %152)
%154 = call i32 (i32, ptr, ptr, i64, ...) @fprintf(i32 noundef %149, ptr noundef @.str.2, ptr noundef %21, i64 noundef %150, i32 noundef %151, ptr noundef %153)
br label %163
155: ; preds = %139
%156 = load i64, ptr %13, align 8
%157 = load i64, ptr %12, align 8
%158 = add i64 %157, %156
store i64 %158, ptr %12, align 8
%159 = load i64, ptr %12, align 8
%160 = load i64, ptr %6, align 8
%161 = icmp ult i64 %159, %160
br i1 %161, label %110, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %155
br label %162
162: ; preds = %._crit_edge, %106
store i32 0, ptr %11, align 4
br label %163
163: ; preds = %162, %147, %130, %92, %54
%164 = load ptr, ptr %16, align 8
%165 = icmp ne ptr %164, null
br i1 %165, label %166, label %169
166: ; preds = %163
%167 = load ptr, ptr %16, align 8
%168 = call i32 @free(ptr noundef %167)
br label %169
169: ; preds = %166, %163
%170 = load i32, ptr %10, align 4
%171 = icmp sgt i32 %170, 0
br i1 %171, label %172, label %175
172: ; preds = %169
%173 = load i32, ptr %10, align 4
%174 = call i32 @close(i32 noundef %173)
br label %175
175: ; preds = %172, %169
%176 = load i32, ptr %9, align 4
%177 = icmp sgt i32 %176, 0
br i1 %177, label %178, label %181
178: ; preds = %175
%179 = load i32, ptr %9, align 4
%180 = call i32 @close(i32 noundef %179)
br label %181
181: ; preds = %178, %175
%182 = load i32, ptr %11, align 4
%183 = load ptr, ptr %14, align 8
call void @llvm.stackrestore(ptr %183)
ret i32 %182
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i64 @malloc(i64 noundef) #2
declare i32 @open64(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i64 noundef, ...) #2
declare ptr @strerror(i32 noundef) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i64 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @unlink(ptr noundef) #2
declare i32 @pwrite(i32 noundef, ptr noundef, i64 noundef, i64 noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @close(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcfrfe794.c'
source_filename = "/tmp/tmpcfrfe794.c"
target datalayout = "e-m:e-p270: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/tmpcfrfe794.c"
target datalayout = "e-m:e-p270: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/tmpzp1bl0ea.c'
source_filename = "/tmp/tmpzp1bl0ea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; 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 -1, ptr %2, align 4
store i32 1, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %3, align 4
br label %10
10: ; preds = %7, %0
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %16
16: ; preds = %13, %10
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = mul nsw i32 %17, %18
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 @printf(ptr noundef @.str, i32 noundef %20)
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/tmpzp1bl0ea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; 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 -1, ptr %2, align 4
store i32 1, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %3, align 4
br label %10
10: ; preds = %7, %0
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %16
16: ; preds = %13, %10
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = mul nsw i32 %17, %18
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 @printf(ptr noundef @.str, i32 noundef %20)
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/tmpgxi2lle8.c'
source_filename = "/tmp/tmpgxi2lle8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Please input a non-negative integer.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"The largest integer x such that 2^x <= %d is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 4)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = load ptr, ptr %1, align 8
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %1, align 8
%10 = load i32, ptr %9, align 4
%11 = call i32 @log_2(i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %11)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @log_2(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/tmpgxi2lle8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Please input a non-negative integer.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"The largest integer x such that 2^x <= %d is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 4)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = load ptr, ptr %1, align 8
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %1, align 8
%10 = load i32, ptr %9, align 4
%11 = call i32 @log_2(i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %11)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @log_2(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_40p88g5.c'
source_filename = "/tmp/tmp_40p88g5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_40p88g5.c"
target datalayout = "e-m:e-p270: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/tmpk8nfuqfj.c'
source_filename = "/tmp/tmpk8nfuqfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CyBtldr_CreateSendDataCmd(ptr noundef %0, i16 noundef zeroext %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i16, align 2
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i16, align 2
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i16 %1, ptr %7, align 2
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load ptr, ptr %10, align 8
store i64 7, ptr %13, align 8
%14 = load i16, ptr %7, align 2
%15 = zext i16 %14 to i32
%16 = add nsw i32 %15, 7
%17 = sext i32 %16 to i64
%18 = load ptr, ptr %9, align 8
store i64 %17, ptr %18, align 8
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
store i8 1, ptr %20, align 1
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
store i8 55, ptr %22, align 1
%23 = load i16, ptr %7, align 2
%24 = trunc i16 %23 to i8
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 2
store i8 %24, ptr %26, align 1
%27 = load i16, ptr %7, align 2
%28 = zext i16 %27 to i32
%29 = ashr i32 %28, 8
%30 = trunc i32 %29 to i8
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 3
store i8 %30, ptr %32, align 1
store i64 0, ptr %12, align 8
br label %33
33: ; preds = %47, %5
%34 = load i64, ptr %12, align 8
%35 = load i16, ptr %7, align 2
%36 = zext i16 %35 to i64
%37 = icmp ult i64 %34, %36
br i1 %37, label %38, label %50
38: ; preds = %33
%39 = load ptr, ptr %6, align 8
%40 = load i64, ptr %12, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
%42 = load i8, ptr %41, align 1
%43 = load ptr, ptr %8, align 8
%44 = load i64, ptr %12, align 8
%45 = add i64 %44, 4
%46 = getelementptr inbounds i8, ptr %43, i64 %45
store i8 %42, ptr %46, align 1
br label %47
47: ; preds = %38
%48 = load i64, ptr %12, align 8
%49 = add i64 %48, 1
store i64 %49, ptr %12, align 8
br label %33, !llvm.loop !6
50: ; preds = %33
%51 = load ptr, ptr %8, align 8
%52 = load ptr, ptr %9, align 8
%53 = load i64, ptr %52, align 8
%54 = sub i64 %53, 3
%55 = call zeroext i16 @CyBtldr_ComputeChecksum(ptr noundef %51, i64 noundef %54)
store i16 %55, ptr %11, align 2
%56 = load i16, ptr %11, align 2
%57 = trunc i16 %56 to i8
%58 = load ptr, ptr %8, align 8
%59 = load ptr, ptr %9, align 8
%60 = load i64, ptr %59, align 8
%61 = sub i64 %60, 3
%62 = getelementptr inbounds i8, ptr %58, i64 %61
store i8 %57, ptr %62, align 1
%63 = load i16, ptr %11, align 2
%64 = zext i16 %63 to i32
%65 = ashr i32 %64, 8
%66 = trunc i32 %65 to i8
%67 = load ptr, ptr %8, align 8
%68 = load ptr, ptr %9, align 8
%69 = load i64, ptr %68, align 8
%70 = sub i64 %69, 2
%71 = getelementptr inbounds i8, ptr %67, i64 %70
store i8 %66, ptr %71, align 1
%72 = load ptr, ptr %8, align 8
%73 = load ptr, ptr %9, align 8
%74 = load i64, ptr %73, align 8
%75 = sub i64 %74, 1
%76 = getelementptr inbounds i8, ptr %72, i64 %75
store i8 23, ptr %76, align 1
ret i32 0
}
declare zeroext i16 @CyBtldr_ComputeChecksum(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk8nfuqfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CyBtldr_CreateSendDataCmd(ptr noundef %0, i16 noundef zeroext %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i16, align 2
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i16, align 2
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i16 %1, ptr %7, align 2
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load ptr, ptr %10, align 8
store i64 7, ptr %13, align 8
%14 = load i16, ptr %7, align 2
%15 = zext i16 %14 to i32
%16 = add nsw i32 %15, 7
%17 = sext i32 %16 to i64
%18 = load ptr, ptr %9, align 8
store i64 %17, ptr %18, align 8
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
store i8 1, ptr %20, align 1
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
store i8 55, ptr %22, align 1
%23 = load i16, ptr %7, align 2
%24 = trunc i16 %23 to i8
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 2
store i8 %24, ptr %26, align 1
%27 = load i16, ptr %7, align 2
%28 = zext i16 %27 to i32
%29 = ashr i32 %28, 8
%30 = trunc i32 %29 to i8
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 3
store i8 %30, ptr %32, align 1
store i64 0, ptr %12, align 8
%33 = load i64, ptr %12, align 8
%34 = load i16, ptr %7, align 2
%35 = zext i16 %34 to i64
%36 = icmp ult i64 %33, %35
br i1 %36, label %.lr.ph, label %53
.lr.ph: ; preds = %5
br label %37
37: ; preds = %.lr.ph, %46
%38 = load ptr, ptr %6, align 8
%39 = load i64, ptr %12, align 8
%40 = getelementptr inbounds i8, ptr %38, i64 %39
%41 = load i8, ptr %40, align 1
%42 = load ptr, ptr %8, align 8
%43 = load i64, ptr %12, align 8
%44 = add i64 %43, 4
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 %41, ptr %45, align 1
br label %46
46: ; preds = %37
%47 = load i64, ptr %12, align 8
%48 = add i64 %47, 1
store i64 %48, ptr %12, align 8
%49 = load i64, ptr %12, align 8
%50 = load i16, ptr %7, align 2
%51 = zext i16 %50 to i64
%52 = icmp ult i64 %49, %51
br i1 %52, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %53
53: ; preds = %._crit_edge, %5
%54 = load ptr, ptr %8, align 8
%55 = load ptr, ptr %9, align 8
%56 = load i64, ptr %55, align 8
%57 = sub i64 %56, 3
%58 = call zeroext i16 @CyBtldr_ComputeChecksum(ptr noundef %54, i64 noundef %57)
store i16 %58, ptr %11, align 2
%59 = load i16, ptr %11, align 2
%60 = trunc i16 %59 to i8
%61 = load ptr, ptr %8, align 8
%62 = load ptr, ptr %9, align 8
%63 = load i64, ptr %62, align 8
%64 = sub i64 %63, 3
%65 = getelementptr inbounds i8, ptr %61, i64 %64
store i8 %60, ptr %65, align 1
%66 = load i16, ptr %11, align 2
%67 = zext i16 %66 to i32
%68 = ashr i32 %67, 8
%69 = trunc i32 %68 to i8
%70 = load ptr, ptr %8, align 8
%71 = load ptr, ptr %9, align 8
%72 = load i64, ptr %71, align 8
%73 = sub i64 %72, 2
%74 = getelementptr inbounds i8, ptr %70, i64 %73
store i8 %69, ptr %74, align 1
%75 = load ptr, ptr %8, align 8
%76 = load ptr, ptr %9, align 8
%77 = load i64, ptr %76, align 8
%78 = sub i64 %77, 1
%79 = getelementptr inbounds i8, ptr %75, i64 %78
store i8 23, ptr %79, align 1
ret i32 0
}
declare zeroext i16 @CyBtldr_ComputeChecksum(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpkx3kdgy3.c'
source_filename = "/tmp/tmpkx3kdgy3.c"
target datalayout = "e-m:e-p270: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/tmpkx3kdgy3.c"
target datalayout = "e-m:e-p270: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/tmpmlsbeqme.c'
source_filename = "/tmp/tmpmlsbeqme.c"
target datalayout = "e-m:e-p270: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/tmpmlsbeqme.c"
target datalayout = "e-m:e-p270: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/tmpqqylstbm.c'
source_filename = "/tmp/tmpqqylstbm.c"
target datalayout = "e-m:e-p270: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/tmpqqylstbm.c"
target datalayout = "e-m:e-p270: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/tmpkgqiki1q.c'
source_filename = "/tmp/tmpkgqiki1q.c"
target datalayout = "e-m:e-p270: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/tmpkgqiki1q.c"
target datalayout = "e-m:e-p270: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/tmp6fk3i61q.c'
source_filename = "/tmp/tmp6fk3i61q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tableput() #0 {
%1 = call i32 (...) @saveline()
%2 = call i32 (...) @savefill()
%3 = call i32 (...) @ifdivert()
%4 = call i32 (...) @cleanfc()
%5 = call i32 (...) @getcomm()
%6 = call i32 (...) @getspec()
%7 = call i32 (...) @gettbl()
%8 = call i32 (...) @getstop()
%9 = call i32 (...) @checkuse()
%10 = call i32 (...) @choochar()
%11 = call i32 (...) @maktab()
%12 = call i32 (...) @runout()
%13 = call i32 (...) @release()
%14 = call i32 (...) @rstofill()
%15 = call i32 (...) @endoff()
%16 = call i32 (...) @restline()
ret void
}
declare i32 @saveline(...) #1
declare i32 @savefill(...) #1
declare i32 @ifdivert(...) #1
declare i32 @cleanfc(...) #1
declare i32 @getcomm(...) #1
declare i32 @getspec(...) #1
declare i32 @gettbl(...) #1
declare i32 @getstop(...) #1
declare i32 @checkuse(...) #1
declare i32 @choochar(...) #1
declare i32 @maktab(...) #1
declare i32 @runout(...) #1
declare i32 @release(...) #1
declare i32 @rstofill(...) #1
declare i32 @endoff(...) #1
declare i32 @restline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6fk3i61q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tableput() #0 {
%1 = call i32 (...) @saveline()
%2 = call i32 (...) @savefill()
%3 = call i32 (...) @ifdivert()
%4 = call i32 (...) @cleanfc()
%5 = call i32 (...) @getcomm()
%6 = call i32 (...) @getspec()
%7 = call i32 (...) @gettbl()
%8 = call i32 (...) @getstop()
%9 = call i32 (...) @checkuse()
%10 = call i32 (...) @choochar()
%11 = call i32 (...) @maktab()
%12 = call i32 (...) @runout()
%13 = call i32 (...) @release()
%14 = call i32 (...) @rstofill()
%15 = call i32 (...) @endoff()
%16 = call i32 (...) @restline()
ret void
}
declare i32 @saveline(...) #1
declare i32 @savefill(...) #1
declare i32 @ifdivert(...) #1
declare i32 @cleanfc(...) #1
declare i32 @getcomm(...) #1
declare i32 @getspec(...) #1
declare i32 @gettbl(...) #1
declare i32 @getstop(...) #1
declare i32 @checkuse(...) #1
declare i32 @choochar(...) #1
declare i32 @maktab(...) #1
declare i32 @runout(...) #1
declare i32 @release(...) #1
declare i32 @rstofill(...) #1
declare i32 @endoff(...) #1
declare i32 @restline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1dq8au3a.c'
source_filename = "/tmp/tmp1dq8au3a.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"write error!\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"read error!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
br label %9
9: ; preds = %24, %2
%10 = load i32, ptr @STDIN_FILENO, align 4
%11 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%12 = call i64 @read(i32 noundef %10, ptr noundef %11, i32 noundef 256)
store i64 %12, ptr %7, align 8
%13 = icmp sgt i64 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %9
%15 = load i32, ptr @STDOUT_FILENO, align 4
%16 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%17 = load i64, ptr %7, align 8
%18 = call i64 @write(i32 noundef %15, ptr noundef %16, i64 noundef %17)
store i64 %18, ptr %8, align 8
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %8, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %14
%23 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %31
24: ; preds = %14
br label %9, !llvm.loop !6
25: ; preds = %9
%26 = load i64, ptr %7, align 8
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @printf(ptr noundef @.str.1)
br label %30
30: ; preds = %28, %25
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %30, %22
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1dq8au3a.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"write error!\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"read error!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
%9 = load i32, ptr @STDIN_FILENO, align 4
%10 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%11 = call i64 @read(i32 noundef %9, ptr noundef %10, i32 noundef 256)
store i64 %11, ptr %7, align 8
%12 = icmp sgt i64 %11, 0
br i1 %12, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %17
13: ; preds = %17
%14 = load i32, ptr @STDIN_FILENO, align 4
%15 = call i64 @read(i32 noundef %14, ptr noundef %10, i32 noundef 256)
store i64 %15, ptr %7, align 8
%16 = icmp sgt i64 %15, 0
br i1 %16, label %17, label %._crit_edge, !llvm.loop !6
17: ; preds = %.lr.ph, %13
%18 = load i32, ptr @STDOUT_FILENO, align 4
%19 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%20 = load i64, ptr %7, align 8
%21 = call i64 @write(i32 noundef %18, ptr noundef %19, i64 noundef %20)
store i64 %21, ptr %8, align 8
%22 = load i64, ptr %7, align 8
%23 = load i64, ptr %8, align 8
%24 = icmp ne i64 %22, %23
br i1 %24, label %25, label %13
25: ; preds = %17
%26 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %33
._crit_edge: ; preds = %13
br label %27
27: ; preds = %._crit_edge, %2
%28 = load i64, ptr %7, align 8
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(ptr noundef @.str.1)
br label %32
32: ; preds = %30, %27
store i32 0, ptr %3, align 4
br label %33
33: ; preds = %32, %25
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa4r5gerk.c'
source_filename = "/tmp/tmpa4r5gerk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @brain_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %9, label %8
8: ; preds = %1
store ptr @.str, ptr %3, align 8
br label %9
9: ; preds = %8, %1
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %4, align 8
%12 = load i64, ptr %4, align 8
%13 = add nsw i64 %12, 1
%14 = call ptr @brain_alloc_(i64 noundef %13, i32 noundef 0)
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %18, label %17
17: ; preds = %9
store ptr null, ptr %2, align 8
br label %23
18: ; preds = %9
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcpy(ptr noundef %19, ptr noundef %20)
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %2, align 8
br label %23
23: ; preds = %18, %17
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare i64 @strlen(ptr noundef) #1
declare ptr @brain_alloc_(i64 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa4r5gerk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @brain_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %9, label %8
8: ; preds = %1
store ptr @.str, ptr %3, align 8
br label %9
9: ; preds = %8, %1
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %4, align 8
%12 = load i64, ptr %4, align 8
%13 = add nsw i64 %12, 1
%14 = call ptr @brain_alloc_(i64 noundef %13, i32 noundef 0)
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %18, label %17
17: ; preds = %9
store ptr null, ptr %2, align 8
br label %23
18: ; preds = %9
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcpy(ptr noundef %19, ptr noundef %20)
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %2, align 8
br label %23
23: ; preds = %18, %17
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare i64 @strlen(ptr noundef) #1
declare ptr @brain_alloc_(i64 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9sgozglr.c'
source_filename = "/tmp/tmp9sgozglr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"shadow demon\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"MM 64\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"%d: %d hp, 13 AC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shadowdemon(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @nicename(i32 noundef %4, ptr noundef @.str, ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %39, %1
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp ult i32 %7, %8
br i1 %9, label %10, label %42
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
%13 = call i32 @d(i32 noundef 8)
%14 = call i32 @d(i32 noundef 8)
%15 = add nsw i32 %13, %14
%16 = call i32 @d(i32 noundef 8)
%17 = add nsw i32 %15, %16
%18 = call i32 @d(i32 noundef 8)
%19 = add nsw i32 %17, %18
%20 = call i32 @d(i32 noundef 8)
%21 = add nsw i32 %19, %20
%22 = call i32 @d(i32 noundef 8)
%23 = add nsw i32 %21, %22
%24 = call i32 @d(i32 noundef 8)
%25 = add nsw i32 %23, %24
%26 = call i32 @d(i32 noundef 8)
%27 = add nsw i32 %25, %26
%28 = call i32 @d(i32 noundef 8)
%29 = add nsw i32 %27, %28
%30 = call i32 @d(i32 noundef 8)
%31 = add nsw i32 %29, %30
%32 = call i32 @d(i32 noundef 8)
%33 = add nsw i32 %31, %32
%34 = call i32 @d(i32 noundef 8)
%35 = add nsw i32 %33, %34
%36 = add nsw i32 %35, 12
%37 = call i32 @printf(ptr noundef @.str.2, i32 noundef %12, i32 noundef %36)
%38 = call i32 @putchar(i8 noundef signext 10)
br label %39
39: ; preds = %10
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %3, align 4
br label %6, !llvm.loop !6
42: ; preds = %6
%43 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @nicename(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @d(i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9sgozglr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"shadow demon\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"MM 64\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"%d: %d hp, 13 AC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shadowdemon(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @nicename(i32 noundef %4, ptr noundef @.str, ptr noundef @.str.1)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp ult i32 %6, %7
br i1 %8, label %.lr.ph, label %44
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %38
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
%12 = call i32 @d(i32 noundef 8)
%13 = call i32 @d(i32 noundef 8)
%14 = add nsw i32 %12, %13
%15 = call i32 @d(i32 noundef 8)
%16 = add nsw i32 %14, %15
%17 = call i32 @d(i32 noundef 8)
%18 = add nsw i32 %16, %17
%19 = call i32 @d(i32 noundef 8)
%20 = add nsw i32 %18, %19
%21 = call i32 @d(i32 noundef 8)
%22 = add nsw i32 %20, %21
%23 = call i32 @d(i32 noundef 8)
%24 = add nsw i32 %22, %23
%25 = call i32 @d(i32 noundef 8)
%26 = add nsw i32 %24, %25
%27 = call i32 @d(i32 noundef 8)
%28 = add nsw i32 %26, %27
%29 = call i32 @d(i32 noundef 8)
%30 = add nsw i32 %28, %29
%31 = call i32 @d(i32 noundef 8)
%32 = add nsw i32 %30, %31
%33 = call i32 @d(i32 noundef 8)
%34 = add nsw i32 %32, %33
%35 = add nsw i32 %34, 12
%36 = call i32 @printf(ptr noundef @.str.2, i32 noundef %11, i32 noundef %35)
%37 = call i32 @putchar(i8 noundef signext 10)
br label %38
38: ; preds = %9
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %2, align 4
%43 = icmp ult i32 %41, %42
br i1 %43, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %1
%45 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @nicename(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @d(i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprk0xvea8.c'
source_filename = "/tmp/tmprk0xvea8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%4d\09%6.1f\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 double, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 20, ptr %4, align 4
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %8, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 100
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = sitofp i32 %9 to double
%11 = fsub double %10, 3.200000e+01
%12 = fmul double 5.000000e+00, %11
%13 = fdiv double %12, 9.000000e+00
store double %13, ptr %3, align 8
%14 = load i32, ptr %2, align 4
%15 = load double, ptr %3, align 8
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %14, double noundef %15)
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, %17
store i32 %19, ptr %2, align 4
br label %5, !llvm.loop !6
20: ; preds = %5
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprk0xvea8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%4d\09%6.1f\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 double, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 20, ptr %4, align 4
store i32 0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 100
br i1 %6, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i32, ptr %2, align 4
%9 = sitofp i32 %8 to double
%10 = fsub double %9, 3.200000e+01
%11 = fmul double 5.000000e+00, %10
%12 = fdiv double %11, 9.000000e+00
store double %12, ptr %3, align 8
%13 = load i32, ptr %2, align 4
%14 = load double, ptr %3, align 8
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %13, double noundef %14)
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 100
br i1 %20, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %21
21: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1_5o3xhq.c'
source_filename = "/tmp/tmp1_5o3xhq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
@SIGHUP = dso_local global i32 0, align 4
@SIGABRT = dso_local global i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @install_handler() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @sigemptyset(ptr noundef %2)
%4 = call i32 @sigemptyset(ptr noundef %1)
%5 = load i32, ptr @SIGINT, align 4
%6 = call i32 @sigaddset(ptr noundef %1, i32 noundef %5)
%7 = load i32, ptr @SIGHUP, align 4
%8 = call i32 @sigaddset(ptr noundef %1, i32 noundef %7)
%9 = load i32, ptr @SIGABRT, align 4
%10 = call i32 @sigaddset(ptr noundef %1, i32 noundef %9)
%11 = load i32, ptr @SIG_BLOCK, align 4
%12 = call i32 @sigprocmask(i32 noundef %11, ptr noundef %1, ptr noundef %2)
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1_5o3xhq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
@SIGHUP = dso_local global i32 0, align 4
@SIGABRT = dso_local global i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @install_handler() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @sigemptyset(ptr noundef %2)
%4 = call i32 @sigemptyset(ptr noundef %1)
%5 = load i32, ptr @SIGINT, align 4
%6 = call i32 @sigaddset(ptr noundef %1, i32 noundef %5)
%7 = load i32, ptr @SIGHUP, align 4
%8 = call i32 @sigaddset(ptr noundef %1, i32 noundef %7)
%9 = load i32, ptr @SIGABRT, align 4
%10 = call i32 @sigaddset(ptr noundef %1, i32 noundef %9)
%11 = load i32, ptr @SIG_BLOCK, align 4
%12 = call i32 @sigprocmask(i32 noundef %11, ptr noundef %1, ptr noundef %2)
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk502gf3w.c'
source_filename = "/tmp/tmpk502gf3w.c"
target datalayout = "e-m:e-p270: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/tmpk502gf3w.c"
target datalayout = "e-m:e-p270: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/tmpqhzs5492.c'
source_filename = "/tmp/tmpqhzs5492.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage: %s [options] borph-register\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"-h this help\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"-v increase verbosity\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"-q run quietly\0A\00", align 1
@.str.4 = private unnamed_addr constant [63 x i8] c"-f save-file file to save the data to (default: stdout)\0A\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"-o byte-count offset into register (default: 0)\0A\00", align 1
@.str.6 = private unnamed_addr constant [48 x i8] c"-b byte-count number of bytes to retrieve\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"-s server:port address and port of roach\0A\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"-t seconds set timeout\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"return codes:\0A\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c"0 transfer completed successfully\0A\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c"1 remote errors\0A\00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"2 other errors\0A\00", align 1
@.str.13 = private unnamed_addr constant [24 x i8] c"environment variables:\0A\00", align 1
@.str.14 = private unnamed_addr constant [61 x i8] c" KATCP_SERVER default server (overridden by -s option)\0A\00", align 1
@.str.15 = private unnamed_addr constant [8 x i8] c"notes:\0A\00", align 1
@.str.16 = private unnamed_addr constant [76 x i8] c" retrieving data which is not word aligned may have unpredictable results\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
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/tmpqhzs5492.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage: %s [options] borph-register\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"-h this help\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"-v increase verbosity\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"-q run quietly\0A\00", align 1
@.str.4 = private unnamed_addr constant [63 x i8] c"-f save-file file to save the data to (default: stdout)\0A\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"-o byte-count offset into register (default: 0)\0A\00", align 1
@.str.6 = private unnamed_addr constant [48 x i8] c"-b byte-count number of bytes to retrieve\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"-s server:port address and port of roach\0A\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"-t seconds set timeout\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"return codes:\0A\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c"0 transfer completed successfully\0A\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c"1 remote errors\0A\00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"2 other errors\0A\00", align 1
@.str.13 = private unnamed_addr constant [24 x i8] c"environment variables:\0A\00", align 1
@.str.14 = private unnamed_addr constant [61 x i8] c" KATCP_SERVER default server (overridden by -s option)\0A\00", align 1
@.str.15 = private unnamed_addr constant [8 x i8] c"notes:\0A\00", align 1
@.str.16 = private unnamed_addr constant [76 x i8] c" retrieving data which is not word aligned may have unpredictable results\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
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/tmp831xrb9f.c'
source_filename = "/tmp/tmp831xrb9f.c"
target datalayout = "e-m:e-p270: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/tmp831xrb9f.c"
target datalayout = "e-m:e-p270: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/tmp0tje41v0.c'
source_filename = "/tmp/tmp0tje41v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert_bits(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store i64 %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%19 = load i32, ptr %11, align 4
%20 = shl i32 1, %19
%21 = sub nsw i32 %20, 1
store i32 %21, ptr %18, align 4
br label %22
22: ; preds = %55, %7
%23 = load i64, ptr %13, align 8
%24 = add i64 %23, -1
store i64 %24, ptr %13, align 8
%25 = icmp ne i64 %23, 0
br i1 %25, label %26, label %56
26: ; preds = %22
%27 = load i32, ptr %16, align 4
%28 = load i32, ptr %14, align 4
%29 = shl i32 %27, %28
%30 = load ptr, ptr %12, align 8
%31 = getelementptr inbounds i32, ptr %30, i32 1
store ptr %31, ptr %12, align 8
%32 = load i32, ptr %30, align 4
%33 = or i32 %29, %32
store i32 %33, ptr %16, align 4
%34 = load i32, ptr %14, align 4
%35 = load i32, ptr %17, align 4
%36 = add nsw i32 %35, %34
store i32 %36, ptr %17, align 4
br label %37
37: ; preds = %41, %26
%38 = load i32, ptr %17, align 4
%39 = load i32, ptr %11, align 4
%40 = icmp sge i32 %38, %39
br i1 %40, label %41, label %55
41: ; preds = %37
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %17, align 4
%44 = sub nsw i32 %43, %42
store i32 %44, ptr %17, align 4
%45 = load i32, ptr %16, align 4
%46 = load i32, ptr %17, align 4
%47 = ashr i32 %45, %46
%48 = load i32, ptr %18, align 4
%49 = and i32 %47, %48
%50 = load ptr, ptr %9, align 8
%51 = load ptr, ptr %10, align 8
%52 = load i64, ptr %51, align 8
%53 = add i64 %52, 1
store i64 %53, ptr %51, align 8
%54 = getelementptr inbounds i32, ptr %50, i64 %52
store i32 %49, ptr %54, align 4
br label %37, !llvm.loop !6
55: ; preds = %37
br label %22, !llvm.loop !8
56: ; preds = %22
%57 = load i32, ptr %15, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %76
59: ; preds = %56
%60 = load i32, ptr %17, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %75
62: ; preds = %59
%63 = load i32, ptr %16, align 4
%64 = load i32, ptr %11, align 4
%65 = load i32, ptr %17, align 4
%66 = sub nsw i32 %64, %65
%67 = shl i32 %63, %66
%68 = load i32, ptr %18, align 4
%69 = and i32 %67, %68
%70 = load ptr, ptr %9, align 8
%71 = load ptr, ptr %10, align 8
%72 = load i64, ptr %71, align 8
%73 = add i64 %72, 1
store i64 %73, ptr %71, align 8
%74 = getelementptr inbounds i32, ptr %70, i64 %72
store i32 %69, ptr %74, align 4
br label %75
75: ; preds = %62, %59
br label %91
76: ; preds = %56
%77 = load i32, ptr %16, align 4
%78 = load i32, ptr %11, align 4
%79 = load i32, ptr %17, align 4
%80 = sub nsw i32 %78, %79
%81 = shl i32 %77, %80
%82 = load i32, ptr %18, align 4
%83 = and i32 %81, %82
%84 = icmp ne i32 %83, 0
br i1 %84, label %89, label %85
85: ; preds = %76
%86 = load i32, ptr %17, align 4
%87 = load i32, ptr %14, align 4
%88 = icmp sge i32 %86, %87
br i1 %88, label %89, label %90
89: ; preds = %85, %76
store i32 0, ptr %8, align 4
br label %92
90: ; preds = %85
br label %91
91: ; preds = %90, %75
store i32 1, ptr %8, align 4
br label %92
92: ; preds = %91, %89
%93 = load i32, ptr %8, align 4
ret i32 %93
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0tje41v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert_bits(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store i64 %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%19 = load i32, ptr %11, align 4
%20 = shl i32 1, %19
%21 = sub nsw i32 %20, 1
store i32 %21, ptr %18, align 4
%22 = load i64, ptr %13, align 8
%23 = add i64 %22, -1
store i64 %23, ptr %13, align 8
%24 = icmp ne i64 %22, 0
br i1 %24, label %.lr.ph2, label %60
.lr.ph2: ; preds = %7
br label %25
25: ; preds = %.lr.ph2, %56
%26 = load i32, ptr %16, align 4
%27 = load i32, ptr %14, align 4
%28 = shl i32 %26, %27
%29 = load ptr, ptr %12, align 8
%30 = getelementptr inbounds i32, ptr %29, i32 1
store ptr %30, ptr %12, align 8
%31 = load i32, ptr %29, align 4
%32 = or i32 %28, %31
store i32 %32, ptr %16, align 4
%33 = load i32, ptr %14, align 4
%34 = load i32, ptr %17, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %17, align 4
%36 = load i32, ptr %17, align 4
%37 = load i32, ptr %11, align 4
%38 = icmp sge i32 %36, %37
br i1 %38, label %.lr.ph, label %56
.lr.ph: ; preds = %25
br label %39
39: ; preds = %.lr.ph, %39
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %17, align 4
%42 = sub nsw i32 %41, %40
store i32 %42, ptr %17, align 4
%43 = load i32, ptr %16, align 4
%44 = load i32, ptr %17, align 4
%45 = ashr i32 %43, %44
%46 = load i32, ptr %18, align 4
%47 = and i32 %45, %46
%48 = load ptr, ptr %9, align 8
%49 = load ptr, ptr %10, align 8
%50 = load i64, ptr %49, align 8
%51 = add i64 %50, 1
store i64 %51, ptr %49, align 8
%52 = getelementptr inbounds i32, ptr %48, i64 %50
store i32 %47, ptr %52, align 4
%53 = load i32, ptr %17, align 4
%54 = load i32, ptr %11, align 4
%55 = icmp sge i32 %53, %54
br i1 %55, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %56
56: ; preds = %._crit_edge, %25
%57 = load i64, ptr %13, align 8
%58 = add i64 %57, -1
store i64 %58, ptr %13, align 8
%59 = icmp ne i64 %57, 0
br i1 %59, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %60
60: ; preds = %._crit_edge3, %7
%61 = load i32, ptr %15, align 4
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %80
63: ; preds = %60
%64 = load i32, ptr %17, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %79
66: ; preds = %63
%67 = load i32, ptr %16, align 4
%68 = load i32, ptr %11, align 4
%69 = load i32, ptr %17, align 4
%70 = sub nsw i32 %68, %69
%71 = shl i32 %67, %70
%72 = load i32, ptr %18, align 4
%73 = and i32 %71, %72
%74 = load ptr, ptr %9, align 8
%75 = load ptr, ptr %10, align 8
%76 = load i64, ptr %75, align 8
%77 = add i64 %76, 1
store i64 %77, ptr %75, align 8
%78 = getelementptr inbounds i32, ptr %74, i64 %76
store i32 %73, ptr %78, align 4
br label %79
79: ; preds = %66, %63
br label %95
80: ; preds = %60
%81 = load i32, ptr %16, align 4
%82 = load i32, ptr %11, align 4
%83 = load i32, ptr %17, align 4
%84 = sub nsw i32 %82, %83
%85 = shl i32 %81, %84
%86 = load i32, ptr %18, align 4
%87 = and i32 %85, %86
%88 = icmp ne i32 %87, 0
br i1 %88, label %93, label %89
89: ; preds = %80
%90 = load i32, ptr %17, align 4
%91 = load i32, ptr %14, align 4
%92 = icmp sge i32 %90, %91
br i1 %92, label %93, label %94
93: ; preds = %89, %80
store i32 0, ptr %8, align 4
br label %96
94: ; preds = %89
br label %95
95: ; preds = %94, %79
store i32 1, ptr %8, align 4
br label %96
96: ; preds = %95, %93
%97 = load i32, ptr %8, align 4
ret i32 %97
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpoysqyk1d.c'
source_filename = "/tmp/tmpoysqyk1d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_putnbr(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 i64, ptr %4, align 8
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = call i32 @my_putstr_to(i32 noundef %8, ptr noundef @.str)
%10 = load i32, ptr %3, align 4
%11 = load i64, ptr %4, align 8
%12 = call i32 @my_putnbr_s(i32 noundef %10, i64 noundef %11)
br label %18
13: ; preds = %2
%14 = load i32, ptr %3, align 4
%15 = load i64, ptr %4, align 8
%16 = sub nsw i64 0, %15
%17 = call i32 @my_putnbr_s(i32 noundef %14, i64 noundef %16)
br label %18
18: ; preds = %13, %7
ret void
}
declare i32 @my_putstr_to(i32 noundef, ptr noundef) #1
declare i32 @my_putnbr_s(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/tmpoysqyk1d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_putnbr(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 i64, ptr %4, align 8
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = call i32 @my_putstr_to(i32 noundef %8, ptr noundef @.str)
%10 = load i32, ptr %3, align 4
%11 = load i64, ptr %4, align 8
%12 = call i32 @my_putnbr_s(i32 noundef %10, i64 noundef %11)
br label %18
13: ; preds = %2
%14 = load i32, ptr %3, align 4
%15 = load i64, ptr %4, align 8
%16 = sub nsw i64 0, %15
%17 = call i32 @my_putnbr_s(i32 noundef %14, i64 noundef %16)
br label %18
18: ; preds = %13, %7
ret void
}
declare i32 @my_putstr_to(i32 noundef, ptr noundef) #1
declare i32 @my_putnbr_s(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/tmpt5oe3t9c.c'
source_filename = "/tmp/tmpt5oe3t9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @telldir(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 @booster_telldir(ptr noundef %3)
ret i32 %4
}
declare i32 @booster_telldir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt5oe3t9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @telldir(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 @booster_telldir(ptr noundef %3)
ret i32 %4
}
declare i32 @booster_telldir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpppm8ulda.c'
source_filename = "/tmp/tmpppm8ulda.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort(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
%6 = load i32, ptr %4, align 4
%7 = icmp sle i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %24
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @part(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %5, align 4
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
call void @quicksort(ptr noundef %13, i32 noundef %14)
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = getelementptr inbounds i32, ptr %18, i64 1
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %20, %21
%23 = sub nsw i32 %22, 1
call void @quicksort(ptr noundef %19, i32 noundef %23)
br label %24
24: ; preds = %9, %8
ret void
}
declare i32 @part(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/tmpppm8ulda.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort(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
%6 = load i32, ptr %4, align 4
%7 = icmp sle i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %24
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @part(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %5, align 4
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
call void @quicksort(ptr noundef %13, i32 noundef %14)
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = getelementptr inbounds i32, ptr %18, i64 1
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %20, %21
%23 = sub nsw i32 %22, 1
call void @quicksort(ptr noundef %19, i32 noundef %23)
br label %24
24: ; preds = %9, %8
ret void
}
declare i32 @part(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/tmpoi_ycdhl.c'
source_filename = "/tmp/tmpoi_ycdhl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [5 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @getid(ptr noundef %4)
%6 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 0
%7 = load i32, ptr %6, align 16
store i32 %7, ptr %2, align 4
store i32 1, ptr %3, align 4
br label %8
8: ; preds = %24, %0
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 5
br i1 %10, label %11, label %27
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = icmp slt i32 %12, %16
br i1 %17, label %18, label %23
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %20
%22 = load i32, ptr %21, align 4
store i32 %22, ptr %2, align 4
br label %23
23: ; preds = %18, %11
br label %24
24: ; preds = %23
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %8, !llvm.loop !6
27: ; preds = %8
%28 = load i32, ptr %2, align 4
%29 = call i32 @printid(i32 noundef %28)
ret void
}
declare i32 @getid(ptr noundef) #1
declare i32 @printid(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoi_ycdhl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [5 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @getid(ptr noundef %4)
%6 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 0
%7 = load i32, ptr %6, align 16
store i32 %7, ptr %2, align 4
store i32 1, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 5
br i1 %9, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %23
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %13
%15 = load i32, ptr %14, align 4
%16 = icmp slt i32 %11, %15
br i1 %16, label %17, label %22
17: ; preds = %10
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %17, %10
br label %23
23: ; preds = %22
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %26, 5
br i1 %27, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
%29 = load i32, ptr %2, align 4
%30 = call i32 @printid(i32 noundef %29)
ret void
}
declare i32 @getid(ptr noundef) #1
declare i32 @printid(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmplkdxu_7p.c'
source_filename = "/tmp/tmplkdxu_7p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i64, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i32 1
store ptr %10, ptr %5, align 8
%11 = load i8, ptr %9, align 1
store i8 %11, ptr %6, align 1
%12 = load i8, ptr %6, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
store ptr %15, ptr %3, align 8
br label %44
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %7, align 8
br label %19
19: ; preds = %35, %16
br label %20
20: ; preds = %28, %19
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
%23 = load i8, ptr %21, align 1
store i8 %23, ptr %8, align 1
%24 = load i8, ptr %8, align 1
%25 = icmp ne i8 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %20
store ptr null, ptr %3, align 8
br label %44
27: ; preds = %20
br label %28
28: ; preds = %27
%29 = load i8, ptr %8, align 1
%30 = sext i8 %29 to i32
%31 = load i8, ptr %6, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %30, %32
br i1 %33, label %20, label %34, !llvm.loop !6
34: ; preds = %28
br label %35
35: ; preds = %34
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %5, align 8
%38 = load i64, ptr %7, align 8
%39 = call i64 @strncmp(ptr noundef %36, ptr noundef %37, i64 noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %19, label %41, !llvm.loop !8
41: ; preds = %35
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 -1
store ptr %43, ptr %3, align 8
br label %44
44: ; preds = %41, %26, %14
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplkdxu_7p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i64, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i32 1
store ptr %10, ptr %5, align 8
%11 = load i8, ptr %9, align 1
store i8 %11, ptr %6, align 1
%12 = load i8, ptr %6, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
store ptr %15, ptr %3, align 8
br label %44
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %7, align 8
br label %19
19: ; preds = %35, %16
br label %20
20: ; preds = %28, %19
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
%23 = load i8, ptr %21, align 1
store i8 %23, ptr %8, align 1
%24 = load i8, ptr %8, align 1
%25 = icmp ne i8 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %20
store ptr null, ptr %3, align 8
br label %44
27: ; preds = %20
br label %28
28: ; preds = %27
%29 = load i8, ptr %8, align 1
%30 = sext i8 %29 to i32
%31 = load i8, ptr %6, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %30, %32
br i1 %33, label %20, label %34, !llvm.loop !6
34: ; preds = %28
br label %35
35: ; preds = %34
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %5, align 8
%38 = load i64, ptr %7, align 8
%39 = call i64 @strncmp(ptr noundef %36, ptr noundef %37, i64 noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %19, label %41, !llvm.loop !8
41: ; preds = %35
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 -1
store ptr %43, ptr %3, align 8
br label %44
44: ; preds = %41, %26, %14
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpa_qk34pv.c'
source_filename = "/tmp/tmpa_qk34pv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.array = private unnamed_addr constant [3 x i32] [i32 100, i32 200, i32 300], align 4
@.str = private unnamed_addr constant [29 x i8] c"Element %d is out of bounds\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Element %d is %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 [3 x i32], align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.array, i64 12, i1 false)
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %22, %0
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %25
8: ; preds = %5
%9 = load i32, ptr %4, align 4
%10 = icmp sge i32 %9, 3
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %12)
br label %21
14: ; preds = %8
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %19)
br label %21
21: ; preds = %14, %11
br label %22
22: ; preds = %21
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %5, !llvm.loop !6
25: ; preds = %5
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa_qk34pv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.array = private unnamed_addr constant [3 x i32] [i32 100, i32 200, i32 300], align 4
@.str = private unnamed_addr constant [29 x i8] c"Element %d is out of bounds\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Element %d is %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 [3 x i32], align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.array, i64 12, i1 false)
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %21
%8 = load i32, ptr %4, align 4
%9 = icmp sge i32 %8, 3
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, ptr %4, align 4
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %11)
br label %20
13: ; preds = %7
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, i32 noundef %18)
br label %20
20: ; preds = %13, %10
br label %21
21: ; preds = %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 10
br i1 %25, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgme57v74.c'
source_filename = "/tmp/tmpgme57v74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FORK() #0 {
%1 = call i64 (...) @fork()
ret i64 %1
}
declare i64 @fork(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgme57v74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FORK() #0 {
%1 = call i64 (...) @fork()
ret i64 %1
}
declare i64 @fork(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_9m1u5cl.c'
source_filename = "/tmp/tmp_9m1u5cl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Unable to reallocate memory: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xrealloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #4
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #5
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
ret ptr %18
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @strerror(i32 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(1) "frame-pointer"="all" "no-trapping-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(1) }
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/tmp_9m1u5cl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"Unable to reallocate memory: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xrealloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #4
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #5
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
ret ptr %18
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @strerror(i32 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(1) "frame-pointer"="all" "no-trapping-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(1) }
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/tmpdo112x0a.c'
source_filename = "/tmp/tmpdo112x0a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cardreader_init_locks() #0 {
%1 = call i32 (...) @ICC_Async_Init_Locks()
ret void
}
declare i32 @ICC_Async_Init_Locks(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdo112x0a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cardreader_init_locks() #0 {
%1 = call i32 (...) @ICC_Async_Init_Locks()
ret void
}
declare i32 @ICC_Async_Init_Locks(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl9xhe9v6.c'
source_filename = "/tmp/tmpl9xhe9v6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %3, align 4
br label %8
8: ; preds = %43, %0
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %46
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = sub nsw i32 %13, 1
store i32 %14, ptr %4, align 4
br label %15
15: ; preds = %24, %12
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %27
18: ; preds = %15
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %4, align 4
%21 = sub nsw i32 %19, %20
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %22)
br label %24
24: ; preds = %18
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %4, align 4
br label %15, !llvm.loop !6
27: ; preds = %15
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = sub nsw i32 %28, %29
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
br label %32
32: ; preds = %38, %27
%33 = load i32, ptr %6, align 4
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %32
%36 = load i32, ptr %2, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %36)
br label %38
38: ; preds = %35
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %6, align 4
br label %32, !llvm.loop !8
41: ; preds = %32
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %43
43: ; preds = %41
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
br label %8, !llvm.loop !9
46: ; preds = %8
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl9xhe9v6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %.lr.ph5, label %50
.lr.ph5: ; preds = %0
br label %11
11: ; preds = %.lr.ph5, %44
%12 = load i32, ptr %3, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %22
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %17, %18
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
br label %22
22: ; preds = %16
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %11
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = sub nsw i32 %28, %29
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp sgt i32 %32, 0
br i1 %33, label %.lr.ph2, label %42
.lr.ph2: ; preds = %27
br label %34
34: ; preds = %.lr.ph2, %37
%35 = load i32, ptr %2, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %35)
br label %37
37: ; preds = %34
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, -1
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %42
42: ; preds = %._crit_edge3, %27
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %44
44: ; preds = %42
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp sle i32 %47, %48
br i1 %49, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %44
br label %50
50: ; preds = %._crit_edge6, %0
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}
|
; ModuleID = '/tmp/tmpxj1oxui6.c'
source_filename = "/tmp/tmpxj1oxui6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Please enter the loan value: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Please enter the yearly interest value: \00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"Please enter the monthly payment value: \00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Please enter the value of the number of monthly payments: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"The balance after %d payment(s): \0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"0.00 \0A\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"%.2f \0A\00", align 1
@.str.9 = private unnamed_addr constant [42 x i8] c"The amount of the last payment is: %.2f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca i32, align 4
%9 = alloca float, align 4
store i32 0, ptr %1, align 4
store float -1.000000e+00, ptr %2, align 4
store float -1.000000e+00, ptr %3, align 4
store float -1.000000e+00, ptr %4, align 4
store float -1.000000e+00, ptr %5, align 4
store i32 -1, ptr %6, align 4
store i32 1, ptr %8, align 4
br label %10
10: ; preds = %13, %0
%11 = load float, ptr %2, align 4
%12 = fcmp olt float %11, 0.000000e+00
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %10, !llvm.loop !6
16: ; preds = %10
br label %17
17: ; preds = %20, %16
%18 = load float, ptr %3, align 4
%19 = fcmp olt float %18, 0.000000e+00
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %17, !llvm.loop !8
23: ; preds = %17
br label %24
24: ; preds = %27, %23
%25 = load float, ptr %5, align 4
%26 = fcmp olt float %25, 0.000000e+00
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%29 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
br label %24, !llvm.loop !9
30: ; preds = %24
br label %31
31: ; preds = %34, %30
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%36 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %6)
br label %31, !llvm.loop !10
37: ; preds = %31
%38 = load float, ptr %3, align 4
%39 = fdiv float %38, 1.000000e+02
store float %39, ptr %3, align 4
%40 = load float, ptr %3, align 4
%41 = fdiv float %40, 1.200000e+01
store float %41, ptr %4, align 4
%42 = load float, ptr %2, align 4
store float %42, ptr %7, align 4
br label %43
43: ; preds = %80, %37
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp sle i32 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load float, ptr %7, align 4
%49 = fcmp oge float %48, 0.000000e+00
br label %50
50: ; preds = %47, %43
%51 = phi i1 [ false, %43 ], [ %49, %47 ]
br i1 %51, label %52, label %83
52: ; preds = %50
%53 = load float, ptr %7, align 4
%54 = load float, ptr %7, align 4
%55 = load float, ptr %4, align 4
%56 = call float @llvm.fmuladd.f32(float %54, float %55, float %53)
store float %56, ptr %9, align 4
%57 = load float, ptr %7, align 4
%58 = load float, ptr %7, align 4
%59 = load float, ptr %4, align 4
%60 = call float @llvm.fmuladd.f32(float %58, float %59, float %57)
%61 = load float, ptr %5, align 4
%62 = fsub float %60, %61
store float %62, ptr %7, align 4
%63 = load i32, ptr %8, align 4
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %63)
%65 = load float, ptr %7, align 4
%66 = fcmp olt float %65, 0.000000e+00
br i1 %66, label %67, label %69
67: ; preds = %52
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %73
69: ; preds = %52
%70 = load float, ptr %7, align 4
%71 = fpext float %70 to double
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %71)
br label %73
73: ; preds = %69, %67
%74 = load float, ptr %7, align 4
%75 = fcmp ole float %74, 0.000000e+00
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = load float, ptr %9, align 4
%78 = fpext float %77 to double
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %78)
br label %80
80: ; preds = %76, %73
%81 = load i32, ptr %8, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %8, align 4
br label %43, !llvm.loop !11
83: ; preds = %50
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxj1oxui6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Please enter the loan value: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Please enter the yearly interest value: \00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"Please enter the monthly payment value: \00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Please enter the value of the number of monthly payments: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"The balance after %d payment(s): \0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"0.00 \0A\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"%.2f \0A\00", align 1
@.str.9 = private unnamed_addr constant [42 x i8] c"The amount of the last payment is: %.2f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca i32, align 4
%9 = alloca float, align 4
store i32 0, ptr %1, align 4
store float -1.000000e+00, ptr %2, align 4
store float -1.000000e+00, ptr %3, align 4
store float -1.000000e+00, ptr %4, align 4
store float -1.000000e+00, ptr %5, align 4
store i32 -1, ptr %6, align 4
store i32 1, ptr %8, align 4
%10 = load float, ptr %2, align 4
%11 = fcmp olt float %10, 0.000000e+00
br i1 %11, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %12
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%15 = load float, ptr %2, align 4
%16 = fcmp olt float %15, 0.000000e+00
br i1 %16, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %0
%18 = load float, ptr %3, align 4
%19 = fcmp olt float %18, 0.000000e+00
br i1 %19, label %.lr.ph2, label %25
.lr.ph2: ; preds = %17
br label %20
20: ; preds = %.lr.ph2, %20
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%23 = load float, ptr %3, align 4
%24 = fcmp olt float %23, 0.000000e+00
br i1 %24, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %20
br label %25
25: ; preds = %._crit_edge3, %17
%26 = load float, ptr %5, align 4
%27 = fcmp olt float %26, 0.000000e+00
br i1 %27, label %.lr.ph5, label %33
.lr.ph5: ; preds = %25
br label %28
28: ; preds = %.lr.ph5, %28
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%30 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%31 = load float, ptr %5, align 4
%32 = fcmp olt float %31, 0.000000e+00
br i1 %32, label %28, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %28
br label %33
33: ; preds = %._crit_edge6, %25
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %34, 0
br i1 %35, label %.lr.ph8, label %41
.lr.ph8: ; preds = %33
br label %36
36: ; preds = %.lr.ph8, %36
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%38 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %6)
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %36, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %36
br label %41
41: ; preds = %._crit_edge9, %33
%42 = load float, ptr %3, align 4
%43 = fdiv float %42, 1.000000e+02
store float %43, ptr %3, align 4
%44 = load float, ptr %3, align 4
%45 = fdiv float %44, 1.200000e+01
store float %45, ptr %4, align 4
%46 = load float, ptr %2, align 4
store float %46, ptr %7, align 4
br label %47
47: ; preds = %84, %41
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp sle i32 %48, %49
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load float, ptr %7, align 4
%53 = fcmp oge float %52, 0.000000e+00
br label %54
54: ; preds = %51, %47
%55 = phi i1 [ false, %47 ], [ %53, %51 ]
br i1 %55, label %56, label %87
56: ; preds = %54
%57 = load float, ptr %7, align 4
%58 = load float, ptr %7, align 4
%59 = load float, ptr %4, align 4
%60 = call float @llvm.fmuladd.f32(float %58, float %59, float %57)
store float %60, ptr %9, align 4
%61 = load float, ptr %7, align 4
%62 = load float, ptr %7, align 4
%63 = load float, ptr %4, align 4
%64 = call float @llvm.fmuladd.f32(float %62, float %63, float %61)
%65 = load float, ptr %5, align 4
%66 = fsub float %64, %65
store float %66, ptr %7, align 4
%67 = load i32, ptr %8, align 4
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %67)
%69 = load float, ptr %7, align 4
%70 = fcmp olt float %69, 0.000000e+00
br i1 %70, label %71, label %73
71: ; preds = %56
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %77
73: ; preds = %56
%74 = load float, ptr %7, align 4
%75 = fpext float %74 to double
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %75)
br label %77
77: ; preds = %73, %71
%78 = load float, ptr %7, align 4
%79 = fcmp ole float %78, 0.000000e+00
br i1 %79, label %80, label %84
80: ; preds = %77
%81 = load float, ptr %9, align 4
%82 = fpext float %81 to double
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %82)
br label %84
84: ; preds = %80, %77
%85 = load i32, ptr %8, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %8, align 4
br label %47, !llvm.loop !11
87: ; preds = %54
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpl6en5xpk.c'
source_filename = "/tmp/tmpl6en5xpk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SzFreeTemp(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
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @free(ptr noundef %6)
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/tmpl6en5xpk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SzFreeTemp(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
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @free(ptr noundef %6)
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/tmpjyt7o0ms.c'
source_filename = "/tmp/tmpjyt7o0ms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@S_IFCHR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stat(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 i32, ptr @S_IFCHR, align 4
%6 = load ptr, ptr %4, align 8
%7 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
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/tmpjyt7o0ms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@S_IFCHR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stat(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 i32, ptr @S_IFCHR, align 4
%6 = load ptr, ptr %4, align 8
%7 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
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/tmpbqcr8rpn.c'
source_filename = "/tmp/tmpbqcr8rpn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BrL\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @GetLabel_name_id(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [100 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i64 @strlen(ptr noundef %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 -1, ptr %4, align 4
br label %59
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = call ptr @strstr(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %58
20: ; preds = %15
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 100, i1 false)
%21 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 3
%24 = call i32 @memcpy(ptr noundef %21, ptr noundef %23, i32 noundef 2)
%25 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 2
store i8 0, ptr %25, align 2
%26 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%27 = call i32 @sscanf(ptr noundef %26, ptr noundef @.str.1, ptr noundef %9)
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 15
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 47
br i1 %32, label %33, label %34
33: ; preds = %20
store i32 0, ptr %4, align 4
br label %59
34: ; preds = %20
%35 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 16
%38 = load i32, ptr %9, align 4
%39 = call i32 @memcpy(ptr noundef %35, ptr noundef %37, i32 noundef %38)
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %41
store i8 0, ptr %42, align 1
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%45 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%46 = call i64 @strlen(ptr noundef %45)
%47 = trunc i64 %46 to i32
%48 = call i32 @memcpy(ptr noundef %43, ptr noundef %44, i32 noundef %47)
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%51 = call i64 @strlen(ptr noundef %50)
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
%53 = load ptr, ptr %7, align 8
%54 = load ptr, ptr %8, align 8
%55 = call i32 @memcpy(ptr noundef %53, ptr noundef %54, i32 noundef 15)
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 15
store i8 0, ptr %57, align 1
store i32 1, ptr %4, align 4
br label %59
58: ; preds = %15
store i32 0, ptr %4, align 4
br label %59
59: ; preds = %58, %34, %33, %14
%60 = load i32, ptr %4, align 4
ret i32 %60
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #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 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbqcr8rpn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BrL\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @GetLabel_name_id(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [100 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i64 @strlen(ptr noundef %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 -1, ptr %4, align 4
br label %59
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = call ptr @strstr(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %58
20: ; preds = %15
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 100, i1 false)
%21 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 3
%24 = call i32 @memcpy(ptr noundef %21, ptr noundef %23, i32 noundef 2)
%25 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 2
store i8 0, ptr %25, align 2
%26 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%27 = call i32 @sscanf(ptr noundef %26, ptr noundef @.str.1, ptr noundef %9)
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 15
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 47
br i1 %32, label %33, label %34
33: ; preds = %20
store i32 0, ptr %4, align 4
br label %59
34: ; preds = %20
%35 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 16
%38 = load i32, ptr %9, align 4
%39 = call i32 @memcpy(ptr noundef %35, ptr noundef %37, i32 noundef %38)
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %41
store i8 0, ptr %42, align 1
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%45 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%46 = call i64 @strlen(ptr noundef %45)
%47 = trunc i64 %46 to i32
%48 = call i32 @memcpy(ptr noundef %43, ptr noundef %44, i32 noundef %47)
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%51 = call i64 @strlen(ptr noundef %50)
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
%53 = load ptr, ptr %7, align 8
%54 = load ptr, ptr %8, align 8
%55 = call i32 @memcpy(ptr noundef %53, ptr noundef %54, i32 noundef 15)
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 15
store i8 0, ptr %57, align 1
store i32 1, ptr %4, align 4
br label %59
58: ; preds = %15
store i32 0, ptr %4, align 4
br label %59
59: ; preds = %58, %34, %33, %14
%60 = load i32, ptr %4, align 4
ret i32 %60
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #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 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5k5t9qtt.c'
source_filename = "/tmp/tmp5k5t9qtt.c"
target datalayout = "e-m:e-p270: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/tmp5k5t9qtt.c"
target datalayout = "e-m:e-p270: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/tmp2965wwd3.c'
source_filename = "/tmp/tmp2965wwd3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i32 @lace_builtin_add_main(i32 noundef %6, ptr noundef %7, ptr noundef null, ptr noundef null)
ret i32 %8
}
declare i32 @lace_builtin_add_main(i32 noundef, 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/tmp2965wwd3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i32 @lace_builtin_add_main(i32 noundef %6, ptr noundef %7, ptr noundef null, ptr noundef null)
ret i32 %8
}
declare i32 @lace_builtin_add_main(i32 noundef, 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.