llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpcremc9_h.c'
source_filename = "/tmp/tmpcremc9_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pike(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store float %5, ptr %12, align 4
store i32 0, ptr %17, align 4
store i32 255, ptr %18, align 4
store i32 0, ptr %13, align 4
br label %21
21: ; preds = %34, %6
%22 = load i32, ptr %13, align 4
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %9, align 4
%25 = mul nsw i32 %23, %24
%26 = icmp slt i32 %22, %25
br i1 %26, label %27, label %37
27: ; preds = %21
%28 = load i32, ptr %17, align 4
%29 = trunc i32 %28 to i8
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %13, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 %29, ptr %33, align 1
br label %34
34: ; preds = %27
%35 = load i32, ptr %13, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %13, align 4
br label %21, !llvm.loop !6
37: ; preds = %21
%38 = load i32, ptr %10, align 4
%39 = icmp slt i32 %38, 1
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 1, ptr %10, align 4
br label %41
41: ; preds = %40, %37
%42 = load i32, ptr %11, align 4
%43 = icmp slt i32 %42, 1
br i1 %43, label %44, label %45
44: ; preds = %41
store i32 1, ptr %11, align 4
br label %45
45: ; preds = %44, %41
%46 = load float, ptr %12, align 4
%47 = fcmp oeq float %46, 0.000000e+00
br i1 %47, label %48, label %49
48: ; preds = %45
store float 1.000000e+00, ptr %12, align 4
br label %49
49: ; preds = %48, %45
%50 = load i32, ptr %10, align 4
%51 = sitofp i32 %50 to float
%52 = load float, ptr %12, align 4
%53 = fdiv float %51, %52
%54 = fptosi float %53 to i32
store i32 %54, ptr %19, align 4
%55 = load i32, ptr %11, align 4
%56 = sitofp i32 %55 to float
%57 = load float, ptr %12, align 4
%58 = fdiv float %56, %57
%59 = fptosi float %58 to i32
store i32 %59, ptr %20, align 4
%60 = load i32, ptr %9, align 4
%61 = sdiv i32 %60, 2
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr %9, align 4
%64 = sdiv i32 %63, 2
%65 = load i32, ptr %10, align 4
%66 = sdiv i32 %64, %65
%67 = mul nsw i32 %62, %66
%68 = sub nsw i32 %61, %67
store i32 %68, ptr %15, align 4
%69 = load i32, ptr %8, align 4
%70 = sdiv i32 %69, 2
%71 = load i32, ptr %19, align 4
%72 = load i32, ptr %8, align 4
%73 = sdiv i32 %72, 2
%74 = load i32, ptr %19, align 4
%75 = sdiv i32 %73, %74
%76 = mul nsw i32 %71, %75
%77 = sub nsw i32 %70, %76
store i32 %77, ptr %16, align 4
%78 = load i32, ptr %15, align 4
store i32 %78, ptr %13, align 4
br label %79
79: ; preds = %110, %49
%80 = load i32, ptr %13, align 4
%81 = load i32, ptr %9, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %114
83: ; preds = %79
%84 = load i32, ptr %16, align 4
store i32 %84, ptr %14, align 4
br label %85
85: ; preds = %105, %83
%86 = load i32, ptr %14, align 4
%87 = load i32, ptr %8, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %109
89: ; preds = %85
%90 = load ptr, ptr %7, align 8
%91 = load i32, ptr %8, align 4
%92 = load i32, ptr %9, align 4
%93 = load i32, ptr %14, align 4
%94 = load i32, ptr %11, align 4
%95 = sdiv i32 %94, 2
%96 = sub nsw i32 %93, %95
%97 = load i32, ptr %13, align 4
%98 = load i32, ptr %11, align 4
%99 = sdiv i32 %98, 2
%100 = sub nsw i32 %97, %99
%101 = load i32, ptr %20, align 4
%102 = load i32, ptr %11, align 4
%103 = load i32, ptr %18, align 4
%104 = call i32 @draw_rectangle(ptr noundef %90, i32 noundef %91, i32 noundef %92, i32 noundef %96, i32 noundef %100, i32 noundef %101, i32 noundef %102, i32 noundef %103)
br label %105
105: ; preds = %89
%106 = load i32, ptr %14, align 4
%107 = load i32, ptr %19, align 4
%108 = add nsw i32 %106, %107
store i32 %108, ptr %14, align 4
br label %85, !llvm.loop !8
109: ; preds = %85
br label %110
110: ; preds = %109
%111 = load i32, ptr %13, align 4
%112 = load i32, ptr %10, align 4
%113 = add nsw i32 %111, %112
store i32 %113, ptr %13, align 4
br label %79, !llvm.loop !9
114: ; preds = %79
ret void
}
declare i32 @draw_rectangle(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcremc9_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pike(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store float %5, ptr %12, align 4
store i32 0, ptr %17, align 4
store i32 255, ptr %18, align 4
store i32 0, ptr %13, align 4
%21 = load i32, ptr %13, align 4
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %9, align 4
%24 = mul nsw i32 %22, %23
%25 = icmp slt i32 %21, %24
br i1 %25, label %.lr.ph, label %41
.lr.ph: ; preds = %6
br label %26
26: ; preds = %.lr.ph, %33
%27 = load i32, ptr %17, align 4
%28 = trunc i32 %27 to i8
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
store i8 %28, ptr %32, align 1
br label %33
33: ; preds = %26
%34 = load i32, ptr %13, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %13, align 4
%36 = load i32, ptr %13, align 4
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %9, align 4
%39 = mul nsw i32 %37, %38
%40 = icmp slt i32 %36, %39
br i1 %40, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %41
41: ; preds = %._crit_edge, %6
%42 = load i32, ptr %10, align 4
%43 = icmp slt i32 %42, 1
br i1 %43, label %44, label %45
44: ; preds = %41
store i32 1, ptr %10, align 4
br label %45
45: ; preds = %44, %41
%46 = load i32, ptr %11, align 4
%47 = icmp slt i32 %46, 1
br i1 %47, label %48, label %49
48: ; preds = %45
store i32 1, ptr %11, align 4
br label %49
49: ; preds = %48, %45
%50 = load float, ptr %12, align 4
%51 = fcmp oeq float %50, 0.000000e+00
br i1 %51, label %52, label %53
52: ; preds = %49
store float 1.000000e+00, ptr %12, align 4
br label %53
53: ; preds = %52, %49
%54 = load i32, ptr %10, align 4
%55 = sitofp i32 %54 to float
%56 = load float, ptr %12, align 4
%57 = fdiv float %55, %56
%58 = fptosi float %57 to i32
store i32 %58, ptr %19, align 4
%59 = load i32, ptr %11, align 4
%60 = sitofp i32 %59 to float
%61 = load float, ptr %12, align 4
%62 = fdiv float %60, %61
%63 = fptosi float %62 to i32
store i32 %63, ptr %20, align 4
%64 = load i32, ptr %9, align 4
%65 = sdiv i32 %64, 2
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %9, align 4
%68 = sdiv i32 %67, 2
%69 = load i32, ptr %10, align 4
%70 = sdiv i32 %68, %69
%71 = mul nsw i32 %66, %70
%72 = sub nsw i32 %65, %71
store i32 %72, ptr %15, align 4
%73 = load i32, ptr %8, align 4
%74 = sdiv i32 %73, 2
%75 = load i32, ptr %19, align 4
%76 = load i32, ptr %8, align 4
%77 = sdiv i32 %76, 2
%78 = load i32, ptr %19, align 4
%79 = sdiv i32 %77, %78
%80 = mul nsw i32 %75, %79
%81 = sub nsw i32 %74, %80
store i32 %81, ptr %16, align 4
%82 = load i32, ptr %15, align 4
store i32 %82, ptr %13, align 4
%83 = load i32, ptr %13, align 4
%84 = load i32, ptr %9, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %.lr.ph5, label %122
.lr.ph5: ; preds = %53
br label %86
86: ; preds = %.lr.ph5, %115
%87 = load i32, ptr %16, align 4
store i32 %87, ptr %14, align 4
%88 = load i32, ptr %14, align 4
%89 = load i32, ptr %8, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %.lr.ph2, label %114
.lr.ph2: ; preds = %86
br label %91
91: ; preds = %.lr.ph2, %107
%92 = load ptr, ptr %7, align 8
%93 = load i32, ptr %8, align 4
%94 = load i32, ptr %9, align 4
%95 = load i32, ptr %14, align 4
%96 = load i32, ptr %11, align 4
%97 = sdiv i32 %96, 2
%98 = sub nsw i32 %95, %97
%99 = load i32, ptr %13, align 4
%100 = load i32, ptr %11, align 4
%101 = sdiv i32 %100, 2
%102 = sub nsw i32 %99, %101
%103 = load i32, ptr %20, align 4
%104 = load i32, ptr %11, align 4
%105 = load i32, ptr %18, align 4
%106 = call i32 @draw_rectangle(ptr noundef %92, i32 noundef %93, i32 noundef %94, i32 noundef %98, i32 noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %105)
br label %107
107: ; preds = %91
%108 = load i32, ptr %14, align 4
%109 = load i32, ptr %19, align 4
%110 = add nsw i32 %108, %109
store i32 %110, ptr %14, align 4
%111 = load i32, ptr %14, align 4
%112 = load i32, ptr %8, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %91, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %107
br label %114
114: ; preds = %._crit_edge3, %86
br label %115
115: ; preds = %114
%116 = load i32, ptr %13, align 4
%117 = load i32, ptr %10, align 4
%118 = add nsw i32 %116, %117
store i32 %118, ptr %13, align 4
%119 = load i32, ptr %13, align 4
%120 = load i32, ptr %9, align 4
%121 = icmp slt i32 %119, %120
br i1 %121, label %86, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %115
br label %122
122: ; preds = %._crit_edge6, %53
ret void
}
declare i32 @draw_rectangle(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxspzbhyq.c'
source_filename = "/tmp/tmpxspzbhyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qsort(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca [10000 x i8], align 16
%16 = alloca [10000 x i8], align 16
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp sge i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %6
br label %123
23: ; preds = %6
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %26, %27
%29 = sdiv i32 %28, 2
%30 = call i32 @swap(ptr noundef %24, i32 noundef %25, i32 noundef %29)
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %14, align 4
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %13, align 4
br label %34
34: ; preds = %101, %23
%35 = load i32, ptr %13, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp sle i32 %35, %36
br i1 %37, label %38, label %104
38: ; preds = %34
%39 = load i32, ptr %11, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %58
41: ; preds = %38
%42 = load ptr, ptr %7, align 8
%43 = load i32, ptr %13, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds [10000 x i8], ptr %15, i64 0, i64 0
%48 = call i32 @strtolower(ptr noundef %46, ptr noundef %47)
%49 = getelementptr inbounds [10000 x i8], ptr %15, i64 0, i64 0
store ptr %49, ptr %17, align 8
%50 = load ptr, ptr %7, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = getelementptr inbounds [10000 x i8], ptr %16, i64 0, i64 0
%56 = call i32 @strtolower(ptr noundef %54, ptr noundef %55)
%57 = getelementptr inbounds [10000 x i8], ptr %16, i64 0, i64 0
store ptr %57, ptr %18, align 8
br label %69
58: ; preds = %38
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %59, i64 %61
%63 = load ptr, ptr %62, align 8
store ptr %63, ptr %17, align 8
%64 = load ptr, ptr %7, align 8
%65 = load i32, ptr %8, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %64, i64 %66
%68 = load ptr, ptr %67, align 8
store ptr %68, ptr %18, align 8
br label %69
69: ; preds = %58, %41
%70 = load i32, ptr %10, align 4
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %84
72: ; preds = %69
%73 = load ptr, ptr %12, align 8
%74 = load ptr, ptr %17, align 8
%75 = load ptr, ptr %18, align 8
%76 = call i32 %73(ptr noundef %74, ptr noundef %75)
%77 = icmp sgt i32 %76, 0
br i1 %77, label %78, label %84
78: ; preds = %72
%79 = load ptr, ptr %7, align 8
%80 = load i32, ptr %14, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %14, align 4
%82 = load i32, ptr %13, align 4
%83 = call i32 @swap(ptr noundef %79, i32 noundef %81, i32 noundef %82)
br label %100
84: ; preds = %72, %69
%85 = load i32, ptr %10, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %99, label %87
87: ; preds = %84
%88 = load ptr, ptr %12, align 8
%89 = load ptr, ptr %17, align 8
%90 = load ptr, ptr %18, align 8
%91 = call i32 %88(ptr noundef %89, ptr noundef %90)
%92 = icmp slt i32 %91, 0
br i1 %92, label %93, label %99
93: ; preds = %87
%94 = load ptr, ptr %7, align 8
%95 = load i32, ptr %14, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %14, align 4
%97 = load i32, ptr %13, align 4
%98 = call i32 @swap(ptr noundef %94, i32 noundef %96, i32 noundef %97)
br label %99
99: ; preds = %93, %87, %84
br label %100
100: ; preds = %99, %78
br label %101
101: ; preds = %100
%102 = load i32, ptr %13, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %13, align 4
br label %34, !llvm.loop !6
104: ; preds = %34
%105 = load ptr, ptr %7, align 8
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %14, align 4
%108 = call i32 @swap(ptr noundef %105, i32 noundef %106, i32 noundef %107)
%109 = load ptr, ptr %7, align 8
%110 = load i32, ptr %8, align 4
%111 = load i32, ptr %14, align 4
%112 = sub nsw i32 %111, 1
%113 = load i32, ptr %10, align 4
%114 = load i32, ptr %11, align 4
%115 = load ptr, ptr %12, align 8
call void @qsort(ptr noundef %109, i32 noundef %110, i32 noundef %112, i32 noundef %113, i32 noundef %114, ptr noundef %115)
%116 = load ptr, ptr %7, align 8
%117 = load i32, ptr %14, align 4
%118 = add nsw i32 %117, 1
%119 = load i32, ptr %9, align 4
%120 = load i32, ptr %10, align 4
%121 = load i32, ptr %11, align 4
%122 = load ptr, ptr %12, align 8
call void @qsort(ptr noundef %116, i32 noundef %118, i32 noundef %119, i32 noundef %120, i32 noundef %121, ptr noundef %122)
br label %123
123: ; preds = %104, %22
ret void
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strtolower(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/tmpxspzbhyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qsort(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca [10000 x i8], align 16
%16 = alloca [10000 x i8], align 16
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp sge i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %6
br label %125
23: ; preds = %6
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %26, %27
%29 = sdiv i32 %28, 2
%30 = call i32 @swap(ptr noundef %24, i32 noundef %25, i32 noundef %29)
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %14, align 4
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %13, align 4
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %.lr.ph, label %106
.lr.ph: ; preds = %23
br label %37
37: ; preds = %.lr.ph, %100
%38 = load i32, ptr %11, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %57
40: ; preds = %37
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %13, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %41, i64 %43
%45 = load ptr, ptr %44, align 8
%46 = getelementptr inbounds [10000 x i8], ptr %15, i64 0, i64 0
%47 = call i32 @strtolower(ptr noundef %45, ptr noundef %46)
%48 = getelementptr inbounds [10000 x i8], ptr %15, i64 0, i64 0
store ptr %48, ptr %17, align 8
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %49, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = getelementptr inbounds [10000 x i8], ptr %16, i64 0, i64 0
%55 = call i32 @strtolower(ptr noundef %53, ptr noundef %54)
%56 = getelementptr inbounds [10000 x i8], ptr %16, i64 0, i64 0
store ptr %56, ptr %18, align 8
br label %68
57: ; preds = %37
%58 = load ptr, ptr %7, align 8
%59 = load i32, ptr %13, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
%62 = load ptr, ptr %61, align 8
store ptr %62, ptr %17, align 8
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds ptr, ptr %63, i64 %65
%67 = load ptr, ptr %66, align 8
store ptr %67, ptr %18, align 8
br label %68
68: ; preds = %57, %40
%69 = load i32, ptr %10, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %83
71: ; preds = %68
%72 = load ptr, ptr %12, align 8
%73 = load ptr, ptr %17, align 8
%74 = load ptr, ptr %18, align 8
%75 = call i32 %72(ptr noundef %73, ptr noundef %74)
%76 = icmp sgt i32 %75, 0
br i1 %76, label %77, label %83
77: ; preds = %71
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %14, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %14, align 4
%81 = load i32, ptr %13, align 4
%82 = call i32 @swap(ptr noundef %78, i32 noundef %80, i32 noundef %81)
br label %99
83: ; preds = %71, %68
%84 = load i32, ptr %10, align 4
%85 = icmp ne i32 %84, 0
br i1 %85, label %98, label %86
86: ; preds = %83
%87 = load ptr, ptr %12, align 8
%88 = load ptr, ptr %17, align 8
%89 = load ptr, ptr %18, align 8
%90 = call i32 %87(ptr noundef %88, ptr noundef %89)
%91 = icmp slt i32 %90, 0
br i1 %91, label %92, label %98
92: ; preds = %86
%93 = load ptr, ptr %7, align 8
%94 = load i32, ptr %14, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %14, align 4
%96 = load i32, ptr %13, align 4
%97 = call i32 @swap(ptr noundef %93, i32 noundef %95, i32 noundef %96)
br label %98
98: ; preds = %92, %86, %83
br label %99
99: ; preds = %98, %77
br label %100
100: ; preds = %99
%101 = load i32, ptr %13, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %13, align 4
%103 = load i32, ptr %13, align 4
%104 = load i32, ptr %9, align 4
%105 = icmp sle i32 %103, %104
br i1 %105, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %100
br label %106
106: ; preds = %._crit_edge, %23
%107 = load ptr, ptr %7, align 8
%108 = load i32, ptr %8, align 4
%109 = load i32, ptr %14, align 4
%110 = call i32 @swap(ptr noundef %107, i32 noundef %108, i32 noundef %109)
%111 = load ptr, ptr %7, align 8
%112 = load i32, ptr %8, align 4
%113 = load i32, ptr %14, align 4
%114 = sub nsw i32 %113, 1
%115 = load i32, ptr %10, align 4
%116 = load i32, ptr %11, align 4
%117 = load ptr, ptr %12, align 8
call void @qsort(ptr noundef %111, i32 noundef %112, i32 noundef %114, i32 noundef %115, i32 noundef %116, ptr noundef %117)
%118 = load ptr, ptr %7, align 8
%119 = load i32, ptr %14, align 4
%120 = add nsw i32 %119, 1
%121 = load i32, ptr %9, align 4
%122 = load i32, ptr %10, align 4
%123 = load i32, ptr %11, align 4
%124 = load ptr, ptr %12, align 8
call void @qsort(ptr noundef %118, i32 noundef %120, i32 noundef %121, i32 noundef %122, i32 noundef %123, ptr noundef %124)
br label %125
125: ; preds = %106, %22
ret void
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strtolower(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/tmpp3en7ame.c'
source_filename = "/tmp/tmpp3en7ame.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@charcoll.sa = internal global [2 x i8] zeroinitializer, align 1
@charcoll.sb = internal global [2 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @charcoll(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 i32, ptr %5, align 4
%7 = trunc i32 %6 to i8
store i8 %7, ptr @charcoll.sa, align 1
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %8, align 4
%10 = trunc i32 %9 to i8
store i8 %10, ptr @charcoll.sb, align 1
%11 = call i32 @strcoll(ptr noundef @charcoll.sa, ptr noundef @charcoll.sb)
ret i32 %11
}
declare i32 @strcoll(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/tmpp3en7ame.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@charcoll.sa = internal global [2 x i8] zeroinitializer, align 1
@charcoll.sb = internal global [2 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @charcoll(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 i32, ptr %5, align 4
%7 = trunc i32 %6 to i8
store i8 %7, ptr @charcoll.sa, align 1
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %8, align 4
%10 = trunc i32 %9 to i8
store i8 %10, ptr @charcoll.sb, align 1
%11 = call i32 @strcoll(ptr noundef @charcoll.sa, ptr noundef @charcoll.sb)
ret i32 %11
}
declare i32 @strcoll(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/tmp718svbs2.c'
source_filename = "/tmp/tmp718svbs2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caesar_decode(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = sub nsw i32 0, %9
%11 = call ptr @caesar_cipher(ptr noundef %7, i64 noundef %8, i32 noundef %10)
ret ptr %11
}
declare ptr @caesar_cipher(ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp718svbs2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caesar_decode(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = sub nsw i32 0, %9
%11 = call ptr @caesar_cipher(ptr noundef %7, i64 noundef %8, i32 noundef %10)
ret ptr %11
}
declare ptr @caesar_cipher(ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn3v2wmpi.c'
source_filename = "/tmp/tmpn3v2wmpi.c"
target datalayout = "e-m:e-p270: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/tmpn3v2wmpi.c"
target datalayout = "e-m:e-p270: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/tmp19qyo42s.c'
source_filename = "/tmp/tmp19qyo42s.c"
target datalayout = "e-m:e-p270: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"Reserva memoria para un crucigrama\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reservaCrucigrama() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp19qyo42s.c"
target datalayout = "e-m:e-p270: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"Reserva memoria para un crucigrama\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reservaCrucigrama() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdzuunfv1.c'
source_filename = "/tmp/tmpdzuunfv1.c"
target datalayout = "e-m:e-p270: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/tmpdzuunfv1.c"
target datalayout = "e-m:e-p270: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/tmpn8xhx6ix.c'
source_filename = "/tmp/tmpn8xhx6ix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s5(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 1
%5 = call i32 @p5(ptr noundef %4)
ret void
}
declare i32 @p5(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn8xhx6ix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s5(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 1
%5 = call i32 @p5(ptr noundef %4)
ret void
}
declare i32 @p5(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqckav91m.c'
source_filename = "/tmp/tmpqckav91m.c"
target datalayout = "e-m:e-p270: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/tmpqckav91m.c"
target datalayout = "e-m:e-p270: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/tmp8opekr13.c'
source_filename = "/tmp/tmp8opekr13.c"
target datalayout = "e-m:e-p270: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"calloc error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @calloc(i64 noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @err_sys(ptr noundef @.str)
br label %12
12: ; preds = %10, %2
%13 = load ptr, ptr %5, align 8
ret ptr %13
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @err_sys(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 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-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 = { allocsize(0,1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8opekr13.c"
target datalayout = "e-m:e-p270: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"calloc error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @calloc(i64 noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @err_sys(ptr noundef @.str)
br label %12
12: ; preds = %10, %2
%13 = load ptr, ptr %5, align 8
ret ptr %13
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @err_sys(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 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-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 = { allocsize(0,1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp15z011yo.c'
source_filename = "/tmp/tmp15z011yo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GPIOADCTriggerDisable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store volatile i64 %1, ptr %4, align 8
%5 = load volatile i64, ptr %4, align 8
%6 = xor i64 %5, -1
%7 = load i64, ptr %3, align 8
%8 = add nsw i64 %7, 1328
%9 = inttoptr i64 %8 to ptr
%10 = load volatile i64, ptr %9, align 8
%11 = and i64 %10, %6
store volatile i64 %11, ptr %9, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp15z011yo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GPIOADCTriggerDisable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store volatile i64 %1, ptr %4, align 8
%5 = load volatile i64, ptr %4, align 8
%6 = xor i64 %5, -1
%7 = load i64, ptr %3, align 8
%8 = add nsw i64 %7, 1328
%9 = inttoptr i64 %8 to ptr
%10 = load volatile i64, ptr %9, align 8
%11 = and i64 %10, %6
store volatile i64 %11, ptr %9, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxhk9w4qq.c'
source_filename = "/tmp/tmpxhk9w4qq.c"
target datalayout = "e-m:e-p270: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/tmpxhk9w4qq.c"
target datalayout = "e-m:e-p270: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/tmp472dlew1.c'
source_filename = "/tmp/tmp472dlew1.c"
target datalayout = "e-m:e-p270: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 [33 x i8] c"12345678901234567890123456789012\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"12345678901234567890123%6789012\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Same strings verified!\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Malignant string detected!\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"Same strings verified! (both with null characters)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
store ptr @.str.1, ptr %5, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @isValidForSite(ptr noundef %6, ptr noundef %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10, %0
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @isValidForSite(ptr noundef %13, ptr noundef %14)
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = call i32 @printf(ptr noundef @.str.3)
br label %19
19: ; preds = %17, %12
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = call i32 @isValidForSite(ptr noundef %20, ptr noundef %21)
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @printf(ptr noundef @.str.4)
br label %26
26: ; preds = %24, %19
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i32 @isValidForSite(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp472dlew1.c"
target datalayout = "e-m:e-p270: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 [33 x i8] c"12345678901234567890123456789012\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"12345678901234567890123%6789012\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Same strings verified!\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Malignant string detected!\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"Same strings verified! (both with null characters)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
store ptr @.str.1, ptr %5, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @isValidForSite(ptr noundef %6, ptr noundef %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10, %0
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @isValidForSite(ptr noundef %13, ptr noundef %14)
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = call i32 @printf(ptr noundef @.str.3)
br label %19
19: ; preds = %17, %12
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = call i32 @isValidForSite(ptr noundef %20, ptr noundef %21)
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @printf(ptr noundef @.str.4)
br label %26
26: ; preds = %24, %19
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i32 @isValidForSite(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"}
|
; ModuleID = '/tmp/tmppgv4_11k.c'
source_filename = "/tmp/tmppgv4_11k.c"
target datalayout = "e-m:e-p270: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/tmppgv4_11k.c"
target datalayout = "e-m:e-p270: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/tmpqsxzxlm9.c'
source_filename = "/tmp/tmpqsxzxlm9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_line(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %28, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = call i32 (...) @getchar()
store i32 %13, ptr %5, align 4
%14 = load i32, ptr @EOF, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = icmp ne i32 %17, 10
br label %19
19: ; preds = %16, %12, %7
%20 = phi i1 [ false, %12 ], [ false, %7 ], [ %18, %16 ]
br i1 %20, label %21, label %31
21: ; preds = %19
%22 = load i32, ptr %5, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
br label %28
28: ; preds = %21
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %7, !llvm.loop !6
31: ; preds = %19
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 0, ptr %35, align 1
%36 = load i32, ptr %5, align 4
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %38, %31
%42 = load i32, ptr %6, align 4
ret i32 %42
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqsxzxlm9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_line(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %28, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = call i32 (...) @getchar()
store i32 %13, ptr %5, align 4
%14 = load i32, ptr @EOF, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = icmp ne i32 %17, 10
br label %19
19: ; preds = %16, %12, %7
%20 = phi i1 [ false, %12 ], [ false, %7 ], [ %18, %16 ]
br i1 %20, label %21, label %31
21: ; preds = %19
%22 = load i32, ptr %5, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
br label %28
28: ; preds = %21
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %7, !llvm.loop !6
31: ; preds = %19
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 0, ptr %35, align 1
%36 = load i32, ptr %5, align 4
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %38, %31
%42 = load i32, ptr %6, align 4
ret i32 %42
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpydspjfun.c'
source_filename = "/tmp/tmpydspjfun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello world!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @uart_init()
%2 = call i32 @print_uart0(ptr noundef @.str)
ret void
}
declare i32 @uart_init(...) #1
declare i32 @print_uart0(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpydspjfun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello world!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @uart_init()
%2 = call i32 @print_uart0(ptr noundef @.str)
ret void
}
declare i32 @uart_init(...) #1
declare i32 @print_uart0(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwrtrm5_b.c'
source_filename = "/tmp/tmpwrtrm5_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__parseerror.errstr = internal global [8 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7], align 16
@.str = private unnamed_addr constant [13 x i8] c"NUM_EXPECTED\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"SYM_EXPECTED\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"ADDR_EXPECTED\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"SYM_TOLONG\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"TO_MANY_DEF_IN_MODULE\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"TO_MANY_USE_IN_MODULE\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"TO_MANY_SYMBOLS\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"TO_MANY_INSTR\00", align 1
@.str.8 = private unnamed_addr constant [35 x i8] c"Parse Error line %d offset %d: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__parseerror(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 %5, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [8 x ptr], ptr @__parseerror.errstr, i64 0, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = call i32 @printf(ptr noundef @.str.8, i32 noundef %7, i32 noundef %8, ptr noundef %12)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwrtrm5_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__parseerror.errstr = internal global [8 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7], align 16
@.str = private unnamed_addr constant [13 x i8] c"NUM_EXPECTED\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"SYM_EXPECTED\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"ADDR_EXPECTED\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"SYM_TOLONG\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"TO_MANY_DEF_IN_MODULE\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"TO_MANY_USE_IN_MODULE\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"TO_MANY_SYMBOLS\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"TO_MANY_INSTR\00", align 1
@.str.8 = private unnamed_addr constant [35 x i8] c"Parse Error line %d offset %d: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__parseerror(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 %5, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [8 x ptr], ptr @__parseerror.errstr, i64 0, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = call i32 @printf(ptr noundef @.str.8, i32 noundef %7, i32 noundef %8, ptr noundef %12)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnqi8t4fr.c'
source_filename = "/tmp/tmpnqi8t4fr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"very\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"port\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"invite\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"port,invite\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"no\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @libamg_sip_get_insecure_code(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 = call i32 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 8, ptr %2, align 4
br label %29
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strcmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
store i32 4, ptr %2, align 4
br label %29
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i32 2, ptr %2, align 4
br label %29
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strcmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store i32 1, ptr %2, align 4
br label %29
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23
store i32 0, ptr %2, align 4
br label %29
28: ; preds = %23
store i32 -1, ptr %2, align 4
br label %29
29: ; preds = %28, %27, %22, %17, %12, %7
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnqi8t4fr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"very\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"port\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"invite\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"port,invite\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"no\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @libamg_sip_get_insecure_code(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 = call i32 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 8, ptr %2, align 4
br label %29
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strcmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
store i32 4, ptr %2, align 4
br label %29
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i32 2, ptr %2, align 4
br label %29
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strcmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store i32 1, ptr %2, align 4
br label %29
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23
store i32 0, ptr %2, align 4
br label %29
28: ; preds = %23
store i32 -1, ptr %2, align 4
br label %29
29: ; preds = %28, %27, %22, %17, %12, %7
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu362d_pu.c'
source_filename = "/tmp/tmpu362d_pu.c"
target datalayout = "e-m:e-p270: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"\0A*** Fault occurred ***\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Stack Frame\0A----------\0A\00", align 1
@.str.2 = private unnamed_addr constant [70 x i8] c" R0 R1 R2 R3 R12 LR PC xPSR\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%08X \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"MMFSR:\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c" MMARVALID\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c" MLSPERR\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c" MSTKERR\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c" MUNSTKERR\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c" DACCVIOL\00", align 1
@.str.11 = private unnamed_addr constant [10 x i8] c" IACCVIOL\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"MMFAR: %08X\0A\0A\00", align 1
@.str.14 = private unnamed_addr constant [7 x i8] c"BFSR: \00", align 1
@.str.15 = private unnamed_addr constant [11 x i8] c" BFARVALID\00", align 1
@.str.16 = private unnamed_addr constant [8 x i8] c" LSPERR\00", align 1
@.str.17 = private unnamed_addr constant [8 x i8] c" STKERR\00", align 1
@.str.18 = private unnamed_addr constant [10 x i8] c" UNSTKERR\00", align 1
@.str.19 = private unnamed_addr constant [13 x i8] c" IMPRECISERR\00", align 1
@.str.20 = private unnamed_addr constant [11 x i8] c" PRECISERR\00", align 1
@.str.21 = private unnamed_addr constant [9 x i8] c" IBUSERR\00", align 1
@.str.22 = private unnamed_addr constant [13 x i8] c"BFAR: %08X\0A\0A\00", align 1
@.str.23 = private unnamed_addr constant [7 x i8] c"UFSR :\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c" DIVBYZERO\00", align 1
@.str.25 = private unnamed_addr constant [11 x i8] c" UNALIGNED\00", align 1
@.str.26 = private unnamed_addr constant [6 x i8] c" NOCP\00", align 1
@.str.27 = private unnamed_addr constant [7 x i8] c" INVPC\00", align 1
@.str.28 = private unnamed_addr constant [10 x i8] c" INVSTATE\00", align 1
@.str.29 = private unnamed_addr constant [12 x i8] c" UNDEFINSTR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CMx_FaultDecoder(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load volatile i32, ptr inttoptr (i64 3758157096 to ptr), align 4
store i32 %7, ptr %3, align 4
%8 = load volatile i32, ptr inttoptr (i64 3758157108 to ptr), align 4
store i32 %8, ptr %4, align 4
%9 = load volatile i32, ptr inttoptr (i64 3758157112 to ptr), align 4
store i32 %9, ptr %5, align 4
%10 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str)
%11 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.1)
%12 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.2)
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %23, %1
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 8
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.3, i32 noundef %21)
br label %23
23: ; preds = %16
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %13, !llvm.loop !6
26: ; preds = %13
%27 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.4)
%28 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.5)
%29 = load i32, ptr %3, align 4
%30 = and i32 %29, 128
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.6)
br label %34
34: ; preds = %32, %26
%35 = load i32, ptr %3, align 4
%36 = and i32 %35, 32
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.7)
br label %40
40: ; preds = %38, %34
%41 = load i32, ptr %3, align 4
%42 = and i32 %41, 16
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.8)
br label %46
46: ; preds = %44, %40
%47 = load i32, ptr %3, align 4
%48 = and i32 %47, 8
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.9)
br label %52
52: ; preds = %50, %46
%53 = load i32, ptr %3, align 4
%54 = and i32 %53, 2
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.10)
br label %58
58: ; preds = %56, %52
%59 = load i32, ptr %3, align 4
%60 = and i32 %59, 1
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.11)
br label %64
64: ; preds = %62, %58
%65 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.12)
%66 = load i32, ptr %4, align 4
%67 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.13, i32 noundef %66)
%68 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.14)
%69 = load i32, ptr %3, align 4
%70 = and i32 %69, 32768
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %64
%73 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.15)
br label %74
74: ; preds = %72, %64
%75 = load i32, ptr %3, align 4
%76 = and i32 %75, 8192
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.16)
br label %80
80: ; preds = %78, %74
%81 = load i32, ptr %3, align 4
%82 = and i32 %81, 4096
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.17)
br label %86
86: ; preds = %84, %80
%87 = load i32, ptr %3, align 4
%88 = and i32 %87, 2048
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.18)
br label %92
92: ; preds = %90, %86
%93 = load i32, ptr %3, align 4
%94 = and i32 %93, 1024
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.19)
br label %98
98: ; preds = %96, %92
%99 = load i32, ptr %3, align 4
%100 = and i32 %99, 512
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.20)
br label %104
104: ; preds = %102, %98
%105 = load i32, ptr %3, align 4
%106 = and i32 %105, 256
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.21)
br label %110
110: ; preds = %108, %104
%111 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.12)
%112 = load i32, ptr %5, align 4
%113 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.22, i32 noundef %112)
%114 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.23)
%115 = load i32, ptr %3, align 4
%116 = and i32 %115, 33554432
%117 = icmp ne i32 %116, 0
br i1 %117, label %118, label %120
118: ; preds = %110
%119 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.24)
br label %120
120: ; preds = %118, %110
%121 = load i32, ptr %3, align 4
%122 = and i32 %121, 16777216
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %126
124: ; preds = %120
%125 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.25)
br label %126
126: ; preds = %124, %120
%127 = load i32, ptr %3, align 4
%128 = and i32 %127, 524288
%129 = icmp ne i32 %128, 0
br i1 %129, label %130, label %132
130: ; preds = %126
%131 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.26)
br label %132
132: ; preds = %130, %126
%133 = load i32, ptr %3, align 4
%134 = and i32 %133, 262144
%135 = icmp ne i32 %134, 0
br i1 %135, label %136, label %138
136: ; preds = %132
%137 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.27)
br label %138
138: ; preds = %136, %132
%139 = load i32, ptr %3, align 4
%140 = and i32 %139, 131072
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %144
142: ; preds = %138
%143 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.28)
br label %144
144: ; preds = %142, %138
%145 = load i32, ptr %3, align 4
%146 = and i32 %145, 65536
%147 = icmp ne i32 %146, 0
br i1 %147, label %148, label %150
148: ; preds = %144
%149 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.29)
br label %150
150: ; preds = %148, %144
%151 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.4)
ret void
}
declare i32 @DbgPrintf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpu362d_pu.c"
target datalayout = "e-m:e-p270: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"\0A*** Fault occurred ***\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Stack Frame\0A----------\0A\00", align 1
@.str.2 = private unnamed_addr constant [70 x i8] c" R0 R1 R2 R3 R12 LR PC xPSR\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%08X \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"MMFSR:\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c" MMARVALID\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c" MLSPERR\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c" MSTKERR\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c" MUNSTKERR\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c" DACCVIOL\00", align 1
@.str.11 = private unnamed_addr constant [10 x i8] c" IACCVIOL\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"MMFAR: %08X\0A\0A\00", align 1
@.str.14 = private unnamed_addr constant [7 x i8] c"BFSR: \00", align 1
@.str.15 = private unnamed_addr constant [11 x i8] c" BFARVALID\00", align 1
@.str.16 = private unnamed_addr constant [8 x i8] c" LSPERR\00", align 1
@.str.17 = private unnamed_addr constant [8 x i8] c" STKERR\00", align 1
@.str.18 = private unnamed_addr constant [10 x i8] c" UNSTKERR\00", align 1
@.str.19 = private unnamed_addr constant [13 x i8] c" IMPRECISERR\00", align 1
@.str.20 = private unnamed_addr constant [11 x i8] c" PRECISERR\00", align 1
@.str.21 = private unnamed_addr constant [9 x i8] c" IBUSERR\00", align 1
@.str.22 = private unnamed_addr constant [13 x i8] c"BFAR: %08X\0A\0A\00", align 1
@.str.23 = private unnamed_addr constant [7 x i8] c"UFSR :\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c" DIVBYZERO\00", align 1
@.str.25 = private unnamed_addr constant [11 x i8] c" UNALIGNED\00", align 1
@.str.26 = private unnamed_addr constant [6 x i8] c" NOCP\00", align 1
@.str.27 = private unnamed_addr constant [7 x i8] c" INVPC\00", align 1
@.str.28 = private unnamed_addr constant [10 x i8] c" INVSTATE\00", align 1
@.str.29 = private unnamed_addr constant [12 x i8] c" UNDEFINSTR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CMx_FaultDecoder(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load volatile i32, ptr inttoptr (i64 3758157096 to ptr), align 4
store i32 %7, ptr %3, align 4
%8 = load volatile i32, ptr inttoptr (i64 3758157108 to ptr), align 4
store i32 %8, ptr %4, align 4
%9 = load volatile i32, ptr inttoptr (i64 3758157112 to ptr), align 4
store i32 %9, ptr %5, align 4
%10 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str)
%11 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.1)
%12 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.2)
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 8
br i1 %14, label %.lr.ph, label %27
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %22
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.3, i32 noundef %20)
br label %22
22: ; preds = %15
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 8
br i1 %26, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %1
%28 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.4)
%29 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.5)
%30 = load i32, ptr %3, align 4
%31 = and i32 %30, 128
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.6)
br label %35
35: ; preds = %33, %27
%36 = load i32, ptr %3, align 4
%37 = and i32 %36, 32
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.7)
br label %41
41: ; preds = %39, %35
%42 = load i32, ptr %3, align 4
%43 = and i32 %42, 16
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.8)
br label %47
47: ; preds = %45, %41
%48 = load i32, ptr %3, align 4
%49 = and i32 %48, 8
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.9)
br label %53
53: ; preds = %51, %47
%54 = load i32, ptr %3, align 4
%55 = and i32 %54, 2
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.10)
br label %59
59: ; preds = %57, %53
%60 = load i32, ptr %3, align 4
%61 = and i32 %60, 1
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.11)
br label %65
65: ; preds = %63, %59
%66 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.12)
%67 = load i32, ptr %4, align 4
%68 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.13, i32 noundef %67)
%69 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.14)
%70 = load i32, ptr %3, align 4
%71 = and i32 %70, 32768
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %65
%74 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.15)
br label %75
75: ; preds = %73, %65
%76 = load i32, ptr %3, align 4
%77 = and i32 %76, 8192
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.16)
br label %81
81: ; preds = %79, %75
%82 = load i32, ptr %3, align 4
%83 = and i32 %82, 4096
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %81
%86 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.17)
br label %87
87: ; preds = %85, %81
%88 = load i32, ptr %3, align 4
%89 = and i32 %88, 2048
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %87
%92 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.18)
br label %93
93: ; preds = %91, %87
%94 = load i32, ptr %3, align 4
%95 = and i32 %94, 1024
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.19)
br label %99
99: ; preds = %97, %93
%100 = load i32, ptr %3, align 4
%101 = and i32 %100, 512
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.20)
br label %105
105: ; preds = %103, %99
%106 = load i32, ptr %3, align 4
%107 = and i32 %106, 256
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.21)
br label %111
111: ; preds = %109, %105
%112 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.12)
%113 = load i32, ptr %5, align 4
%114 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.22, i32 noundef %113)
%115 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.23)
%116 = load i32, ptr %3, align 4
%117 = and i32 %116, 33554432
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %111
%120 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.24)
br label %121
121: ; preds = %119, %111
%122 = load i32, ptr %3, align 4
%123 = and i32 %122, 16777216
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %127
125: ; preds = %121
%126 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.25)
br label %127
127: ; preds = %125, %121
%128 = load i32, ptr %3, align 4
%129 = and i32 %128, 524288
%130 = icmp ne i32 %129, 0
br i1 %130, label %131, label %133
131: ; preds = %127
%132 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.26)
br label %133
133: ; preds = %131, %127
%134 = load i32, ptr %3, align 4
%135 = and i32 %134, 262144
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %133
%138 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.27)
br label %139
139: ; preds = %137, %133
%140 = load i32, ptr %3, align 4
%141 = and i32 %140, 131072
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %145
143: ; preds = %139
%144 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.28)
br label %145
145: ; preds = %143, %139
%146 = load i32, ptr %3, align 4
%147 = and i32 %146, 65536
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %145
%150 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.29)
br label %151
151: ; preds = %149, %145
%152 = call i32 (ptr, ...) @DbgPrintf(ptr noundef @.str.4)
ret void
}
declare i32 @DbgPrintf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmplvq5ohg9.c'
source_filename = "/tmp/tmplvq5ohg9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qbuf_assign(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @qbuf_clear(ptr noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = call i32 @qbuf_append(ptr noundef %9, ptr noundef %10, i64 noundef %11)
ret i32 %12
}
declare i32 @qbuf_clear(ptr noundef) #1
declare i32 @qbuf_append(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplvq5ohg9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qbuf_assign(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @qbuf_clear(ptr noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = call i32 @qbuf_append(ptr noundef %9, ptr noundef %10, i64 noundef %11)
ret i32 %12
}
declare i32 @qbuf_clear(ptr noundef) #1
declare i32 @qbuf_append(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"}
|
; ModuleID = '/tmp/tmp5en5gw58.c'
source_filename = "/tmp/tmp5en5gw58.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__vector_16() #0 {
%1 = call i32 (...) @HplAtm128Timer0AsyncP__stabiliseTimer0()
%2 = call i32 (...) @HplAtm128Timer0AsyncP__Timer__overflow()
ret void
}
declare i32 @HplAtm128Timer0AsyncP__stabiliseTimer0(...) #1
declare i32 @HplAtm128Timer0AsyncP__Timer__overflow(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5en5gw58.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__vector_16() #0 {
%1 = call i32 (...) @HplAtm128Timer0AsyncP__stabiliseTimer0()
%2 = call i32 (...) @HplAtm128Timer0AsyncP__Timer__overflow()
ret void
}
declare i32 @HplAtm128Timer0AsyncP__stabiliseTimer0(...) #1
declare i32 @HplAtm128Timer0AsyncP__Timer__overflow(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppjc2u3xw.c'
source_filename = "/tmp/tmppjc2u3xw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @corrc(ptr noundef %0, float noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
store ptr %0, ptr %6, align 8
store float %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
store float 0.000000e+00, ptr %12, align 4
store float 0.000000e+00, ptr %13, align 4
store float 0.000000e+00, ptr %14, align 4
store i32 0, ptr %11, align 4
br label %15
15: ; preds = %32, %5
%16 = load i32, ptr %11, align 4
%17 = load i32, ptr %10, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %35
19: ; preds = %15
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %11, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, ptr %20, i64 %22
%24 = load float, ptr %23, align 4
%25 = load ptr, ptr %8, align 8
%26 = load i32, ptr %11, 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 float, ptr %12, align 4
%31 = call float @llvm.fmuladd.f32(float %24, float %29, float %30)
store float %31, ptr %12, align 4
br label %32
32: ; preds = %19
%33 = load i32, ptr %11, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %11, align 4
br label %15, !llvm.loop !6
35: ; preds = %15
%36 = load float, ptr %7, align 4
%37 = load ptr, ptr %9, align 8
%38 = load i32, ptr %10, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %37, i64 %40
%42 = load double, ptr %41, align 8
%43 = load ptr, ptr %9, align 8
%44 = getelementptr inbounds double, ptr %43, i64 -1
%45 = load double, ptr %44, align 8
%46 = fsub double %42, %45
%47 = fptrunc double %46 to float
%48 = fmul float %36, %47
store float %48, ptr %13, align 4
%49 = load float, ptr %13, align 4
%50 = fcmp ogt float %49, 0x3EB0C6F7A0000000
br i1 %50, label %51, label %56
51: ; preds = %35
%52 = load float, ptr %12, align 4
%53 = load float, ptr %13, align 4
%54 = call float @sqrt(float noundef %53)
%55 = fdiv float %52, %54
store float %55, ptr %14, align 4
br label %56
56: ; preds = %51, %35
%57 = load float, ptr %14, align 4
ret float %57
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare float @sqrt(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppjc2u3xw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @corrc(ptr noundef %0, float noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
store ptr %0, ptr %6, align 8
store float %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
store float 0.000000e+00, ptr %12, align 4
store float 0.000000e+00, ptr %13, align 4
store float 0.000000e+00, ptr %14, align 4
store i32 0, ptr %11, align 4
%15 = load i32, ptr %11, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %37
.lr.ph: ; preds = %5
br label %18
18: ; preds = %.lr.ph, %31
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %11, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, ptr %19, i64 %21
%23 = load float, ptr %22, align 4
%24 = load ptr, ptr %8, align 8
%25 = load i32, ptr %11, 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 float, ptr %12, align 4
%30 = call float @llvm.fmuladd.f32(float %23, float %28, float %29)
store float %30, ptr %12, align 4
br label %31
31: ; preds = %18
%32 = load i32, ptr %11, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %11, align 4
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %10, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %5
%38 = load float, ptr %7, align 4
%39 = load ptr, ptr %9, align 8
%40 = load i32, ptr %10, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %39, i64 %42
%44 = load double, ptr %43, align 8
%45 = load ptr, ptr %9, align 8
%46 = getelementptr inbounds double, ptr %45, i64 -1
%47 = load double, ptr %46, align 8
%48 = fsub double %44, %47
%49 = fptrunc double %48 to float
%50 = fmul float %38, %49
store float %50, ptr %13, align 4
%51 = load float, ptr %13, align 4
%52 = fcmp ogt float %51, 0x3EB0C6F7A0000000
br i1 %52, label %53, label %58
53: ; preds = %37
%54 = load float, ptr %12, align 4
%55 = load float, ptr %13, align 4
%56 = call float @sqrt(float noundef %55)
%57 = fdiv float %54, %56
store float %57, ptr %14, align 4
br label %58
58: ; preds = %53, %37
%59 = load float, ptr %14, align 4
ret float %59
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare float @sqrt(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq0y8yvt3.c'
source_filename = "/tmp/tmpq0y8yvt3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.v = internal global [307200 x i16] zeroinitializer, align 16
@main.color = internal global [14 x i16] [i16 15, i16 240, i16 3840, i16 3855, i16 255, i16 3855, i16 4095, i16 8, i16 128, i16 2048, i16 2056, i16 136, i16 2056, i16 2184], align 16
@M_PI = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"localram.ppm\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"P6\0A640 480\0A15\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 320, ptr %4, align 4
store i32 240, ptr %5, align 4
%11 = call i32 @clearScreen(ptr noundef @main.v)
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %12
12: ; preds = %53, %0
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %13, 360
br i1 %14, label %15, label %58
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr @M_PI, align 4
%18 = mul nsw i32 %16, %17
%19 = sitofp i32 %18 to double
%20 = fdiv double %19, 1.800000e+02
%21 = fptosi double %20 to i32
%22 = call double @cos(i32 noundef %21)
store double %22, ptr %7, align 8
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr @M_PI, align 4
%25 = mul nsw i32 %23, %24
%26 = sitofp i32 %25 to double
%27 = fdiv double %26, 1.800000e+02
%28 = fptosi double %27 to i32
%29 = call double @sin(i32 noundef %28)
store double %29, ptr %8, align 8
%30 = load i32, ptr %4, align 4
%31 = sitofp i32 %30 to double
%32 = load double, ptr %7, align 8
%33 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %32, double %31)
%34 = fptosi double %33 to i32
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %5, align 4
%36 = sitofp i32 %35 to double
%37 = load double, ptr %8, align 8
%38 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %37, double %36)
%39 = fptosi double %38 to i32
store i32 %39, ptr %10, align 4
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %10, align 4
%42 = load double, ptr %7, align 8
%43 = fmul double %42, 1.000000e+04
%44 = fptosi double %43 to i16
%45 = load double, ptr %8, align 8
%46 = fmul double %45, 1.000000e+04
%47 = fptosi double %46 to i16
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [14 x i16], ptr @main.color, i64 0, i64 %49
%51 = load i16, ptr %50, align 2
%52 = call i32 @line(ptr noundef @main.v, i32 noundef %40, i32 noundef %41, i16 noundef signext %44, i16 noundef signext %47, double noundef 1.000000e+02, i16 noundef zeroext %51)
br label %53
53: ; preds = %15
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 30
store i32 %55, ptr %2, align 4
%56 = load i32, ptr %3, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %3, align 4
br label %12, !llvm.loop !6
58: ; preds = %12
%59 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 0, i32 noundef 0, i32 noundef 639, i32 noundef 20, i32 noundef 4095)
%60 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 0, i32 noundef 20, i32 noundef 639, i32 noundef 0, i32 noundef 3840)
%61 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 0, i32 noundef 0, i32 noundef 20, i32 noundef 479, i32 noundef 240)
%62 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 20, i32 noundef 0, i32 noundef 0, i32 noundef 479, i32 noundef 15)
%63 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %63, ptr %6, align 8
%64 = load ptr, ptr %6, align 8
%65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.2)
store i32 0, ptr %2, align 4
br label %66
66: ; preds = %97, %58
%67 = load i32, ptr %2, align 4
%68 = icmp slt i32 %67, 307200
br i1 %68, label %69, label %100
69: ; preds = %66
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %2, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [307200 x i16], ptr @main.v, i64 0, i64 %72
%74 = load i16, ptr %73, align 2
%75 = zext i16 %74 to i32
%76 = ashr i32 %75, 8
%77 = and i32 %76, 15
%78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.3, i32 noundef %77)
%79 = load ptr, ptr %6, align 8
%80 = load i32, ptr %2, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [307200 x i16], ptr @main.v, i64 0, i64 %81
%83 = load i16, ptr %82, align 2
%84 = zext i16 %83 to i32
%85 = ashr i32 %84, 4
%86 = and i32 %85, 15
%87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.3, i32 noundef %86)
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %2, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [307200 x i16], ptr @main.v, i64 0, i64 %90
%92 = load i16, ptr %91, align 2
%93 = zext i16 %92 to i32
%94 = ashr i32 %93, 0
%95 = and i32 %94, 15
%96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.3, i32 noundef %95)
br label %97
97: ; preds = %69
%98 = load i32, ptr %2, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %2, align 4
br label %66, !llvm.loop !8
100: ; preds = %66
%101 = load ptr, ptr %6, align 8
%102 = call i32 @fclose(ptr noundef %101)
ret i32 0
}
declare i32 @clearScreen(ptr noundef) #1
declare double @cos(i32 noundef) #1
declare double @sin(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @line(ptr noundef, i32 noundef, i32 noundef, i16 noundef signext, i16 noundef signext, double noundef, i16 noundef zeroext) #1
declare i32 @drawLine(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq0y8yvt3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.v = internal global [307200 x i16] zeroinitializer, align 16
@main.color = internal global [14 x i16] [i16 15, i16 240, i16 3840, i16 3855, i16 255, i16 3855, i16 4095, i16 8, i16 128, i16 2048, i16 2056, i16 136, i16 2056, i16 2184], align 16
@M_PI = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"localram.ppm\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"P6\0A640 480\0A15\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 320, ptr %4, align 4
store i32 240, ptr %5, align 4
%11 = call i32 @clearScreen(ptr noundef @main.v)
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 360
br i1 %13, label %.lr.ph, label %59
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %52
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr @M_PI, align 4
%17 = mul nsw i32 %15, %16
%18 = sitofp i32 %17 to double
%19 = fdiv double %18, 1.800000e+02
%20 = fptosi double %19 to i32
%21 = call double @cos(i32 noundef %20)
store double %21, ptr %7, align 8
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr @M_PI, align 4
%24 = mul nsw i32 %22, %23
%25 = sitofp i32 %24 to double
%26 = fdiv double %25, 1.800000e+02
%27 = fptosi double %26 to i32
%28 = call double @sin(i32 noundef %27)
store double %28, ptr %8, align 8
%29 = load i32, ptr %4, align 4
%30 = sitofp i32 %29 to double
%31 = load double, ptr %7, align 8
%32 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %31, double %30)
%33 = fptosi double %32 to i32
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %5, align 4
%35 = sitofp i32 %34 to double
%36 = load double, ptr %8, align 8
%37 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %36, double %35)
%38 = fptosi double %37 to i32
store i32 %38, ptr %10, align 4
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %10, align 4
%41 = load double, ptr %7, align 8
%42 = fmul double %41, 1.000000e+04
%43 = fptosi double %42 to i16
%44 = load double, ptr %8, align 8
%45 = fmul double %44, 1.000000e+04
%46 = fptosi double %45 to i16
%47 = load i32, ptr %3, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [14 x i16], ptr @main.color, i64 0, i64 %48
%50 = load i16, ptr %49, align 2
%51 = call i32 @line(ptr noundef @main.v, i32 noundef %39, i32 noundef %40, i16 noundef signext %43, i16 noundef signext %46, double noundef 1.000000e+02, i16 noundef zeroext %50)
br label %52
52: ; preds = %14
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %53, 30
store i32 %54, ptr %2, align 4
%55 = load i32, ptr %3, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %3, align 4
%57 = load i32, ptr %2, align 4
%58 = icmp slt i32 %57, 360
br i1 %58, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %59
59: ; preds = %._crit_edge, %0
%60 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 0, i32 noundef 0, i32 noundef 639, i32 noundef 20, i32 noundef 4095)
%61 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 0, i32 noundef 20, i32 noundef 639, i32 noundef 0, i32 noundef 3840)
%62 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 0, i32 noundef 0, i32 noundef 20, i32 noundef 479, i32 noundef 240)
%63 = call i32 @drawLine(ptr noundef @main.v, i32 noundef 20, i32 noundef 0, i32 noundef 0, i32 noundef 479, i32 noundef 15)
%64 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %64, ptr %6, align 8
%65 = load ptr, ptr %6, align 8
%66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.2)
store i32 0, ptr %2, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp slt i32 %67, 307200
br i1 %68, label %.lr.ph2, label %102
.lr.ph2: ; preds = %59
br label %69
69: ; preds = %.lr.ph2, %97
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %2, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [307200 x i16], ptr @main.v, i64 0, i64 %72
%74 = load i16, ptr %73, align 2
%75 = zext i16 %74 to i32
%76 = ashr i32 %75, 8
%77 = and i32 %76, 15
%78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.3, i32 noundef %77)
%79 = load ptr, ptr %6, align 8
%80 = load i32, ptr %2, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [307200 x i16], ptr @main.v, i64 0, i64 %81
%83 = load i16, ptr %82, align 2
%84 = zext i16 %83 to i32
%85 = ashr i32 %84, 4
%86 = and i32 %85, 15
%87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.3, i32 noundef %86)
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %2, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [307200 x i16], ptr @main.v, i64 0, i64 %90
%92 = load i16, ptr %91, align 2
%93 = zext i16 %92 to i32
%94 = ashr i32 %93, 0
%95 = and i32 %94, 15
%96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.3, i32 noundef %95)
br label %97
97: ; preds = %69
%98 = load i32, ptr %2, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %2, align 4
%100 = load i32, ptr %2, align 4
%101 = icmp slt i32 %100, 307200
br i1 %101, label %69, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %97
br label %102
102: ; preds = %._crit_edge3, %59
%103 = load ptr, ptr %6, align 8
%104 = call i32 @fclose(ptr noundef %103)
ret i32 0
}
declare i32 @clearScreen(ptr noundef) #1
declare double @cos(i32 noundef) #1
declare double @sin(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @line(ptr noundef, i32 noundef, i32 noundef, i16 noundef signext, i16 noundef signext, double noundef, i16 noundef zeroext) #1
declare i32 @drawLine(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
|
; ModuleID = '/tmp/tmpn7cnar1b.c'
source_filename = "/tmp/tmpn7cnar1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"# c::native::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"minmax-view-buffer-index\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%12 = call double (...) @benchmark()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @print_results(double noundef %13)
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn7cnar1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"# c::native::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"minmax-view-buffer-index\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%11 = call double (...) @benchmark()
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call i32 @print_results(double noundef %12)
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnk5366k8.c'
source_filename = "/tmp/tmpnk5366k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"toto\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c">%s<\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @md(ptr noundef @.str)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %3)
%5 = load ptr, ptr %1, align 8
%6 = call ptr @flu64_encode(ptr noundef %5, i32 noundef -1)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = load ptr, ptr %1, align 8
%9 = call i32 @MD5(ptr noundef @.str, i32 noundef 4, ptr noundef %8)
%10 = load ptr, ptr %1, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = load ptr, ptr %1, align 8
%13 = call ptr @flu64_encode(ptr noundef %12, i32 noundef -1)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
ret i32 0
}
declare ptr @md(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @flu64_encode(ptr noundef, i32 noundef) #1
declare i32 @MD5(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnk5366k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"toto\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c">%s<\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @md(ptr noundef @.str)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %3)
%5 = load ptr, ptr %1, align 8
%6 = call ptr @flu64_encode(ptr noundef %5, i32 noundef -1)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = load ptr, ptr %1, align 8
%9 = call i32 @MD5(ptr noundef @.str, i32 noundef 4, ptr noundef %8)
%10 = load ptr, ptr %1, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = load ptr, ptr %1, align 8
%13 = call ptr @flu64_encode(ptr noundef %12, i32 noundef -1)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
ret i32 0
}
declare ptr @md(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @flu64_encode(ptr noundef, i32 noundef) #1
declare i32 @MD5(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph06te6nq.c'
source_filename = "/tmp/tmph06te6nq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @DoTests()
ret i32 0
}
declare i32 @DoTests(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph06te6nq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @DoTests()
ret i32 0
}
declare i32 @DoTests(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy80o7a57.c'
source_filename = "/tmp/tmpy80o7a57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utf8_find_character_byte_index(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
br label %10
10: ; preds = %43, %3
%11 = load ptr, ptr %7, align 8
%12 = ptrtoint ptr %11 to i64
%13 = and i64 %12, 7
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %10
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %5, align 8
%18 = icmp ult ptr %16, %17
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i64, ptr %6, align 8
%21 = icmp sgt i64 %20, 0
br label %22
22: ; preds = %19, %15, %10
%23 = phi i1 [ false, %15 ], [ false, %10 ], [ %21, %19 ]
br i1 %23, label %24, label %44
24: ; preds = %22
%25 = load ptr, ptr %7, align 8
%26 = getelementptr inbounds i32, ptr %25, i32 1
store ptr %26, ptr %7, align 8
%27 = load i64, ptr %6, align 8
%28 = add nsw i64 %27, -1
store i64 %28, ptr %6, align 8
br label %29
29: ; preds = %40, %24
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %30, align 4
%32 = and i32 %31, 192
%33 = icmp ne i32 %32, 128
br i1 %33, label %38, label %34
34: ; preds = %29
%35 = load ptr, ptr %7, align 8
%36 = load ptr, ptr %5, align 8
%37 = icmp ult ptr %35, %36
br label %38
38: ; preds = %34, %29
%39 = phi i1 [ false, %29 ], [ %37, %34 ]
br i1 %39, label %40, label %43
40: ; preds = %38
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i32, ptr %41, i32 1
store ptr %42, ptr %7, align 8
br label %29, !llvm.loop !6
43: ; preds = %38
br label %10, !llvm.loop !8
44: ; preds = %22
br label %45
45: ; preds = %56, %44
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %46, align 4
%48 = and i32 %47, 192
%49 = icmp ne i32 %48, 128
br i1 %49, label %54, label %50
50: ; preds = %45
%51 = load ptr, ptr %7, align 8
%52 = load ptr, ptr %5, align 8
%53 = icmp ult ptr %51, %52
br label %54
54: ; preds = %50, %45
%55 = phi i1 [ false, %45 ], [ %53, %50 ]
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds i32, ptr %57, i32 1
store ptr %58, ptr %7, align 8
br label %45, !llvm.loop !9
59: ; preds = %54
br label %60
60: ; preds = %70, %59
%61 = load ptr, ptr %7, align 8
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds i32, ptr %62, i64 -8
%64 = icmp ult ptr %61, %63
br i1 %64, label %65, label %68
65: ; preds = %60
%66 = load i64, ptr %6, align 8
%67 = icmp sgt i64 %66, 8
br label %68
68: ; preds = %65, %60
%69 = phi i1 [ false, %60 ], [ %67, %65 ]
br i1 %69, label %70, label %81
70: ; preds = %68
%71 = load ptr, ptr %7, align 8
%72 = load i64, ptr %71, align 8
store i64 %72, ptr %8, align 8
%73 = load ptr, ptr %7, align 8
%74 = getelementptr inbounds i32, ptr %73, i64 8
store ptr %74, ptr %7, align 8
%75 = load i64, ptr %8, align 8
%76 = call i32 @utf8_count_non_start_bytes_in_word(i64 noundef %75)
%77 = sext i32 %76 to i64
%78 = sub i64 8, %77
%79 = load i64, ptr %6, align 8
%80 = sub i64 %79, %78
store i64 %80, ptr %6, align 8
br label %60, !llvm.loop !10
81: ; preds = %68
br label %82
82: ; preds = %93, %81
%83 = load ptr, ptr %7, align 8
%84 = load i32, ptr %83, align 4
%85 = and i32 %84, 192
%86 = icmp ne i32 %85, 128
br i1 %86, label %91, label %87
87: ; preds = %82
%88 = load ptr, ptr %7, align 8
%89 = load ptr, ptr %5, align 8
%90 = icmp ult ptr %88, %89
br label %91
91: ; preds = %87, %82
%92 = phi i1 [ false, %82 ], [ %90, %87 ]
br i1 %92, label %93, label %96
93: ; preds = %91
%94 = load ptr, ptr %7, align 8
%95 = getelementptr inbounds i32, ptr %94, i32 1
store ptr %95, ptr %7, align 8
br label %82, !llvm.loop !11
96: ; preds = %91
br label %97
97: ; preds = %125, %96
%98 = load ptr, ptr %7, align 8
%99 = load ptr, ptr %5, align 8
%100 = icmp ult ptr %98, %99
br i1 %100, label %101, label %104
101: ; preds = %97
%102 = load i64, ptr %6, align 8
%103 = icmp sgt i64 %102, 0
br label %104
104: ; preds = %101, %97
%105 = phi i1 [ false, %97 ], [ %103, %101 ]
br i1 %105, label %106, label %126
106: ; preds = %104
%107 = load ptr, ptr %7, align 8
%108 = getelementptr inbounds i32, ptr %107, i32 1
store ptr %108, ptr %7, align 8
%109 = load i64, ptr %6, align 8
%110 = add nsw i64 %109, -1
store i64 %110, ptr %6, align 8
br label %111
111: ; preds = %122, %106
%112 = load ptr, ptr %7, align 8
%113 = load i32, ptr %112, align 4
%114 = and i32 %113, 192
%115 = icmp ne i32 %114, 128
br i1 %115, label %120, label %116
116: ; preds = %111
%117 = load ptr, ptr %7, align 8
%118 = load ptr, ptr %5, align 8
%119 = icmp ult ptr %117, %118
br label %120
120: ; preds = %116, %111
%121 = phi i1 [ false, %111 ], [ %119, %116 ]
br i1 %121, label %122, label %125
122: ; preds = %120
%123 = load ptr, ptr %7, align 8
%124 = getelementptr inbounds i32, ptr %123, i32 1
store ptr %124, ptr %7, align 8
br label %111, !llvm.loop !12
125: ; preds = %120
br label %97, !llvm.loop !13
126: ; preds = %104
%127 = load ptr, ptr %7, align 8
%128 = load ptr, ptr %5, align 8
%129 = icmp ugt ptr %127, %128
br i1 %129, label %130, label %132
130: ; preds = %126
%131 = load ptr, ptr %5, align 8
store ptr %131, ptr %7, align 8
br label %132
132: ; preds = %130, %126
%133 = load ptr, ptr %7, align 8
%134 = load ptr, ptr %4, align 8
%135 = ptrtoint ptr %133 to i64
%136 = ptrtoint ptr %134 to i64
%137 = sub i64 %135, %136
%138 = sdiv exact i64 %137, 4
ret i64 %138
}
declare i32 @utf8_count_non_start_bytes_in_word(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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy80o7a57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utf8_find_character_byte_index(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
br label %10
10: ; preds = %43, %3
%11 = load ptr, ptr %7, align 8
%12 = ptrtoint ptr %11 to i64
%13 = and i64 %12, 7
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %10
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %5, align 8
%18 = icmp ult ptr %16, %17
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i64, ptr %6, align 8
%21 = icmp sgt i64 %20, 0
br label %22
22: ; preds = %19, %15, %10
%23 = phi i1 [ false, %15 ], [ false, %10 ], [ %21, %19 ]
br i1 %23, label %24, label %44
24: ; preds = %22
%25 = load ptr, ptr %7, align 8
%26 = getelementptr inbounds i32, ptr %25, i32 1
store ptr %26, ptr %7, align 8
%27 = load i64, ptr %6, align 8
%28 = add nsw i64 %27, -1
store i64 %28, ptr %6, align 8
br label %29
29: ; preds = %40, %24
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %30, align 4
%32 = and i32 %31, 192
%33 = icmp ne i32 %32, 128
br i1 %33, label %38, label %34
34: ; preds = %29
%35 = load ptr, ptr %7, align 8
%36 = load ptr, ptr %5, align 8
%37 = icmp ult ptr %35, %36
br label %38
38: ; preds = %34, %29
%39 = phi i1 [ false, %29 ], [ %37, %34 ]
br i1 %39, label %40, label %43
40: ; preds = %38
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i32, ptr %41, i32 1
store ptr %42, ptr %7, align 8
br label %29, !llvm.loop !6
43: ; preds = %38
br label %10, !llvm.loop !8
44: ; preds = %22
br label %45
45: ; preds = %56, %44
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %46, align 4
%48 = and i32 %47, 192
%49 = icmp ne i32 %48, 128
br i1 %49, label %54, label %50
50: ; preds = %45
%51 = load ptr, ptr %7, align 8
%52 = load ptr, ptr %5, align 8
%53 = icmp ult ptr %51, %52
br label %54
54: ; preds = %50, %45
%55 = phi i1 [ false, %45 ], [ %53, %50 ]
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds i32, ptr %57, i32 1
store ptr %58, ptr %7, align 8
br label %45, !llvm.loop !9
59: ; preds = %54
br label %60
60: ; preds = %70, %59
%61 = load ptr, ptr %7, align 8
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds i32, ptr %62, i64 -8
%64 = icmp ult ptr %61, %63
br i1 %64, label %65, label %68
65: ; preds = %60
%66 = load i64, ptr %6, align 8
%67 = icmp sgt i64 %66, 8
br label %68
68: ; preds = %65, %60
%69 = phi i1 [ false, %60 ], [ %67, %65 ]
br i1 %69, label %70, label %81
70: ; preds = %68
%71 = load ptr, ptr %7, align 8
%72 = load i64, ptr %71, align 8
store i64 %72, ptr %8, align 8
%73 = load ptr, ptr %7, align 8
%74 = getelementptr inbounds i32, ptr %73, i64 8
store ptr %74, ptr %7, align 8
%75 = load i64, ptr %8, align 8
%76 = call i32 @utf8_count_non_start_bytes_in_word(i64 noundef %75)
%77 = sext i32 %76 to i64
%78 = sub i64 8, %77
%79 = load i64, ptr %6, align 8
%80 = sub i64 %79, %78
store i64 %80, ptr %6, align 8
br label %60, !llvm.loop !10
81: ; preds = %68
br label %82
82: ; preds = %93, %81
%83 = load ptr, ptr %7, align 8
%84 = load i32, ptr %83, align 4
%85 = and i32 %84, 192
%86 = icmp ne i32 %85, 128
br i1 %86, label %91, label %87
87: ; preds = %82
%88 = load ptr, ptr %7, align 8
%89 = load ptr, ptr %5, align 8
%90 = icmp ult ptr %88, %89
br label %91
91: ; preds = %87, %82
%92 = phi i1 [ false, %82 ], [ %90, %87 ]
br i1 %92, label %93, label %96
93: ; preds = %91
%94 = load ptr, ptr %7, align 8
%95 = getelementptr inbounds i32, ptr %94, i32 1
store ptr %95, ptr %7, align 8
br label %82, !llvm.loop !11
96: ; preds = %91
br label %97
97: ; preds = %125, %96
%98 = load ptr, ptr %7, align 8
%99 = load ptr, ptr %5, align 8
%100 = icmp ult ptr %98, %99
br i1 %100, label %101, label %104
101: ; preds = %97
%102 = load i64, ptr %6, align 8
%103 = icmp sgt i64 %102, 0
br label %104
104: ; preds = %101, %97
%105 = phi i1 [ false, %97 ], [ %103, %101 ]
br i1 %105, label %106, label %126
106: ; preds = %104
%107 = load ptr, ptr %7, align 8
%108 = getelementptr inbounds i32, ptr %107, i32 1
store ptr %108, ptr %7, align 8
%109 = load i64, ptr %6, align 8
%110 = add nsw i64 %109, -1
store i64 %110, ptr %6, align 8
br label %111
111: ; preds = %122, %106
%112 = load ptr, ptr %7, align 8
%113 = load i32, ptr %112, align 4
%114 = and i32 %113, 192
%115 = icmp ne i32 %114, 128
br i1 %115, label %120, label %116
116: ; preds = %111
%117 = load ptr, ptr %7, align 8
%118 = load ptr, ptr %5, align 8
%119 = icmp ult ptr %117, %118
br label %120
120: ; preds = %116, %111
%121 = phi i1 [ false, %111 ], [ %119, %116 ]
br i1 %121, label %122, label %125
122: ; preds = %120
%123 = load ptr, ptr %7, align 8
%124 = getelementptr inbounds i32, ptr %123, i32 1
store ptr %124, ptr %7, align 8
br label %111, !llvm.loop !12
125: ; preds = %120
br label %97, !llvm.loop !13
126: ; preds = %104
%127 = load ptr, ptr %7, align 8
%128 = load ptr, ptr %5, align 8
%129 = icmp ugt ptr %127, %128
br i1 %129, label %130, label %132
130: ; preds = %126
%131 = load ptr, ptr %5, align 8
store ptr %131, ptr %7, align 8
br label %132
132: ; preds = %130, %126
%133 = load ptr, ptr %7, align 8
%134 = load ptr, ptr %4, align 8
%135 = ptrtoint ptr %133 to i64
%136 = ptrtoint ptr %134 to i64
%137 = sub i64 %135, %136
%138 = sdiv exact i64 %137, 4
ret i64 %138
}
declare i32 @utf8_count_non_start_bytes_in_word(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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpp3b0fa60.c'
source_filename = "/tmp/tmpp3b0fa60.c"
target datalayout = "e-m:e-p270: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"Input the length of a leg: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Input failure.\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"The hypotenuse of %f and %f is %f.\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
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 = icmp ne i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 @die(ptr noundef @.str.2)
br label %9
9: ; preds = %7, %0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%12 = icmp ne i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = call i32 @die(ptr noundef @.str.2)
br label %15
15: ; preds = %13, %9
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = load double, ptr %2, align 8
%19 = load double, ptr %3, align 8
%20 = call double @hypotenuse(double noundef %18, double noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %16, double noundef %17, double noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare double @hypotenuse(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp3b0fa60.c"
target datalayout = "e-m:e-p270: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"Input the length of a leg: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Input failure.\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"The hypotenuse of %f and %f is %f.\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
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 = icmp ne i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 @die(ptr noundef @.str.2)
br label %9
9: ; preds = %7, %0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%12 = icmp ne i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = call i32 @die(ptr noundef @.str.2)
br label %15
15: ; preds = %13, %9
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = load double, ptr %2, align 8
%19 = load double, ptr %3, align 8
%20 = call double @hypotenuse(double noundef %18, double noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %16, double noundef %17, double noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare double @hypotenuse(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphbv5odr8.c'
source_filename = "/tmp/tmphbv5odr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kprint(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 @terminal_writestring(ptr noundef %3)
ret void
}
declare i32 @terminal_writestring(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphbv5odr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kprint(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 @terminal_writestring(ptr noundef %3)
ret void
}
declare i32 @terminal_writestring(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbd68s0u0.c'
source_filename = "/tmp/tmpbd68s0u0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UTM_To_MGRS(i64 noundef %0, double noundef %1, double noundef %2, double noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca [3 x i32], align 4
%19 = alloca double, align 8
%20 = alloca i64, align 8
store i64 %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store i64 0, ptr %20, align 8
%21 = load i64, ptr %11, align 8
%22 = sub nsw i64 5, %21
%23 = trunc i64 %22 to i32
%24 = call double @pow(double noundef 1.000000e+01, i32 noundef %23)
store double %24, ptr %19, align 8
%25 = load double, ptr %9, align 8
%26 = load double, ptr %19, align 8
%27 = fdiv double %25, %26
%28 = call double @Round_MGRS(double noundef %27)
%29 = load double, ptr %19, align 8
%30 = fmul double %28, %29
store double %30, ptr %9, align 8
%31 = load double, ptr %10, align 8
%32 = load double, ptr %19, align 8
%33 = fdiv double %31, %32
%34 = call double @Round_MGRS(double noundef %33)
%35 = load double, ptr %19, align 8
%36 = fmul double %34, %35
store double %36, ptr %10, align 8
%37 = load i64, ptr %7, align 8
%38 = call i32 @Get_Grid_Values(i64 noundef %37, ptr noundef %16, ptr noundef %17, ptr noundef %13)
%39 = load double, ptr %8, align 8
%40 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 0
%41 = call i64 @Get_Latitude_Letter(double noundef %39, ptr noundef %40)
store i64 %41, ptr %20, align 8
%42 = load i64, ptr %20, align 8
%43 = icmp ne i64 %42, 0
br i1 %43, label %132, label %44
44: ; preds = %6
%45 = load double, ptr %10, align 8
store double %45, ptr %15, align 8
%46 = load double, ptr %15, align 8
%47 = fcmp oeq double %46, 1.000000e+07
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = load double, ptr %15, align 8
%50 = fsub double %49, 1.000000e+00
store double %50, ptr %15, align 8
br label %51
51: ; preds = %48, %44
br label %52
52: ; preds = %55, %51
%53 = load double, ptr %15, align 8
%54 = fcmp oge double %53, 2.000000e+06
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load double, ptr %15, align 8
%57 = fsub double %56, 2.000000e+06
store double %57, ptr %15, align 8
br label %52, !llvm.loop !6
58: ; preds = %52
%59 = load double, ptr %15, align 8
%60 = load double, ptr %13, align 8
%61 = fsub double %59, %60
store double %61, ptr %15, align 8
%62 = load double, ptr %15, align 8
%63 = fcmp olt double %62, 0.000000e+00
br i1 %63, label %64, label %67
64: ; preds = %58
%65 = load double, ptr %15, align 8
%66 = fadd double %65, 2.000000e+06
store double %66, ptr %15, align 8
br label %67
67: ; preds = %64, %58
%68 = load double, ptr %15, align 8
%69 = fdiv double %68, 1.000000e+05
%70 = fptosi double %69 to i64
%71 = trunc i64 %70 to i32
%72 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
store i32 %71, ptr %72, align 4
%73 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%74 = load i32, ptr %73, align 4
%75 = icmp sgt i32 %74, 7
br i1 %75, label %76, label %81
76: ; preds = %67
%77 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%78 = load i32, ptr %77, align 4
%79 = add nsw i32 %78, 1
%80 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
store i32 %79, ptr %80, align 4
br label %81
81: ; preds = %76, %67
%82 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%83 = load i32, ptr %82, align 4
%84 = icmp sgt i32 %83, 13
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%87 = load i32, ptr %86, align 4
%88 = add nsw i32 %87, 1
%89 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
store i32 %88, ptr %89, align 4
br label %90
90: ; preds = %85, %81
%91 = load double, ptr %9, align 8
store double %91, ptr %14, align 8
%92 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 0
%93 = load i32, ptr %92, align 4
%94 = icmp eq i32 %93, 21
br i1 %94, label %95, label %104
95: ; preds = %90
%96 = load i64, ptr %7, align 8
%97 = icmp eq i64 %96, 31
br i1 %97, label %98, label %104
98: ; preds = %95
%99 = load double, ptr %14, align 8
%100 = fcmp oeq double %99, 5.000000e+05
br i1 %100, label %101, label %104
101: ; preds = %98
%102 = load double, ptr %14, align 8
%103 = fsub double %102, 1.000000e+00
store double %103, ptr %14, align 8
br label %104
104: ; preds = %101, %98, %95, %90
%105 = load i64, ptr %16, align 8
%106 = load double, ptr %14, align 8
%107 = fdiv double %106, 1.000000e+05
%108 = fptosi double %107 to i64
%109 = sub nsw i64 %108, 1
%110 = add nsw i64 %105, %109
%111 = trunc i64 %110 to i32
%112 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
store i32 %111, ptr %112, align 4
%113 = load i64, ptr %16, align 8
%114 = icmp eq i64 %113, 9
br i1 %114, label %115, label %124
115: ; preds = %104
%116 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
%117 = load i32, ptr %116, align 4
%118 = icmp sgt i32 %117, 13
br i1 %118, label %119, label %124
119: ; preds = %115
%120 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
%121 = load i32, ptr %120, align 4
%122 = add nsw i32 %121, 1
%123 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
store i32 %122, ptr %123, align 4
br label %124
124: ; preds = %119, %115, %104
%125 = load ptr, ptr %12, align 8
%126 = load i64, ptr %7, align 8
%127 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 0
%128 = load double, ptr %9, align 8
%129 = load double, ptr %10, align 8
%130 = load i64, ptr %11, align 8
%131 = call i32 @Make_MGRS_String(ptr noundef %125, i64 noundef %126, ptr noundef %127, double noundef %128, double noundef %129, i64 noundef %130)
br label %132
132: ; preds = %124, %6
%133 = load i64, ptr %20, align 8
ret i64 %133
}
declare double @pow(double noundef, i32 noundef) #1
declare double @Round_MGRS(double noundef) #1
declare i32 @Get_Grid_Values(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @Get_Latitude_Letter(double noundef, ptr noundef) #1
declare i32 @Make_MGRS_String(ptr noundef, i64 noundef, ptr noundef, double noundef, double 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/tmpbd68s0u0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UTM_To_MGRS(i64 noundef %0, double noundef %1, double noundef %2, double noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca [3 x i32], align 4
%19 = alloca double, align 8
%20 = alloca i64, align 8
store i64 %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store i64 0, ptr %20, align 8
%21 = load i64, ptr %11, align 8
%22 = sub nsw i64 5, %21
%23 = trunc i64 %22 to i32
%24 = call double @pow(double noundef 1.000000e+01, i32 noundef %23)
store double %24, ptr %19, align 8
%25 = load double, ptr %9, align 8
%26 = load double, ptr %19, align 8
%27 = fdiv double %25, %26
%28 = call double @Round_MGRS(double noundef %27)
%29 = load double, ptr %19, align 8
%30 = fmul double %28, %29
store double %30, ptr %9, align 8
%31 = load double, ptr %10, align 8
%32 = load double, ptr %19, align 8
%33 = fdiv double %31, %32
%34 = call double @Round_MGRS(double noundef %33)
%35 = load double, ptr %19, align 8
%36 = fmul double %34, %35
store double %36, ptr %10, align 8
%37 = load i64, ptr %7, align 8
%38 = call i32 @Get_Grid_Values(i64 noundef %37, ptr noundef %16, ptr noundef %17, ptr noundef %13)
%39 = load double, ptr %8, align 8
%40 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 0
%41 = call i64 @Get_Latitude_Letter(double noundef %39, ptr noundef %40)
store i64 %41, ptr %20, align 8
%42 = load i64, ptr %20, align 8
%43 = icmp ne i64 %42, 0
br i1 %43, label %133, label %44
44: ; preds = %6
%45 = load double, ptr %10, align 8
store double %45, ptr %15, align 8
%46 = load double, ptr %15, align 8
%47 = fcmp oeq double %46, 1.000000e+07
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = load double, ptr %15, align 8
%50 = fsub double %49, 1.000000e+00
store double %50, ptr %15, align 8
br label %51
51: ; preds = %48, %44
%52 = load double, ptr %15, align 8
%53 = fcmp oge double %52, 2.000000e+06
br i1 %53, label %.lr.ph, label %59
.lr.ph: ; preds = %51
br label %54
54: ; preds = %.lr.ph, %54
%55 = load double, ptr %15, align 8
%56 = fsub double %55, 2.000000e+06
store double %56, ptr %15, align 8
%57 = load double, ptr %15, align 8
%58 = fcmp oge double %57, 2.000000e+06
br i1 %58, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %59
59: ; preds = %._crit_edge, %51
%60 = load double, ptr %15, align 8
%61 = load double, ptr %13, align 8
%62 = fsub double %60, %61
store double %62, ptr %15, align 8
%63 = load double, ptr %15, align 8
%64 = fcmp olt double %63, 0.000000e+00
br i1 %64, label %65, label %68
65: ; preds = %59
%66 = load double, ptr %15, align 8
%67 = fadd double %66, 2.000000e+06
store double %67, ptr %15, align 8
br label %68
68: ; preds = %65, %59
%69 = load double, ptr %15, align 8
%70 = fdiv double %69, 1.000000e+05
%71 = fptosi double %70 to i64
%72 = trunc i64 %71 to i32
%73 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
store i32 %72, ptr %73, align 4
%74 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%75 = load i32, ptr %74, align 4
%76 = icmp sgt i32 %75, 7
br i1 %76, label %77, label %82
77: ; preds = %68
%78 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%79 = load i32, ptr %78, align 4
%80 = add nsw i32 %79, 1
%81 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
store i32 %80, ptr %81, align 4
br label %82
82: ; preds = %77, %68
%83 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%84 = load i32, ptr %83, align 4
%85 = icmp sgt i32 %84, 13
br i1 %85, label %86, label %91
86: ; preds = %82
%87 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
%88 = load i32, ptr %87, align 4
%89 = add nsw i32 %88, 1
%90 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 2
store i32 %89, ptr %90, align 4
br label %91
91: ; preds = %86, %82
%92 = load double, ptr %9, align 8
store double %92, ptr %14, align 8
%93 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 0
%94 = load i32, ptr %93, align 4
%95 = icmp eq i32 %94, 21
br i1 %95, label %96, label %105
96: ; preds = %91
%97 = load i64, ptr %7, align 8
%98 = icmp eq i64 %97, 31
br i1 %98, label %99, label %105
99: ; preds = %96
%100 = load double, ptr %14, align 8
%101 = fcmp oeq double %100, 5.000000e+05
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load double, ptr %14, align 8
%104 = fsub double %103, 1.000000e+00
store double %104, ptr %14, align 8
br label %105
105: ; preds = %102, %99, %96, %91
%106 = load i64, ptr %16, align 8
%107 = load double, ptr %14, align 8
%108 = fdiv double %107, 1.000000e+05
%109 = fptosi double %108 to i64
%110 = sub nsw i64 %109, 1
%111 = add nsw i64 %106, %110
%112 = trunc i64 %111 to i32
%113 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
store i32 %112, ptr %113, align 4
%114 = load i64, ptr %16, align 8
%115 = icmp eq i64 %114, 9
br i1 %115, label %116, label %125
116: ; preds = %105
%117 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
%118 = load i32, ptr %117, align 4
%119 = icmp sgt i32 %118, 13
br i1 %119, label %120, label %125
120: ; preds = %116
%121 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
%122 = load i32, ptr %121, align 4
%123 = add nsw i32 %122, 1
%124 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 1
store i32 %123, ptr %124, align 4
br label %125
125: ; preds = %120, %116, %105
%126 = load ptr, ptr %12, align 8
%127 = load i64, ptr %7, align 8
%128 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 0
%129 = load double, ptr %9, align 8
%130 = load double, ptr %10, align 8
%131 = load i64, ptr %11, align 8
%132 = call i32 @Make_MGRS_String(ptr noundef %126, i64 noundef %127, ptr noundef %128, double noundef %129, double noundef %130, i64 noundef %131)
br label %133
133: ; preds = %125, %6
%134 = load i64, ptr %20, align 8
ret i64 %134
}
declare double @pow(double noundef, i32 noundef) #1
declare double @Round_MGRS(double noundef) #1
declare i32 @Get_Grid_Values(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @Get_Latitude_Letter(double noundef, ptr noundef) #1
declare i32 @Make_MGRS_String(ptr noundef, i64 noundef, ptr noundef, double noundef, double 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/tmp7_zrp501.c'
source_filename = "/tmp/tmp7_zrp501.c"
target datalayout = "e-m:e-p270: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"---------echo_test---------\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"input an int and a char:\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"echo_int: \00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c" echo_char: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @echo_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%5 = load i32, ptr %1, align 4
%6 = load i8, ptr %2, align 1
%7 = call i32 @scanf(i32 noundef %5, i8 noundef signext %6)
%8 = load i32, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8)
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7_zrp501.c"
target datalayout = "e-m:e-p270: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"---------echo_test---------\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"input an int and a char:\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"echo_int: \00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c" echo_char: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @echo_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%5 = load i32, ptr %1, align 4
%6 = load i8, ptr %2, align 1
%7 = call i32 @scanf(i32 noundef %5, i8 noundef signext %6)
%8 = load i32, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8)
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnawsjusq.c'
source_filename = "/tmp/tmpnawsjusq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
ret i32 0
}
declare i32 @assert(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/tmpnawsjusq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
ret i32 0
}
declare i32 @assert(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/tmpqmb65pcg.c'
source_filename = "/tmp/tmpqmb65pcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@genunf.genunf = internal global double 0.000000e+00, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"LOW > HIGH in GENUNF: LOW %16.6E HIGH: %16.6E\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Abort\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @genunf(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = fcmp ogt double %5, %6
br i1 %7, label %9, label %8
8: ; preds = %2
br label %17
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load double, ptr %3, align 8
%12 = load double, ptr %4, align 8
%13 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, double noundef %11, double noundef %12)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %14)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %8
%18 = load double, ptr %3, align 8
%19 = load double, ptr %4, align 8
%20 = load double, ptr %3, align 8
%21 = fsub double %19, %20
%22 = call double (...) @ranf()
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double %18)
store double %23, ptr @genunf.genunf, align 8
%24 = load double, ptr @genunf.genunf, align 8
ret double %24
}
declare i32 @fprintf(i32 noundef, ptr noundef, double noundef, double noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @ranf(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqmb65pcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@genunf.genunf = internal global double 0.000000e+00, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"LOW > HIGH in GENUNF: LOW %16.6E HIGH: %16.6E\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Abort\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @genunf(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = fcmp ogt double %5, %6
br i1 %7, label %9, label %8
8: ; preds = %2
br label %17
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load double, ptr %3, align 8
%12 = load double, ptr %4, align 8
%13 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, double noundef %11, double noundef %12)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %14)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %8
%18 = load double, ptr %3, align 8
%19 = load double, ptr %4, align 8
%20 = load double, ptr %3, align 8
%21 = fsub double %19, %20
%22 = call double (...) @ranf()
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double %18)
store double %23, ptr @genunf.genunf, align 8
%24 = load double, ptr @genunf.genunf, align 8
ret double %24
}
declare i32 @fprintf(i32 noundef, ptr noundef, double noundef, double noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @ranf(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg260_gtb.c'
source_filename = "/tmp/tmpg260_gtb.c"
target datalayout = "e-m:e-p270: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/tmpg260_gtb.c"
target datalayout = "e-m:e-p270: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/tmppeyxkwsc.c'
source_filename = "/tmp/tmppeyxkwsc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ds_geti(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call ptr @ds_hashmap_get_int(ptr noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @ds_hashmap_get_int(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/tmppeyxkwsc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ds_geti(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call ptr @ds_hashmap_get_int(ptr noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @ds_hashmap_get_int(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/tmp7hf3elm3.c'
source_filename = "/tmp/tmp7hf3elm3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 100000, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @delay_until(i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %0, %54
store i32 1207959553, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %18, i32 30) #2, !srcloc !6
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = call i32 (...) @get_time_low()
%23 = or i32 -2147483648, %22
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %24, i32 30) #2, !srcloc !7
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %9, align 4
store i32 0, ptr %4, align 4
br label %28
28: ; preds = %33, %17
%29 = load i32, ptr %4, align 4
%30 = icmp ult i32 %29, 48
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = call i32 (...) @taskB_main()
br label %33
33: ; preds = %31
%34 = load i32, ptr %4, align 4
%35 = add i32 %34, 1
store i32 %35, ptr %4, align 4
br label %28, !llvm.loop !8
36: ; preds = %28
store i32 1207959563, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %37, i32 30) #2, !srcloc !10
store i32 %38, ptr %10, align 4
%39 = load i32, ptr %10, align 4
store i32 %39, ptr %11, align 4
%40 = load i32, ptr %11, align 4
%41 = call i32 (...) @get_time_low()
%42 = or i32 -2147483648, %41
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %43, i32 30) #2, !srcloc !11
store i32 %44, ptr %12, align 4
%45 = load i32, ptr %12, align 4
store i32 %45, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %3, align 4
%48 = add i32 %47, 6000000
store i32 %48, ptr %3, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp ult i32 %49, 6000000
br i1 %50, label %51, label %54
51: ; preds = %36
%52 = load i32, ptr %2, align 4
%53 = add i32 %52, 1
store i32 %53, ptr %2, align 4
br label %54
54: ; preds = %51, %36
%55 = load i32, ptr %2, align 4
%56 = load i32, ptr %3, align 4
%57 = call i32 @delay_until(i32 noundef %55, i32 noundef %56)
br label %17
}
declare i32 @delay_until(i32 noundef, i32 noundef) #1
declare i32 @get_time_low(...) #1
declare i32 @taskB_main(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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"}
!6 = !{i64 794}
!7 = !{i64 974}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{i64 1224}
!11 = !{i64 1404}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7hf3elm3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 100000, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @delay_until(i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %55, %0
store i32 1207959553, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %18, i32 30) #2, !srcloc !6
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = call i32 (...) @get_time_low()
%23 = or i32 -2147483648, %22
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %24, i32 30) #2, !srcloc !7
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %9, align 4
store i32 0, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp ult i32 %28, 48
br i1 %29, label %.lr.ph, label %37
.lr.ph: ; preds = %17
br label %30
30: ; preds = %.lr.ph, %32
%31 = call i32 (...) @taskB_main()
br label %32
32: ; preds = %30
%33 = load i32, ptr %4, align 4
%34 = add i32 %33, 1
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp ult i32 %35, 48
br i1 %36, label %30, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %17
store i32 1207959563, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %38, i32 30) #2, !srcloc !10
store i32 %39, ptr %10, align 4
%40 = load i32, ptr %10, align 4
store i32 %40, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = call i32 (...) @get_time_low()
%43 = or i32 -2147483648, %42
store i32 %43, ptr %5, align 4
%44 = load i32, ptr %5, align 4
%45 = call i32 asm sideeffect "mtpcr $0, $1, cr$2", "=r,r,i,~{dirflag},~{fpsr},~{flags}"(i32 %44, i32 30) #2, !srcloc !11
store i32 %45, ptr %12, align 4
%46 = load i32, ptr %12, align 4
store i32 %46, ptr %13, align 4
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %3, align 4
%49 = add i32 %48, 6000000
store i32 %49, ptr %3, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp ult i32 %50, 6000000
br i1 %51, label %52, label %55
52: ; preds = %37
%53 = load i32, ptr %2, align 4
%54 = add i32 %53, 1
store i32 %54, ptr %2, align 4
br label %55
55: ; preds = %52, %37
%56 = load i32, ptr %2, align 4
%57 = load i32, ptr %3, align 4
%58 = call i32 @delay_until(i32 noundef %56, i32 noundef %57)
br label %17
}
declare i32 @delay_until(i32 noundef, i32 noundef) #1
declare i32 @get_time_low(...) #1
declare i32 @taskB_main(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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"}
!6 = !{i64 794}
!7 = !{i64 974}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{i64 1224}
!11 = !{i64 1404}
|
; ModuleID = '/tmp/tmp524x8371.c'
source_filename = "/tmp/tmp524x8371.c"
target datalayout = "e-m:e-p270: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.sched_param = type { i32 }
@sched_setscheduler.def = internal constant %struct.sched_param zeroinitializer, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sched_setscheduler(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @syscall(i32 noundef 156, i32 noundef %7, i32 noundef 0, ptr noundef @sched_setscheduler.def)
ret i32 %8
}
declare i32 @syscall(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp524x8371.c"
target datalayout = "e-m:e-p270: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.sched_param = type { i32 }
@sched_setscheduler.def = internal constant %struct.sched_param zeroinitializer, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sched_setscheduler(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @syscall(i32 noundef 156, i32 noundef %7, i32 noundef 0, ptr noundef @sched_setscheduler.def)
ret i32 %8
}
declare i32 @syscall(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg53urbnm.c'
source_filename = "/tmp/tmpg53urbnm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"+\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\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
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %89, %0
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %90
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %8
br label %90
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %52
16: ; preds = %12
store i32 1, ptr %3, align 4
br label %17
17: ; preds = %47, %16
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %50
21: ; preds = %17
store i32 1, ptr %4, align 4
br label %22
22: ; preds = %30, %21
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = sub nsw i32 %24, %25
%27 = icmp sle i32 %23, %26
br i1 %27, label %28, label %33
28: ; preds = %22
%29 = call i32 @putchar(i8 noundef signext 32)
br label %30
30: ; preds = %28
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %22, !llvm.loop !6
33: ; preds = %22
store i32 1, ptr %4, align 4
br label %34
34: ; preds = %42, %33
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %3, align 4
%37 = mul nsw i32 2, %36
%38 = sub nsw i32 %37, 1
%39 = icmp sle i32 %35, %38
br i1 %39, label %40, label %45
40: ; preds = %34
%41 = call i32 @printf(ptr noundef @.str.1)
br label %42
42: ; preds = %40
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
br label %34, !llvm.loop !8
45: ; preds = %34
%46 = call i32 @printf(ptr noundef @.str.2)
br label %47
47: ; preds = %45
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %3, align 4
br label %17, !llvm.loop !9
50: ; preds = %17
%51 = call i32 @printf(ptr noundef @.str.2)
br label %88
52: ; preds = %12
%53 = load i32, ptr %2, align 4
store i32 %53, ptr %3, align 4
br label %54
54: ; preds = %83, %52
%55 = load i32, ptr %3, align 4
%56 = icmp sgt i32 %55, 0
br i1 %56, label %57, label %86
57: ; preds = %54
store i32 1, ptr %4, align 4
br label %58
58: ; preds = %66, %57
%59 = load i32, ptr %4, align 4
%60 = load i32, ptr %2, align 4
%61 = load i32, ptr %3, align 4
%62 = sub nsw i32 %60, %61
%63 = icmp sle i32 %59, %62
br i1 %63, label %64, label %69
64: ; preds = %58
%65 = call i32 @putchar(i8 noundef signext 32)
br label %66
66: ; preds = %64
%67 = load i32, ptr %4, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %4, align 4
br label %58, !llvm.loop !10
69: ; preds = %58
store i32 1, ptr %4, align 4
br label %70
70: ; preds = %78, %69
%71 = load i32, ptr %4, align 4
%72 = load i32, ptr %3, align 4
%73 = mul nsw i32 2, %72
%74 = sub nsw i32 %73, 1
%75 = icmp sle i32 %71, %74
br i1 %75, label %76, label %81
76: ; preds = %70
%77 = call i32 @printf(ptr noundef @.str.1)
br label %78
78: ; preds = %76
%79 = load i32, ptr %4, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %4, align 4
br label %70, !llvm.loop !11
81: ; preds = %70
%82 = call i32 @printf(ptr noundef @.str.2)
br label %83
83: ; preds = %81
%84 = load i32, ptr %3, align 4
%85 = add nsw i32 %84, -1
store i32 %85, ptr %3, align 4
br label %54, !llvm.loop !12
86: ; preds = %54
%87 = call i32 @printf(ptr noundef @.str.2)
br label %88
88: ; preds = %86, %50
br label %89
89: ; preds = %88
br label %5, !llvm.loop !13
90: ; preds = %11, %5
%91 = load i32, ptr %1, align 4
ret i32 %91
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg53urbnm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"+\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\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
store i32 0, ptr %1, align 4
%5 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%6 = icmp ne i64 %5, 0
br i1 %6, label %.lr.ph17, label %.loopexit
.lr.ph17: ; preds = %0
br label %7
7: ; preds = %.lr.ph17, %107
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %7
br label %110
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 2
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %61
15: ; preds = %11
store i32 1, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %.lr.ph14, label %59
.lr.ph14: ; preds = %15
br label %19
19: ; preds = %.lr.ph14, %53
store i32 1, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = sub nsw i32 %21, %22
%24 = icmp sle i32 %20, %23
br i1 %24, label %.lr.ph8, label %35
.lr.ph8: ; preds = %19
br label %25
25: ; preds = %.lr.ph8, %27
%26 = call i32 @putchar(i8 noundef signext 32)
br label %27
27: ; preds = %25
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %3, align 4
%33 = sub nsw i32 %31, %32
%34 = icmp sle i32 %30, %33
br i1 %34, label %25, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %27
br label %35
35: ; preds = %._crit_edge9, %19
store i32 1, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %3, align 4
%38 = mul nsw i32 2, %37
%39 = sub nsw i32 %38, 1
%40 = icmp sle i32 %36, %39
br i1 %40, label %.lr.ph11, label %51
.lr.ph11: ; preds = %35
br label %41
41: ; preds = %.lr.ph11, %43
%42 = call i32 @printf(ptr noundef @.str.1)
br label %43
43: ; preds = %41
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %3, align 4
%48 = mul nsw i32 2, %47
%49 = sub nsw i32 %48, 1
%50 = icmp sle i32 %46, %49
br i1 %50, label %41, label %._crit_edge12, !llvm.loop !8
._crit_edge12: ; preds = %43
br label %51
51: ; preds = %._crit_edge12, %35
%52 = call i32 @printf(ptr noundef @.str.2)
br label %53
53: ; preds = %51
%54 = load i32, ptr %3, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %3, align 4
%56 = load i32, ptr %3, align 4
%57 = load i32, ptr %2, align 4
%58 = icmp sle i32 %56, %57
br i1 %58, label %19, label %._crit_edge15, !llvm.loop !9
._crit_edge15: ; preds = %53
br label %59
59: ; preds = %._crit_edge15, %15
%60 = call i32 @printf(ptr noundef @.str.2)
br label %106
61: ; preds = %11
%62 = load i32, ptr %2, align 4
store i32 %62, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp sgt i32 %63, 0
br i1 %64, label %.lr.ph5, label %104
.lr.ph5: ; preds = %61
br label %65
65: ; preds = %.lr.ph5, %99
store i32 1, ptr %4, align 4
%66 = load i32, ptr %4, align 4
%67 = load i32, ptr %2, align 4
%68 = load i32, ptr %3, align 4
%69 = sub nsw i32 %67, %68
%70 = icmp sle i32 %66, %69
br i1 %70, label %.lr.ph, label %81
.lr.ph: ; preds = %65
br label %71
71: ; preds = %.lr.ph, %73
%72 = call i32 @putchar(i8 noundef signext 32)
br label %73
73: ; preds = %71
%74 = load i32, ptr %4, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %4, align 4
%76 = load i32, ptr %4, align 4
%77 = load i32, ptr %2, align 4
%78 = load i32, ptr %3, align 4
%79 = sub nsw i32 %77, %78
%80 = icmp sle i32 %76, %79
br i1 %80, label %71, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %73
br label %81
81: ; preds = %._crit_edge, %65
store i32 1, ptr %4, align 4
%82 = load i32, ptr %4, align 4
%83 = load i32, ptr %3, align 4
%84 = mul nsw i32 2, %83
%85 = sub nsw i32 %84, 1
%86 = icmp sle i32 %82, %85
br i1 %86, label %.lr.ph2, label %97
.lr.ph2: ; preds = %81
br label %87
87: ; preds = %.lr.ph2, %89
%88 = call i32 @printf(ptr noundef @.str.1)
br label %89
89: ; preds = %87
%90 = load i32, ptr %4, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %4, align 4
%92 = load i32, ptr %4, align 4
%93 = load i32, ptr %3, align 4
%94 = mul nsw i32 2, %93
%95 = sub nsw i32 %94, 1
%96 = icmp sle i32 %92, %95
br i1 %96, label %87, label %._crit_edge3, !llvm.loop !11
._crit_edge3: ; preds = %89
br label %97
97: ; preds = %._crit_edge3, %81
%98 = call i32 @printf(ptr noundef @.str.2)
br label %99
99: ; preds = %97
%100 = load i32, ptr %3, align 4
%101 = add nsw i32 %100, -1
store i32 %101, ptr %3, align 4
%102 = load i32, ptr %3, align 4
%103 = icmp sgt i32 %102, 0
br i1 %103, label %65, label %._crit_edge6, !llvm.loop !12
._crit_edge6: ; preds = %99
br label %104
104: ; preds = %._crit_edge6, %61
%105 = call i32 @printf(ptr noundef @.str.2)
br label %106
106: ; preds = %104, %59
br label %107
107: ; preds = %106
%108 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%109 = icmp ne i64 %108, 0
br i1 %109, label %7, label %..loopexit_crit_edge, !llvm.loop !13
..loopexit_crit_edge: ; preds = %107
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %110
110: ; preds = %.loopexit, %10
%111 = load i32, ptr %1, align 4
ret i32 %111
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpkf7txsa3.c'
source_filename = "/tmp/tmpkf7txsa3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
br label %15
15: ; preds = %11, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkf7txsa3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
br label %15
15: ; preds = %11, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2okq_9of.c'
source_filename = "/tmp/tmp2okq_9of.c"
target datalayout = "e-m:e-p270: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.demo.input = private unnamed_addr constant [1024 x i8] c"this is a test message\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [23 x i8] c"ENCRYPTION RESULT:\09%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"DECRYPTION RESULT:\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @demo() #0 {
%1 = alloca [1024 x i8], align 16
%2 = alloca [1024 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.demo.input, i64 1024, i1 false)
%3 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%4 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @encrypt(ptr noundef %3, ptr noundef %4)
%6 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%10 = call i32 @decrypt(ptr noundef %8, ptr noundef %9)
%11 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str.1, ptr noundef %11)
ret i32 1
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @encrypt(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @decrypt(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/tmp2okq_9of.c"
target datalayout = "e-m:e-p270: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.demo.input = private unnamed_addr constant [1024 x i8] c"this is a test message\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [23 x i8] c"ENCRYPTION RESULT:\09%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"DECRYPTION RESULT:\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @demo() #0 {
%1 = alloca [1024 x i8], align 16
%2 = alloca [1024 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.demo.input, i64 1024, i1 false)
%3 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%4 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @encrypt(ptr noundef %3, ptr noundef %4)
%6 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%10 = call i32 @decrypt(ptr noundef %8, ptr noundef %9)
%11 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str.1, ptr noundef %11)
ret i32 1
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @encrypt(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @decrypt(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/tmpz750k3ex.c'
source_filename = "/tmp/tmpz750k3ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"TRUE\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"FALSE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @a_not(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i64 @strcmp(ptr noundef %6, ptr noundef @.str)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call ptr @my_strdup(ptr noundef @.str.1)
store ptr %10, ptr %3, align 8
br label %13
11: ; preds = %2
%12 = call ptr @my_strdup(ptr noundef @.str)
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %11, %9
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @my_strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz750k3ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"TRUE\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"FALSE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @a_not(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i64 @strcmp(ptr noundef %6, ptr noundef @.str)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call ptr @my_strdup(ptr noundef @.str.1)
store ptr %10, ptr %3, align 8
br label %13
11: ; preds = %2
%12 = call ptr @my_strdup(ptr noundef @.str)
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %11, %9
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @my_strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbq8k7ouy.c'
source_filename = "/tmp/tmpbq8k7ouy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @redo_munmap(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @_IO(i8 noundef zeroext 117, i32 noundef 27)
%6 = call i64 @ioctl(i32 noundef %4, i32 noundef %5)
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
ret i64 %7
}
declare i64 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef zeroext, 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/tmpbq8k7ouy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @redo_munmap(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @_IO(i8 noundef zeroext 117, i32 noundef 27)
%6 = call i64 @ioctl(i32 noundef %4, i32 noundef %5)
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
ret i64 %7
}
declare i64 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef zeroext, 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/tmpqlu2clj8.c'
source_filename = "/tmp/tmpqlu2clj8.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"Usage: tag files\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"Bad tag, must contain at least one and at most 4 characters.\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Failed to open %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"%s contains table %s\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 [4 x i8], align 1
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp sle i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %153
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = icmp sgt i32 %20, 4
br i1 %21, label %30, label %22
22: ; preds = %16
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 0
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %22, %16
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %153
33: ; preds = %22
%34 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%35 = call i32 @memset(ptr noundef %34, i8 noundef signext 32, i32 noundef 4)
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 1
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 0
%40 = load i8, ptr %39, align 1
%41 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
store i8 %40, ptr %41, align 1
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds ptr, ptr %42, i64 1
%44 = load ptr, ptr %43, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 1
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %86
49: ; preds = %33
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 1
%52 = load ptr, ptr %51, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 1
%54 = load i8, ptr %53, align 1
%55 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
store i8 %54, ptr %55, align 1
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 2
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %85
63: ; preds = %49
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds ptr, ptr %64, i64 1
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 2
%68 = load i8, ptr %67, align 1
%69 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
store i8 %68, ptr %69, align 1
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 1
%72 = load ptr, ptr %71, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 3
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %84
77: ; preds = %63
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 3
%82 = load i8, ptr %81, align 1
%83 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
store i8 %82, ptr %83, align 1
br label %84
84: ; preds = %77, %63
br label %85
85: ; preds = %84, %49
br label %86
86: ; preds = %85, %33
%87 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = shl i32 %89, 24
%91 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = shl i32 %93, 16
%95 = or i32 %90, %94
%96 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = shl i32 %98, 8
%100 = or i32 %95, %99
%101 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = or i32 %100, %103
store i32 %104, ptr %6, align 4
store i32 0, ptr %8, align 4
store i32 2, ptr %7, align 4
br label %105
105: ; preds = %145, %86
%106 = load i32, ptr %7, align 4
%107 = load i32, ptr %4, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %148
109: ; preds = %105
%110 = load ptr, ptr %5, align 8
%111 = load i32, ptr %7, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds ptr, ptr %110, i64 %112
%114 = load ptr, ptr %113, align 8
%115 = call ptr @fopen(ptr noundef %114, ptr noundef @.str.2)
store ptr %115, ptr %10, align 8
%116 = load ptr, ptr %10, align 8
%117 = icmp eq ptr %116, null
br i1 %117, label %118, label %126
118: ; preds = %109
%119 = load i32, ptr @stderr, align 4
%120 = load ptr, ptr %5, align 8
%121 = load i32, ptr %7, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds ptr, ptr %120, i64 %122
%124 = load ptr, ptr %123, align 8
%125 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %119, ptr noundef @.str.3, ptr noundef %124)
br label %144
126: ; preds = %109
%127 = load ptr, ptr %10, align 8
%128 = load i32, ptr %6, align 4
%129 = call i64 @readttfheader(ptr noundef %127, i32 noundef %128)
%130 = icmp ne i64 %129, 0
br i1 %130, label %131, label %141
131: ; preds = %126
%132 = load ptr, ptr %5, align 8
%133 = load i32, ptr %7, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds ptr, ptr %132, i64 %134
%136 = load ptr, ptr %135, align 8
%137 = load ptr, ptr %5, align 8
%138 = getelementptr inbounds ptr, ptr %137, i64 1
%139 = load ptr, ptr %138, align 8
%140 = call i32 @printf(ptr noundef @.str.4, ptr noundef %136, ptr noundef %139)
store i32 1, ptr %8, align 4
br label %141
141: ; preds = %131, %126
%142 = load ptr, ptr %10, align 8
%143 = call i32 @fclose(ptr noundef %142)
br label %144
144: ; preds = %141, %118
br label %145
145: ; preds = %144
%146 = load i32, ptr %7, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %7, align 4
br label %105, !llvm.loop !6
148: ; preds = %105
%149 = load i32, ptr %8, align 4
%150 = icmp ne i32 %149, 0
%151 = xor i1 %150, true
%152 = zext i1 %151 to i32
store i32 %152, ptr %3, align 4
br label %153
153: ; preds = %148, %30, %13
%154 = load i32, ptr %3, align 4
ret i32 %154
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @readttfheader(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqlu2clj8.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"Usage: tag files\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"Bad tag, must contain at least one and at most 4 characters.\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Failed to open %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"%s contains table %s\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 [4 x i8], align 1
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp sle i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %155
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = icmp sgt i32 %20, 4
br i1 %21, label %30, label %22
22: ; preds = %16
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 0
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %22, %16
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %155
33: ; preds = %22
%34 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%35 = call i32 @memset(ptr noundef %34, i8 noundef signext 32, i32 noundef 4)
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 1
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 0
%40 = load i8, ptr %39, align 1
%41 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
store i8 %40, ptr %41, align 1
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds ptr, ptr %42, i64 1
%44 = load ptr, ptr %43, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 1
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %86
49: ; preds = %33
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 1
%52 = load ptr, ptr %51, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 1
%54 = load i8, ptr %53, align 1
%55 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
store i8 %54, ptr %55, align 1
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 2
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %85
63: ; preds = %49
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds ptr, ptr %64, i64 1
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 2
%68 = load i8, ptr %67, align 1
%69 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
store i8 %68, ptr %69, align 1
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 1
%72 = load ptr, ptr %71, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 3
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %84
77: ; preds = %63
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 3
%82 = load i8, ptr %81, align 1
%83 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
store i8 %82, ptr %83, align 1
br label %84
84: ; preds = %77, %63
br label %85
85: ; preds = %84, %49
br label %86
86: ; preds = %85, %33
%87 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = shl i32 %89, 24
%91 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = shl i32 %93, 16
%95 = or i32 %90, %94
%96 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = shl i32 %98, 8
%100 = or i32 %95, %99
%101 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = or i32 %100, %103
store i32 %104, ptr %6, align 4
store i32 0, ptr %8, align 4
store i32 2, ptr %7, align 4
%105 = load i32, ptr %7, align 4
%106 = load i32, ptr %4, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %.lr.ph, label %150
.lr.ph: ; preds = %86
br label %108
108: ; preds = %.lr.ph, %144
%109 = load ptr, ptr %5, align 8
%110 = load i32, ptr %7, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds ptr, ptr %109, i64 %111
%113 = load ptr, ptr %112, align 8
%114 = call ptr @fopen(ptr noundef %113, ptr noundef @.str.2)
store ptr %114, ptr %10, align 8
%115 = load ptr, ptr %10, align 8
%116 = icmp eq ptr %115, null
br i1 %116, label %117, label %125
117: ; preds = %108
%118 = load i32, ptr @stderr, align 4
%119 = load ptr, ptr %5, align 8
%120 = load i32, ptr %7, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds ptr, ptr %119, i64 %121
%123 = load ptr, ptr %122, align 8
%124 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %118, ptr noundef @.str.3, ptr noundef %123)
br label %143
125: ; preds = %108
%126 = load ptr, ptr %10, align 8
%127 = load i32, ptr %6, align 4
%128 = call i64 @readttfheader(ptr noundef %126, i32 noundef %127)
%129 = icmp ne i64 %128, 0
br i1 %129, label %130, label %140
130: ; preds = %125
%131 = load ptr, ptr %5, align 8
%132 = load i32, ptr %7, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds ptr, ptr %131, i64 %133
%135 = load ptr, ptr %134, align 8
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds ptr, ptr %136, i64 1
%138 = load ptr, ptr %137, align 8
%139 = call i32 @printf(ptr noundef @.str.4, ptr noundef %135, ptr noundef %138)
store i32 1, ptr %8, align 4
br label %140
140: ; preds = %130, %125
%141 = load ptr, ptr %10, align 8
%142 = call i32 @fclose(ptr noundef %141)
br label %143
143: ; preds = %140, %117
br label %144
144: ; preds = %143
%145 = load i32, ptr %7, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %7, align 4
%147 = load i32, ptr %7, align 4
%148 = load i32, ptr %4, align 4
%149 = icmp slt i32 %147, %148
br i1 %149, label %108, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %144
br label %150
150: ; preds = %._crit_edge, %86
%151 = load i32, ptr %8, align 4
%152 = icmp ne i32 %151, 0
%153 = xor i1 %152, true
%154 = zext i1 %153 to i32
store i32 %154, ptr %3, align 4
br label %155
155: ; preds = %150, %30, %13
%156 = load i32, ptr %3, align 4
ret i32 %156
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @readttfheader(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpssutx5gf.c'
source_filename = "/tmp/tmpssutx5gf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0xf5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0xf5() #0 {
%1 = call i64 @isxdigit(i32 noundef 245)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1230, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(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/tmpssutx5gf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0xf5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0xf5() #0 {
%1 = call i64 @isxdigit(i32 noundef 245)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1230, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(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/tmpkzlp867u.c'
source_filename = "/tmp/tmpkzlp867u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"\0A somefun2() printed this. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @somefun2() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkzlp867u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"\0A somefun2() printed this. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @somefun2() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp81wmnqm_.c'
source_filename = "/tmp/tmp81wmnqm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socket_accept(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @accept(i32 noundef %6, ptr noundef %7, ptr noundef %5)
ret i32 %8
}
declare i32 @accept(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/tmp81wmnqm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socket_accept(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @accept(i32 noundef %6, ptr noundef %7, ptr noundef %5)
ret i32 %8
}
declare i32 @accept(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/tmpxk1f7zop.c'
source_filename = "/tmp/tmpxk1f7zop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Average = %.2f\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Distributed = %.2f\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 float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca [10 x float], align 16
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %2, align 4
br label %7
7: ; preds = %21, %0
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %13)
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %16
%18 = load float, ptr %17, align 4
%19 = load float, ptr %5, align 4
%20 = fadd float %19, %18
store float %20, ptr %5, align 4
br label %21
21: ; preds = %10
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %7, !llvm.loop !6
24: ; preds = %7
%25 = load float, ptr %5, align 4
%26 = fpext float %25 to double
%27 = fdiv double %26, 1.000000e+01
%28 = fptrunc double %27 to float
store float %28, ptr %3, align 4
%29 = load float, ptr %3, align 4
%30 = call i32 @printf(ptr noundef @.str.1, float noundef %29)
store i32 0, ptr %2, align 4
br label %31
31: ; preds = %49, %24
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %32, 10
br i1 %33, label %34, label %52
34: ; preds = %31
%35 = load i32, ptr %2, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %36
%38 = load float, ptr %37, align 4
%39 = load float, ptr %3, align 4
%40 = fsub float %38, %39
%41 = load i32, ptr %2, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %42
%44 = load float, ptr %43, align 4
%45 = load float, ptr %3, align 4
%46 = fsub float %44, %45
%47 = load float, ptr %4, align 4
%48 = call float @llvm.fmuladd.f32(float %40, float %46, float %47)
store float %48, ptr %4, align 4
br label %49
49: ; preds = %34
%50 = load i32, ptr %2, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %2, align 4
br label %31, !llvm.loop !8
52: ; preds = %31
%53 = load float, ptr %4, align 4
%54 = fdiv float %53, 1.000000e+01
store float %54, ptr %4, align 4
%55 = load float, ptr %4, align 4
%56 = call i32 @printf(ptr noundef @.str.2, float noundef %55)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float 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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxk1f7zop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Average = %.2f\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Distributed = %.2f\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 float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca [10 x float], align 16
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %20
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %12)
%14 = load i32, ptr %2, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %15
%17 = load float, ptr %16, align 4
%18 = load float, ptr %5, align 4
%19 = fadd float %18, %17
store float %19, ptr %5, align 4
br label %20
20: ; preds = %9
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %23, 10
br i1 %24, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
%26 = load float, ptr %5, align 4
%27 = fpext float %26 to double
%28 = fdiv double %27, 1.000000e+01
%29 = fptrunc double %28 to float
store float %29, ptr %3, align 4
%30 = load float, ptr %3, align 4
%31 = call i32 @printf(ptr noundef @.str.1, float noundef %30)
store i32 0, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %32, 10
br i1 %33, label %.lr.ph2, label %54
.lr.ph2: ; preds = %25
br label %34
34: ; preds = %.lr.ph2, %49
%35 = load i32, ptr %2, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %36
%38 = load float, ptr %37, align 4
%39 = load float, ptr %3, align 4
%40 = fsub float %38, %39
%41 = load i32, ptr %2, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x float], ptr %6, i64 0, i64 %42
%44 = load float, ptr %43, align 4
%45 = load float, ptr %3, align 4
%46 = fsub float %44, %45
%47 = load float, ptr %4, align 4
%48 = call float @llvm.fmuladd.f32(float %40, float %46, float %47)
store float %48, ptr %4, align 4
br label %49
49: ; preds = %34
%50 = load i32, ptr %2, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %2, align 4
%52 = load i32, ptr %2, align 4
%53 = icmp slt i32 %52, 10
br i1 %53, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %54
54: ; preds = %._crit_edge3, %25
%55 = load float, ptr %4, align 4
%56 = fdiv float %55, 1.000000e+01
store float %56, ptr %4, align 4
%57 = load float, ptr %4, align 4
%58 = call i32 @printf(ptr noundef @.str.2, float noundef %57)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float 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}
|
; ModuleID = '/tmp/tmpy7q0eu85.c'
source_filename = "/tmp/tmpy7q0eu85.c"
target datalayout = "e-m:e-p270: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/tmpy7q0eu85.c"
target datalayout = "e-m:e-p270: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/tmpfhnd5wpw.c'
source_filename = "/tmp/tmpfhnd5wpw.c"
target datalayout = "e-m:e-p270: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/tmpfhnd5wpw.c"
target datalayout = "e-m:e-p270: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/tmpu2gziffi.c'
source_filename = "/tmp/tmpu2gziffi.c"
target datalayout = "e-m:e-p270: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 [48 x i8] c"Input:[%s] Time:[%ld] Base62:[%s] Base10:[%ld]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fulltest(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [16 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = call i64 (...) @getTime()
store i64 %8, ptr %7, align 8
%9 = load i32, ptr %3, align 4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %23
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @atol(ptr noundef %14)
%16 = load i64, ptr %7, align 8
%17 = add nsw i64 %15, %16
%18 = trunc i64 %17 to i32
%19 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%20 = call i32 @toBase62(i32 noundef %18, ptr noundef %19)
%21 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%22 = call i64 @fromBase62(ptr noundef %21)
store i64 %22, ptr %6, align 8
br label %28
23: ; preds = %2
%24 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%25 = call i32 @toBase62(i32 noundef 1042432728, ptr noundef %24)
%26 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%27 = call i64 @fromBase62(ptr noundef %26)
store i64 %27, ptr %6, align 8
br label %28
28: ; preds = %23, %11
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%34 = load i64, ptr %6, align 8
%35 = call i32 @printf(ptr noundef @.str, ptr noundef %31, i64 noundef %32, ptr noundef %33, i64 noundef %34)
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 i64 @getTime(...) #2
declare i32 @toBase62(i32 noundef, ptr noundef) #2
declare i64 @atol(ptr noundef) #2
declare i64 @fromBase62(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu2gziffi.c"
target datalayout = "e-m:e-p270: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 [48 x i8] c"Input:[%s] Time:[%ld] Base62:[%s] Base10:[%ld]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fulltest(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [16 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = call i64 (...) @getTime()
store i64 %8, ptr %7, align 8
%9 = load i32, ptr %3, align 4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %23
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @atol(ptr noundef %14)
%16 = load i64, ptr %7, align 8
%17 = add nsw i64 %15, %16
%18 = trunc i64 %17 to i32
%19 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%20 = call i32 @toBase62(i32 noundef %18, ptr noundef %19)
%21 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%22 = call i64 @fromBase62(ptr noundef %21)
store i64 %22, ptr %6, align 8
br label %28
23: ; preds = %2
%24 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%25 = call i32 @toBase62(i32 noundef 1042432728, ptr noundef %24)
%26 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%27 = call i64 @fromBase62(ptr noundef %26)
store i64 %27, ptr %6, align 8
br label %28
28: ; preds = %23, %11
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%34 = load i64, ptr %6, align 8
%35 = call i32 @printf(ptr noundef @.str, ptr noundef %31, i64 noundef %32, ptr noundef %33, i64 noundef %34)
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 i64 @getTime(...) #2
declare i32 @toBase62(i32 noundef, ptr noundef) #2
declare i64 @atol(ptr noundef) #2
declare i64 @fromBase62(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi4kg0ptf.c'
source_filename = "/tmp/tmpi4kg0ptf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"enter a number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"%d is a 1 digit number.\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"%d is a 2 digit number.\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"%d is a 3 digit number.\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"ending!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 9
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
br label %33
13: ; preds = %7, %0
%14 = load i32, ptr %2, align 4
%15 = icmp sge i32 %14, 10
br i1 %15, label %16, label %22
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %17, 99
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr %2, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
br label %32
22: ; preds = %16, %13
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %23, 100
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load i32, ptr %2, align 4
%27 = icmp sle i32 %26, 999
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, ptr %2, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %29)
br label %31
31: ; preds = %28, %25, %22
br label %32
32: ; preds = %31, %19
br label %33
33: ; preds = %32, %10
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
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/tmpi4kg0ptf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"enter a number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"%d is a 1 digit number.\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"%d is a 2 digit number.\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"%d is a 3 digit number.\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"ending!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 9
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
br label %33
13: ; preds = %7, %0
%14 = load i32, ptr %2, align 4
%15 = icmp sge i32 %14, 10
br i1 %15, label %16, label %22
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %17, 99
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr %2, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
br label %32
22: ; preds = %16, %13
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %23, 100
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load i32, ptr %2, align 4
%27 = icmp sle i32 %26, 999
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, ptr %2, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %29)
br label %31
31: ; preds = %28, %25, %22
br label %32
32: ; preds = %31, %19
br label %33
33: ; preds = %32, %10
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
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/tmp1aci8xcp.c'
source_filename = "/tmp/tmp1aci8xcp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgetc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fread(ptr noundef %3, i32 noundef 1, i32 noundef 1, ptr noundef %4)
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
ret i32 %7
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1aci8xcp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgetc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fread(ptr noundef %3, i32 noundef 1, i32 noundef 1, ptr noundef %4)
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
ret i32 %7
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb8dpwrre.c'
source_filename = "/tmp/tmpb8dpwrre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\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 [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%9 = load i32, ptr %6, align 4
%10 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%11 = call ptr @itoa(i32 noundef %9, ptr noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1, ptr noundef %11)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @itoa(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb8dpwrre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\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 [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%9 = load i32, ptr %6, align 4
%10 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%11 = call ptr @itoa(i32 noundef %9, ptr noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1, ptr noundef %11)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @itoa(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpybxd5er0.c'
source_filename = "/tmp/tmpybxd5er0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy_integer(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call ptr @malloc(i32 noundef 4)
store ptr %4, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
store i32 %5, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
ret ptr %7
}
declare ptr @malloc(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/tmpybxd5er0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy_integer(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call ptr @malloc(i32 noundef 4)
store ptr %4, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
store i32 %5, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
ret ptr %7
}
declare ptr @malloc(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/tmp1wze1mra.c'
source_filename = "/tmp/tmp1wze1mra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pipelineOpenFd1(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [2 x ptr], align 16
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
store ptr %10, ptr %11, align 16
%12 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
store ptr null, ptr %12, align 8
%13 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = call ptr @pipelineOpenFd(ptr noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16)
ret ptr %17
}
declare ptr @pipelineOpenFd(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1wze1mra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pipelineOpenFd1(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [2 x ptr], align 16
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
store ptr %10, ptr %11, align 16
%12 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
store ptr null, ptr %12, align 8
%13 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = call ptr @pipelineOpenFd(ptr noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16)
ret ptr %17
}
declare ptr @pipelineOpenFd(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzio333la.c'
source_filename = "/tmp/tmpzio333la.c"
target datalayout = "e-m:e-p270: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"lg\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_TemmaBOTHcorrspeed(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i64 @portWrite(ptr noundef @.str)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 -1, ptr %2, align 4
br label %16
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @portRead(ptr noundef %8, i32 noundef -1, i32 noundef 1)
%10 = load ptr, ptr %3, align 8
%11 = call ptr @strstr(ptr noundef %10, ptr noundef @.str)
%12 = load ptr, ptr %3, align 8
%13 = icmp eq ptr %11, %12
br i1 %13, label %14, label %15
14: ; preds = %7
store i32 0, ptr %2, align 4
br label %16
15: ; preds = %7
store i32 -1, ptr %2, align 4
br label %16
16: ; preds = %15, %14, %6
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare i64 @portWrite(ptr noundef) #1
declare i32 @portRead(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strstr(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/tmpzio333la.c"
target datalayout = "e-m:e-p270: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"lg\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_TemmaBOTHcorrspeed(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i64 @portWrite(ptr noundef @.str)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 -1, ptr %2, align 4
br label %16
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @portRead(ptr noundef %8, i32 noundef -1, i32 noundef 1)
%10 = load ptr, ptr %3, align 8
%11 = call ptr @strstr(ptr noundef %10, ptr noundef @.str)
%12 = load ptr, ptr %3, align 8
%13 = icmp eq ptr %11, %12
br i1 %13, label %14, label %15
14: ; preds = %7
store i32 0, ptr %2, align 4
br label %16
15: ; preds = %7
store i32 -1, ptr %2, align 4
br label %16
16: ; preds = %15, %14, %6
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare i64 @portWrite(ptr noundef) #1
declare i32 @portRead(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strstr(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/tmp7jg15gyv.c'
source_filename = "/tmp/tmp7jg15gyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memory_free(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 @memory_reset(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @memory_reset(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7jg15gyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memory_free(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 @memory_reset(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @memory_reset(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpouq759zr.c'
source_filename = "/tmp/tmpouq759zr.c"
target datalayout = "e-m:e-p270: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/tmpouq759zr.c"
target datalayout = "e-m:e-p270: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/tmpdrc6ptdp.c'
source_filename = "/tmp/tmpdrc6ptdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dd_sin_taylor(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [30 x double], align 16
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca [2 x double], align 16
%11 = alloca [2 x double], align 16
%12 = alloca [2 x double], align 16
%13 = alloca [2 x double], align 16
%14 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @dd_is_zero(ptr noundef %15)
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds double, ptr %19, i64 0
store double 0.000000e+00, ptr %20, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds double, ptr %21, i64 1
store double 0.000000e+00, ptr %22, align 8
br label %101
23: ; preds = %2
store i32 15, ptr %5, align 4
%24 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 0
store double 0x3FC5555555555555, ptr %24, align 16
%25 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 1
store double 0x3C65555555555555, ptr %25, align 8
%26 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 2
store double 0x3FA5555555555555, ptr %26, align 16
%27 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 3
store double 0x3C45555555555555, ptr %27, align 8
%28 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 4
store double 0x3F81111111111111, ptr %28, align 16
%29 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 5
store double 0x3C01111111111111, ptr %29, align 8
%30 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 6
store double 0x3F56C16C16C16C17, ptr %30, align 16
%31 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 7
store double 0xBBEF49F49F49F49F, ptr %31, align 8
%32 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 8
store double 0x3F2A01A01A01A01A, ptr %32, align 16
%33 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 9
store double 0x3B6A01A01A01A01A, ptr %33, align 8
%34 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 10
store double 0x3EFA01A01A01A01A, ptr %34, align 16
%35 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 11
store double 0x3B3A01A01A01A01A, ptr %35, align 8
%36 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 12
store double 0x3EC71DE3A556C734, ptr %36, align 16
%37 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 13
store double 0xBB6C154F8DDC6C00, ptr %37, align 8
%38 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 14
store double 0x3E927E4FB7789F5C, ptr %38, align 16
%39 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 15
store double 0x3B3CBBC05B4FA99A, ptr %39, align 8
%40 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 16
store double 0x3E5AE64567F544E4, ptr %40, align 16
%41 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 17
store double 0xBAFC062E06D1F209, ptr %41, align 8
%42 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 18
store double 0x3E21EED8EFF8D898, ptr %42, align 16
%43 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 19
store double 0xBAC2AEC959E14C06, ptr %43, align 8
%44 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 20
store double 0x3DE6124613A86D09, ptr %44, align 16
%45 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 21
store double 0x3A8F28E0CC748EBE, ptr %45, align 8
%46 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 22
store double 0x3DA93974A8C07C9D, ptr %46, align 16
%47 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 23
store double 0x3A305D6F8A2EFD1F, ptr %47, align 8
%48 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 24
store double 0x3D6AE7F3E733B81F, ptr %48, align 16
%49 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 25
store double 0x39E1D8656B0EE8CB, ptr %49, align 8
%50 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 26
store double 0x3D2AE7F3E733B81F, ptr %50, align 16
%51 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 27
store double 0x39A1D8656B0EE8CB, ptr %51, align 8
%52 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 28
store double 0x3CE952C77030AD4A, ptr %52, align 16
%53 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 29
store double 0x398AC981465DDC6C, ptr %53, align 8
store double 0x396FFFFFFFFFFFF9, ptr %8, align 8
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds double, ptr %54, i64 0
%56 = load double, ptr %55, align 8
%57 = fmul double 5.000000e-01, %56
%58 = fmul double %57, 0x396FFFFFFFFFFFF9
store double %58, ptr %9, align 8
store i32 0, ptr %14, align 4
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%61 = call i32 @dd_sqr(ptr noundef %59, ptr noundef %60)
%62 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%63 = call i32 @dd_minus(ptr noundef %62)
%64 = load ptr, ptr %3, align 8
%65 = getelementptr inbounds [2 x double], ptr %12, i64 0, i64 0
%66 = call i32 @dd_copy(ptr noundef %64, ptr noundef %65)
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 0
%69 = call i32 @dd_copy(ptr noundef %67, ptr noundef %68)
br label %70
70: ; preds = %95, %23
%71 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 0
%72 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%73 = call i32 @dd_mlt(ptr noundef %71, ptr noundef %72)
%74 = load i32, ptr %14, align 4
%75 = mul nsw i32 2, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 %76
store ptr %77, ptr %6, align 8
%78 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 0
%79 = load ptr, ptr %6, align 8
%80 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 0
%81 = call i32 @dd_mul(ptr noundef %78, ptr noundef %79, ptr noundef %80)
%82 = getelementptr inbounds [2 x double], ptr %12, i64 0, i64 0
%83 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 0
%84 = call i32 @dd_inc(ptr noundef %82, ptr noundef %83)
%85 = load i32, ptr %14, align 4
%86 = add nsw i32 %85, 2
store i32 %86, ptr %14, align 4
br label %87
87: ; preds = %70
%88 = load i32, ptr %14, align 4
%89 = icmp slt i32 %88, 15
br i1 %89, label %90, label %95
90: ; preds = %87
%91 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 0
%92 = load double, ptr %91, align 16
%93 = load double, ptr %9, align 8
%94 = fcmp ogt double %92, %93
br label %95
95: ; preds = %90, %87
%96 = phi i1 [ false, %87 ], [ %94, %90 ]
br i1 %96, label %70, label %97, !llvm.loop !6
97: ; preds = %95
%98 = getelementptr inbounds [2 x double], ptr %12, i64 0, i64 0
%99 = load ptr, ptr %4, align 8
%100 = call i32 @dd_copy(ptr noundef %98, ptr noundef %99)
br label %101
101: ; preds = %97, %18
ret void
}
declare i32 @dd_is_zero(ptr noundef) #1
declare i32 @dd_sqr(ptr noundef, ptr noundef) #1
declare i32 @dd_minus(ptr noundef) #1
declare i32 @dd_copy(ptr noundef, ptr noundef) #1
declare i32 @dd_mlt(ptr noundef, ptr noundef) #1
declare i32 @dd_mul(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @dd_inc(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/tmpdrc6ptdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dd_sin_taylor(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [30 x double], align 16
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca [2 x double], align 16
%11 = alloca [2 x double], align 16
%12 = alloca [2 x double], align 16
%13 = alloca [2 x double], align 16
%14 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @dd_is_zero(ptr noundef %15)
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds double, ptr %19, i64 0
store double 0.000000e+00, ptr %20, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds double, ptr %21, i64 1
store double 0.000000e+00, ptr %22, align 8
br label %101
23: ; preds = %2
store i32 15, ptr %5, align 4
%24 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 0
store double 0x3FC5555555555555, ptr %24, align 16
%25 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 1
store double 0x3C65555555555555, ptr %25, align 8
%26 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 2
store double 0x3FA5555555555555, ptr %26, align 16
%27 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 3
store double 0x3C45555555555555, ptr %27, align 8
%28 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 4
store double 0x3F81111111111111, ptr %28, align 16
%29 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 5
store double 0x3C01111111111111, ptr %29, align 8
%30 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 6
store double 0x3F56C16C16C16C17, ptr %30, align 16
%31 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 7
store double 0xBBEF49F49F49F49F, ptr %31, align 8
%32 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 8
store double 0x3F2A01A01A01A01A, ptr %32, align 16
%33 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 9
store double 0x3B6A01A01A01A01A, ptr %33, align 8
%34 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 10
store double 0x3EFA01A01A01A01A, ptr %34, align 16
%35 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 11
store double 0x3B3A01A01A01A01A, ptr %35, align 8
%36 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 12
store double 0x3EC71DE3A556C734, ptr %36, align 16
%37 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 13
store double 0xBB6C154F8DDC6C00, ptr %37, align 8
%38 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 14
store double 0x3E927E4FB7789F5C, ptr %38, align 16
%39 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 15
store double 0x3B3CBBC05B4FA99A, ptr %39, align 8
%40 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 16
store double 0x3E5AE64567F544E4, ptr %40, align 16
%41 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 17
store double 0xBAFC062E06D1F209, ptr %41, align 8
%42 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 18
store double 0x3E21EED8EFF8D898, ptr %42, align 16
%43 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 19
store double 0xBAC2AEC959E14C06, ptr %43, align 8
%44 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 20
store double 0x3DE6124613A86D09, ptr %44, align 16
%45 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 21
store double 0x3A8F28E0CC748EBE, ptr %45, align 8
%46 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 22
store double 0x3DA93974A8C07C9D, ptr %46, align 16
%47 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 23
store double 0x3A305D6F8A2EFD1F, ptr %47, align 8
%48 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 24
store double 0x3D6AE7F3E733B81F, ptr %48, align 16
%49 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 25
store double 0x39E1D8656B0EE8CB, ptr %49, align 8
%50 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 26
store double 0x3D2AE7F3E733B81F, ptr %50, align 16
%51 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 27
store double 0x39A1D8656B0EE8CB, ptr %51, align 8
%52 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 28
store double 0x3CE952C77030AD4A, ptr %52, align 16
%53 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 29
store double 0x398AC981465DDC6C, ptr %53, align 8
store double 0x396FFFFFFFFFFFF9, ptr %8, align 8
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds double, ptr %54, i64 0
%56 = load double, ptr %55, align 8
%57 = fmul double 5.000000e-01, %56
%58 = fmul double %57, 0x396FFFFFFFFFFFF9
store double %58, ptr %9, align 8
store i32 0, ptr %14, align 4
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%61 = call i32 @dd_sqr(ptr noundef %59, ptr noundef %60)
%62 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%63 = call i32 @dd_minus(ptr noundef %62)
%64 = load ptr, ptr %3, align 8
%65 = getelementptr inbounds [2 x double], ptr %12, i64 0, i64 0
%66 = call i32 @dd_copy(ptr noundef %64, ptr noundef %65)
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 0
%69 = call i32 @dd_copy(ptr noundef %67, ptr noundef %68)
br label %70
70: ; preds = %95, %23
%71 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 0
%72 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%73 = call i32 @dd_mlt(ptr noundef %71, ptr noundef %72)
%74 = load i32, ptr %14, align 4
%75 = mul nsw i32 2, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [30 x double], ptr %7, i64 0, i64 %76
store ptr %77, ptr %6, align 8
%78 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 0
%79 = load ptr, ptr %6, align 8
%80 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 0
%81 = call i32 @dd_mul(ptr noundef %78, ptr noundef %79, ptr noundef %80)
%82 = getelementptr inbounds [2 x double], ptr %12, i64 0, i64 0
%83 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 0
%84 = call i32 @dd_inc(ptr noundef %82, ptr noundef %83)
%85 = load i32, ptr %14, align 4
%86 = add nsw i32 %85, 2
store i32 %86, ptr %14, align 4
br label %87
87: ; preds = %70
%88 = load i32, ptr %14, align 4
%89 = icmp slt i32 %88, 15
br i1 %89, label %90, label %95
90: ; preds = %87
%91 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 0
%92 = load double, ptr %91, align 16
%93 = load double, ptr %9, align 8
%94 = fcmp ogt double %92, %93
br label %95
95: ; preds = %90, %87
%96 = phi i1 [ false, %87 ], [ %94, %90 ]
br i1 %96, label %70, label %97, !llvm.loop !6
97: ; preds = %95
%98 = getelementptr inbounds [2 x double], ptr %12, i64 0, i64 0
%99 = load ptr, ptr %4, align 8
%100 = call i32 @dd_copy(ptr noundef %98, ptr noundef %99)
br label %101
101: ; preds = %97, %18
ret void
}
declare i32 @dd_is_zero(ptr noundef) #1
declare i32 @dd_sqr(ptr noundef, ptr noundef) #1
declare i32 @dd_minus(ptr noundef) #1
declare i32 @dd_copy(ptr noundef, ptr noundef) #1
declare i32 @dd_mlt(ptr noundef, ptr noundef) #1
declare i32 @dd_mul(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @dd_inc(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/tmp6ll686ab.c'
source_filename = "/tmp/tmp6ll686ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @start_server(i32 noundef 80)
ret i32 0
}
declare i32 @start_server(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/tmp6ll686ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @start_server(i32 noundef 80)
ret i32 0
}
declare i32 @start_server(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/tmpzkyrn_ha.c'
source_filename = "/tmp/tmpzkyrn_ha.c"
target datalayout = "e-m:e-p270: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/tmpzkyrn_ha.c"
target datalayout = "e-m:e-p270: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/tmpkqxnugtm.c'
source_filename = "/tmp/tmpkqxnugtm.c"
target datalayout = "e-m:e-p270: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"UTF-8\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sk_iconv_utf8(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i32 @iconv_open(ptr noundef @.str, ptr noundef %16)
store i32 %17, ptr %9, align 4
%18 = load i64, ptr %7, align 8
store i64 %18, ptr %10, align 8
%19 = load i64, ptr %7, align 8
%20 = mul i64 %19, 2
store i64 %20, ptr %11, align 8
%21 = load i64, ptr %7, align 8
%22 = mul i64 %21, 2
%23 = call i64 @malloc(i64 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %12, align 8
%25 = load ptr, ptr %6, align 8
store ptr %25, ptr %13, align 8
%26 = load ptr, ptr %12, align 8
store ptr %26, ptr %14, align 8
%27 = load i32, ptr %9, align 4
%28 = call i32 @iconv(i32 noundef %27, ptr noundef %13, ptr noundef %10, ptr noundef %14, ptr noundef %11)
%29 = load i64, ptr %7, align 8
%30 = mul i64 %29, 2
%31 = load i64, ptr %11, align 8
%32 = sub i64 %30, %31
%33 = add i64 %32, 1
store i64 %33, ptr %15, align 8
%34 = load ptr, ptr %12, align 8
%35 = load i64, ptr %15, align 8
%36 = sub i64 %35, 1
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 0, ptr %37, align 1
%38 = load ptr, ptr %12, align 8
%39 = load i64, ptr %15, align 8
%40 = call i64 @realloc(ptr noundef %38, i64 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %12, align 8
%42 = load ptr, ptr %12, align 8
%43 = load ptr, ptr %8, align 8
store ptr %42, ptr %43, align 8
%44 = load i32, ptr %9, align 4
%45 = call i32 @iconv_close(i32 noundef %44)
ret void
}
declare i32 @iconv_open(ptr noundef, ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @iconv(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i32 @iconv_close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkqxnugtm.c"
target datalayout = "e-m:e-p270: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"UTF-8\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sk_iconv_utf8(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i32 @iconv_open(ptr noundef @.str, ptr noundef %16)
store i32 %17, ptr %9, align 4
%18 = load i64, ptr %7, align 8
store i64 %18, ptr %10, align 8
%19 = load i64, ptr %7, align 8
%20 = mul i64 %19, 2
store i64 %20, ptr %11, align 8
%21 = load i64, ptr %7, align 8
%22 = mul i64 %21, 2
%23 = call i64 @malloc(i64 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %12, align 8
%25 = load ptr, ptr %6, align 8
store ptr %25, ptr %13, align 8
%26 = load ptr, ptr %12, align 8
store ptr %26, ptr %14, align 8
%27 = load i32, ptr %9, align 4
%28 = call i32 @iconv(i32 noundef %27, ptr noundef %13, ptr noundef %10, ptr noundef %14, ptr noundef %11)
%29 = load i64, ptr %7, align 8
%30 = mul i64 %29, 2
%31 = load i64, ptr %11, align 8
%32 = sub i64 %30, %31
%33 = add i64 %32, 1
store i64 %33, ptr %15, align 8
%34 = load ptr, ptr %12, align 8
%35 = load i64, ptr %15, align 8
%36 = sub i64 %35, 1
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 0, ptr %37, align 1
%38 = load ptr, ptr %12, align 8
%39 = load i64, ptr %15, align 8
%40 = call i64 @realloc(ptr noundef %38, i64 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %12, align 8
%42 = load ptr, ptr %12, align 8
%43 = load ptr, ptr %8, align 8
store ptr %42, ptr %43, align 8
%44 = load i32, ptr %9, align 4
%45 = call i32 @iconv_close(i32 noundef %44)
ret void
}
declare i32 @iconv_open(ptr noundef, ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @iconv(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i32 @iconv_close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvy0vpth2.c'
source_filename = "/tmp/tmpvy0vpth2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"1 is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"2 is %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" 1 is %d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 42, ptr %6, align 4
store i32 12, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %7, align 4
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = call i32 @swap(ptr noundef %6, ptr noundef %7)
%13 = load i32, ptr %6, align 4
%14 = call i32 @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load i32, ptr %7, align 4
%16 = call i32 @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %17
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @swap(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/tmpvy0vpth2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"1 is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"2 is %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" 1 is %d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 42, ptr %6, align 4
store i32 12, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %7, align 4
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = call i32 @swap(ptr noundef %6, ptr noundef %7)
%13 = load i32, ptr %6, align 4
%14 = call i32 @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load i32, ptr %7, align 4
%16 = call i32 @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %17
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @swap(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/tmpdx68tkc3.c'
source_filename = "/tmp/tmpdx68tkc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @identityP(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds double, ptr %3, i64 0
%5 = load double, ptr %4, align 8
%6 = fcmp oeq double %5, 1.000000e+00
br i1 %6, label %7, label %47
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds double, ptr %8, i64 1
%10 = load double, ptr %9, align 8
%11 = fcmp oeq double %10, 0.000000e+00
br i1 %11, label %12, label %47
12: ; preds = %7
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds double, ptr %13, i64 2
%15 = load double, ptr %14, align 8
%16 = fcmp oeq double %15, 0.000000e+00
br i1 %16, label %17, label %47
17: ; preds = %12
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds double, ptr %18, i64 3
%20 = load double, ptr %19, align 8
%21 = fcmp oeq double %20, 0.000000e+00
br i1 %21, label %22, label %47
22: ; preds = %17
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds double, ptr %23, i64 4
%25 = load double, ptr %24, align 8
%26 = fcmp oeq double %25, 1.000000e+00
br i1 %26, label %27, label %47
27: ; preds = %22
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds double, ptr %28, i64 5
%30 = load double, ptr %29, align 8
%31 = fcmp oeq double %30, 0.000000e+00
br i1 %31, label %32, label %47
32: ; preds = %27
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds double, ptr %33, i64 6
%35 = load double, ptr %34, align 8
%36 = fcmp oeq double %35, 0.000000e+00
br i1 %36, label %37, label %47
37: ; preds = %32
%38 = load ptr, ptr %2, align 8
%39 = getelementptr inbounds double, ptr %38, i64 7
%40 = load double, ptr %39, align 8
%41 = fcmp oeq double %40, 0.000000e+00
br i1 %41, label %42, label %47
42: ; preds = %37
%43 = load ptr, ptr %2, align 8
%44 = getelementptr inbounds double, ptr %43, i64 8
%45 = load double, ptr %44, align 8
%46 = fcmp oeq double %45, 1.000000e+00
br label %47
47: ; preds = %42, %37, %32, %27, %22, %17, %12, %7, %1
%48 = phi i1 [ false, %37 ], [ false, %32 ], [ false, %27 ], [ false, %22 ], [ false, %17 ], [ false, %12 ], [ false, %7 ], [ false, %1 ], [ %46, %42 ]
%49 = zext i1 %48 to i32
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdx68tkc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @identityP(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds double, ptr %3, i64 0
%5 = load double, ptr %4, align 8
%6 = fcmp oeq double %5, 1.000000e+00
br i1 %6, label %7, label %47
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds double, ptr %8, i64 1
%10 = load double, ptr %9, align 8
%11 = fcmp oeq double %10, 0.000000e+00
br i1 %11, label %12, label %47
12: ; preds = %7
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds double, ptr %13, i64 2
%15 = load double, ptr %14, align 8
%16 = fcmp oeq double %15, 0.000000e+00
br i1 %16, label %17, label %47
17: ; preds = %12
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds double, ptr %18, i64 3
%20 = load double, ptr %19, align 8
%21 = fcmp oeq double %20, 0.000000e+00
br i1 %21, label %22, label %47
22: ; preds = %17
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds double, ptr %23, i64 4
%25 = load double, ptr %24, align 8
%26 = fcmp oeq double %25, 1.000000e+00
br i1 %26, label %27, label %47
27: ; preds = %22
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds double, ptr %28, i64 5
%30 = load double, ptr %29, align 8
%31 = fcmp oeq double %30, 0.000000e+00
br i1 %31, label %32, label %47
32: ; preds = %27
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds double, ptr %33, i64 6
%35 = load double, ptr %34, align 8
%36 = fcmp oeq double %35, 0.000000e+00
br i1 %36, label %37, label %47
37: ; preds = %32
%38 = load ptr, ptr %2, align 8
%39 = getelementptr inbounds double, ptr %38, i64 7
%40 = load double, ptr %39, align 8
%41 = fcmp oeq double %40, 0.000000e+00
br i1 %41, label %42, label %47
42: ; preds = %37
%43 = load ptr, ptr %2, align 8
%44 = getelementptr inbounds double, ptr %43, i64 8
%45 = load double, ptr %44, align 8
%46 = fcmp oeq double %45, 1.000000e+00
br label %47
47: ; preds = %42, %37, %32, %27, %22, %17, %12, %7, %1
%48 = phi i1 [ false, %37 ], [ false, %32 ], [ false, %27 ], [ false, %22 ], [ false, %17 ], [ false, %12 ], [ false, %7 ], [ false, %1 ], [ %46, %42 ]
%49 = zext i1 %48 to i32
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpws0jxs0_.c'
source_filename = "/tmp/tmpws0jxs0_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LC_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, 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 = load i32, ptr @LC_ALL, align 4
%3 = call i32 @setlocale(i32 noundef %2, ptr noundef @.str)
%4 = call i32 @decrescente(i32 noundef 11, i32 noundef 0)
ret i32 0
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
declare i32 @decrescente(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/tmpws0jxs0_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LC_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, 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 = load i32, ptr @LC_ALL, align 4
%3 = call i32 @setlocale(i32 noundef %2, ptr noundef @.str)
%4 = call i32 @decrescente(i32 noundef 11, i32 noundef 0)
ret i32 0
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
declare i32 @decrescente(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/tmpckpzc6k_.c'
source_filename = "/tmp/tmpckpzc6k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Expected '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @NeedToken(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 @Token(ptr noundef %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
%9 = call i32 @ExitApp(i32 noundef 0)
br label %10
10: ; preds = %6, %1
ret void
}
declare i32 @Token(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @ExitApp(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/tmpckpzc6k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Expected '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @NeedToken(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 @Token(ptr noundef %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
%9 = call i32 @ExitApp(i32 noundef 0)
br label %10
10: ; preds = %6, %1
ret void
}
declare i32 @Token(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @ExitApp(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/tmpi3pts4r4.c'
source_filename = "/tmp/tmpi3pts4r4.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"underflow in flt2ibm\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"overflow in flt2ibm\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @flt2ibm(float noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
store float %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load float, ptr %4, align 4
%11 = fpext float %10 to double
%12 = fcmp oeq double %11, 0.000000e+00
br i1 %12, label %13, label %22
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 3
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 2
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
store i8 0, ptr %19, align 1
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
store i8 0, ptr %21, align 1
store i32 0, ptr %3, align 4
br label %123
22: ; preds = %2
%23 = load float, ptr %4, align 4
%24 = fpext float %23 to double
%25 = fcmp olt double %24, 0.000000e+00
br i1 %25, label %26, label %29
26: ; preds = %22
store i32 128, ptr %6, align 4
%27 = load float, ptr %4, align 4
%28 = fneg float %27
store float %28, ptr %4, align 4
br label %30
29: ; preds = %22
store i32 0, ptr %6, align 4
br label %30
30: ; preds = %29, %26
%31 = load float, ptr %4, align 4
%32 = fpext float %31 to double
%33 = call double @frexp(double noundef %32, ptr noundef %7) #4
store double %33, ptr %8, align 8
%34 = load double, ptr %8, align 8
%35 = fcmp oge double %34, 1.000000e+00
br i1 %35, label %36, label %39
36: ; preds = %30
store double 5.000000e-01, ptr %8, align 8
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
br label %39
39: ; preds = %36, %30
br label %40
40: ; preds = %44, %39
%41 = load i32, ptr %7, align 4
%42 = and i32 %41, 3
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %49
44: ; preds = %40
%45 = load double, ptr %8, align 8
%46 = fmul double %45, 5.000000e-01
store double %46, ptr %8, align 8
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
br label %40, !llvm.loop !6
49: ; preds = %40
%50 = load double, ptr %8, align 8
%51 = fmul double %50, 2.560000e+02
%52 = fmul double %51, 2.560000e+02
%53 = call double @llvm.fmuladd.f64(double %52, double 2.560000e+02, double 5.000000e-01)
%54 = call i32 @floor(double noundef %53)
store i32 %54, ptr %9, align 4
%55 = load i32, ptr %9, align 4
%56 = icmp sge i32 %55, 16777216
br i1 %56, label %57, label %65
57: ; preds = %49
%58 = load double, ptr %8, align 8
%59 = fmul double %58, 1.600000e+01
%60 = fmul double %59, 2.560000e+02
%61 = call double @llvm.fmuladd.f64(double %60, double 2.560000e+02, double 5.000000e-01)
%62 = call i32 @floor(double noundef %61)
store i32 %62, ptr %9, align 4
%63 = load i32, ptr %7, align 4
%64 = sub nsw i32 %63, 4
store i32 %64, ptr %7, align 4
br label %65
65: ; preds = %57, %49
%66 = load i32, ptr %7, align 4
%67 = sdiv i32 %66, 4
%68 = add nsw i32 %67, 64
store i32 %68, ptr %7, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp slt i32 %69, 0
br i1 %70, label %71, label %82
71: ; preds = %65
%72 = load i32, ptr @stderr, align 4
%73 = call i32 @fprintf(i32 noundef %72, ptr noundef @.str)
%74 = load ptr, ptr %5, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 3
store i8 0, ptr %75, align 1
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 2
store i8 0, ptr %77, align 1
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 1
store i8 0, ptr %79, align 1
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 0
store i8 0, ptr %81, align 1
store i32 0, ptr %3, align 4
br label %123
82: ; preds = %65
%83 = load i32, ptr %7, align 4
%84 = icmp sgt i32 %83, 127
br i1 %84, label %85, label %99
85: ; preds = %82
%86 = load i32, ptr @stderr, align 4
%87 = call i32 @fprintf(i32 noundef %86, ptr noundef @.str.1)
%88 = load i32, ptr %6, align 4
%89 = or i32 %88, 127
%90 = trunc i32 %89 to i8
%91 = load ptr, ptr %5, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 0
store i8 %90, ptr %92, align 1
%93 = load ptr, ptr %5, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 3
store i8 -1, ptr %94, align 1
%95 = load ptr, ptr %5, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 2
store i8 -1, ptr %96, align 1
%97 = load ptr, ptr %5, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 1
store i8 -1, ptr %98, align 1
store i32 -1, ptr %3, align 4
br label %123
99: ; preds = %82
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %7, align 4
%102 = or i32 %100, %101
%103 = trunc i32 %102 to i8
%104 = load ptr, ptr %5, align 8
%105 = getelementptr inbounds i8, ptr %104, i64 0
store i8 %103, ptr %105, align 1
%106 = load i32, ptr %9, align 4
%107 = and i32 %106, 255
%108 = trunc i32 %107 to i8
%109 = load ptr, ptr %5, align 8
%110 = getelementptr inbounds i8, ptr %109, i64 3
store i8 %108, ptr %110, align 1
%111 = load i32, ptr %9, align 4
%112 = ashr i32 %111, 8
%113 = and i32 %112, 255
%114 = trunc i32 %113 to i8
%115 = load ptr, ptr %5, align 8
%116 = getelementptr inbounds i8, ptr %115, i64 2
store i8 %114, ptr %116, align 1
%117 = load i32, ptr %9, align 4
%118 = ashr i32 %117, 16
%119 = and i32 %118, 255
%120 = trunc i32 %119 to i8
%121 = load ptr, ptr %5, align 8
%122 = getelementptr inbounds i8, ptr %121, i64 1
store i8 %120, ptr %122, align 1
store i32 0, ptr %3, align 4
br label %123
123: ; preds = %99, %85, %71, %13
%124 = load i32, ptr %3, align 4
ret i32 %124
}
; Function Attrs: nounwind
declare double @frexp(double noundef, ptr noundef) #1
declare i32 @floor(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @fprintf(i32 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 = { 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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi3pts4r4.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"underflow in flt2ibm\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"overflow in flt2ibm\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @flt2ibm(float noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
store float %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load float, ptr %4, align 4
%11 = fpext float %10 to double
%12 = fcmp oeq double %11, 0.000000e+00
br i1 %12, label %13, label %22
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 3
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 2
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
store i8 0, ptr %19, align 1
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
store i8 0, ptr %21, align 1
store i32 0, ptr %3, align 4
br label %125
22: ; preds = %2
%23 = load float, ptr %4, align 4
%24 = fpext float %23 to double
%25 = fcmp olt double %24, 0.000000e+00
br i1 %25, label %26, label %29
26: ; preds = %22
store i32 128, ptr %6, align 4
%27 = load float, ptr %4, align 4
%28 = fneg float %27
store float %28, ptr %4, align 4
br label %30
29: ; preds = %22
store i32 0, ptr %6, align 4
br label %30
30: ; preds = %29, %26
%31 = load float, ptr %4, align 4
%32 = fpext float %31 to double
%33 = call double @frexp(double noundef %32, ptr noundef %7) #4
store double %33, ptr %8, align 8
%34 = load double, ptr %8, align 8
%35 = fcmp oge double %34, 1.000000e+00
br i1 %35, label %36, label %39
36: ; preds = %30
store double 5.000000e-01, ptr %8, align 8
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
br label %39
39: ; preds = %36, %30
%40 = load i32, ptr %7, align 4
%41 = and i32 %40, 3
%42 = icmp ne i32 %41, 0
br i1 %42, label %.lr.ph, label %51
.lr.ph: ; preds = %39
br label %43
43: ; preds = %.lr.ph, %43
%44 = load double, ptr %8, align 8
%45 = fmul double %44, 5.000000e-01
store double %45, ptr %8, align 8
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = and i32 %48, 3
%50 = icmp ne i32 %49, 0
br i1 %50, label %43, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %51
51: ; preds = %._crit_edge, %39
%52 = load double, ptr %8, align 8
%53 = fmul double %52, 2.560000e+02
%54 = fmul double %53, 2.560000e+02
%55 = call double @llvm.fmuladd.f64(double %54, double 2.560000e+02, double 5.000000e-01)
%56 = call i32 @floor(double noundef %55)
store i32 %56, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = icmp sge i32 %57, 16777216
br i1 %58, label %59, label %67
59: ; preds = %51
%60 = load double, ptr %8, align 8
%61 = fmul double %60, 1.600000e+01
%62 = fmul double %61, 2.560000e+02
%63 = call double @llvm.fmuladd.f64(double %62, double 2.560000e+02, double 5.000000e-01)
%64 = call i32 @floor(double noundef %63)
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %7, align 4
%66 = sub nsw i32 %65, 4
store i32 %66, ptr %7, align 4
br label %67
67: ; preds = %59, %51
%68 = load i32, ptr %7, align 4
%69 = sdiv i32 %68, 4
%70 = add nsw i32 %69, 64
store i32 %70, ptr %7, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %84
73: ; preds = %67
%74 = load i32, ptr @stderr, align 4
%75 = call i32 @fprintf(i32 noundef %74, ptr noundef @.str)
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 3
store i8 0, ptr %77, align 1
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 2
store i8 0, ptr %79, align 1
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 1
store i8 0, ptr %81, align 1
%82 = load ptr, ptr %5, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 0
store i8 0, ptr %83, align 1
store i32 0, ptr %3, align 4
br label %125
84: ; preds = %67
%85 = load i32, ptr %7, align 4
%86 = icmp sgt i32 %85, 127
br i1 %86, label %87, label %101
87: ; preds = %84
%88 = load i32, ptr @stderr, align 4
%89 = call i32 @fprintf(i32 noundef %88, ptr noundef @.str.1)
%90 = load i32, ptr %6, align 4
%91 = or i32 %90, 127
%92 = trunc i32 %91 to i8
%93 = load ptr, ptr %5, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 0
store i8 %92, ptr %94, align 1
%95 = load ptr, ptr %5, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 3
store i8 -1, ptr %96, align 1
%97 = load ptr, ptr %5, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 2
store i8 -1, ptr %98, align 1
%99 = load ptr, ptr %5, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 1
store i8 -1, ptr %100, align 1
store i32 -1, ptr %3, align 4
br label %125
101: ; preds = %84
%102 = load i32, ptr %6, align 4
%103 = load i32, ptr %7, align 4
%104 = or i32 %102, %103
%105 = trunc i32 %104 to i8
%106 = load ptr, ptr %5, align 8
%107 = getelementptr inbounds i8, ptr %106, i64 0
store i8 %105, ptr %107, align 1
%108 = load i32, ptr %9, align 4
%109 = and i32 %108, 255
%110 = trunc i32 %109 to i8
%111 = load ptr, ptr %5, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 3
store i8 %110, ptr %112, align 1
%113 = load i32, ptr %9, align 4
%114 = ashr i32 %113, 8
%115 = and i32 %114, 255
%116 = trunc i32 %115 to i8
%117 = load ptr, ptr %5, align 8
%118 = getelementptr inbounds i8, ptr %117, i64 2
store i8 %116, ptr %118, align 1
%119 = load i32, ptr %9, align 4
%120 = ashr i32 %119, 16
%121 = and i32 %120, 255
%122 = trunc i32 %121 to i8
%123 = load ptr, ptr %5, align 8
%124 = getelementptr inbounds i8, ptr %123, i64 1
store i8 %122, ptr %124, align 1
store i32 0, ptr %3, align 4
br label %125
125: ; preds = %101, %87, %73, %13
%126 = load i32, ptr %3, align 4
ret i32 %126
}
; Function Attrs: nounwind
declare double @frexp(double noundef, ptr noundef) #1
declare i32 @floor(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @fprintf(i32 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 = { 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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi941blrq.c'
source_filename = "/tmp/tmpi941blrq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printable(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %32, %1
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %35
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
store i8 %18, ptr %6, align 1
%19 = load i8, ptr %6, align 1
%20 = call i64 @isalpha(i8 noundef zeroext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %30, label %22
22: ; preds = %13
%23 = load i8, ptr %6, align 1
%24 = call i64 @isdigit(i8 noundef zeroext %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %22
%27 = load i8, ptr %6, align 1
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 45
br i1 %29, label %30, label %31
30: ; preds = %26, %22, %13
store i32 1, ptr %2, align 4
br label %36
31: ; preds = %26
br label %32
32: ; preds = %31
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %9, !llvm.loop !6
35: ; preds = %9
store i32 0, ptr %2, align 4
br label %36
36: ; preds = %35, %30
%37 = load i32, ptr %2, align 4
ret i32 %37
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i64 @isdigit(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi941blrq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printable(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %37
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %31
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
store i8 %17, ptr %6, align 1
%18 = load i8, ptr %6, align 1
%19 = call i64 @isalpha(i8 noundef zeroext %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %29, label %21
21: ; preds = %12
%22 = load i8, ptr %6, align 1
%23 = call i64 @isdigit(i8 noundef zeroext %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %29, label %25
25: ; preds = %21
%26 = load i8, ptr %6, align 1
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 45
br i1 %28, label %29, label %30
29: ; preds = %25, %21, %12
store i32 1, ptr %2, align 4
br label %38
30: ; preds = %25
br label %31
31: ; preds = %30
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %1
store i32 0, ptr %2, align 4
br label %38
38: ; preds = %37, %29
%39 = load i32, ptr %2, align 4
ret i32 %39
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i64 @isdigit(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj32tc9v3.c'
source_filename = "/tmp/tmpj32tc9v3.c"
target datalayout = "e-m:e-p270: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 double @os_strtod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [64 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @snprintf(ptr noundef %4, i32 noundef 64, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @to_locale(ptr noundef %7)
%9 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%10 = call double @strtod(ptr noundef %9, ptr noundef null)
ret double %10
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @to_locale(ptr noundef) #1
declare double @strtod(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/tmpj32tc9v3.c"
target datalayout = "e-m:e-p270: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 double @os_strtod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [64 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @snprintf(ptr noundef %4, i32 noundef 64, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @to_locale(ptr noundef %7)
%9 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%10 = call double @strtod(ptr noundef %9, ptr noundef null)
ret double %10
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @to_locale(ptr noundef) #1
declare double @strtod(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/tmph9qnj1tn.c'
source_filename = "/tmp/tmph9qnj1tn.c"
target datalayout = "e-m:e-p270: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 i32 @fmtsub(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [4096 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%19 = load ptr, ptr %6, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %30, label %21
21: ; preds = %4
%22 = load ptr, ptr %8, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %30, label %24
24: ; preds = %21
%25 = load ptr, ptr %9, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i64, ptr %7, align 8
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27, %24, %21, %4
store i32 -1, ptr %5, align 4
br label %153
31: ; preds = %27
%32 = load ptr, ptr %8, align 8
%33 = call i64 @strlen(ptr noundef %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load ptr, ptr %6, align 8
%37 = call i32 @strcpy(ptr noundef %36, ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %153
38: ; preds = %31
%39 = load ptr, ptr %8, align 8
%40 = call i64 @strlen(ptr noundef %39)
%41 = trunc i64 %40 to i32
store i32 %41, ptr %14, align 4
%42 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
store i8 0, ptr %42, align 16
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %43
43: ; preds = %143, %38
%44 = load i32, ptr %11, align 4
%45 = load i32, ptr %14, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %51
47: ; preds = %43
%48 = load i32, ptr %12, align 4
%49 = sext i32 %48 to i64
%50 = icmp ult i64 %49, 4095
br label %51
51: ; preds = %47, %43
%52 = phi i1 [ false, %43 ], [ %50, %47 ]
br i1 %52, label %53, label %144
53: ; preds = %51
%54 = load ptr, ptr %8, align 8
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
store ptr %57, ptr %15, align 8
store i32 0, ptr %16, align 4
store i32 0, ptr %13, align 4
br label %58
58: ; preds = %120, %53
%59 = load ptr, ptr %9, align 8
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [2 x ptr], ptr %59, i64 %61
%63 = getelementptr inbounds [2 x ptr], ptr %62, i64 0, i64 0
%64 = load ptr, ptr %63, align 8
%65 = icmp ne ptr %64, null
br i1 %65, label %66, label %123
66: ; preds = %58
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %13, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [2 x ptr], ptr %67, i64 %69
%71 = getelementptr inbounds [2 x ptr], ptr %70, i64 0, i64 0
%72 = load ptr, ptr %71, align 8
store ptr %72, ptr %17, align 8
%73 = load ptr, ptr %9, align 8
%74 = load i32, ptr %13, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [2 x ptr], ptr %73, i64 %75
%77 = getelementptr inbounds [2 x ptr], ptr %76, i64 0, i64 1
%78 = load ptr, ptr %77, align 8
store ptr %78, ptr %18, align 8
%79 = load ptr, ptr %17, align 8
%80 = call i64 @strlen(ptr noundef %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %119
82: ; preds = %66
%83 = load ptr, ptr %15, align 8
%84 = load ptr, ptr %17, align 8
%85 = load ptr, ptr %17, align 8
%86 = call i64 @strlen(ptr noundef %85)
%87 = call i32 @strncmp(ptr noundef %83, ptr noundef %84, i64 noundef %86)
%88 = icmp ne i32 %87, 0
br i1 %88, label %119, label %89
89: ; preds = %82
%90 = load ptr, ptr %18, align 8
%91 = icmp ne ptr %90, null
br i1 %91, label %92, label %107
92: ; preds = %89
%93 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%94 = load ptr, ptr %18, align 8
%95 = load i32, ptr %12, align 4
%96 = sext i32 %95 to i64
%97 = sub i64 4096, %96
%98 = sub i64 %97, 1
%99 = trunc i64 %98 to i32
%100 = call i32 @strncat(ptr noundef %93, ptr noundef %94, i32 noundef %99)
%101 = load ptr, ptr %18, align 8
%102 = call i64 @strlen(ptr noundef %101)
%103 = load i32, ptr %12, align 4
%104 = sext i32 %103 to i64
%105 = add nsw i64 %104, %102
%106 = trunc i64 %105 to i32
store i32 %106, ptr %12, align 4
br label %107
107: ; preds = %92, %89
%108 = load i32, ptr %12, align 4
%109 = sext i32 %108 to i64
%110 = icmp uge i64 %109, 4095
br i1 %110, label %111, label %112
111: ; preds = %107
store i32 4095, ptr %12, align 4
br label %112
112: ; preds = %111, %107
%113 = load ptr, ptr %17, align 8
%114 = call i64 @strlen(ptr noundef %113)
%115 = load i32, ptr %11, align 4
%116 = sext i32 %115 to i64
%117 = add nsw i64 %116, %114
%118 = trunc i64 %117 to i32
store i32 %118, ptr %11, align 4
store i32 1, ptr %16, align 4
br label %123
119: ; preds = %82, %66
br label %120
120: ; preds = %119
%121 = load i32, ptr %13, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %13, align 4
br label %58, !llvm.loop !6
123: ; preds = %112, %58
%124 = load i32, ptr %16, align 4
%125 = icmp ne i32 %124, 0
br i1 %125, label %143, label %126
126: ; preds = %123
%127 = load ptr, ptr %8, align 8
%128 = load i32, ptr %11, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8, ptr %127, i64 %129
%131 = load i8, ptr %130, align 1
%132 = load i32, ptr %12, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %133
store i8 %131, ptr %134, align 1
%135 = load i32, ptr %12, align 4
%136 = add nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %137
store i8 0, ptr %138, align 1
%139 = load i32, ptr %11, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %11, align 4
%141 = load i32, ptr %12, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %12, align 4
br label %143
143: ; preds = %126, %123
br label %43, !llvm.loop !8
144: ; preds = %51
%145 = load i32, ptr %12, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %146
store i8 0, ptr %147, align 1
%148 = load ptr, ptr %6, align 8
%149 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%150 = load i64, ptr %7, align 8
%151 = sub i64 %150, 1
%152 = call i32 @strncpy(ptr noundef %148, ptr noundef %149, i64 noundef %151)
store i32 0, ptr %5, align 4
br label %153
153: ; preds = %144, %35, %30
%154 = load i32, ptr %5, align 4
ret i32 %154
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncpy(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/tmph9qnj1tn.c"
target datalayout = "e-m:e-p270: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 i32 @fmtsub(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [4096 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%19 = load ptr, ptr %6, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %30, label %21
21: ; preds = %4
%22 = load ptr, ptr %8, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %30, label %24
24: ; preds = %21
%25 = load ptr, ptr %9, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i64, ptr %7, align 8
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27, %24, %21, %4
store i32 -1, ptr %5, align 4
br label %158
31: ; preds = %27
%32 = load ptr, ptr %8, align 8
%33 = call i64 @strlen(ptr noundef %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load ptr, ptr %6, align 8
%37 = call i32 @strcpy(ptr noundef %36, ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %158
38: ; preds = %31
%39 = load ptr, ptr %8, align 8
%40 = call i64 @strlen(ptr noundef %39)
%41 = trunc i64 %40 to i32
store i32 %41, ptr %14, align 4
%42 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
store i8 0, ptr %42, align 16
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %43
43: ; preds = %148, %38
%44 = load i32, ptr %11, align 4
%45 = load i32, ptr %14, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %51
47: ; preds = %43
%48 = load i32, ptr %12, align 4
%49 = sext i32 %48 to i64
%50 = icmp ult i64 %49, 4095
br label %51
51: ; preds = %47, %43
%52 = phi i1 [ false, %43 ], [ %50, %47 ]
br i1 %52, label %53, label %149
53: ; preds = %51
%54 = load ptr, ptr %8, align 8
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
store ptr %57, ptr %15, align 8
store i32 0, ptr %16, align 4
store i32 0, ptr %13, align 4
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %13, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [2 x ptr], ptr %58, i64 %60
%62 = load ptr, ptr %61, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %53
br label %64
64: ; preds = %.lr.ph, %118
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %13, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [2 x ptr], ptr %65, i64 %67
%69 = getelementptr inbounds [2 x ptr], ptr %68, i64 0, i64 0
%70 = load ptr, ptr %69, align 8
store ptr %70, ptr %17, align 8
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %13, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [2 x ptr], ptr %71, i64 %73
%75 = getelementptr inbounds [2 x ptr], ptr %74, i64 0, i64 1
%76 = load ptr, ptr %75, align 8
store ptr %76, ptr %18, align 8
%77 = load ptr, ptr %17, align 8
%78 = call i64 @strlen(ptr noundef %77)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %117
80: ; preds = %64
%81 = load ptr, ptr %15, align 8
%82 = load ptr, ptr %17, align 8
%83 = load ptr, ptr %17, align 8
%84 = call i64 @strlen(ptr noundef %83)
%85 = call i32 @strncmp(ptr noundef %81, ptr noundef %82, i64 noundef %84)
%86 = icmp ne i32 %85, 0
br i1 %86, label %117, label %87
87: ; preds = %80
%88 = load ptr, ptr %18, align 8
%89 = icmp ne ptr %88, null
br i1 %89, label %90, label %105
90: ; preds = %87
%91 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%92 = load ptr, ptr %18, align 8
%93 = load i32, ptr %12, align 4
%94 = sext i32 %93 to i64
%95 = sub i64 4096, %94
%96 = sub i64 %95, 1
%97 = trunc i64 %96 to i32
%98 = call i32 @strncat(ptr noundef %91, ptr noundef %92, i32 noundef %97)
%99 = load ptr, ptr %18, align 8
%100 = call i64 @strlen(ptr noundef %99)
%101 = load i32, ptr %12, align 4
%102 = sext i32 %101 to i64
%103 = add nsw i64 %102, %100
%104 = trunc i64 %103 to i32
store i32 %104, ptr %12, align 4
br label %105
105: ; preds = %90, %87
%106 = load i32, ptr %12, align 4
%107 = sext i32 %106 to i64
%108 = icmp uge i64 %107, 4095
br i1 %108, label %109, label %110
109: ; preds = %105
store i32 4095, ptr %12, align 4
br label %110
110: ; preds = %109, %105
%111 = load ptr, ptr %17, align 8
%112 = call i64 @strlen(ptr noundef %111)
%113 = load i32, ptr %11, align 4
%114 = sext i32 %113 to i64
%115 = add nsw i64 %114, %112
%116 = trunc i64 %115 to i32
store i32 %116, ptr %11, align 4
store i32 1, ptr %16, align 4
br label %128
117: ; preds = %80, %64
br label %118
118: ; preds = %117
%119 = load i32, ptr %13, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %13, align 4
%121 = load ptr, ptr %9, align 8
%122 = load i32, ptr %13, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [2 x ptr], ptr %121, i64 %123
%125 = getelementptr inbounds [2 x ptr], ptr %124, i64 0, i64 0
%126 = load ptr, ptr %125, align 8
%127 = icmp ne ptr %126, null
br i1 %127, label %64, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %118
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %53
br label %128
128: ; preds = %.loopexit, %110
%129 = load i32, ptr %16, align 4
%130 = icmp ne i32 %129, 0
br i1 %130, label %148, label %131
131: ; preds = %128
%132 = load ptr, ptr %8, align 8
%133 = load i32, ptr %11, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %132, i64 %134
%136 = load i8, ptr %135, align 1
%137 = load i32, ptr %12, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %138
store i8 %136, ptr %139, align 1
%140 = load i32, ptr %12, align 4
%141 = add nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %142
store i8 0, ptr %143, align 1
%144 = load i32, ptr %11, align 4
%145 = add nsw i32 %144, 1
store i32 %145, ptr %11, align 4
%146 = load i32, ptr %12, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %12, align 4
br label %148
148: ; preds = %131, %128
br label %43, !llvm.loop !8
149: ; preds = %51
%150 = load i32, ptr %12, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 %151
store i8 0, ptr %152, align 1
%153 = load ptr, ptr %6, align 8
%154 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%155 = load i64, ptr %7, align 8
%156 = sub i64 %155, 1
%157 = call i32 @strncpy(ptr noundef %153, ptr noundef %154, i64 noundef %156)
store i32 0, ptr %5, align 4
br label %158
158: ; preds = %149, %35, %30
%159 = load i32, ptr %5, align 4
ret i32 %159
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncpy(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/tmpcj9v0s5p.c'
source_filename = "/tmp/tmpcj9v0s5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HDsSymidx(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [9 x double], align 16
%18 = alloca [9 x double], align 16
%19 = alloca ptr, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%28 = load ptr, ptr %10, align 8
%29 = getelementptr inbounds double, ptr %28, i64 0
%30 = load double, ptr %29, align 8
%31 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 0
store double %30, ptr %31, align 16
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds double, ptr %32, i64 3
%34 = load double, ptr %33, align 8
%35 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 1
store double %34, ptr %35, align 8
%36 = load ptr, ptr %10, align 8
%37 = getelementptr inbounds double, ptr %36, i64 6
%38 = load double, ptr %37, align 8
%39 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 2
store double %38, ptr %39, align 16
%40 = load ptr, ptr %10, align 8
%41 = getelementptr inbounds double, ptr %40, i64 1
%42 = load double, ptr %41, align 8
%43 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 3
store double %42, ptr %43, align 8
%44 = load ptr, ptr %10, align 8
%45 = getelementptr inbounds double, ptr %44, i64 4
%46 = load double, ptr %45, align 8
%47 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 4
store double %46, ptr %47, align 16
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds double, ptr %48, i64 7
%50 = load double, ptr %49, align 8
%51 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 5
store double %50, ptr %51, align 8
%52 = load ptr, ptr %10, align 8
%53 = getelementptr inbounds double, ptr %52, i64 2
%54 = load double, ptr %53, align 8
%55 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 6
store double %54, ptr %55, align 16
%56 = load ptr, ptr %10, align 8
%57 = getelementptr inbounds double, ptr %56, i64 5
%58 = load double, ptr %57, align 8
%59 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 7
store double %58, ptr %59, align 8
%60 = load ptr, ptr %10, align 8
%61 = getelementptr inbounds double, ptr %60, i64 8
%62 = load double, ptr %61, align 8
%63 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 8
store double %62, ptr %63, align 16
store i32 0, ptr %15, align 4
br label %64
64: ; preds = %75, %7
%65 = load i32, ptr %15, align 4
%66 = icmp slt i32 %65, 9
br i1 %66, label %67, label %78
67: ; preds = %64
%68 = load i32, ptr %15, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 %69
%71 = load double, ptr %70, align 8
%72 = load i32, ptr %15, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 %73
store double %71, ptr %74, align 8
br label %75
75: ; preds = %67
%76 = load i32, ptr %15, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %15, align 4
br label %64, !llvm.loop !6
78: ; preds = %64
%79 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 0
%80 = call i32 @minv(ptr noundef %79, i32 noundef 3)
store i32 0, ptr %16, align 4
br label %81
81: ; preds = %230, %78
%82 = load i32, ptr %16, align 4
%83 = load i32, ptr %14, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %233
85: ; preds = %81
%86 = load ptr, ptr %13, align 8
%87 = load i32, ptr %16, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %86, i64 %88
%90 = load i32, ptr %89, align 4
store i32 %90, ptr %15, align 4
%91 = load ptr, ptr %9, align 8
%92 = load i32, ptr %15, align 4
%93 = mul nsw i32 6, %92
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %91, i64 %94
store ptr %95, ptr %19, align 8
%96 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 6
%97 = load double, ptr %96, align 16
%98 = load ptr, ptr %19, align 8
%99 = getelementptr inbounds double, ptr %98, i64 0
%100 = load double, ptr %99, align 8
%101 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 7
%102 = load double, ptr %101, align 8
%103 = load ptr, ptr %19, align 8
%104 = getelementptr inbounds double, ptr %103, i64 1
%105 = load double, ptr %104, align 8
%106 = fmul double %102, %105
%107 = call double @llvm.fmuladd.f64(double %97, double %100, double %106)
%108 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 8
%109 = load double, ptr %108, align 16
%110 = fadd double %107, %109
store double %110, ptr %20, align 8
%111 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 6
%112 = load double, ptr %111, align 16
%113 = load ptr, ptr %19, align 8
%114 = getelementptr inbounds double, ptr %113, i64 3
%115 = load double, ptr %114, align 8
%116 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 7
%117 = load double, ptr %116, align 8
%118 = load ptr, ptr %19, align 8
%119 = getelementptr inbounds double, ptr %118, i64 4
%120 = load double, ptr %119, align 8
%121 = fmul double %117, %120
%122 = call double @llvm.fmuladd.f64(double %112, double %115, double %121)
%123 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 8
%124 = load double, ptr %123, align 16
%125 = fadd double %122, %124
store double %125, ptr %21, align 8
%126 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 0
%127 = load double, ptr %126, align 16
%128 = load ptr, ptr %19, align 8
%129 = getelementptr inbounds double, ptr %128, i64 0
%130 = load double, ptr %129, align 8
%131 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 1
%132 = load double, ptr %131, align 8
%133 = load ptr, ptr %19, align 8
%134 = getelementptr inbounds double, ptr %133, i64 1
%135 = load double, ptr %134, align 8
%136 = fmul double %132, %135
%137 = call double @llvm.fmuladd.f64(double %127, double %130, double %136)
%138 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 2
%139 = load double, ptr %138, align 16
%140 = fadd double %137, %139
%141 = load double, ptr %20, align 8
%142 = fdiv double %140, %141
store double %142, ptr %22, align 8
%143 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 3
%144 = load double, ptr %143, align 8
%145 = load ptr, ptr %19, align 8
%146 = getelementptr inbounds double, ptr %145, i64 0
%147 = load double, ptr %146, align 8
%148 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 4
%149 = load double, ptr %148, align 16
%150 = load ptr, ptr %19, align 8
%151 = getelementptr inbounds double, ptr %150, i64 1
%152 = load double, ptr %151, align 8
%153 = fmul double %149, %152
%154 = call double @llvm.fmuladd.f64(double %144, double %147, double %153)
%155 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 5
%156 = load double, ptr %155, align 8
%157 = fadd double %154, %156
%158 = load double, ptr %20, align 8
%159 = fdiv double %157, %158
store double %159, ptr %23, align 8
%160 = load ptr, ptr %19, align 8
%161 = getelementptr inbounds double, ptr %160, i64 3
%162 = load double, ptr %161, align 8
%163 = load double, ptr %22, align 8
%164 = fsub double %162, %163
store double %164, ptr %26, align 8
%165 = load ptr, ptr %19, align 8
%166 = getelementptr inbounds double, ptr %165, i64 4
%167 = load double, ptr %166, align 8
%168 = load double, ptr %23, align 8
%169 = fsub double %167, %168
store double %169, ptr %27, align 8
%170 = load double, ptr %26, align 8
%171 = load double, ptr %26, align 8
%172 = load double, ptr %27, align 8
%173 = load double, ptr %27, align 8
%174 = fmul double %172, %173
%175 = call double @llvm.fmuladd.f64(double %170, double %171, double %174)
store double %175, ptr %24, align 8
%176 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 0
%177 = load double, ptr %176, align 16
%178 = load ptr, ptr %19, align 8
%179 = getelementptr inbounds double, ptr %178, i64 3
%180 = load double, ptr %179, align 8
%181 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 1
%182 = load double, ptr %181, align 8
%183 = load ptr, ptr %19, align 8
%184 = getelementptr inbounds double, ptr %183, i64 4
%185 = load double, ptr %184, align 8
%186 = fmul double %182, %185
%187 = call double @llvm.fmuladd.f64(double %177, double %180, double %186)
%188 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 2
%189 = load double, ptr %188, align 16
%190 = fadd double %187, %189
%191 = load double, ptr %21, align 8
%192 = fdiv double %190, %191
store double %192, ptr %22, align 8
%193 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 3
%194 = load double, ptr %193, align 8
%195 = load ptr, ptr %19, align 8
%196 = getelementptr inbounds double, ptr %195, i64 3
%197 = load double, ptr %196, align 8
%198 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 4
%199 = load double, ptr %198, align 16
%200 = load ptr, ptr %19, align 8
%201 = getelementptr inbounds double, ptr %200, i64 4
%202 = load double, ptr %201, align 8
%203 = fmul double %199, %202
%204 = call double @llvm.fmuladd.f64(double %194, double %197, double %203)
%205 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 5
%206 = load double, ptr %205, align 8
%207 = fadd double %204, %206
%208 = load double, ptr %21, align 8
%209 = fdiv double %207, %208
store double %209, ptr %23, align 8
%210 = load ptr, ptr %19, align 8
%211 = getelementptr inbounds double, ptr %210, i64 0
%212 = load double, ptr %211, align 8
%213 = load double, ptr %22, align 8
%214 = fsub double %212, %213
store double %214, ptr %26, align 8
%215 = load ptr, ptr %19, align 8
%216 = getelementptr inbounds double, ptr %215, i64 1
%217 = load double, ptr %216, align 8
%218 = load double, ptr %23, align 8
%219 = fsub double %217, %218
store double %219, ptr %27, align 8
%220 = load double, ptr %26, align 8
%221 = load double, ptr %26, align 8
%222 = load double, ptr %27, align 8
%223 = load double, ptr %27, align 8
%224 = fmul double %222, %223
%225 = call double @llvm.fmuladd.f64(double %220, double %221, double %224)
store double %225, ptr %25, align 8
%226 = load double, ptr %24, align 8
%227 = load double, ptr %25, align 8
%228 = fadd double %226, %227
%229 = load ptr, ptr %11, align 8
store double %228, ptr %229, align 8
br label %230
230: ; preds = %85
%231 = load i32, ptr %16, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %16, align 4
br label %81, !llvm.loop !8
233: ; preds = %81
ret void
}
declare i32 @minv(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcj9v0s5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HDsSymidx(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [9 x double], align 16
%18 = alloca [9 x double], align 16
%19 = alloca ptr, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%28 = load ptr, ptr %10, align 8
%29 = getelementptr inbounds double, ptr %28, i64 0
%30 = load double, ptr %29, align 8
%31 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 0
store double %30, ptr %31, align 16
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds double, ptr %32, i64 3
%34 = load double, ptr %33, align 8
%35 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 1
store double %34, ptr %35, align 8
%36 = load ptr, ptr %10, align 8
%37 = getelementptr inbounds double, ptr %36, i64 6
%38 = load double, ptr %37, align 8
%39 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 2
store double %38, ptr %39, align 16
%40 = load ptr, ptr %10, align 8
%41 = getelementptr inbounds double, ptr %40, i64 1
%42 = load double, ptr %41, align 8
%43 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 3
store double %42, ptr %43, align 8
%44 = load ptr, ptr %10, align 8
%45 = getelementptr inbounds double, ptr %44, i64 4
%46 = load double, ptr %45, align 8
%47 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 4
store double %46, ptr %47, align 16
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds double, ptr %48, i64 7
%50 = load double, ptr %49, align 8
%51 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 5
store double %50, ptr %51, align 8
%52 = load ptr, ptr %10, align 8
%53 = getelementptr inbounds double, ptr %52, i64 2
%54 = load double, ptr %53, align 8
%55 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 6
store double %54, ptr %55, align 16
%56 = load ptr, ptr %10, align 8
%57 = getelementptr inbounds double, ptr %56, i64 5
%58 = load double, ptr %57, align 8
%59 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 7
store double %58, ptr %59, align 8
%60 = load ptr, ptr %10, align 8
%61 = getelementptr inbounds double, ptr %60, i64 8
%62 = load double, ptr %61, align 8
%63 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 8
store double %62, ptr %63, align 16
store i32 0, ptr %15, align 4
%64 = load i32, ptr %15, align 4
%65 = icmp slt i32 %64, 9
br i1 %65, label %.lr.ph, label %79
.lr.ph: ; preds = %7
br label %66
66: ; preds = %.lr.ph, %74
%67 = load i32, ptr %15, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 %68
%70 = load double, ptr %69, align 8
%71 = load i32, ptr %15, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 %72
store double %70, ptr %73, align 8
br label %74
74: ; preds = %66
%75 = load i32, ptr %15, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %15, align 4
%77 = load i32, ptr %15, align 4
%78 = icmp slt i32 %77, 9
br i1 %78, label %66, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %79
79: ; preds = %._crit_edge, %7
%80 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 0
%81 = call i32 @minv(ptr noundef %80, i32 noundef 3)
store i32 0, ptr %16, align 4
%82 = load i32, ptr %16, align 4
%83 = load i32, ptr %14, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %.lr.ph2, label %236
.lr.ph2: ; preds = %79
br label %85
85: ; preds = %.lr.ph2, %230
%86 = load ptr, ptr %13, align 8
%87 = load i32, ptr %16, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %86, i64 %88
%90 = load i32, ptr %89, align 4
store i32 %90, ptr %15, align 4
%91 = load ptr, ptr %9, align 8
%92 = load i32, ptr %15, align 4
%93 = mul nsw i32 6, %92
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %91, i64 %94
store ptr %95, ptr %19, align 8
%96 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 6
%97 = load double, ptr %96, align 16
%98 = load ptr, ptr %19, align 8
%99 = getelementptr inbounds double, ptr %98, i64 0
%100 = load double, ptr %99, align 8
%101 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 7
%102 = load double, ptr %101, align 8
%103 = load ptr, ptr %19, align 8
%104 = getelementptr inbounds double, ptr %103, i64 1
%105 = load double, ptr %104, align 8
%106 = fmul double %102, %105
%107 = call double @llvm.fmuladd.f64(double %97, double %100, double %106)
%108 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 8
%109 = load double, ptr %108, align 16
%110 = fadd double %107, %109
store double %110, ptr %20, align 8
%111 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 6
%112 = load double, ptr %111, align 16
%113 = load ptr, ptr %19, align 8
%114 = getelementptr inbounds double, ptr %113, i64 3
%115 = load double, ptr %114, align 8
%116 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 7
%117 = load double, ptr %116, align 8
%118 = load ptr, ptr %19, align 8
%119 = getelementptr inbounds double, ptr %118, i64 4
%120 = load double, ptr %119, align 8
%121 = fmul double %117, %120
%122 = call double @llvm.fmuladd.f64(double %112, double %115, double %121)
%123 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 8
%124 = load double, ptr %123, align 16
%125 = fadd double %122, %124
store double %125, ptr %21, align 8
%126 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 0
%127 = load double, ptr %126, align 16
%128 = load ptr, ptr %19, align 8
%129 = getelementptr inbounds double, ptr %128, i64 0
%130 = load double, ptr %129, align 8
%131 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 1
%132 = load double, ptr %131, align 8
%133 = load ptr, ptr %19, align 8
%134 = getelementptr inbounds double, ptr %133, i64 1
%135 = load double, ptr %134, align 8
%136 = fmul double %132, %135
%137 = call double @llvm.fmuladd.f64(double %127, double %130, double %136)
%138 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 2
%139 = load double, ptr %138, align 16
%140 = fadd double %137, %139
%141 = load double, ptr %20, align 8
%142 = fdiv double %140, %141
store double %142, ptr %22, align 8
%143 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 3
%144 = load double, ptr %143, align 8
%145 = load ptr, ptr %19, align 8
%146 = getelementptr inbounds double, ptr %145, i64 0
%147 = load double, ptr %146, align 8
%148 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 4
%149 = load double, ptr %148, align 16
%150 = load ptr, ptr %19, align 8
%151 = getelementptr inbounds double, ptr %150, i64 1
%152 = load double, ptr %151, align 8
%153 = fmul double %149, %152
%154 = call double @llvm.fmuladd.f64(double %144, double %147, double %153)
%155 = getelementptr inbounds [9 x double], ptr %18, i64 0, i64 5
%156 = load double, ptr %155, align 8
%157 = fadd double %154, %156
%158 = load double, ptr %20, align 8
%159 = fdiv double %157, %158
store double %159, ptr %23, align 8
%160 = load ptr, ptr %19, align 8
%161 = getelementptr inbounds double, ptr %160, i64 3
%162 = load double, ptr %161, align 8
%163 = load double, ptr %22, align 8
%164 = fsub double %162, %163
store double %164, ptr %26, align 8
%165 = load ptr, ptr %19, align 8
%166 = getelementptr inbounds double, ptr %165, i64 4
%167 = load double, ptr %166, align 8
%168 = load double, ptr %23, align 8
%169 = fsub double %167, %168
store double %169, ptr %27, align 8
%170 = load double, ptr %26, align 8
%171 = load double, ptr %26, align 8
%172 = load double, ptr %27, align 8
%173 = load double, ptr %27, align 8
%174 = fmul double %172, %173
%175 = call double @llvm.fmuladd.f64(double %170, double %171, double %174)
store double %175, ptr %24, align 8
%176 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 0
%177 = load double, ptr %176, align 16
%178 = load ptr, ptr %19, align 8
%179 = getelementptr inbounds double, ptr %178, i64 3
%180 = load double, ptr %179, align 8
%181 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 1
%182 = load double, ptr %181, align 8
%183 = load ptr, ptr %19, align 8
%184 = getelementptr inbounds double, ptr %183, i64 4
%185 = load double, ptr %184, align 8
%186 = fmul double %182, %185
%187 = call double @llvm.fmuladd.f64(double %177, double %180, double %186)
%188 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 2
%189 = load double, ptr %188, align 16
%190 = fadd double %187, %189
%191 = load double, ptr %21, align 8
%192 = fdiv double %190, %191
store double %192, ptr %22, align 8
%193 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 3
%194 = load double, ptr %193, align 8
%195 = load ptr, ptr %19, align 8
%196 = getelementptr inbounds double, ptr %195, i64 3
%197 = load double, ptr %196, align 8
%198 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 4
%199 = load double, ptr %198, align 16
%200 = load ptr, ptr %19, align 8
%201 = getelementptr inbounds double, ptr %200, i64 4
%202 = load double, ptr %201, align 8
%203 = fmul double %199, %202
%204 = call double @llvm.fmuladd.f64(double %194, double %197, double %203)
%205 = getelementptr inbounds [9 x double], ptr %17, i64 0, i64 5
%206 = load double, ptr %205, align 8
%207 = fadd double %204, %206
%208 = load double, ptr %21, align 8
%209 = fdiv double %207, %208
store double %209, ptr %23, align 8
%210 = load ptr, ptr %19, align 8
%211 = getelementptr inbounds double, ptr %210, i64 0
%212 = load double, ptr %211, align 8
%213 = load double, ptr %22, align 8
%214 = fsub double %212, %213
store double %214, ptr %26, align 8
%215 = load ptr, ptr %19, align 8
%216 = getelementptr inbounds double, ptr %215, i64 1
%217 = load double, ptr %216, align 8
%218 = load double, ptr %23, align 8
%219 = fsub double %217, %218
store double %219, ptr %27, align 8
%220 = load double, ptr %26, align 8
%221 = load double, ptr %26, align 8
%222 = load double, ptr %27, align 8
%223 = load double, ptr %27, align 8
%224 = fmul double %222, %223
%225 = call double @llvm.fmuladd.f64(double %220, double %221, double %224)
store double %225, ptr %25, align 8
%226 = load double, ptr %24, align 8
%227 = load double, ptr %25, align 8
%228 = fadd double %226, %227
%229 = load ptr, ptr %11, align 8
store double %228, ptr %229, align 8
br label %230
230: ; preds = %85
%231 = load i32, ptr %16, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %16, align 4
%233 = load i32, ptr %16, align 4
%234 = load i32, ptr %14, align 4
%235 = icmp slt i32 %233, %234
br i1 %235, label %85, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %230
br label %236
236: ; preds = %._crit_edge3, %79
ret void
}
declare i32 @minv(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp99bcv_r_.c'
source_filename = "/tmp/tmp99bcv_r_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Com_HMACMD5String(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca [40 x i8], align 16
store ptr %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i64 %5, ptr %12, align 8
%20 = load ptr, ptr %7, align 8
store ptr %20, ptr %15, align 8
%21 = load i64, ptr %8, align 8
%22 = trunc i64 %21 to i32
%23 = call ptr @Z_Malloc(i32 noundef %22)
store ptr %23, ptr %13, align 8
%24 = load i64, ptr %8, align 8
%25 = trunc i64 %24 to i32
%26 = call ptr @Z_Malloc(i32 noundef %25)
store ptr %26, ptr %14, align 8
%27 = load i64, ptr %8, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = add i64 %27, %29
%31 = load i64, ptr %8, align 8
%32 = add i64 %31, 32
%33 = icmp ult i64 %30, %32
br i1 %33, label %34, label %37
34: ; preds = %6
%35 = load i64, ptr %8, align 8
%36 = add i64 %35, 32
br label %42
37: ; preds = %6
%38 = load i64, ptr %8, align 8
%39 = load i32, ptr %10, align 4
%40 = sext i32 %39 to i64
%41 = add i64 %38, %40
br label %42
42: ; preds = %37, %34
%43 = phi i64 [ %36, %34 ], [ %41, %37 ]
%44 = trunc i64 %43 to i32
store i32 %44, ptr %18, align 4
%45 = load i32, ptr %18, align 4
%46 = call ptr @Z_Malloc(i32 noundef %45)
store ptr %46, ptr %16, align 8
store i32 0, ptr %17, align 4
br label %47
47: ; preds = %77, %42
%48 = load i32, ptr %17, align 4
%49 = sext i32 %48 to i64
%50 = load i64, ptr %8, align 8
%51 = icmp ult i64 %49, %50
br i1 %51, label %52, label %80
52: ; preds = %47
%53 = load ptr, ptr %15, align 8
%54 = load i32, ptr %17, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = zext i8 %57 to i32
%59 = xor i32 %58, 92
%60 = trunc i32 %59 to i8
%61 = load ptr, ptr %13, align 8
%62 = load i32, ptr %17, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
store i8 %60, ptr %64, align 1
%65 = load ptr, ptr %15, align 8
%66 = load i32, ptr %17, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = xor i32 %70, 54
%72 = trunc i32 %71 to i8
%73 = load ptr, ptr %14, align 8
%74 = load i32, ptr %17, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
store i8 %72, ptr %76, align 1
br label %77
77: ; preds = %52
%78 = load i32, ptr %17, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %17, align 4
br label %47, !llvm.loop !6
80: ; preds = %47
%81 = load ptr, ptr %16, align 8
%82 = load ptr, ptr %14, align 8
%83 = load i64, ptr %8, align 8
%84 = call i32 (ptr, ...) @memcpy(ptr noundef %81, ptr noundef %82, i64 noundef %83)
%85 = load ptr, ptr %16, align 8
%86 = load i64, ptr %8, align 8
%87 = getelementptr inbounds i8, ptr %85, i64 %86
%88 = load ptr, ptr %9, align 8
%89 = load i32, ptr %10, align 4
%90 = call i32 (ptr, ...) @memcpy(ptr noundef %87, ptr noundef %88, i32 noundef %89)
%91 = load ptr, ptr %16, align 8
%92 = load i64, ptr %8, align 8
%93 = load i32, ptr %10, align 4
%94 = sext i32 %93 to i64
%95 = add i64 %92, %94
%96 = trunc i64 %95 to i32
%97 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%98 = call i32 @Com_MD5HashString(ptr noundef %91, i32 noundef %96, ptr noundef %97, i64 noundef 40)
%99 = load ptr, ptr %16, align 8
%100 = load ptr, ptr %13, align 8
%101 = load i64, ptr %8, align 8
%102 = call i32 (ptr, ...) @memcpy(ptr noundef %99, ptr noundef %100, i64 noundef %101)
%103 = load ptr, ptr %16, align 8
%104 = load i64, ptr %8, align 8
%105 = getelementptr inbounds i8, ptr %103, i64 %104
%106 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%107 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%108 = call i64 @strlen(ptr noundef %107)
%109 = call i32 (ptr, ...) @memcpy(ptr noundef %105, ptr noundef %106, i64 noundef %108)
%110 = load ptr, ptr %16, align 8
%111 = load i64, ptr %8, align 8
%112 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%113 = call i64 @strlen(ptr noundef %112)
%114 = add i64 %111, %113
%115 = trunc i64 %114 to i32
%116 = load ptr, ptr %11, align 8
%117 = load i64, ptr %12, align 8
%118 = call i32 @Com_MD5HashString(ptr noundef %110, i32 noundef %115, ptr noundef %116, i64 noundef %117)
%119 = load ptr, ptr %16, align 8
%120 = call i32 @Z_Free(ptr noundef %119)
%121 = load ptr, ptr %13, align 8
%122 = call i32 @Z_Free(ptr noundef %121)
%123 = load ptr, ptr %14, align 8
%124 = call i32 @Z_Free(ptr noundef %123)
%125 = load ptr, ptr %11, align 8
ret ptr %125
}
declare ptr @Z_Malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ...) #1
declare i32 @Com_MD5HashString(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @Z_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/tmp99bcv_r_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Com_HMACMD5String(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca [40 x i8], align 16
store ptr %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i64 %5, ptr %12, align 8
%20 = load ptr, ptr %7, align 8
store ptr %20, ptr %15, align 8
%21 = load i64, ptr %8, align 8
%22 = trunc i64 %21 to i32
%23 = call ptr @Z_Malloc(i32 noundef %22)
store ptr %23, ptr %13, align 8
%24 = load i64, ptr %8, align 8
%25 = trunc i64 %24 to i32
%26 = call ptr @Z_Malloc(i32 noundef %25)
store ptr %26, ptr %14, align 8
%27 = load i64, ptr %8, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = add i64 %27, %29
%31 = load i64, ptr %8, align 8
%32 = add i64 %31, 32
%33 = icmp ult i64 %30, %32
br i1 %33, label %34, label %37
34: ; preds = %6
%35 = load i64, ptr %8, align 8
%36 = add i64 %35, 32
br label %42
37: ; preds = %6
%38 = load i64, ptr %8, align 8
%39 = load i32, ptr %10, align 4
%40 = sext i32 %39 to i64
%41 = add i64 %38, %40
br label %42
42: ; preds = %37, %34
%43 = phi i64 [ %36, %34 ], [ %41, %37 ]
%44 = trunc i64 %43 to i32
store i32 %44, ptr %18, align 4
%45 = load i32, ptr %18, align 4
%46 = call ptr @Z_Malloc(i32 noundef %45)
store ptr %46, ptr %16, align 8
store i32 0, ptr %17, align 4
%47 = load i32, ptr %17, align 4
%48 = sext i32 %47 to i64
%49 = load i64, ptr %8, align 8
%50 = icmp ult i64 %48, %49
br i1 %50, label %.lr.ph, label %83
.lr.ph: ; preds = %42
br label %51
51: ; preds = %.lr.ph, %76
%52 = load ptr, ptr %15, align 8
%53 = load i32, ptr %17, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = xor i32 %57, 92
%59 = trunc i32 %58 to i8
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %17, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
store i8 %59, ptr %63, align 1
%64 = load ptr, ptr %15, align 8
%65 = load i32, ptr %17, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = load i8, ptr %67, align 1
%69 = zext i8 %68 to i32
%70 = xor i32 %69, 54
%71 = trunc i32 %70 to i8
%72 = load ptr, ptr %14, align 8
%73 = load i32, ptr %17, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
store i8 %71, ptr %75, align 1
br label %76
76: ; preds = %51
%77 = load i32, ptr %17, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %17, align 4
%79 = load i32, ptr %17, align 4
%80 = sext i32 %79 to i64
%81 = load i64, ptr %8, align 8
%82 = icmp ult i64 %80, %81
br i1 %82, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %76
br label %83
83: ; preds = %._crit_edge, %42
%84 = load ptr, ptr %16, align 8
%85 = load ptr, ptr %14, align 8
%86 = load i64, ptr %8, align 8
%87 = call i32 (ptr, ...) @memcpy(ptr noundef %84, ptr noundef %85, i64 noundef %86)
%88 = load ptr, ptr %16, align 8
%89 = load i64, ptr %8, align 8
%90 = getelementptr inbounds i8, ptr %88, i64 %89
%91 = load ptr, ptr %9, align 8
%92 = load i32, ptr %10, align 4
%93 = call i32 (ptr, ...) @memcpy(ptr noundef %90, ptr noundef %91, i32 noundef %92)
%94 = load ptr, ptr %16, align 8
%95 = load i64, ptr %8, align 8
%96 = load i32, ptr %10, align 4
%97 = sext i32 %96 to i64
%98 = add i64 %95, %97
%99 = trunc i64 %98 to i32
%100 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%101 = call i32 @Com_MD5HashString(ptr noundef %94, i32 noundef %99, ptr noundef %100, i64 noundef 40)
%102 = load ptr, ptr %16, align 8
%103 = load ptr, ptr %13, align 8
%104 = load i64, ptr %8, align 8
%105 = call i32 (ptr, ...) @memcpy(ptr noundef %102, ptr noundef %103, i64 noundef %104)
%106 = load ptr, ptr %16, align 8
%107 = load i64, ptr %8, align 8
%108 = getelementptr inbounds i8, ptr %106, i64 %107
%109 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%110 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%111 = call i64 @strlen(ptr noundef %110)
%112 = call i32 (ptr, ...) @memcpy(ptr noundef %108, ptr noundef %109, i64 noundef %111)
%113 = load ptr, ptr %16, align 8
%114 = load i64, ptr %8, align 8
%115 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
%116 = call i64 @strlen(ptr noundef %115)
%117 = add i64 %114, %116
%118 = trunc i64 %117 to i32
%119 = load ptr, ptr %11, align 8
%120 = load i64, ptr %12, align 8
%121 = call i32 @Com_MD5HashString(ptr noundef %113, i32 noundef %118, ptr noundef %119, i64 noundef %120)
%122 = load ptr, ptr %16, align 8
%123 = call i32 @Z_Free(ptr noundef %122)
%124 = load ptr, ptr %13, align 8
%125 = call i32 @Z_Free(ptr noundef %124)
%126 = load ptr, ptr %14, align 8
%127 = call i32 @Z_Free(ptr noundef %126)
%128 = load ptr, ptr %11, align 8
ret ptr %128
}
declare ptr @Z_Malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ...) #1
declare i32 @Com_MD5HashString(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @Z_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/tmpp314msr_.c'
source_filename = "/tmp/tmpp314msr_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @e_inc_abs() #0 {
%1 = call i32 (...) @e_abs()
%2 = call i32 (...) @e_inc()
%3 = call i32 (...) @e_writeback()
ret void
}
declare i32 @e_abs(...) #1
declare i32 @e_inc(...) #1
declare i32 @e_writeback(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp314msr_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @e_inc_abs() #0 {
%1 = call i32 (...) @e_abs()
%2 = call i32 (...) @e_inc()
%3 = call i32 (...) @e_writeback()
ret void
}
declare i32 @e_abs(...) #1
declare i32 @e_inc(...) #1
declare i32 @e_writeback(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp15v27ki3.c'
source_filename = "/tmp/tmp15v27ki3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extension_match(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr (...) @options_get_extension()
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %24
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 46)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 0, ptr %2, align 4
br label %24
16: ; preds = %10
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %5, align 8
%21 = call i64 @strcmp(ptr noundef %19, ptr noundef %20)
%22 = icmp eq i64 %21, 0
%23 = zext i1 %22 to i32
store i32 %23, ptr %2, align 4
br label %24
24: ; preds = %16, %15, %9
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare ptr @options_get_extension(...) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp15v27ki3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extension_match(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr (...) @options_get_extension()
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %24
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 46)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 0, ptr %2, align 4
br label %24
16: ; preds = %10
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %5, align 8
%21 = call i64 @strcmp(ptr noundef %19, ptr noundef %20)
%22 = icmp eq i64 %21, 0
%23 = zext i1 %22 to i32
store i32 %23, ptr %2, align 4
br label %24
24: ; preds = %16, %15, %9
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare ptr @options_get_extension(...) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr8x3dskb.c'
source_filename = "/tmp/tmpr8x3dskb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @strtold_l(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call x86_fp80 @strtold(ptr noundef %7, ptr noundef %8)
ret x86_fp80 %9
}
declare x86_fp80 @strtold(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/tmpr8x3dskb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @strtold_l(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call x86_fp80 @strtold(ptr noundef %7, ptr noundef %8)
ret x86_fp80 %9
}
declare x86_fp80 @strtold(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/tmpttrpa9h5.c'
source_filename = "/tmp/tmpttrpa9h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Initialize() #0 {
store volatile i32 36, ptr inttoptr (i64 3760177284 to ptr), align 4
%1 = call i32 (...) @feed()
store volatile i32 1, ptr inttoptr (i64 3760177280 to ptr), align 4
%2 = call i32 (...) @feed()
br label %3
3: ; preds = %8, %0
%4 = load volatile i32, ptr inttoptr (i64 3760177288 to ptr), align 4
%5 = and i32 %4, 1024
%6 = icmp ne i32 %5, 0
%7 = xor i1 %6, true
br i1 %7, label %8, label %9
8: ; preds = %3
br label %3, !llvm.loop !6
9: ; preds = %3
store volatile i32 3, ptr inttoptr (i64 3760177280 to ptr), align 4
%10 = call i32 (...) @feed()
store volatile i32 3, ptr inttoptr (i64 3760177156 to ptr), align 4
store volatile i32 2, ptr inttoptr (i64 3760177152 to ptr), align 4
store volatile i32 1, ptr inttoptr (i64 3760177408 to ptr), align 4
ret void
}
declare i32 @feed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpttrpa9h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Initialize() #0 {
store volatile i32 36, ptr inttoptr (i64 3760177284 to ptr), align 4
%1 = call i32 (...) @feed()
store volatile i32 1, ptr inttoptr (i64 3760177280 to ptr), align 4
%2 = call i32 (...) @feed()
br label %3
3: ; preds = %3, %0
%4 = load volatile i32, ptr inttoptr (i64 3760177288 to ptr), align 4
%5 = and i32 %4, 1024
%6 = icmp ne i32 %5, 0
%7 = xor i1 %6, true
br i1 %7, label %3, label %8, !llvm.loop !6
8: ; preds = %3
store volatile i32 3, ptr inttoptr (i64 3760177280 to ptr), align 4
%9 = call i32 (...) @feed()
store volatile i32 3, ptr inttoptr (i64 3760177156 to ptr), align 4
store volatile i32 2, ptr inttoptr (i64 3760177152 to ptr), align 4
store volatile i32 1, ptr inttoptr (i64 3760177408 to ptr), align 4
ret void
}
declare i32 @feed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpezxx4sld.c'
source_filename = "/tmp/tmpezxx4sld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ret_nlink_t(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
ret i32 %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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpezxx4sld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ret_nlink_t(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
ret i32 %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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiynlekba.c'
source_filename = "/tmp/tmpiynlekba.c"
target datalayout = "e-m:e-p270: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.utsname = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"[-] uname())\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_kernel_version(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.utsname, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = call i32 @uname(ptr noundef %5)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = call i32 @perror(ptr noundef @.str)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %2
%15 = getelementptr inbounds %struct.utsname, ptr %5, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call i32 @strlen(i32 noundef %16)
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %17, %18
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = getelementptr inbounds %struct.utsname, ptr %5, i32 0, i32 0
%25 = load i32, ptr %24, align 4
%26 = call i32 @strcpy(ptr noundef %23, i32 noundef %25)
ret void
}
declare i32 @uname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @assert(i32 noundef) #1
declare i32 @strlen(i32 noundef) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiynlekba.c"
target datalayout = "e-m:e-p270: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.utsname = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"[-] uname())\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_kernel_version(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.utsname, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = call i32 @uname(ptr noundef %5)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = call i32 @perror(ptr noundef @.str)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %2
%15 = getelementptr inbounds %struct.utsname, ptr %5, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call i32 @strlen(i32 noundef %16)
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %17, %18
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = getelementptr inbounds %struct.utsname, ptr %5, i32 0, i32 0
%25 = load i32, ptr %24, align 4
%26 = call i32 @strcpy(ptr noundef %23, i32 noundef %25)
ret void
}
declare i32 @uname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @assert(i32 noundef) #1
declare i32 @strlen(i32 noundef) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpee80vstl.c'
source_filename = "/tmp/tmpee80vstl.c"
target datalayout = "e-m:e-p270: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.t1 = private unnamed_addr constant [4 x i8] c"\01\02\03\04", align 1
@__const.main.t2 = private unnamed_addr constant [4 x i8] c"\05\06\07\08", align 1
@__const.main.t3 = private unnamed_addr constant [256 x i8] c"\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\0A\0B\0C\0D", align 16
@__const.main.t4 = private unnamed_addr constant [4 x i8] c"\04\03\02\01", align 1
@__const.main.r1 = private unnamed_addr constant [6 x i8] c"\02\00\00\02\00\03", align 1
@__const.main.r2 = private unnamed_addr constant [8 x i8] c"\05\00\01\01\05\00\03\03", align 1
@__const.main.r3 = private unnamed_addr constant [8 x i8] c"\05\00\00\00\05\00\05\05", align 1
@__const.main.r4 = private unnamed_addr constant [4 x i8] c"\05\00\02\02", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [4 x i8], align 1
%4 = alloca [4 x i8], align 1
%5 = alloca [256 x i8], align 16
%6 = alloca [4 x i8], align 1
%7 = alloca [6 x i8], align 1
%8 = alloca [8 x i8], align 1
%9 = alloca [8 x i8], align 1
%10 = alloca [4 x i8], align 1
store i32 0, ptr %1, align 4
%11 = call ptr @rudp_new(i32 noundef 1, i32 noundef 5)
store ptr %11, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.t1, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.t2, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.t3, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.t4, i64 4, i1 false)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @rudp_send(ptr noundef %12, ptr noundef %13, i32 noundef 4)
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%17 = call i32 @rudp_send(ptr noundef %15, ptr noundef %16, i32 noundef 4)
%18 = load ptr, ptr %2, align 8
%19 = call i32 @rudp_update(ptr noundef %18, ptr noundef null, i32 noundef 0, i32 noundef 1)
%20 = call i32 @dump(i32 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call i32 @rudp_update(ptr noundef %21, ptr noundef null, i32 noundef 0, i32 noundef 1)
%23 = call i32 @dump(i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%26 = call i32 @rudp_send(ptr noundef %24, ptr noundef %25, i32 noundef 256)
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
%29 = call i32 @rudp_send(ptr noundef %27, ptr noundef %28, i32 noundef 4)
%30 = load ptr, ptr %2, align 8
%31 = call i32 @rudp_update(ptr noundef %30, ptr noundef null, i32 noundef 0, i32 noundef 1)
%32 = call i32 @dump(i32 noundef %31)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.r1, i64 6, i1 false)
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%35 = call i32 @rudp_update(ptr noundef %33, ptr noundef %34, i32 noundef 6, i32 noundef 1)
%36 = call i32 @dump(i32 noundef %35)
%37 = load ptr, ptr %2, align 8
%38 = call i32 @dump_recv(ptr noundef %37)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.r2, i64 8, i1 false)
%39 = load ptr, ptr %2, align 8
%40 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
%41 = call i32 @rudp_update(ptr noundef %39, ptr noundef %40, i32 noundef 8, i32 noundef 1)
%42 = call i32 @dump(i32 noundef %41)
%43 = load ptr, ptr %2, align 8
%44 = call i32 @dump_recv(ptr noundef %43)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.r3, i64 8, i1 false)
%45 = load ptr, ptr %2, align 8
%46 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
%47 = call i32 @rudp_update(ptr noundef %45, ptr noundef %46, i32 noundef 8, i32 noundef 0)
%48 = call i32 @dump(i32 noundef %47)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.r4, i64 4, i1 false)
%49 = load ptr, ptr %2, align 8
%50 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%51 = call i32 @rudp_update(ptr noundef %49, ptr noundef %50, i32 noundef 4, i32 noundef 1)
%52 = call i32 @dump(i32 noundef %51)
%53 = load ptr, ptr %2, align 8
%54 = call i32 @dump_recv(ptr noundef %53)
%55 = load ptr, ptr %2, align 8
%56 = call i32 @rudp_delete(ptr noundef %55)
ret i32 0
}
declare ptr @rudp_new(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @rudp_send(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @dump(i32 noundef) #1
declare i32 @rudp_update(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @dump_recv(ptr noundef) #1
declare i32 @rudp_delete(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpee80vstl.c"
target datalayout = "e-m:e-p270: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.t1 = private unnamed_addr constant [4 x i8] c"\01\02\03\04", align 1
@__const.main.t2 = private unnamed_addr constant [4 x i8] c"\05\06\07\08", align 1
@__const.main.t3 = private unnamed_addr constant [256 x i8] c"\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\01\01\01\03\02\01\01\01\0A\0B\0C\0D", align 16
@__const.main.t4 = private unnamed_addr constant [4 x i8] c"\04\03\02\01", align 1
@__const.main.r1 = private unnamed_addr constant [6 x i8] c"\02\00\00\02\00\03", align 1
@__const.main.r2 = private unnamed_addr constant [8 x i8] c"\05\00\01\01\05\00\03\03", align 1
@__const.main.r3 = private unnamed_addr constant [8 x i8] c"\05\00\00\00\05\00\05\05", align 1
@__const.main.r4 = private unnamed_addr constant [4 x i8] c"\05\00\02\02", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [4 x i8], align 1
%4 = alloca [4 x i8], align 1
%5 = alloca [256 x i8], align 16
%6 = alloca [4 x i8], align 1
%7 = alloca [6 x i8], align 1
%8 = alloca [8 x i8], align 1
%9 = alloca [8 x i8], align 1
%10 = alloca [4 x i8], align 1
store i32 0, ptr %1, align 4
%11 = call ptr @rudp_new(i32 noundef 1, i32 noundef 5)
store ptr %11, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.t1, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.t2, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.t3, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.t4, i64 4, i1 false)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @rudp_send(ptr noundef %12, ptr noundef %13, i32 noundef 4)
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%17 = call i32 @rudp_send(ptr noundef %15, ptr noundef %16, i32 noundef 4)
%18 = load ptr, ptr %2, align 8
%19 = call i32 @rudp_update(ptr noundef %18, ptr noundef null, i32 noundef 0, i32 noundef 1)
%20 = call i32 @dump(i32 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call i32 @rudp_update(ptr noundef %21, ptr noundef null, i32 noundef 0, i32 noundef 1)
%23 = call i32 @dump(i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%26 = call i32 @rudp_send(ptr noundef %24, ptr noundef %25, i32 noundef 256)
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
%29 = call i32 @rudp_send(ptr noundef %27, ptr noundef %28, i32 noundef 4)
%30 = load ptr, ptr %2, align 8
%31 = call i32 @rudp_update(ptr noundef %30, ptr noundef null, i32 noundef 0, i32 noundef 1)
%32 = call i32 @dump(i32 noundef %31)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.r1, i64 6, i1 false)
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%35 = call i32 @rudp_update(ptr noundef %33, ptr noundef %34, i32 noundef 6, i32 noundef 1)
%36 = call i32 @dump(i32 noundef %35)
%37 = load ptr, ptr %2, align 8
%38 = call i32 @dump_recv(ptr noundef %37)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.r2, i64 8, i1 false)
%39 = load ptr, ptr %2, align 8
%40 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
%41 = call i32 @rudp_update(ptr noundef %39, ptr noundef %40, i32 noundef 8, i32 noundef 1)
%42 = call i32 @dump(i32 noundef %41)
%43 = load ptr, ptr %2, align 8
%44 = call i32 @dump_recv(ptr noundef %43)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.r3, i64 8, i1 false)
%45 = load ptr, ptr %2, align 8
%46 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
%47 = call i32 @rudp_update(ptr noundef %45, ptr noundef %46, i32 noundef 8, i32 noundef 0)
%48 = call i32 @dump(i32 noundef %47)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.r4, i64 4, i1 false)
%49 = load ptr, ptr %2, align 8
%50 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%51 = call i32 @rudp_update(ptr noundef %49, ptr noundef %50, i32 noundef 4, i32 noundef 1)
%52 = call i32 @dump(i32 noundef %51)
%53 = load ptr, ptr %2, align 8
%54 = call i32 @dump_recv(ptr noundef %53)
%55 = load ptr, ptr %2, align 8
%56 = call i32 @rudp_delete(ptr noundef %55)
ret i32 0
}
declare ptr @rudp_new(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @rudp_send(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @dump(i32 noundef) #1
declare i32 @rudp_update(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @dump_recv(ptr noundef) #1
declare i32 @rudp_delete(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfu6xmt1s.c'
source_filename = "/tmp/tmpfu6xmt1s.c"
target datalayout = "e-m:e-p270: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/tmpfu6xmt1s.c"
target datalayout = "e-m:e-p270: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/tmpljb_g_rl.c'
source_filename = "/tmp/tmpljb_g_rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Cannot open /dev/mem.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@_SC_PAGESIZE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [3 x i32], align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = 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
%17 = load i32, ptr @O_RDWR, align 4
%18 = call i32 @open(ptr noundef @.str, i32 noundef %17)
store i32 %18, ptr %6, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %2
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1)
%23 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %23, ptr %3, align 4
br label %156
24: ; preds = %2
%25 = load i32, ptr @_SC_PAGESIZE, align 4
%26 = call i32 @sysconf(i32 noundef %25)
%27 = load i32, ptr @PROT_READ, align 4
%28 = load i32, ptr @PROT_WRITE, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @MAP_SHARED, align 4
%31 = load i32, ptr %6, align 4
%32 = call ptr @mmap(ptr noundef null, i32 noundef %26, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef 1073745920)
store ptr %32, ptr %14, align 8
%33 = load i32, ptr @_SC_PAGESIZE, align 4
%34 = call i32 @sysconf(i32 noundef %33)
%35 = mul nsw i32 16, %34
%36 = load i32, ptr @PROT_READ, align 4
%37 = load i32, ptr @PROT_WRITE, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr @MAP_SHARED, align 4
%40 = load i32, ptr %6, align 4
%41 = call ptr @mmap(ptr noundef null, i32 noundef %35, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef 1073807360)
store ptr %41, ptr %15, align 8
%42 = load i32, ptr @_SC_PAGESIZE, align 4
%43 = call i32 @sysconf(i32 noundef %42)
%44 = mul nsw i32 16, %43
%45 = load i32, ptr @PROT_READ, align 4
%46 = load i32, ptr @PROT_WRITE, align 4
%47 = or i32 %45, %46
%48 = load i32, ptr @MAP_SHARED, align 4
%49 = load i32, ptr %6, align 4
%50 = call ptr @mmap(ptr noundef null, i32 noundef %44, i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef 1073938432)
store ptr %50, ptr %16, align 8
%51 = load ptr, ptr %14, align 8
%52 = getelementptr i8, ptr %51, i64 0
%53 = load i32, ptr %52, align 4
%54 = and i32 %53, -2
store i32 %54, ptr %52, align 4
%55 = call double @logf(double noundef 2.000000e+00)
%56 = fneg double %55
%57 = fdiv double %56, 1.250000e+02
%58 = fdiv double %57, 1.000000e+02
%59 = call double @expf(double noundef %58)
%60 = call double @llvm.fmuladd.f64(double %59, double 6.553600e+04, double 5.000000e-01)
%61 = call i64 @floor(double noundef %60)
%62 = trunc i64 %61 to i32
store i32 %62, ptr %10, align 4
%63 = call double @logf(double noundef 2.000000e+00)
%64 = fneg double %63
%65 = fdiv double %64, 1.250000e+02
%66 = fdiv double %65, 1.000000e+02
%67 = fmul double %66, 1.000000e+03
%68 = call double @expf(double noundef %67)
%69 = call double @llvm.fmuladd.f64(double %68, double 6.553600e+04, double 5.000000e-01)
%70 = call i64 @floor(double noundef %69)
%71 = trunc i64 %70 to i32
store i32 %71, ptr %11, align 4
store i32 0, ptr %9, align 4
%72 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
store i32 2096640, ptr %72, align 4
%73 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
store i32 0, ptr %73, align 4
%74 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
store i32 0, ptr %74, align 4
br label %75
75: ; preds = %81, %24
%76 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
%77 = load i32, ptr %76, align 4
%78 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
%79 = load i32, ptr %78, align 4
%80 = icmp sle i32 %77, %79
br i1 %80, label %81, label %102
81: ; preds = %75
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %9, align 4
%84 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
%85 = load i32, ptr %84, align 4
%86 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
store i32 %85, ptr %86, align 4
%87 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
%88 = load i32, ptr %87, align 4
%89 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
%90 = load i32, ptr %89, align 4
%91 = load i32, ptr %11, align 4
%92 = mul nsw i32 %90, %91
%93 = sdiv i32 %92, 65536
%94 = add nsw i32 %88, %93
%95 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
store i32 %94, ptr %95, align 4
%96 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
%97 = load i32, ptr %96, align 4
%98 = load i32, ptr %10, align 4
%99 = mul nsw i32 %97, %98
%100 = sdiv i32 %99, 65536
%101 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
store i32 %100, ptr %101, align 4
br label %75, !llvm.loop !6
102: ; preds = %75
%103 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
%104 = load i32, ptr %103, align 4
%105 = ashr i32 %104, 9
%106 = sdiv i32 268365825, %105
store i32 %106, ptr %12, align 4
store i32 0, ptr %7, align 4
br label %107
107: ; preds = %115, %102
%108 = load i32, ptr %7, align 4
%109 = icmp slt i32 %108, 1024
br i1 %109, label %110, label %118
110: ; preds = %107
%111 = load ptr, ptr %16, align 8
%112 = load i32, ptr %7, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, ptr %111, i64 %113
store volatile i32 0, ptr %114, align 4
br label %115
115: ; preds = %110
%116 = load i32, ptr %7, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %7, align 4
br label %107, !llvm.loop !8
118: ; preds = %107
%119 = load ptr, ptr %16, align 8
%120 = getelementptr inbounds i32, ptr %119, i64 8
store volatile i32 4095, ptr %120, align 4
%121 = load ptr, ptr %14, align 8
%122 = getelementptr i8, ptr %121, i64 4
store i32 1024, ptr %122, align 4
%123 = load i32, ptr %12, align 4
%124 = load ptr, ptr %14, align 8
%125 = getelementptr i8, ptr %124, i64 6
store i32 %123, ptr %125, align 4
%126 = load i32, ptr %10, align 4
%127 = load ptr, ptr %14, align 8
%128 = getelementptr i8, ptr %127, i64 8
store i32 %126, ptr %128, align 4
%129 = load i32, ptr %11, align 4
%130 = load ptr, ptr %14, align 8
%131 = getelementptr i8, ptr %130, i64 10
store i32 %129, ptr %131, align 4
%132 = load ptr, ptr %14, align 8
%133 = getelementptr i8, ptr %132, i64 12
store i32 -8192, ptr %133, align 4
%134 = load ptr, ptr %14, align 8
%135 = getelementptr i8, ptr %134, i64 14
store i32 8191, ptr %135, align 4
%136 = load ptr, ptr %14, align 8
%137 = getelementptr i8, ptr %136, i64 0
%138 = load i32, ptr %137, align 4
%139 = or i32 %138, 1
store i32 %139, ptr %137, align 4
%140 = call i32 @sleep(i32 noundef 1)
store i32 0, ptr %7, align 4
br label %141
141: ; preds = %151, %118
%142 = load i32, ptr %7, align 4
%143 = load i32, ptr %9, align 4
%144 = add nsw i32 %143, 10
%145 = icmp slt i32 %142, %144
br i1 %145, label %146, label %154
146: ; preds = %141
%147 = load ptr, ptr %15, align 8
%148 = load volatile i32, ptr %147, align 4
store i32 %148, ptr %8, align 4
%149 = load i32, ptr %8, align 4
%150 = call i32 @printf(ptr noundef @.str.2, i32 noundef %149)
br label %151
151: ; preds = %146
%152 = load i32, ptr %7, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %7, align 4
br label %141, !llvm.loop !9
154: ; preds = %141
%155 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %155, ptr %3, align 4
br label %156
156: ; preds = %154, %20
%157 = load i32, ptr %3, align 4
ret i32 %157
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sysconf(i32 noundef) #1
declare i64 @floor(double noundef) #1
declare double @expf(double noundef) #1
declare double @logf(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @sleep(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpljb_g_rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Cannot open /dev/mem.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@_SC_PAGESIZE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [3 x i32], align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = 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
%17 = load i32, ptr @O_RDWR, align 4
%18 = call i32 @open(ptr noundef @.str, i32 noundef %17)
store i32 %18, ptr %6, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %2
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1)
%23 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %23, ptr %3, align 4
br label %162
24: ; preds = %2
%25 = load i32, ptr @_SC_PAGESIZE, align 4
%26 = call i32 @sysconf(i32 noundef %25)
%27 = load i32, ptr @PROT_READ, align 4
%28 = load i32, ptr @PROT_WRITE, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @MAP_SHARED, align 4
%31 = load i32, ptr %6, align 4
%32 = call ptr @mmap(ptr noundef null, i32 noundef %26, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef 1073745920)
store ptr %32, ptr %14, align 8
%33 = load i32, ptr @_SC_PAGESIZE, align 4
%34 = call i32 @sysconf(i32 noundef %33)
%35 = mul nsw i32 16, %34
%36 = load i32, ptr @PROT_READ, align 4
%37 = load i32, ptr @PROT_WRITE, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr @MAP_SHARED, align 4
%40 = load i32, ptr %6, align 4
%41 = call ptr @mmap(ptr noundef null, i32 noundef %35, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef 1073807360)
store ptr %41, ptr %15, align 8
%42 = load i32, ptr @_SC_PAGESIZE, align 4
%43 = call i32 @sysconf(i32 noundef %42)
%44 = mul nsw i32 16, %43
%45 = load i32, ptr @PROT_READ, align 4
%46 = load i32, ptr @PROT_WRITE, align 4
%47 = or i32 %45, %46
%48 = load i32, ptr @MAP_SHARED, align 4
%49 = load i32, ptr %6, align 4
%50 = call ptr @mmap(ptr noundef null, i32 noundef %44, i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef 1073938432)
store ptr %50, ptr %16, align 8
%51 = load ptr, ptr %14, align 8
%52 = getelementptr i8, ptr %51, i64 0
%53 = load i32, ptr %52, align 4
%54 = and i32 %53, -2
store i32 %54, ptr %52, align 4
%55 = call double @logf(double noundef 2.000000e+00)
%56 = fneg double %55
%57 = fdiv double %56, 1.250000e+02
%58 = fdiv double %57, 1.000000e+02
%59 = call double @expf(double noundef %58)
%60 = call double @llvm.fmuladd.f64(double %59, double 6.553600e+04, double 5.000000e-01)
%61 = call i64 @floor(double noundef %60)
%62 = trunc i64 %61 to i32
store i32 %62, ptr %10, align 4
%63 = call double @logf(double noundef 2.000000e+00)
%64 = fneg double %63
%65 = fdiv double %64, 1.250000e+02
%66 = fdiv double %65, 1.000000e+02
%67 = fmul double %66, 1.000000e+03
%68 = call double @expf(double noundef %67)
%69 = call double @llvm.fmuladd.f64(double %68, double 6.553600e+04, double 5.000000e-01)
%70 = call i64 @floor(double noundef %69)
%71 = trunc i64 %70 to i32
store i32 %71, ptr %11, align 4
store i32 0, ptr %9, align 4
%72 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
store i32 2096640, ptr %72, align 4
%73 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
store i32 0, ptr %73, align 4
%74 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
store i32 0, ptr %74, align 4
%75 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
%76 = load i32, ptr %75, align 4
%77 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
%78 = load i32, ptr %77, align 4
%79 = icmp sle i32 %76, %78
br i1 %79, label %.lr.ph, label %104
.lr.ph: ; preds = %24
br label %80
80: ; preds = %.lr.ph, %80
%81 = load i32, ptr %9, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %9, align 4
%83 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
%84 = load i32, ptr %83, align 4
%85 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
store i32 %84, ptr %85, align 4
%86 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
%87 = load i32, ptr %86, align 4
%88 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
%89 = load i32, ptr %88, align 4
%90 = load i32, ptr %11, align 4
%91 = mul nsw i32 %89, %90
%92 = sdiv i32 %91, 65536
%93 = add nsw i32 %87, %92
%94 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 1
store i32 %93, ptr %94, align 4
%95 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
%96 = load i32, ptr %95, align 4
%97 = load i32, ptr %10, align 4
%98 = mul nsw i32 %96, %97
%99 = sdiv i32 %98, 65536
%100 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 0
store i32 %99, ptr %100, align 4
%101 = load i32, ptr %75, align 4
%102 = load i32, ptr %77, align 4
%103 = icmp sle i32 %101, %102
br i1 %103, label %80, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %104
104: ; preds = %._crit_edge, %24
%105 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 2
%106 = load i32, ptr %105, align 4
%107 = ashr i32 %106, 9
%108 = sdiv i32 268365825, %107
store i32 %108, ptr %12, align 4
store i32 0, ptr %7, align 4
%109 = load i32, ptr %7, align 4
%110 = icmp slt i32 %109, 1024
br i1 %110, label %.lr.ph2, label %121
.lr.ph2: ; preds = %104
br label %111
111: ; preds = %.lr.ph2, %116
%112 = load ptr, ptr %16, align 8
%113 = load i32, ptr %7, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, ptr %112, i64 %114
store volatile i32 0, ptr %115, align 4
br label %116
116: ; preds = %111
%117 = load i32, ptr %7, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %7, align 4
%119 = load i32, ptr %7, align 4
%120 = icmp slt i32 %119, 1024
br i1 %120, label %111, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %116
br label %121
121: ; preds = %._crit_edge3, %104
%122 = load ptr, ptr %16, align 8
%123 = getelementptr inbounds i32, ptr %122, i64 8
store volatile i32 4095, ptr %123, align 4
%124 = load ptr, ptr %14, align 8
%125 = getelementptr i8, ptr %124, i64 4
store i32 1024, ptr %125, align 4
%126 = load i32, ptr %12, align 4
%127 = load ptr, ptr %14, align 8
%128 = getelementptr i8, ptr %127, i64 6
store i32 %126, ptr %128, align 4
%129 = load i32, ptr %10, align 4
%130 = load ptr, ptr %14, align 8
%131 = getelementptr i8, ptr %130, i64 8
store i32 %129, ptr %131, align 4
%132 = load i32, ptr %11, align 4
%133 = load ptr, ptr %14, align 8
%134 = getelementptr i8, ptr %133, i64 10
store i32 %132, ptr %134, align 4
%135 = load ptr, ptr %14, align 8
%136 = getelementptr i8, ptr %135, i64 12
store i32 -8192, ptr %136, align 4
%137 = load ptr, ptr %14, align 8
%138 = getelementptr i8, ptr %137, i64 14
store i32 8191, ptr %138, align 4
%139 = load ptr, ptr %14, align 8
%140 = getelementptr i8, ptr %139, i64 0
%141 = load i32, ptr %140, align 4
%142 = or i32 %141, 1
store i32 %142, ptr %140, align 4
%143 = call i32 @sleep(i32 noundef 1)
store i32 0, ptr %7, align 4
%144 = load i32, ptr %7, align 4
%145 = load i32, ptr %9, align 4
%146 = add nsw i32 %145, 10
%147 = icmp slt i32 %144, %146
br i1 %147, label %.lr.ph5, label %160
.lr.ph5: ; preds = %121
br label %148
148: ; preds = %.lr.ph5, %153
%149 = load ptr, ptr %15, align 8
%150 = load volatile i32, ptr %149, align 4
store i32 %150, ptr %8, align 4
%151 = load i32, ptr %8, align 4
%152 = call i32 @printf(ptr noundef @.str.2, i32 noundef %151)
br label %153
153: ; preds = %148
%154 = load i32, ptr %7, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %7, align 4
%156 = load i32, ptr %7, align 4
%157 = load i32, ptr %9, align 4
%158 = add nsw i32 %157, 10
%159 = icmp slt i32 %156, %158
br i1 %159, label %148, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %153
br label %160
160: ; preds = %._crit_edge6, %121
%161 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %161, ptr %3, align 4
br label %162
162: ; preds = %160, %20
%163 = load i32, ptr %3, align 4
ret i32 %163
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sysconf(i32 noundef) #1
declare i64 @floor(double noundef) #1
declare double @expf(double noundef) #1
declare double @logf(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @sleep(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpi32wu8_e.c'
source_filename = "/tmp/tmpi32wu8_e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c":%s:E::\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"::/bin/bash:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @create_extension_pattern(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = call i32 (...) @rand()
%9 = srem i32 %8, 129
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %10, ptr noundef @.str, ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds i8, ptr %13, i64 %14
store ptr %15, ptr %3, align 8
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %41, %2
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %44
20: ; preds = %16
%21 = call i32 (...) @rand()
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %33, label %24
24: ; preds = %20
%25 = load i32, ptr %7, align 4
%26 = icmp eq i32 %25, 58
br i1 %26, label %33, label %27
27: ; preds = %24
%28 = load i32, ptr %7, align 4
%29 = icmp eq i32 %28, 10
br i1 %29, label %33, label %30
30: ; preds = %27
%31 = load i32, ptr %7, align 4
%32 = icmp eq i32 %31, 47
br i1 %32, label %33, label %34
33: ; preds = %30, %27, %24, %20
store i32 49, ptr %7, align 4
br label %34
34: ; preds = %33, %30
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %7, align 4
%37 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %35, ptr noundef @.str.1, i32 noundef %36)
%38 = load ptr, ptr %3, align 8
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds i8, ptr %38, i64 %39
store ptr %40, ptr %3, align 8
br label %41
41: ; preds = %34
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %5, align 4
br label %16, !llvm.loop !6
44: ; preds = %16
%45 = load ptr, ptr %3, align 8
%46 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %45, ptr noundef @.str.2)
ret void
}
declare i32 @rand(...) #1
declare i32 @sprintf(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/tmpi32wu8_e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c":%s:E::\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"::/bin/bash:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @create_extension_pattern(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = call i32 (...) @rand()
%9 = srem i32 %8, 129
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %10, ptr noundef @.str, ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds i8, ptr %13, i64 %14
store ptr %15, ptr %3, align 8
store i32 0, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %46
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %40
%20 = call i32 (...) @rand()
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %32, label %23
23: ; preds = %19
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %24, 58
br i1 %25, label %32, label %26
26: ; preds = %23
%27 = load i32, ptr %7, align 4
%28 = icmp eq i32 %27, 10
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load i32, ptr %7, align 4
%31 = icmp eq i32 %30, 47
br i1 %31, label %32, label %33
32: ; preds = %29, %26, %23, %19
store i32 49, ptr %7, align 4
br label %33
33: ; preds = %32, %29
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %7, align 4
%36 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %34, ptr noundef @.str.1, i32 noundef %35)
%37 = load ptr, ptr %3, align 8
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds i8, ptr %37, i64 %38
store ptr %39, ptr %3, align 8
br label %40
40: ; preds = %33
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %2
%47 = load ptr, ptr %3, align 8
%48 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %47, ptr noundef @.str.2)
ret void
}
declare i32 @rand(...) #1
declare i32 @sprintf(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/tmpu4hwnqrh.c'
source_filename = "/tmp/tmpu4hwnqrh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_strlen(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 @m_len(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %20
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = sub nsw i32 %10, 1
%12 = call i64 @mls(i32 noundef %9, i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %8
%18 = load i32, ptr %3, align 4
%19 = sub nsw i32 %18, 1
br label %22
20: ; preds = %8, %1
%21 = load i32, ptr %3, align 4
br label %22
22: ; preds = %20, %17
%23 = phi i32 [ %19, %17 ], [ %21, %20 ]
ret i32 %23
}
declare i32 @m_len(i32 noundef) #1
declare i64 @mls(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/tmpu4hwnqrh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_strlen(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 @m_len(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %20
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = sub nsw i32 %10, 1
%12 = call i64 @mls(i32 noundef %9, i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %8
%18 = load i32, ptr %3, align 4
%19 = sub nsw i32 %18, 1
br label %22
20: ; preds = %8, %1
%21 = load i32, ptr %3, align 4
br label %22
22: ; preds = %20, %17
%23 = phi i32 [ %19, %17 ], [ %21, %20 ]
ret i32 %23
}
declare i32 @m_len(i32 noundef) #1
declare i64 @mls(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/tmp9zzuzw8i.c'
source_filename = "/tmp/tmp9zzuzw8i.c"
target datalayout = "e-m:e-p270: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 void @macedCommand(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [521 x i8], align 16
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 521, i1 false)
%12 = load ptr, ptr %10, align 8
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds [521 x i8], ptr %11, i64 0, i64 0
%16 = call i32 @modifyCdeForMac(ptr noundef %14, ptr noundef %15)
%17 = getelementptr inbounds [521 x i8], ptr %11, i64 0, i64 0
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %9, align 8
%21 = call i32 @computeRetailMac(ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
%22 = load ptr, ptr %10, align 8
%23 = getelementptr inbounds [521 x i8], ptr %11, i64 0, i64 0
%24 = call i32 @strcat(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %10, align 8
%26 = load ptr, ptr %9, align 8
%27 = call i32 @strcat(ptr noundef %25, ptr noundef %26)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @modifyCdeForMac(ptr noundef, ptr noundef) #2
declare i32 @computeRetailMac(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strcat(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9zzuzw8i.c"
target datalayout = "e-m:e-p270: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 void @macedCommand(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [521 x i8], align 16
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 521, i1 false)
%12 = load ptr, ptr %10, align 8
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds [521 x i8], ptr %11, i64 0, i64 0
%16 = call i32 @modifyCdeForMac(ptr noundef %14, ptr noundef %15)
%17 = getelementptr inbounds [521 x i8], ptr %11, i64 0, i64 0
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %9, align 8
%21 = call i32 @computeRetailMac(ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
%22 = load ptr, ptr %10, align 8
%23 = getelementptr inbounds [521 x i8], ptr %11, i64 0, i64 0
%24 = call i32 @strcat(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %10, align 8
%26 = load ptr, ptr %9, align 8
%27 = call i32 @strcat(ptr noundef %25, ptr noundef %26)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @modifyCdeForMac(ptr noundef, ptr noundef) #2
declare i32 @computeRetailMac(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strcat(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc734ifnz.c'
source_filename = "/tmp/tmpc734ifnz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 @expand(ptr noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
ret i32 0
}
declare i32 @expand(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpc734ifnz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @expand(ptr noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @expand(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdhvo0xdb.c'
source_filename = "/tmp/tmpdhvo0xdb.c"
target datalayout = "e-m:e-p270: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/tmpdhvo0xdb.c"
target datalayout = "e-m:e-p270: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/tmpw2ew7quw.c'
source_filename = "/tmp/tmpw2ew7quw.c"
target datalayout = "e-m:e-p270: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_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @seek_to_next(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 i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = add nsw i32 %9, 3
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 4
%13 = load i32, ptr %12, align 4
%14 = shl i32 %13, 8
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 5
%17 = load i32, ptr %16, align 4
%18 = or i32 %14, %17
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %18, %19
store i32 %20, ptr %8, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr @SEEK_CUR, align 4
%24 = call i64 @lseek(i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %3
store i32 0, ptr %4, align 4
br label %28
27: ; preds = %3
store i32 1, ptr %4, align 4
br label %28
28: ; preds = %27, %26
%29 = load i32, ptr %4, align 4
ret i32 %29
}
declare i64 @lseek(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/tmpw2ew7quw.c"
target datalayout = "e-m:e-p270: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_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @seek_to_next(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 i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = add nsw i32 %9, 3
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 4
%13 = load i32, ptr %12, align 4
%14 = shl i32 %13, 8
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 5
%17 = load i32, ptr %16, align 4
%18 = or i32 %14, %17
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %18, %19
store i32 %20, ptr %8, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr @SEEK_CUR, align 4
%24 = call i64 @lseek(i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %3
store i32 0, ptr %4, align 4
br label %28
27: ; preds = %3
store i32 1, ptr %4, align 4
br label %28
28: ; preds = %27, %26
%29 = load i32, ptr %4, align 4
ret i32 %29
}
declare i64 @lseek(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/tmpmez_qkcz.c'
source_filename = "/tmp/tmpmez_qkcz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4096 x i8], align 16
%3 = alloca [100 x i32], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %14
14: ; preds = %0, %96
store i32 0, ptr %9, align 4
store i32 -1, ptr %10, align 4
%15 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%16 = load i32, ptr @stdin, align 4
%17 = call ptr @fgets(ptr noundef %15, i32 noundef 4096, i32 noundef %16)
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %20
19: ; preds = %14
br label %99
20: ; preds = %14
%21 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%22 = call i32 @sscanf(ptr noundef %21, ptr noundef @.str, ptr noundef %7, ptr noundef %8)
%23 = load i32, ptr %7, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %29, label %25
25: ; preds = %20
%26 = load i32, ptr %8, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %25
br label %99
29: ; preds = %25, %20
%30 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%31 = call i32 @memset(ptr noundef %30, i32 noundef 0, i32 noundef 400)
store i32 0, ptr %6, align 4
br label %32
32: ; preds = %64, %29
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %67
36: ; preds = %32
%37 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%38 = load i32, ptr @stdin, align 4
%39 = call ptr @fgets(ptr noundef %37, i32 noundef 4096, i32 noundef %38)
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %42
41: ; preds = %36
br label %67
42: ; preds = %36
%43 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%44 = call ptr @strtok_r(ptr noundef %43, ptr noundef @.str.1, ptr noundef %5)
store ptr %44, ptr %4, align 8
%45 = load ptr, ptr %4, align 8
%46 = call i32 @atoi(ptr noundef %45)
store i32 %46, ptr %12, align 4
store i32 0, ptr %11, align 4
br label %47
47: ; preds = %60, %42
%48 = load i32, ptr %11, align 4
%49 = load i32, ptr %12, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %63
51: ; preds = %47
%52 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str.1, ptr noundef %5)
store ptr %52, ptr %4, align 8
%53 = load ptr, ptr %4, align 8
%54 = call i32 @atoi(ptr noundef %53)
store i32 %54, ptr %13, align 4
%55 = load i32, ptr %13, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %56
%58 = load i32, ptr %57, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %57, align 4
br label %60
60: ; preds = %51
%61 = load i32, ptr %11, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %11, align 4
br label %47, !llvm.loop !6
63: ; preds = %47
br label %64
64: ; preds = %63
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
br label %32, !llvm.loop !8
67: ; preds = %41, %32
store i32 0, ptr %6, align 4
br label %68
68: ; preds = %93, %67
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = icmp ult i64 %70, 100
br i1 %71, label %72, label %96
72: ; preds = %68
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp sge i32 %76, %77
br i1 %78, label %79, label %92
79: ; preds = %72
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %81
%83 = load i32, ptr %82, align 4
%84 = load i32, ptr %10, align 4
%85 = icmp sgt i32 %83, %84
br i1 %85, label %86, label %92
86: ; preds = %79
%87 = load i32, ptr %6, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
store i32 %90, ptr %10, align 4
%91 = load i32, ptr %6, align 4
store i32 %91, ptr %9, align 4
br label %92
92: ; preds = %86, %79, %72
br label %93
93: ; preds = %92
%94 = load i32, ptr %6, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %6, align 4
br label %68, !llvm.loop !9
96: ; preds = %68
%97 = load i32, ptr %9, align 4
%98 = call i32 @printf(ptr noundef @.str.2, i32 noundef %97)
br label %14
99: ; preds = %28, %19
ret i32 0
}
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmez_qkcz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4096 x i8], align 16
%3 = alloca [100 x i32], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %9, align 4
store i32 -1, ptr %10, align 4
%14 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%15 = load i32, ptr @stdin, align 4
%16 = call ptr @fgets(ptr noundef %14, i32 noundef 4096, i32 noundef %15)
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %.lr.ph7
.lr.ph7: ; preds = %0
br label %19
._crit_edge8: ; preds = %101
br label %18
18: ; preds = %._crit_edge8, %0
br label %107
19: ; preds = %.lr.ph7, %101
%20 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%21 = call i32 @sscanf(ptr noundef %20, ptr noundef @.str, ptr noundef %7, ptr noundef %8)
%22 = load i32, ptr %7, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %19
%25 = load i32, ptr %8, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %24
br label %107
28: ; preds = %24, %19
%29 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%30 = call i32 @memset(ptr noundef %29, i32 noundef 0, i32 noundef 400)
store i32 0, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %28
br label %34
34: ; preds = %.lr.ph2, %64
%35 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%36 = load i32, ptr @stdin, align 4
%37 = call ptr @fgets(ptr noundef %35, i32 noundef 4096, i32 noundef %36)
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %40
39: ; preds = %34
br label %70
40: ; preds = %34
%41 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%42 = call ptr @strtok_r(ptr noundef %41, ptr noundef @.str.1, ptr noundef %5)
store ptr %42, ptr %4, align 8
%43 = load ptr, ptr %4, align 8
%44 = call i32 @atoi(ptr noundef %43)
store i32 %44, ptr %12, align 4
store i32 0, ptr %11, align 4
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %12, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %63
.lr.ph: ; preds = %40
br label %48
48: ; preds = %.lr.ph, %57
%49 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str.1, ptr noundef %5)
store ptr %49, ptr %4, align 8
%50 = load ptr, ptr %4, align 8
%51 = call i32 @atoi(ptr noundef %50)
store i32 %51, ptr %13, align 4
%52 = load i32, ptr %13, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %54, align 4
br label %57
57: ; preds = %48
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %11, align 4
%60 = load i32, ptr %11, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %48, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %40
br label %64
64: ; preds = %63
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
%67 = load i32, ptr %6, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %34, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %64
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %28
br label %70
70: ; preds = %.loopexit, %39
store i32 0, ptr %6, align 4
%71 = load i32, ptr %6, align 4
%72 = sext i32 %71 to i64
%73 = icmp ult i64 %72, 100
br i1 %73, label %.lr.ph4, label %101
.lr.ph4: ; preds = %70
br label %74
74: ; preds = %.lr.ph4, %95
%75 = load i32, ptr %6, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %76
%78 = load i32, ptr %77, align 4
%79 = load i32, ptr %8, align 4
%80 = icmp sge i32 %78, %79
br i1 %80, label %81, label %94
81: ; preds = %74
%82 = load i32, ptr %6, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %83
%85 = load i32, ptr %84, align 4
%86 = load i32, ptr %10, align 4
%87 = icmp sgt i32 %85, %86
br i1 %87, label %88, label %94
88: ; preds = %81
%89 = load i32, ptr %6, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %90
%92 = load i32, ptr %91, align 4
store i32 %92, ptr %10, align 4
%93 = load i32, ptr %6, align 4
store i32 %93, ptr %9, align 4
br label %94
94: ; preds = %88, %81, %74
br label %95
95: ; preds = %94
%96 = load i32, ptr %6, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %6, align 4
%98 = load i32, ptr %6, align 4
%99 = sext i32 %98 to i64
%100 = icmp ult i64 %99, 100
br i1 %100, label %74, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %95
br label %101
101: ; preds = %._crit_edge5, %70
%102 = load i32, ptr %9, align 4
%103 = call i32 @printf(ptr noundef @.str.2, i32 noundef %102)
store i32 0, ptr %9, align 4
store i32 -1, ptr %10, align 4
%104 = load i32, ptr @stdin, align 4
%105 = call ptr @fgets(ptr noundef %14, i32 noundef 4096, i32 noundef %104)
%106 = icmp eq ptr %105, null
br i1 %106, label %._crit_edge8, label %19
107: ; preds = %27, %18
ret i32 0
}
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpfjez2x5m.c'
source_filename = "/tmp/tmpfjez2x5m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dziwneFor(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %10, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %5, align 4
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds i32, ptr %11, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfjez2x5m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dziwneFor(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %5, align 4
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds i32, ptr %10, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %20
20: ; preds = %._crit_edge, %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe870o4de.c'
source_filename = "/tmp/tmpe870o4de.c"
target datalayout = "e-m:e-p270: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/tmpe870o4de.c"
target datalayout = "e-m:e-p270: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/tmpnazvplmi.c'
source_filename = "/tmp/tmpnazvplmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"hexdump: can't read %s.\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"hexdump: line too long.\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @addfile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [2049 x i8], align 16
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %2, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %1
br label %16
16: ; preds = %68, %67, %38, %15
%17 = getelementptr inbounds [2049 x i8], ptr %6, i64 0, i64 0
%18 = load ptr, ptr %4, align 8
%19 = call i64 @fgets(ptr noundef %17, i32 noundef 2049, ptr noundef %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %71
21: ; preds = %16
%22 = getelementptr inbounds [2049 x i8], ptr %6, i64 0, i64 0
%23 = call ptr @strchr(ptr noundef %22, i8 noundef signext 10)
store ptr %23, ptr %3, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %39
25: ; preds = %21
%26 = load i32, ptr @stderr, align 4
%27 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %26, ptr noundef @.str.2)
br label %28
28: ; preds = %37, %25
%29 = call i32 (...) @getchar()
store i32 %29, ptr %5, align 4
%30 = icmp ne i32 %29, 10
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr @EOF, align 4
%34 = icmp ne i32 %32, %33
br label %35
35: ; preds = %31, %28
%36 = phi i1 [ false, %28 ], [ %34, %31 ]
br i1 %36, label %37, label %38
37: ; preds = %35
br label %28, !llvm.loop !6
38: ; preds = %35
br label %16, !llvm.loop !8
39: ; preds = %21
%40 = load ptr, ptr %3, align 8
store i8 0, ptr %40, align 1
%41 = getelementptr inbounds [2049 x i8], ptr %6, i64 0, i64 0
store ptr %41, ptr %3, align 8
br label %42
42: ; preds = %55, %39
%43 = load ptr, ptr %3, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = load ptr, ptr %3, align 8
%49 = load i8, ptr %48, align 1
%50 = call i64 @isspace(i8 noundef zeroext %49)
%51 = icmp ne i64 %50, 0
br label %52
52: ; preds = %47, %42
%53 = phi i1 [ false, %42 ], [ %51, %47 ]
br i1 %53, label %54, label %58
54: ; preds = %52
br label %55
55: ; preds = %54
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %3, align 8
br label %42, !llvm.loop !9
58: ; preds = %52
%59 = load ptr, ptr %3, align 8
%60 = load i8, ptr %59, align 1
%61 = icmp ne i8 %60, 0
br i1 %61, label %62, label %67
62: ; preds = %58
%63 = load ptr, ptr %3, align 8
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 35
br i1 %66, label %67, label %68
67: ; preds = %62, %58
br label %16, !llvm.loop !8
68: ; preds = %62
%69 = load ptr, ptr %3, align 8
%70 = call i32 @add(ptr noundef %69)
br label %16, !llvm.loop !8
71: ; preds = %16
%72 = load ptr, ptr %4, align 8
%73 = call i32 @fclose(ptr noundef %72)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @getchar(...) #1
declare i64 @isspace(i8 noundef zeroext) #1
declare i32 @add(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnazvplmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"hexdump: can't read %s.\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"hexdump: line too long.\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @addfile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [2049 x i8], align 16
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %2, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.1, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %1
%16 = getelementptr inbounds [2049 x i8], ptr %6, i64 0, i64 0
%17 = load ptr, ptr %4, align 8
%18 = call i64 @fgets(ptr noundef %16, i32 noundef 2049, ptr noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %.lr.ph, label %72
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %.backedge
%21 = getelementptr inbounds [2049 x i8], ptr %6, i64 0, i64 0
%22 = call ptr @strchr(ptr noundef %21, i8 noundef signext 10)
store ptr %22, ptr %3, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %40
24: ; preds = %20
%25 = load i32, ptr @stderr, align 4
%26 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %25, ptr noundef @.str.2)
br label %27
27: ; preds = %34, %24
%28 = call i32 (...) @getchar()
store i32 %28, ptr %5, align 4
%29 = icmp ne i32 %28, 10
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr @EOF, align 4
%33 = icmp ne i32 %31, %32
br label %34
34: ; preds = %30, %27
%35 = phi i1 [ false, %27 ], [ %33, %30 ]
br i1 %35, label %27, label %36, !llvm.loop !6
36: ; preds = %34
br label %.backedge
.backedge: ; preds = %36, %68, %69
%37 = load ptr, ptr %4, align 8
%38 = call i64 @fgets(ptr noundef %16, i32 noundef 2049, ptr noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %20, label %._crit_edge, !llvm.loop !8
40: ; preds = %20
%41 = load ptr, ptr %3, align 8
store i8 0, ptr %41, align 1
%42 = getelementptr inbounds [2049 x i8], ptr %6, i64 0, i64 0
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %56, %40
%44 = load ptr, ptr %3, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %43
%49 = load ptr, ptr %3, align 8
%50 = load i8, ptr %49, align 1
%51 = call i64 @isspace(i8 noundef zeroext %50)
%52 = icmp ne i64 %51, 0
br label %53
53: ; preds = %48, %43
%54 = phi i1 [ false, %43 ], [ %52, %48 ]
br i1 %54, label %55, label %59
55: ; preds = %53
br label %56
56: ; preds = %55
%57 = load ptr, ptr %3, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %3, align 8
br label %43, !llvm.loop !9
59: ; preds = %53
%60 = load ptr, ptr %3, align 8
%61 = load i8, ptr %60, align 1
%62 = icmp ne i8 %61, 0
br i1 %62, label %63, label %68
63: ; preds = %59
%64 = load ptr, ptr %3, align 8
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 35
br i1 %67, label %68, label %69
68: ; preds = %63, %59
br label %.backedge
69: ; preds = %63
%70 = load ptr, ptr %3, align 8
%71 = call i32 @add(ptr noundef %70)
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %72
72: ; preds = %._crit_edge, %15
%73 = load ptr, ptr %4, align 8
%74 = call i32 @fclose(ptr noundef %73)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @getchar(...) #1
declare i64 @isspace(i8 noundef zeroext) #1
declare i32 @add(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpyj5_1q_i.c'
source_filename = "/tmp/tmpyj5_1q_i.c"
target datalayout = "e-m:e-p270: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/tmpyj5_1q_i.c"
target datalayout = "e-m:e-p270: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/tmp1ho1sekv.c'
source_filename = "/tmp/tmp1ho1sekv.c"
target datalayout = "e-m:e-p270: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 double @ohmd_get_tick() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%4 = load i64, ptr %3, align 8
%5 = sitofp i64 %4 to double
%6 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%7 = load i64, ptr %6, align 8
%8 = sitofp i64 %7 to double
%9 = fdiv double %8, 1.000000e+06
%10 = call double @llvm.fmuladd.f64(double %5, double 1.000000e+00, double %9)
ret double %10
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ho1sekv.c"
target datalayout = "e-m:e-p270: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 double @ohmd_get_tick() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%4 = load i64, ptr %3, align 8
%5 = sitofp i64 %4 to double
%6 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%7 = load i64, ptr %6, align 8
%8 = sitofp i64 %7 to double
%9 = fdiv double %8, 1.000000e+06
%10 = call double @llvm.fmuladd.f64(double %5, double 1.000000e+00, double %9)
ret double %10
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpld1x41l8.c'
source_filename = "/tmp/tmpld1x41l8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"1:2:3:4:5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wsr64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @__builtin_arm_wsr64(ptr noundef @.str, i64 noundef %3)
ret void
}
declare i32 @__builtin_arm_wsr64(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpld1x41l8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"1:2:3:4:5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wsr64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @__builtin_arm_wsr64(ptr noundef @.str, i64 noundef %3)
ret void
}
declare i32 @__builtin_arm_wsr64(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb5flnrtv.c'
source_filename = "/tmp/tmpb5flnrtv.c"
target datalayout = "e-m:e-p270: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.coins = private unnamed_addr constant [8 x i32] [i32 1, i32 2, i32 5, i32 10, i32 20, i32 100, i32 200, i32 0], align 16
@.str = private unnamed_addr constant [34 x i8] c"Algorithm starts, please wait...\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Algorithm end.\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Total time: %f\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
; 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 double, align 8
%7 = alloca double, align 8
%8 = alloca [201 x [8 x i32]], align 16
%9 = alloca [8 x i32], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 6432, i1 false)
%13 = getelementptr inbounds <{ [8 x i32], [200 x [8 x i32]] }>, ptr %8, i32 0, i32 0
%14 = getelementptr inbounds [8 x i32], ptr %13, i32 0, i32 0
store i32 1, ptr %14, align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.coins, i64 32, i1 false)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call double (...) @clock()
store double %16, ptr %6, align 8
store i32 1, ptr %10, align 4
br label %17
17: ; preds = %76, %2
%18 = load i32, ptr %10, align 4
%19 = icmp ult i32 %18, 201
br i1 %19, label %20, label %79
20: ; preds = %17
store i32 1, ptr %11, align 4
br label %21
21: ; preds = %72, %20
%22 = load i32, ptr %11, align 4
%23 = icmp ult i32 %22, 8
br i1 %23, label %24, label %75
24: ; preds = %21
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %11, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = sub i32 %25, %29
store i32 %30, ptr %12, align 4
%31 = load i32, ptr %12, align 4
%32 = icmp ugt i32 %31, 0
br i1 %32, label %33, label %56
33: ; preds = %24
%34 = load i32, ptr %10, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %35
%37 = load i32, ptr %11, align 4
%38 = sub i32 %37, 1
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds [8 x i32], ptr %36, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load i32, ptr %12, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %43
%45 = load i32, ptr %11, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds [8 x i32], ptr %44, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = add i32 %41, %48
%50 = load i32, ptr %10, align 4
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %51
%53 = load i32, ptr %11, align 4
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds [8 x i32], ptr %52, i64 0, i64 %54
store i32 %49, ptr %55, align 4
br label %71
56: ; preds = %24
%57 = load i32, ptr %10, align 4
%58 = zext i32 %57 to i64
%59 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %58
%60 = load i32, ptr %11, align 4
%61 = sub i32 %60, 1
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds [8 x i32], ptr %59, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load i32, ptr %10, align 4
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %66
%68 = load i32, ptr %11, align 4
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds [8 x i32], ptr %67, i64 0, i64 %69
store i32 %64, ptr %70, align 4
br label %71
71: ; preds = %56, %33
br label %72
72: ; preds = %71
%73 = load i32, ptr %11, align 4
%74 = add i32 %73, 1
store i32 %74, ptr %11, align 4
br label %21, !llvm.loop !6
75: ; preds = %21
br label %76
76: ; preds = %75
%77 = load i32, ptr %10, align 4
%78 = add i32 %77, 1
store i32 %78, ptr %10, align 4
br label %17, !llvm.loop !8
79: ; preds = %17
%80 = call double (...) @clock()
store double %80, ptr %7, align 8
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%82 = load double, ptr %7, align 8
%83 = load double, ptr %6, align 8
%84 = fsub double %82, %83
%85 = load double, ptr @CLOCKS_PER_SEC, align 8
%86 = fdiv double %84, %85
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %86)
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
declare double @clock(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb5flnrtv.c"
target datalayout = "e-m:e-p270: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.coins = private unnamed_addr constant [8 x i32] [i32 1, i32 2, i32 5, i32 10, i32 20, i32 100, i32 200, i32 0], align 16
@.str = private unnamed_addr constant [34 x i8] c"Algorithm starts, please wait...\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Algorithm end.\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Total time: %f\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
; 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 double, align 8
%7 = alloca double, align 8
%8 = alloca [201 x [8 x i32]], align 16
%9 = alloca [8 x i32], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 6432, i1 false)
%13 = getelementptr inbounds <{ [8 x i32], [200 x [8 x i32]] }>, ptr %8, i32 0, i32 0
%14 = getelementptr inbounds [8 x i32], ptr %13, i32 0, i32 0
store i32 1, ptr %14, align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.coins, i64 32, i1 false)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call double (...) @clock()
store double %16, ptr %6, align 8
store i32 1, ptr %10, align 4
%17 = load i32, ptr %10, align 4
%18 = icmp ult i32 %17, 201
br i1 %18, label %.lr.ph2, label %81
.lr.ph2: ; preds = %2
br label %19
19: ; preds = %.lr.ph2, %76
store i32 1, ptr %11, align 4
%20 = load i32, ptr %11, align 4
%21 = icmp ult i32 %20, 8
br i1 %21, label %.lr.ph, label %75
.lr.ph: ; preds = %19
br label %22
22: ; preds = %.lr.ph, %70
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %11, align 4
%25 = zext i32 %24 to i64
%26 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 %25
%27 = load i32, ptr %26, align 4
%28 = sub i32 %23, %27
store i32 %28, ptr %12, align 4
%29 = load i32, ptr %12, align 4
%30 = icmp ugt i32 %29, 0
br i1 %30, label %31, label %54
31: ; preds = %22
%32 = load i32, ptr %10, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %33
%35 = load i32, ptr %11, align 4
%36 = sub i32 %35, 1
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds [8 x i32], ptr %34, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load i32, ptr %12, align 4
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %41
%43 = load i32, ptr %11, align 4
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [8 x i32], ptr %42, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = add i32 %39, %46
%48 = load i32, ptr %10, align 4
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %49
%51 = load i32, ptr %11, align 4
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds [8 x i32], ptr %50, i64 0, i64 %52
store i32 %47, ptr %53, align 4
br label %69
54: ; preds = %22
%55 = load i32, ptr %10, align 4
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %56
%58 = load i32, ptr %11, align 4
%59 = sub i32 %58, 1
%60 = zext i32 %59 to i64
%61 = getelementptr inbounds [8 x i32], ptr %57, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load i32, ptr %10, align 4
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [201 x [8 x i32]], ptr %8, i64 0, i64 %64
%66 = load i32, ptr %11, align 4
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds [8 x i32], ptr %65, i64 0, i64 %67
store i32 %62, ptr %68, align 4
br label %69
69: ; preds = %54, %31
br label %70
70: ; preds = %69
%71 = load i32, ptr %11, align 4
%72 = add i32 %71, 1
store i32 %72, ptr %11, align 4
%73 = load i32, ptr %11, align 4
%74 = icmp ult i32 %73, 8
br i1 %74, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %75
75: ; preds = %._crit_edge, %19
br label %76
76: ; preds = %75
%77 = load i32, ptr %10, align 4
%78 = add i32 %77, 1
store i32 %78, ptr %10, align 4
%79 = load i32, ptr %10, align 4
%80 = icmp ult i32 %79, 201
br i1 %80, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %76
br label %81
81: ; preds = %._crit_edge3, %2
%82 = call double (...) @clock()
store double %82, ptr %7, align 8
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%84 = load double, ptr %7, align 8
%85 = load double, ptr %6, align 8
%86 = fsub double %84, %85
%87 = load double, ptr @CLOCKS_PER_SEC, align 8
%88 = fdiv double %86, %87
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %88)
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
declare double @clock(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_ize5zx2.c'
source_filename = "/tmp/tmp_ize5zx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_bext(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load ptr, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store ptr null, ptr %2, align 8
br label %15
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
store ptr null, ptr %12, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %2, align 8
br label %15
15: ; preds = %8, %7
%16 = load ptr, ptr %2, align 8
ret ptr %16
}
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/tmp_ize5zx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_bext(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load ptr, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store ptr null, ptr %2, align 8
br label %15
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
store ptr null, ptr %12, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %2, align 8
br label %15
15: ; preds = %8, %7
%16 = load ptr, ptr %2, align 8
ret ptr %16
}
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/tmpdbu3mjzw.c'
source_filename = "/tmp/tmpdbu3mjzw.c"
target datalayout = "e-m:e-p270: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"ERROR: Not enough memory!\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"Enter some numbers separated by whitespaces:\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c"Your numbers, in a dynamic allocated int array would be..\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%d: \00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @his() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 100, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sext i32 %5 to i64
%7 = add i64 %6, 4
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %1, align 8
%10 = load ptr, ptr %1, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %84
14: ; preds = %0
%15 = call i32 @puts(ptr noundef @.str.1)
br label %16
16: ; preds = %39, %14
%17 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %45
19: ; preds = %16
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %39
25: ; preds = %19
%26 = load i32, ptr %2, align 4
%27 = add nsw i32 %26, 100
store i32 %27, ptr %2, align 4
%28 = load ptr, ptr %1, align 8
%29 = load i32, ptr %2, align 4
%30 = sext i32 %29 to i64
%31 = add i64 %30, 4
%32 = trunc i64 %31 to i32
%33 = call ptr @realloc(ptr noundef %28, i32 noundef %32)
store ptr %33, ptr %1, align 8
%34 = load ptr, ptr %1, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %38
36: ; preds = %25
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %84
38: ; preds = %25
br label %39
39: ; preds = %38, %19
%40 = load i32, ptr %3, align 4
%41 = load ptr, ptr %1, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %40, ptr %44, align 4
br label %16, !llvm.loop !6
45: ; preds = %16
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %2, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %61
49: ; preds = %45
%50 = load ptr, ptr %1, align 8
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = add i64 %52, 4
%54 = trunc i64 %53 to i32
%55 = call ptr @realloc(ptr noundef %50, i32 noundef %54)
store ptr %55, ptr %1, align 8
%56 = load ptr, ptr %1, align 8
%57 = icmp eq ptr %56, null
br i1 %57, label %58, label %60
58: ; preds = %49
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %84
60: ; preds = %49
br label %61
61: ; preds = %60, %45
%62 = load i32, ptr %4, align 4
%63 = load ptr, ptr %1, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 0
store i32 %62, ptr %64, align 4
%65 = call i32 @puts(ptr noundef @.str.3)
%66 = load ptr, ptr %1, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 0
%68 = load i32, ptr %67, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %68)
store i32 1, ptr %3, align 4
br label %70
70: ; preds = %74, %61
%71 = load i32, ptr %3, align 4
%72 = load i32, ptr %4, align 4
%73 = icmp sle i32 %71, %72
br i1 %73, label %74, label %82
74: ; preds = %70
%75 = load ptr, ptr %1, align 8
%76 = load i32, ptr %3, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %3, align 4
%78 = sext i32 %76 to i64
%79 = getelementptr inbounds i32, ptr %75, i64 %78
%80 = load i32, ptr %79, align 4
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %80)
br label %70, !llvm.loop !8
82: ; preds = %70
%83 = call i32 @puts(ptr noundef @.str.6)
br label %84
84: ; preds = %82, %58, %36, %12
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdbu3mjzw.c"
target datalayout = "e-m:e-p270: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"ERROR: Not enough memory!\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"Enter some numbers separated by whitespaces:\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c"Your numbers, in a dynamic allocated int array would be..\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%d: \00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @his() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 100, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sext i32 %5 to i64
%7 = add i64 %6, 4
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %1, align 8
%10 = load ptr, ptr %1, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %87
14: ; preds = %0
%15 = call i32 @puts(ptr noundef @.str.1)
%16 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%17 = icmp eq i32 %16, 1
br i1 %17, label %.lr.ph, label %46
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %38
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %38
24: ; preds = %18
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 100
store i32 %26, ptr %2, align 4
%27 = load ptr, ptr %1, align 8
%28 = load i32, ptr %2, align 4
%29 = sext i32 %28 to i64
%30 = add i64 %29, 4
%31 = trunc i64 %30 to i32
%32 = call ptr @realloc(ptr noundef %27, i32 noundef %31)
store ptr %32, ptr %1, align 8
%33 = load ptr, ptr %1, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %37
35: ; preds = %24
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %87
37: ; preds = %24
br label %38
38: ; preds = %37, %18
%39 = load i32, ptr %3, align 4
%40 = load ptr, ptr %1, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store i32 %39, ptr %43, align 4
%44 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%45 = icmp eq i32 %44, 1
br i1 %45, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %46
46: ; preds = %._crit_edge, %14
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %62
50: ; preds = %46
%51 = load ptr, ptr %1, align 8
%52 = load i32, ptr %4, align 4
%53 = sext i32 %52 to i64
%54 = add i64 %53, 4
%55 = trunc i64 %54 to i32
%56 = call ptr @realloc(ptr noundef %51, i32 noundef %55)
store ptr %56, ptr %1, align 8
%57 = load ptr, ptr %1, align 8
%58 = icmp eq ptr %57, null
br i1 %58, label %59, label %61
59: ; preds = %50
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %87
61: ; preds = %50
br label %62
62: ; preds = %61, %46
%63 = load i32, ptr %4, align 4
%64 = load ptr, ptr %1, align 8
%65 = getelementptr inbounds i32, ptr %64, i64 0
store i32 %63, ptr %65, align 4
%66 = call i32 @puts(ptr noundef @.str.3)
%67 = load ptr, ptr %1, align 8
%68 = getelementptr inbounds i32, ptr %67, i64 0
%69 = load i32, ptr %68, align 4
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %69)
store i32 1, ptr %3, align 4
%71 = load i32, ptr %3, align 4
%72 = load i32, ptr %4, align 4
%73 = icmp sle i32 %71, %72
br i1 %73, label %.lr.ph2, label %85
.lr.ph2: ; preds = %62
br label %74
74: ; preds = %.lr.ph2, %74
%75 = load ptr, ptr %1, align 8
%76 = load i32, ptr %3, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %3, align 4
%78 = sext i32 %76 to i64
%79 = getelementptr inbounds i32, ptr %75, i64 %78
%80 = load i32, ptr %79, align 4
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %80)
%82 = load i32, ptr %3, align 4
%83 = load i32, ptr %4, align 4
%84 = icmp sle i32 %82, %83
br i1 %84, label %74, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %74
br label %85
85: ; preds = %._crit_edge3, %62
%86 = call i32 @puts(ptr noundef @.str.6)
br label %87
87: ; preds = %85, %59, %35, %12
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_47v2nzq.c'
source_filename = "/tmp/tmp_47v2nzq.c"
target datalayout = "e-m:e-p270: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"pipe error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pipe_error() #0 {
%1 = call i32 @perror(ptr noundef @.str)
ret void
}
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_47v2nzq.c"
target datalayout = "e-m:e-p270: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"pipe error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pipe_error() #0 {
%1 = call i32 @perror(ptr noundef @.str)
ret void
}
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp409xrv9x.c'
source_filename = "/tmp/tmp409xrv9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @o_rdonly() #0 {
%1 = load i32, ptr @O_RDONLY, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp409xrv9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @o_rdonly() #0 {
%1 = load i32, ptr @O_RDONLY, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm706g_cx.c'
source_filename = "/tmp/tmpm706g_cx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %2
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %26, %11
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
%18 = icmp slt i32 %13, %17
br i1 %18, label %19, label %29
19: ; preds = %12
%20 = call i32 @putchar(i32 noundef 0)
%21 = call i32 @putchar(i32 noundef 0)
%22 = call i32 @putchar(i32 noundef 0)
%23 = call i32 (...) @rand()
%24 = and i32 %23, 255
%25 = call i32 @putchar(i32 noundef %24)
br label %26
26: ; preds = %19
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %12, !llvm.loop !6
29: ; preds = %12
%30 = load i32, ptr %3, align 4
ret i32 %30
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @atoi(ptr noundef) #2
declare i32 @putchar(i32 noundef) #2
declare i32 @rand(...) #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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm706g_cx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %2
store i32 0, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
%17 = icmp slt i32 %12, %16
br i1 %17, label %.lr.ph, label %34
.lr.ph: ; preds = %11
br label %18
18: ; preds = %.lr.ph, %25
%19 = call i32 @putchar(i32 noundef 0)
%20 = call i32 @putchar(i32 noundef 0)
%21 = call i32 @putchar(i32 noundef 0)
%22 = call i32 (...) @rand()
%23 = and i32 %22, 255
%24 = call i32 @putchar(i32 noundef %23)
br label %25
25: ; preds = %18
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
%33 = icmp slt i32 %28, %32
br i1 %33, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %34
34: ; preds = %._crit_edge, %11
%35 = load i32, ptr %3, align 4
ret i32 %35
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @atoi(ptr noundef) #2
declare i32 @putchar(i32 noundef) #2
declare i32 @rand(...) #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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.