llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmprc2urrjm.c'
source_filename = "/tmp/tmprc2urrjm.c"
target datalayout = "e-m:e-p270: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/tmprc2urrjm.c"
target datalayout = "e-m:e-p270: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/tmphjkx4_8t.c'
source_filename = "/tmp/tmphjkx4_8t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getHes(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %14, align 8
store i32 0, ptr %12, align 4
br label %21
21: ; preds = %81, %5
%22 = load i32, ptr %12, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %84
25: ; preds = %21
store i32 0, ptr %11, align 4
br label %26
26: ; preds = %77, %25
%27 = load i32, ptr %11, align 4
%28 = load i32, ptr %12, align 4
%29 = icmp sle i32 %27, %28
br i1 %29, label %30, label %80
30: ; preds = %26
store i32 0, ptr %13, align 4
br label %31
31: ; preds = %61, %30
%32 = load i32, ptr %13, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %64
35: ; preds = %31
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %11, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr %13, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = sitofp i32 %44 to double
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %12, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %13, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = sitofp i32 %54 to double
%56 = fmul double %45, %55
%57 = load ptr, ptr %14, align 8
%58 = load i32, ptr %13, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %57, i64 %59
store double %56, ptr %60, align 8
br label %61
61: ; preds = %35
%62 = load i32, ptr %13, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %13, align 4
br label %31, !llvm.loop !6
64: ; preds = %31
%65 = load ptr, ptr %7, align 8
%66 = load ptr, ptr %14, align 8
%67 = load i32, ptr %10, align 4
%68 = call double @dot(ptr noundef %65, ptr noundef %66, i32 noundef %67)
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds ptr, ptr %69, i64 %71
%73 = load ptr, ptr %72, align 8
%74 = load i32, ptr %12, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
store double %68, ptr %76, align 8
br label %77
77: ; preds = %64
%78 = load i32, ptr %11, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %11, align 4
br label %26, !llvm.loop !8
80: ; preds = %26
br label %81
81: ; preds = %80
%82 = load i32, ptr %12, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %12, align 4
br label %21, !llvm.loop !9
84: ; preds = %21
store i32 1, ptr %11, align 4
br label %85
85: ; preds = %116, %84
%86 = load i32, ptr %11, align 4
%87 = load i32, ptr %9, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %119
89: ; preds = %85
store i32 0, ptr %12, align 4
br label %90
90: ; preds = %112, %89
%91 = load i32, ptr %12, align 4
%92 = load i32, ptr %11, align 4
%93 = icmp slt i32 %91, %92
br i1 %93, label %94, label %115
94: ; preds = %90
%95 = load ptr, ptr %6, align 8
%96 = load i32, ptr %12, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %95, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = load i32, ptr %11, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, ptr %99, i64 %101
%103 = load double, ptr %102, align 8
%104 = load ptr, ptr %6, align 8
%105 = load i32, ptr %11, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds ptr, ptr %104, i64 %106
%108 = load ptr, ptr %107, align 8
%109 = load i32, ptr %12, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, ptr %108, i64 %110
store double %103, ptr %111, align 8
br label %112
112: ; preds = %94
%113 = load i32, ptr %12, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %12, align 4
br label %90, !llvm.loop !10
115: ; preds = %90
br label %116
116: ; preds = %115
%117 = load i32, ptr %11, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %11, align 4
br label %85, !llvm.loop !11
119: ; preds = %85
%120 = load ptr, ptr %14, align 8
%121 = call i32 @free(ptr noundef %120)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare double @dot(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphjkx4_8t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getHes(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %14, align 8
store i32 0, ptr %12, align 4
%21 = load i32, ptr %12, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph5, label %90
.lr.ph5: ; preds = %5
br label %24
24: ; preds = %.lr.ph5, %84
store i32 0, ptr %11, align 4
%25 = load i32, ptr %11, align 4
%26 = load i32, ptr %12, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %.lr.ph2, label %83
.lr.ph2: ; preds = %24
br label %28
28: ; preds = %.lr.ph2, %77
store i32 0, ptr %13, align 4
%29 = load i32, ptr %13, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph, label %64
.lr.ph: ; preds = %28
br label %32
32: ; preds = %.lr.ph, %58
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = load i32, ptr %13, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
%42 = sitofp i32 %41 to double
%43 = load ptr, ptr %8, align 8
%44 = load i32, ptr %12, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds ptr, ptr %43, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = load i32, ptr %13, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = sitofp i32 %51 to double
%53 = fmul double %42, %52
%54 = load ptr, ptr %14, align 8
%55 = load i32, ptr %13, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
store double %53, ptr %57, align 8
br label %58
58: ; preds = %32
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %13, align 4
%61 = load i32, ptr %13, align 4
%62 = load i32, ptr %10, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %28
%65 = load ptr, ptr %7, align 8
%66 = load ptr, ptr %14, align 8
%67 = load i32, ptr %10, align 4
%68 = call double @dot(ptr noundef %65, ptr noundef %66, i32 noundef %67)
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds ptr, ptr %69, i64 %71
%73 = load ptr, ptr %72, align 8
%74 = load i32, ptr %12, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
store double %68, ptr %76, align 8
br label %77
77: ; preds = %64
%78 = load i32, ptr %11, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %11, align 4
%80 = load i32, ptr %11, align 4
%81 = load i32, ptr %12, align 4
%82 = icmp sle i32 %80, %81
br i1 %82, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %83
83: ; preds = %._crit_edge3, %24
br label %84
84: ; preds = %83
%85 = load i32, ptr %12, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %12, align 4
%87 = load i32, ptr %12, align 4
%88 = load i32, ptr %9, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %24, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %84
br label %90
90: ; preds = %._crit_edge6, %5
store i32 1, ptr %11, align 4
%91 = load i32, ptr %11, align 4
%92 = load i32, ptr %9, align 4
%93 = icmp slt i32 %91, %92
br i1 %93, label %.lr.ph11, label %129
.lr.ph11: ; preds = %90
br label %94
94: ; preds = %.lr.ph11, %123
store i32 0, ptr %12, align 4
%95 = load i32, ptr %12, align 4
%96 = load i32, ptr %11, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %.lr.ph8, label %122
.lr.ph8: ; preds = %94
br label %98
98: ; preds = %.lr.ph8, %116
%99 = load ptr, ptr %6, align 8
%100 = load i32, ptr %12, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds ptr, ptr %99, i64 %101
%103 = load ptr, ptr %102, align 8
%104 = load i32, ptr %11, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, ptr %103, i64 %105
%107 = load double, ptr %106, align 8
%108 = load ptr, ptr %6, align 8
%109 = load i32, ptr %11, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds ptr, ptr %108, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = load i32, ptr %12, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, ptr %112, i64 %114
store double %107, ptr %115, align 8
br label %116
116: ; preds = %98
%117 = load i32, ptr %12, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %12, align 4
%119 = load i32, ptr %12, align 4
%120 = load i32, ptr %11, align 4
%121 = icmp slt i32 %119, %120
br i1 %121, label %98, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %116
br label %122
122: ; preds = %._crit_edge9, %94
br label %123
123: ; preds = %122
%124 = load i32, ptr %11, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %11, align 4
%126 = load i32, ptr %11, align 4
%127 = load i32, ptr %9, align 4
%128 = icmp slt i32 %126, %127
br i1 %128, label %94, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %123
br label %129
129: ; preds = %._crit_edge12, %90
%130 = load ptr, ptr %14, align 8
%131 = call i32 @free(ptr noundef %130)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare double @dot(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpsvv3zv_l.c'
source_filename = "/tmp/tmpsvv3zv_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mica2dot\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"mica2\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"mica\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"telos\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"micaz\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"eyes\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"tinynode\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parsePlatform(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strcasecmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %3, align 4
br label %44
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strcasecmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 1, ptr %3, align 4
br label %43
13: ; preds = %8
%14 = load ptr, ptr %2, align 8
%15 = call i64 @strcasecmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 1, ptr %3, align 4
br label %42
18: ; preds = %13
%19 = load ptr, ptr %2, align 8
%20 = call i64 @strcasecmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 2, ptr %3, align 4
br label %41
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = call i64 @strcasecmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 3, ptr %3, align 4
br label %40
28: ; preds = %23
%29 = load ptr, ptr %2, align 8
%30 = call i64 @strcasecmp(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 4, ptr %3, align 4
br label %39
33: ; preds = %28
%34 = load ptr, ptr %2, align 8
%35 = call i64 @strcasecmp(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 5, ptr %3, align 4
br label %38
38: ; preds = %37, %33
br label %39
39: ; preds = %38, %32
br label %40
40: ; preds = %39, %27
br label %41
41: ; preds = %40, %22
br label %42
42: ; preds = %41, %17
br label %43
43: ; preds = %42, %12
br label %44
44: ; preds = %43, %7
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i64 @strcasecmp(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/tmpsvv3zv_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mica2dot\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"mica2\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"mica\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"telos\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"micaz\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"eyes\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"tinynode\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parsePlatform(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strcasecmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %3, align 4
br label %44
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strcasecmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 1, ptr %3, align 4
br label %43
13: ; preds = %8
%14 = load ptr, ptr %2, align 8
%15 = call i64 @strcasecmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 1, ptr %3, align 4
br label %42
18: ; preds = %13
%19 = load ptr, ptr %2, align 8
%20 = call i64 @strcasecmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 2, ptr %3, align 4
br label %41
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = call i64 @strcasecmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 3, ptr %3, align 4
br label %40
28: ; preds = %23
%29 = load ptr, ptr %2, align 8
%30 = call i64 @strcasecmp(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 4, ptr %3, align 4
br label %39
33: ; preds = %28
%34 = load ptr, ptr %2, align 8
%35 = call i64 @strcasecmp(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 5, ptr %3, align 4
br label %38
38: ; preds = %37, %33
br label %39
39: ; preds = %38, %32
br label %40
40: ; preds = %39, %27
br label %41
41: ; preds = %40, %22
br label %42
42: ; preds = %41, %17
br label %43
43: ; preds = %42, %12
br label %44
44: ; preds = %43, %7
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i64 @strcasecmp(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/tmp4et1kkb4.c'
source_filename = "/tmp/tmp4et1kkb4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chomp(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 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store ptr null, ptr %2, align 8
br label %30
7: ; preds = %1
br label %8
8: ; preds = %25, %7
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %28
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 13, %15
br i1 %16, label %22, label %17
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 10, %20
br i1 %21, label %22, label %24
22: ; preds = %17, %12
%23 = load ptr, ptr %3, align 8
store i8 0, ptr %23, align 1
br label %28
24: ; preds = %17
br label %25
25: ; preds = %24
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %3, align 8
br label %8, !llvm.loop !6
28: ; preds = %22, %8
%29 = load ptr, ptr %3, align 8
store ptr %29, ptr %2, align 8
br label %30
30: ; preds = %28, %6
%31 = load ptr, ptr %2, align 8
ret ptr %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4et1kkb4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chomp(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 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store ptr null, ptr %2, align 8
br label %32
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %24
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 13, %14
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 10, %19
br i1 %20, label %21, label %23
21: ; preds = %16, %11
%22 = load ptr, ptr %3, align 8
store i8 0, ptr %22, align 1
br label %30
23: ; preds = %16
br label %24
24: ; preds = %23
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %3, align 8
%27 = load ptr, ptr %3, align 8
%28 = load i8, ptr %27, align 1
%29 = icmp ne i8 %28, 0
br i1 %29, label %11, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %24
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %7
br label %30
30: ; preds = %.loopexit, %21
%31 = load ptr, ptr %3, align 8
store ptr %31, ptr %2, align 8
br label %32
32: ; preds = %30, %6
%33 = load ptr, ptr %2, align 8
ret ptr %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzx96e2ss.c'
source_filename = "/tmp/tmpzx96e2ss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Record_free(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 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
br label %17
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %13
12: ; preds = %7
br label %17
13: ; preds = %7
%14 = load ptr, ptr %3, align 8
%15 = call i32 @free(ptr noundef %14)
%16 = load ptr, ptr %2, align 8
store ptr null, ptr %16, align 8
br label %17
17: ; preds = %13, %12, %6
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzx96e2ss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Record_free(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 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
br label %17
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %13
12: ; preds = %7
br label %17
13: ; preds = %7
%14 = load ptr, ptr %3, align 8
%15 = call i32 @free(ptr noundef %14)
%16 = load ptr, ptr %2, align 8
store ptr null, ptr %16, align 8
br label %17
17: ; preds = %13, %12, %6
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9hlegvfa.c'
source_filename = "/tmp/tmp9hlegvfa.c"
target datalayout = "e-m:e-p270: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_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@SIGINT = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIGQUIT = dso_local global i32 0, align 4
@SIGABRT = dso_local global i32 0, align 4
@SIGTERM = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = 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 ptr, align 8
%10 = alloca [129 x i8], align 16
%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
%13 = load i32, ptr @O_WRONLY, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
store i32 %15, ptr %7, align 4
%16 = load i32, ptr @S_IRUSR, align 4
%17 = load i32, ptr @S_IWUSR, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @S_IRGRP, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @S_IROTH, align 4
%22 = or i32 %20, %21
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %4, align 4
%24 = load ptr, ptr %5, align 8
%25 = call i32 @bake_args(i32 noundef %23, ptr noundef %24, ptr noundef %6)
%26 = load i32, ptr %6, align 4
%27 = and i32 %26, 2
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %2
%30 = load i32, ptr @O_APPEND, align 4
%31 = load i32, ptr %7, align 4
%32 = or i32 %31, %30
store i32 %32, ptr %7, align 4
br label %33
33: ; preds = %29, %2
%34 = load i32, ptr %6, align 4
%35 = and i32 %34, 1
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %50
37: ; preds = %33
%38 = load i32, ptr @SIGINT, align 4
%39 = load i32, ptr @SIG_IGN, align 4
%40 = call i32 @signal(i32 noundef %38, i32 noundef %39)
%41 = load i32, ptr @SIGQUIT, align 4
%42 = load i32, ptr @SIG_IGN, align 4
%43 = call i32 @signal(i32 noundef %41, i32 noundef %42)
%44 = load i32, ptr @SIGABRT, align 4
%45 = load i32, ptr @SIG_IGN, align 4
%46 = call i32 @signal(i32 noundef %44, i32 noundef %45)
%47 = load i32, ptr @SIGTERM, align 4
%48 = load i32, ptr @SIG_IGN, align 4
%49 = call i32 @signal(i32 noundef %47, i32 noundef %48)
br label %50
50: ; preds = %37, %33
%51 = load i32, ptr %4, align 4
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = call ptr @fill_fd(i32 noundef %51, ptr noundef %52, i32 noundef %53, i32 noundef %54)
store ptr %55, ptr %9, align 8
%56 = load i32, ptr @STDIN_FILENO, align 4
%57 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%58 = call i32 @read(i32 noundef %56, ptr noundef %57, i32 noundef 128)
store i32 %58, ptr %11, align 4
br label %59
59: ; preds = %90, %50
%60 = load i32, ptr %11, align 4
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %98
62: ; preds = %59
store i32 0, ptr %12, align 4
br label %63
63: ; preds = %87, %62
%64 = load ptr, ptr %9, align 8
%65 = load i32, ptr %12, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %64, i64 %66
%68 = load i32, ptr %67, align 4
%69 = icmp ne i32 %68, -2
br i1 %69, label %70, label %90
70: ; preds = %63
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %12, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4
%76 = icmp sgt i32 %75, 0
br i1 %76, label %77, label %86
77: ; preds = %70
%78 = load ptr, ptr %9, align 8
%79 = load i32, ptr %12, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %81, align 4
%83 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%84 = load i32, ptr %11, align 4
%85 = call i32 @write(i32 noundef %82, ptr noundef %83, i32 noundef %84)
br label %86
86: ; preds = %77, %70
br label %87
87: ; preds = %86
%88 = load i32, ptr %12, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %12, align 4
br label %63, !llvm.loop !6
90: ; preds = %63
%91 = load i32, ptr @STDOUT_FILENO, align 4
%92 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%93 = load i32, ptr %11, align 4
%94 = call i32 @write(i32 noundef %91, ptr noundef %92, i32 noundef %93)
%95 = load i32, ptr @STDIN_FILENO, align 4
%96 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%97 = call i32 @read(i32 noundef %95, ptr noundef %96, i32 noundef 128)
store i32 %97, ptr %11, align 4
br label %59, !llvm.loop !8
98: ; preds = %59
%99 = load ptr, ptr %9, align 8
%100 = call i32 @free(ptr noundef %99)
ret i32 0
}
declare i32 @bake_args(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @signal(i32 noundef, i32 noundef) #1
declare ptr @fill_fd(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9hlegvfa.c"
target datalayout = "e-m:e-p270: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_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@SIGINT = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIGQUIT = dso_local global i32 0, align 4
@SIGABRT = dso_local global i32 0, align 4
@SIGTERM = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = 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 ptr, align 8
%10 = alloca [129 x i8], align 16
%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
%13 = load i32, ptr @O_WRONLY, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
store i32 %15, ptr %7, align 4
%16 = load i32, ptr @S_IRUSR, align 4
%17 = load i32, ptr @S_IWUSR, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @S_IRGRP, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @S_IROTH, align 4
%22 = or i32 %20, %21
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %4, align 4
%24 = load ptr, ptr %5, align 8
%25 = call i32 @bake_args(i32 noundef %23, ptr noundef %24, ptr noundef %6)
%26 = load i32, ptr %6, align 4
%27 = and i32 %26, 2
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %2
%30 = load i32, ptr @O_APPEND, align 4
%31 = load i32, ptr %7, align 4
%32 = or i32 %31, %30
store i32 %32, ptr %7, align 4
br label %33
33: ; preds = %29, %2
%34 = load i32, ptr %6, align 4
%35 = and i32 %34, 1
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %50
37: ; preds = %33
%38 = load i32, ptr @SIGINT, align 4
%39 = load i32, ptr @SIG_IGN, align 4
%40 = call i32 @signal(i32 noundef %38, i32 noundef %39)
%41 = load i32, ptr @SIGQUIT, align 4
%42 = load i32, ptr @SIG_IGN, align 4
%43 = call i32 @signal(i32 noundef %41, i32 noundef %42)
%44 = load i32, ptr @SIGABRT, align 4
%45 = load i32, ptr @SIG_IGN, align 4
%46 = call i32 @signal(i32 noundef %44, i32 noundef %45)
%47 = load i32, ptr @SIGTERM, align 4
%48 = load i32, ptr @SIG_IGN, align 4
%49 = call i32 @signal(i32 noundef %47, i32 noundef %48)
br label %50
50: ; preds = %37, %33
%51 = load i32, ptr %4, align 4
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = call ptr @fill_fd(i32 noundef %51, ptr noundef %52, i32 noundef %53, i32 noundef %54)
store ptr %55, ptr %9, align 8
%56 = load i32, ptr @STDIN_FILENO, align 4
%57 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%58 = call i32 @read(i32 noundef %56, ptr noundef %57, i32 noundef 128)
store i32 %58, ptr %11, align 4
%59 = load i32, ptr %11, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %.lr.ph2, label %104
.lr.ph2: ; preds = %50
br label %61
61: ; preds = %.lr.ph2, %94
store i32 0, ptr %12, align 4
%62 = load ptr, ptr %9, align 8
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
%67 = icmp ne i32 %66, -2
br i1 %67, label %.lr.ph, label %94
.lr.ph: ; preds = %61
br label %68
68: ; preds = %.lr.ph, %85
%69 = load ptr, ptr %9, align 8
%70 = load i32, ptr %12, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
%73 = load i32, ptr %72, align 4
%74 = icmp sgt i32 %73, 0
br i1 %74, label %75, label %84
75: ; preds = %68
%76 = load ptr, ptr %9, align 8
%77 = load i32, ptr %12, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %76, i64 %78
%80 = load i32, ptr %79, align 4
%81 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%82 = load i32, ptr %11, align 4
%83 = call i32 @write(i32 noundef %80, ptr noundef %81, i32 noundef %82)
br label %84
84: ; preds = %75, %68
br label %85
85: ; preds = %84
%86 = load i32, ptr %12, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %12, align 4
%88 = load ptr, ptr %9, align 8
%89 = load i32, ptr %12, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %88, i64 %90
%92 = load i32, ptr %91, align 4
%93 = icmp ne i32 %92, -2
br i1 %93, label %68, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %85
br label %94
94: ; preds = %._crit_edge, %61
%95 = load i32, ptr @STDOUT_FILENO, align 4
%96 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%97 = load i32, ptr %11, align 4
%98 = call i32 @write(i32 noundef %95, ptr noundef %96, i32 noundef %97)
%99 = load i32, ptr @STDIN_FILENO, align 4
%100 = getelementptr inbounds [129 x i8], ptr %10, i64 0, i64 0
%101 = call i32 @read(i32 noundef %99, ptr noundef %100, i32 noundef 128)
store i32 %101, ptr %11, align 4
%102 = load i32, ptr %11, align 4
%103 = icmp sgt i32 %102, 0
br i1 %103, label %61, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %94
br label %104
104: ; preds = %._crit_edge3, %50
%105 = load ptr, ptr %9, align 8
%106 = call i32 @free(ptr noundef %105)
ret i32 0
}
declare i32 @bake_args(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @signal(i32 noundef, i32 noundef) #1
declare ptr @fill_fd(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6ll4twgu.c'
source_filename = "/tmp/tmp6ll4twgu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld %ld\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %20, %0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %23
8: ; preds = %5
%9 = load i64, ptr %2, align 8
%10 = load i64, ptr %3, align 8
%11 = icmp sgt i64 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load i64, ptr %2, align 8
%14 = load i64, ptr %3, align 8
%15 = sub nsw i64 %13, %14
store i64 %15, ptr %4, align 8
br label %20
16: ; preds = %8
%17 = load i64, ptr %3, align 8
%18 = load i64, ptr %2, align 8
%19 = sub nsw i64 %17, %18
store i64 %19, ptr %4, align 8
br label %20
20: ; preds = %16, %12
%21 = load i64, ptr %4, align 8
%22 = call i32 @printf(ptr noundef @.str.1, i64 noundef %21)
br label %5, !llvm.loop !6
23: ; preds = %5
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ll4twgu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld %ld\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = icmp eq i32 %5, 2
br i1 %6, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %19
%8 = load i64, ptr %2, align 8
%9 = load i64, ptr %3, align 8
%10 = icmp sgt i64 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i64, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = sub nsw i64 %12, %13
store i64 %14, ptr %4, align 8
br label %19
15: ; preds = %7
%16 = load i64, ptr %3, align 8
%17 = load i64, ptr %2, align 8
%18 = sub nsw i64 %16, %17
store i64 %18, ptr %4, align 8
br label %19
19: ; preds = %15, %11
%20 = load i64, ptr %4, align 8
%21 = call i32 @printf(ptr noundef @.str.1, i64 noundef %20)
%22 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%23 = icmp eq i32 %22, 2
br i1 %23, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3gcoj2kf.c'
source_filename = "/tmp/tmp3gcoj2kf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"#include \22qe.h\22\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"const void *fbf_fonts[] = {\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"font_%s, (void *)%d,\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"NULL,\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [128 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = 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
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %8, align 4
br label %12
12: ; preds = %28, %2
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %31
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %6, align 8
%22 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%23 = load ptr, ptr %6, align 8
%24 = call i32 @getname(ptr noundef %22, i32 noundef 128, ptr noundef %23)
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%27 = call i32 @dump_font(ptr noundef %25, ptr noundef %26)
br label %28
28: ; preds = %16
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
br label %12, !llvm.loop !6
31: ; preds = %12
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %8, align 4
br label %33
33: ; preds = %58, %31
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %61
37: ; preds = %33
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
store ptr %42, ptr %6, align 8
%43 = load ptr, ptr %6, align 8
%44 = call ptr @fopen(ptr noundef %43, ptr noundef @.str.2)
store ptr %44, ptr %9, align 8
%45 = load ptr, ptr %9, align 8
%46 = load i32, ptr @SEEK_END, align 4
%47 = call i32 @fseek(ptr noundef %45, i32 noundef 0, i32 noundef %46)
%48 = load ptr, ptr %9, align 8
%49 = call i32 @ftell(ptr noundef %48)
store i32 %49, ptr %10, align 4
%50 = load ptr, ptr %9, align 8
%51 = call i32 @fclose(ptr noundef %50)
%52 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%53 = load ptr, ptr %6, align 8
%54 = call i32 @getname(ptr noundef %52, i32 noundef 128, ptr noundef %53)
%55 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%56 = load i32, ptr %10, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %55, i32 noundef %56)
br label %58
58: ; preds = %37
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
br label %33, !llvm.loop !8
61: ; preds = %33
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getname(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @dump_font(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3gcoj2kf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"#include \22qe.h\22\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"const void *fbf_fonts[] = {\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"font_%s, (void *)%d,\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"NULL,\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [128 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = 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
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %27
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %8, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
store ptr %20, ptr %6, align 8
%21 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%22 = load ptr, ptr %6, align 8
%23 = call i32 @getname(ptr noundef %21, i32 noundef 128, ptr noundef %22)
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @dump_font(ptr noundef %24, ptr noundef %25)
br label %27
27: ; preds = %15
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %2
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph2, label %65
.lr.ph2: ; preds = %33
br label %38
38: ; preds = %.lr.ph2, %59
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %8, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
store ptr %43, ptr %6, align 8
%44 = load ptr, ptr %6, align 8
%45 = call ptr @fopen(ptr noundef %44, ptr noundef @.str.2)
store ptr %45, ptr %9, align 8
%46 = load ptr, ptr %9, align 8
%47 = load i32, ptr @SEEK_END, align 4
%48 = call i32 @fseek(ptr noundef %46, i32 noundef 0, i32 noundef %47)
%49 = load ptr, ptr %9, align 8
%50 = call i32 @ftell(ptr noundef %49)
store i32 %50, ptr %10, align 4
%51 = load ptr, ptr %9, align 8
%52 = call i32 @fclose(ptr noundef %51)
%53 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%54 = load ptr, ptr %6, align 8
%55 = call i32 @getname(ptr noundef %53, i32 noundef 128, ptr noundef %54)
%56 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%57 = load i32, ptr %10, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %56, i32 noundef %57)
br label %59
59: ; preds = %38
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %4, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %65
65: ; preds = %._crit_edge3, %33
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getname(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @dump_font(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpn8l6psqw.c'
source_filename = "/tmp/tmpn8l6psqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fdt_next_property_offset(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %5, align 4
%8 = call i32 @_fdt_check_prop_offset(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %3, align 4
br label %16
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = call i32 @_nextprop(ptr noundef %13, i32 noundef %14)
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %12, %10
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @_fdt_check_prop_offset(ptr noundef, i32 noundef) #1
declare i32 @_nextprop(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/tmpn8l6psqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fdt_next_property_offset(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %5, align 4
%8 = call i32 @_fdt_check_prop_offset(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %3, align 4
br label %16
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = call i32 @_nextprop(ptr noundef %13, i32 noundef %14)
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %12, %10
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @_fdt_check_prop_offset(ptr noundef, i32 noundef) #1
declare i32 @_nextprop(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/tmplyq_tpcv.c'
source_filename = "/tmp/tmplyq_tpcv.c"
target datalayout = "e-m:e-p270: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/tmplyq_tpcv.c"
target datalayout = "e-m:e-p270: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/tmpjjyykoi1.c'
source_filename = "/tmp/tmpjjyykoi1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @grg_get_grid_index(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [3 x i64], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = call i32 @mat_copy_vector_l3(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call i32 @reduce_grid_address(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 0
%13 = load ptr, ptr %4, align 8
%14 = call i64 @get_grid_index_from_address(ptr noundef %12, ptr noundef %13)
ret i64 %14
}
declare i32 @mat_copy_vector_l3(ptr noundef, ptr noundef) #1
declare i32 @reduce_grid_address(ptr noundef, ptr noundef) #1
declare i64 @get_grid_index_from_address(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/tmpjjyykoi1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @grg_get_grid_index(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [3 x i64], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = call i32 @mat_copy_vector_l3(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call i32 @reduce_grid_address(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 0
%13 = load ptr, ptr %4, align 8
%14 = call i64 @get_grid_index_from_address(ptr noundef %12, ptr noundef %13)
ret i64 %14
}
declare i32 @mat_copy_vector_l3(ptr noundef, ptr noundef) #1
declare i32 @reduce_grid_address(ptr noundef, ptr noundef) #1
declare i64 @get_grid_index_from_address(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/tmph2j2u1q8.c'
source_filename = "/tmp/tmph2j2u1q8.c"
target datalayout = "e-m:e-p270: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"Line %3d of File %s \0A\00", align 1
@.str.1 = private unnamed_addr constant [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Property\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"Min\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"Max\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"Sum\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"Ndv\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"ApproxNdv\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"NumNN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chk_fld_prop(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, i32 noundef 963, ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %52
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str, i32 noundef 964, ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %52
18: ; preds = %10
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcasecmp(ptr noundef %19, ptr noundef @.str.2)
%21 = icmp eq i64 %20, 0
br i1 %21, label %50, label %22
22: ; preds = %18
%23 = load ptr, ptr %3, align 8
%24 = call i64 @strcasecmp(ptr noundef %23, ptr noundef @.str.3)
%25 = icmp eq i64 %24, 0
br i1 %25, label %50, label %26
26: ; preds = %22
%27 = load ptr, ptr %3, align 8
%28 = call i64 @strcasecmp(ptr noundef %27, ptr noundef @.str.4)
%29 = icmp eq i64 %28, 0
br i1 %29, label %50, label %30
30: ; preds = %26
%31 = load ptr, ptr %3, align 8
%32 = call i64 @strcasecmp(ptr noundef %31, ptr noundef @.str.5)
%33 = icmp eq i64 %32, 0
br i1 %33, label %50, label %34
34: ; preds = %30
%35 = load ptr, ptr %3, align 8
%36 = call i64 @strcasecmp(ptr noundef %35, ptr noundef @.str.6)
%37 = icmp eq i64 %36, 0
br i1 %37, label %50, label %38
38: ; preds = %34
%39 = load ptr, ptr %3, align 8
%40 = call i64 @strcasecmp(ptr noundef %39, ptr noundef @.str.7)
%41 = icmp eq i64 %40, 0
br i1 %41, label %50, label %42
42: ; preds = %38
%43 = load ptr, ptr %3, align 8
%44 = call i64 @strcasecmp(ptr noundef %43, ptr noundef @.str.8)
%45 = icmp eq i64 %44, 0
br i1 %45, label %50, label %46
46: ; preds = %42
%47 = load ptr, ptr %3, align 8
%48 = call i64 @strcasecmp(ptr noundef %47, ptr noundef @.str.7)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %46, %42, %38, %34, %30, %26, %22, %18
store i32 1, ptr %2, align 4
br label %52
51: ; preds = %46
store i32 0, ptr %2, align 4
br label %52
52: ; preds = %51, %50, %15, %7
%53 = load i32, ptr %2, align 4
ret i32 %53
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strcasecmp(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/tmph2j2u1q8.c"
target datalayout = "e-m:e-p270: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"Line %3d of File %s \0A\00", align 1
@.str.1 = private unnamed_addr constant [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Property\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"Min\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"Max\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"Sum\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"Ndv\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"ApproxNdv\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"NumNN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chk_fld_prop(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, i32 noundef 963, ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %52
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str, i32 noundef 964, ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %52
18: ; preds = %10
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcasecmp(ptr noundef %19, ptr noundef @.str.2)
%21 = icmp eq i64 %20, 0
br i1 %21, label %50, label %22
22: ; preds = %18
%23 = load ptr, ptr %3, align 8
%24 = call i64 @strcasecmp(ptr noundef %23, ptr noundef @.str.3)
%25 = icmp eq i64 %24, 0
br i1 %25, label %50, label %26
26: ; preds = %22
%27 = load ptr, ptr %3, align 8
%28 = call i64 @strcasecmp(ptr noundef %27, ptr noundef @.str.4)
%29 = icmp eq i64 %28, 0
br i1 %29, label %50, label %30
30: ; preds = %26
%31 = load ptr, ptr %3, align 8
%32 = call i64 @strcasecmp(ptr noundef %31, ptr noundef @.str.5)
%33 = icmp eq i64 %32, 0
br i1 %33, label %50, label %34
34: ; preds = %30
%35 = load ptr, ptr %3, align 8
%36 = call i64 @strcasecmp(ptr noundef %35, ptr noundef @.str.6)
%37 = icmp eq i64 %36, 0
br i1 %37, label %50, label %38
38: ; preds = %34
%39 = load ptr, ptr %3, align 8
%40 = call i64 @strcasecmp(ptr noundef %39, ptr noundef @.str.7)
%41 = icmp eq i64 %40, 0
br i1 %41, label %50, label %42
42: ; preds = %38
%43 = load ptr, ptr %3, align 8
%44 = call i64 @strcasecmp(ptr noundef %43, ptr noundef @.str.8)
%45 = icmp eq i64 %44, 0
br i1 %45, label %50, label %46
46: ; preds = %42
%47 = load ptr, ptr %3, align 8
%48 = call i64 @strcasecmp(ptr noundef %47, ptr noundef @.str.7)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %46, %42, %38, %34, %30, %26, %22, %18
store i32 1, ptr %2, align 4
br label %52
51: ; preds = %46
store i32 0, ptr %2, align 4
br label %52
52: ; preds = %51, %50, %15, %7
%53 = load i32, ptr %2, align 4
ret i32 %53
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strcasecmp(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/tmp9_c0t6pp.c'
source_filename = "/tmp/tmp9_c0t6pp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
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 %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @SEEK_END, align 4
%11 = call i32 @fseek(ptr noundef %9, i32 noundef 0, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i64 @ftell(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @rewind(ptr noundef %14)
%16 = load i64, ptr %4, align 8
%17 = add i64 %16, 1
%18 = call ptr @malloc(i64 noundef %17)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i64, ptr %4, align 8
%21 = load ptr, ptr %3, align 8
%22 = call i32 @fread(ptr noundef %19, i32 noundef 1, i64 noundef %20, ptr noundef %21)
store i32 %22, ptr %6, align 4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 0, ptr %26, align 1
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fclose(ptr noundef %27)
%29 = load ptr, ptr %5, align 8
ret ptr %29
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9_c0t6pp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
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 %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @SEEK_END, align 4
%11 = call i32 @fseek(ptr noundef %9, i32 noundef 0, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i64 @ftell(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @rewind(ptr noundef %14)
%16 = load i64, ptr %4, align 8
%17 = add i64 %16, 1
%18 = call ptr @malloc(i64 noundef %17)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i64, ptr %4, align 8
%21 = load ptr, ptr %3, align 8
%22 = call i32 @fread(ptr noundef %19, i32 noundef 1, i64 noundef %20, ptr noundef %21)
store i32 %22, ptr %6, align 4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 0, ptr %26, align 1
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fclose(ptr noundef %27)
%29 = load ptr, ptr %5, align 8
ret ptr %29
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxf318dij.c'
source_filename = "/tmp/tmpxf318dij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [72 x i8] c"block (%d,%d,%d,%d) entry (%d,%d) over (%d,%d) value=%f ref=%f (at %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @compareBlockMatrix(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, double noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca i32, align 4
store ptr %0, ptr %10, align 8
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store ptr %5, ptr %15, align 8
store i32 %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
store double %8, ptr %18, align 8
%25 = load i32, ptr %14, align 4
%26 = load i32, ptr %13, align 4
%27 = sub nsw i32 %25, %26
store i32 %27, ptr %21, align 4
store i32 0, ptr %24, align 4
%28 = load i32, ptr %11, align 4
store i32 %28, ptr %19, align 4
br label %29
29: ; preds = %114, %9
%30 = load i32, ptr %19, align 4
%31 = load i32, ptr %12, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %117
33: ; preds = %29
%34 = load i32, ptr %13, align 4
store i32 %34, ptr %20, align 4
br label %35
35: ; preds = %110, %33
%36 = load i32, ptr %20, align 4
%37 = load i32, ptr %14, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %113
39: ; preds = %35
%40 = load ptr, ptr %10, align 8
%41 = load i32, ptr %19, align 4
%42 = load i32, ptr %11, align 4
%43 = sub nsw i32 %41, %42
%44 = load i32, ptr %21, align 4
%45 = mul nsw i32 %43, %44
%46 = load i32, ptr %20, align 4
%47 = load i32, ptr %13, align 4
%48 = sub nsw i32 %46, %47
%49 = add nsw i32 %45, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %40, i64 %50
%52 = load double, ptr %51, align 8
%53 = load ptr, ptr %15, align 8
%54 = load i32, ptr %19, align 4
%55 = load i32, ptr %17, align 4
%56 = mul nsw i32 %54, %55
%57 = load i32, ptr %20, align 4
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %53, i64 %59
%61 = load double, ptr %60, align 8
%62 = fsub double %52, %61
store double %62, ptr %22, align 8
%63 = load double, ptr %22, align 8
%64 = load double, ptr %22, align 8
%65 = fmul double %63, %64
store double %65, ptr %23, align 8
%66 = load double, ptr %23, align 8
%67 = load double, ptr %18, align 8
%68 = fcmp ogt double %66, %67
br i1 %68, label %69, label %109
69: ; preds = %39
%70 = load i32, ptr %11, align 4
%71 = load i32, ptr %12, align 4
%72 = load i32, ptr %13, align 4
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %19, align 4
%75 = load i32, ptr %20, align 4
%76 = load i32, ptr %16, align 4
%77 = load i32, ptr %17, align 4
%78 = load ptr, ptr %10, align 8
%79 = load i32, ptr %19, align 4
%80 = load i32, ptr %11, align 4
%81 = sub nsw i32 %79, %80
%82 = load i32, ptr %21, align 4
%83 = mul nsw i32 %81, %82
%84 = load i32, ptr %20, align 4
%85 = load i32, ptr %13, align 4
%86 = sub nsw i32 %84, %85
%87 = add nsw i32 %83, %86
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, ptr %78, i64 %88
%90 = load double, ptr %89, align 8
%91 = load ptr, ptr %15, align 8
%92 = load i32, ptr %19, align 4
%93 = load i32, ptr %17, align 4
%94 = mul nsw i32 %92, %93
%95 = load i32, ptr %20, align 4
%96 = add nsw i32 %94, %95
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, ptr %91, i64 %97
%99 = load double, ptr %98, align 8
%100 = load i32, ptr %19, align 4
%101 = load i32, ptr %17, align 4
%102 = mul nsw i32 %100, %101
%103 = load i32, ptr %20, align 4
%104 = add nsw i32 %102, %103
%105 = call i32 @printf(ptr noundef @.str, i32 noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77, double noundef %90, double noundef %99, i32 noundef %104)
%106 = load i32, ptr %24, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %24, align 4
%108 = call i32 @exit(i32 noundef -1) #3
unreachable
109: ; preds = %39
br label %110
110: ; preds = %109
%111 = load i32, ptr %20, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %20, align 4
br label %35, !llvm.loop !6
113: ; preds = %35
br label %114
114: ; preds = %113
%115 = load i32, ptr %19, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %19, align 4
br label %29, !llvm.loop !8
117: ; preds = %29
%118 = load i32, ptr %24, align 4
ret i32 %118
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxf318dij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [72 x i8] c"block (%d,%d,%d,%d) entry (%d,%d) over (%d,%d) value=%f ref=%f (at %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @compareBlockMatrix(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, double noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca i32, align 4
store ptr %0, ptr %10, align 8
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store ptr %5, ptr %15, align 8
store i32 %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
store double %8, ptr %18, align 8
%25 = load i32, ptr %14, align 4
%26 = load i32, ptr %13, align 4
%27 = sub nsw i32 %25, %26
store i32 %27, ptr %21, align 4
store i32 0, ptr %24, align 4
%28 = load i32, ptr %11, align 4
store i32 %28, ptr %19, align 4
%29 = load i32, ptr %19, align 4
%30 = load i32, ptr %12, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph2, label %121
.lr.ph2: ; preds = %9
br label %32
32: ; preds = %.lr.ph2, %115
%33 = load i32, ptr %13, align 4
store i32 %33, ptr %20, align 4
%34 = load i32, ptr %20, align 4
%35 = load i32, ptr %14, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph, label %114
.lr.ph: ; preds = %32
br label %37
37: ; preds = %.lr.ph, %108
%38 = load ptr, ptr %10, align 8
%39 = load i32, ptr %19, align 4
%40 = load i32, ptr %11, align 4
%41 = sub nsw i32 %39, %40
%42 = load i32, ptr %21, align 4
%43 = mul nsw i32 %41, %42
%44 = load i32, ptr %20, align 4
%45 = load i32, ptr %13, align 4
%46 = sub nsw i32 %44, %45
%47 = add nsw i32 %43, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %38, i64 %48
%50 = load double, ptr %49, align 8
%51 = load ptr, ptr %15, align 8
%52 = load i32, ptr %19, align 4
%53 = load i32, ptr %17, align 4
%54 = mul nsw i32 %52, %53
%55 = load i32, ptr %20, align 4
%56 = add nsw i32 %54, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %51, i64 %57
%59 = load double, ptr %58, align 8
%60 = fsub double %50, %59
store double %60, ptr %22, align 8
%61 = load double, ptr %22, align 8
%62 = load double, ptr %22, align 8
%63 = fmul double %61, %62
store double %63, ptr %23, align 8
%64 = load double, ptr %23, align 8
%65 = load double, ptr %18, align 8
%66 = fcmp ogt double %64, %65
br i1 %66, label %67, label %107
67: ; preds = %37
%68 = load i32, ptr %11, align 4
%69 = load i32, ptr %12, align 4
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %14, align 4
%72 = load i32, ptr %19, align 4
%73 = load i32, ptr %20, align 4
%74 = load i32, ptr %16, align 4
%75 = load i32, ptr %17, align 4
%76 = load ptr, ptr %10, align 8
%77 = load i32, ptr %19, align 4
%78 = load i32, ptr %11, align 4
%79 = sub nsw i32 %77, %78
%80 = load i32, ptr %21, align 4
%81 = mul nsw i32 %79, %80
%82 = load i32, ptr %20, align 4
%83 = load i32, ptr %13, align 4
%84 = sub nsw i32 %82, %83
%85 = add nsw i32 %81, %84
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, ptr %76, i64 %86
%88 = load double, ptr %87, align 8
%89 = load ptr, ptr %15, align 8
%90 = load i32, ptr %19, align 4
%91 = load i32, ptr %17, align 4
%92 = mul nsw i32 %90, %91
%93 = load i32, ptr %20, align 4
%94 = add nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %89, i64 %95
%97 = load double, ptr %96, align 8
%98 = load i32, ptr %19, align 4
%99 = load i32, ptr %17, align 4
%100 = mul nsw i32 %98, %99
%101 = load i32, ptr %20, align 4
%102 = add nsw i32 %100, %101
%103 = call i32 @printf(ptr noundef @.str, i32 noundef %68, i32 noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75, double noundef %88, double noundef %97, i32 noundef %102)
%104 = load i32, ptr %24, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %24, align 4
%106 = call i32 @exit(i32 noundef -1) #3
unreachable
107: ; preds = %37
br label %108
108: ; preds = %107
%109 = load i32, ptr %20, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %20, align 4
%111 = load i32, ptr %20, align 4
%112 = load i32, ptr %14, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %108
br label %114
114: ; preds = %._crit_edge, %32
br label %115
115: ; preds = %114
%116 = load i32, ptr %19, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %19, align 4
%118 = load i32, ptr %19, align 4
%119 = load i32, ptr %12, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %115
br label %121
121: ; preds = %._crit_edge3, %9
%122 = load i32, ptr %24, align 4
ret i32 %122
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpuv8wj92a.c'
source_filename = "/tmp/tmpuv8wj92a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @op_for1() #0 {
%1 = call i32 @for1(i32 noundef 0)
ret void
}
declare i32 @for1(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/tmpuv8wj92a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @op_for1() #0 {
%1 = call i32 @for1(i32 noundef 0)
ret void
}
declare i32 @for1(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/tmp5hbhomt2.c'
source_filename = "/tmp/tmp5hbhomt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GLUT_DOWN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Mouse Down, left.\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Mouse Down, middle.\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Mouse Down, right.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mouse(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
switch i32 %9, label %31 [
i32 130, label %10
i32 129, label %17
i32 128, label %24
]
10: ; preds = %4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr @GLUT_DOWN, align 4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str)
br label %16
16: ; preds = %14, %10
br label %32
17: ; preds = %4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr @GLUT_DOWN, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call i32 @printf(ptr noundef @.str.1)
br label %23
23: ; preds = %21, %17
br label %32
24: ; preds = %4
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr @GLUT_DOWN, align 4
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28, %24
br label %32
31: ; preds = %4
br label %32
32: ; preds = %31, %30, %23, %16
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5hbhomt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GLUT_DOWN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Mouse Down, left.\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Mouse Down, middle.\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Mouse Down, right.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mouse(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
switch i32 %9, label %31 [
i32 130, label %10
i32 129, label %17
i32 128, label %24
]
10: ; preds = %4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr @GLUT_DOWN, align 4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str)
br label %16
16: ; preds = %14, %10
br label %32
17: ; preds = %4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr @GLUT_DOWN, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call i32 @printf(ptr noundef @.str.1)
br label %23
23: ; preds = %21, %17
br label %32
24: ; preds = %4
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr @GLUT_DOWN, align 4
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28, %24
br label %32
31: ; preds = %4
br label %32
32: ; preds = %31, %30, %23, %16
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxpuo30y0.c'
source_filename = "/tmp/tmpxpuo30y0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Output File\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doWrite(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @write(i32 noundef %9, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %7, align 4
store i32 0, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %21
15: ; preds = %3
%16 = call i32 @perror(ptr noundef @.str)
%17 = load i32, ptr %4, align 4
%18 = call i32 @close(i32 noundef %17)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %3
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp ne i32 %22, %23
br i1 %24, label %25, label %55
25: ; preds = %21
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %8, align 4
br label %29
29: ; preds = %53, %25
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp ne i32 %30, %31
br i1 %32, label %33, label %54
33: ; preds = %29
%34 = load i32, ptr %4, align 4
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %8, align 4
%41 = sub nsw i32 %39, %40
%42 = call i32 @write(i32 noundef %34, ptr noundef %38, i32 noundef %41)
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, %42
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %7, align 4
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %53
47: ; preds = %33
%48 = call i32 @perror(ptr noundef @.str)
%49 = load i32, ptr %4, align 4
%50 = call i32 @close(i32 noundef %49)
%51 = load i32, ptr @EXIT_FAILURE, align 4
%52 = call i32 @exit(i32 noundef %51) #3
unreachable
53: ; preds = %33
br label %29, !llvm.loop !6
54: ; preds = %29
br label %55
55: ; preds = %54, %21
br label %56
56: ; preds = %55
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxpuo30y0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Output File\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doWrite(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @write(i32 noundef %9, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %7, align 4
store i32 0, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %21
15: ; preds = %3
%16 = call i32 @perror(ptr noundef @.str)
%17 = load i32, ptr %4, align 4
%18 = call i32 @close(i32 noundef %17)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %3
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp ne i32 %22, %23
br i1 %24, label %25, label %57
25: ; preds = %21
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %8, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp ne i32 %29, %30
br i1 %31, label %.lr.ph, label %56
.lr.ph: ; preds = %25
br label %36
32: ; preds = %36
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %8, align 4
%35 = icmp ne i32 %33, %34
br i1 %35, label %36, label %._crit_edge, !llvm.loop !6
36: ; preds = %.lr.ph, %32
%37 = load i32, ptr %4, align 4
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %8, align 4
%44 = sub nsw i32 %42, %43
%45 = call i32 @write(i32 noundef %37, ptr noundef %41, i32 noundef %44)
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %7, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %32
50: ; preds = %36
%51 = call i32 @perror(ptr noundef @.str)
%52 = load i32, ptr %4, align 4
%53 = call i32 @close(i32 noundef %52)
%54 = load i32, ptr @EXIT_FAILURE, align 4
%55 = call i32 @exit(i32 noundef %54) #3
unreachable
._crit_edge: ; preds = %32
br label %56
56: ; preds = %._crit_edge, %25
br label %57
57: ; preds = %56, %21
br label %58
58: ; preds = %57
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpunlkwnr6.c'
source_filename = "/tmp/tmpunlkwnr6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"What is thy bidding?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showprompt() #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/tmpunlkwnr6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"What is thy bidding?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showprompt() #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/tmpneq_4fdl.c'
source_filename = "/tmp/tmpneq_4fdl.c"
target datalayout = "e-m:e-p270: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/tmpneq_4fdl.c"
target datalayout = "e-m:e-p270: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/tmp8bec5tme.c'
source_filename = "/tmp/tmp8bec5tme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uint64tob(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call ptr @itob(i32 noundef %5, i32 noundef 64, ptr noundef %6)
ret ptr %7
}
declare ptr @itob(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/tmp8bec5tme.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uint64tob(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call ptr @itob(i32 noundef %5, i32 noundef 64, ptr noundef %6)
ret ptr %7
}
declare ptr @itob(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/tmptlj47apw.c'
source_filename = "/tmp/tmptlj47apw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %18, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 30001
br i1 %5, label %6, label %21
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = srem i32 %7, 3
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = srem i32 %11, 7
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr %2, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %14, %10, %6
br label %18
18: ; preds = %17
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %3, !llvm.loop !6
21: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptlj47apw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 30001
br i1 %4, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %17
%6 = load i32, ptr %2, align 4
%7 = srem i32 %6, 3
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = srem i32 %10, 7
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %13, %9, %5
br label %17
17: ; preds = %16
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 30001
br i1 %21, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0pzgl1j3.c'
source_filename = "/tmp/tmp0pzgl1j3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%02x%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mc_macbytes_into_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call i64 @malloc(i32 noundef 18)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %3, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %27, %1
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 6
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = mul nsw i32 %13, 3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %12, i64 %15
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 5
%24 = zext i1 %23 to i64
%25 = select i1 %23, ptr @.str.1, ptr @.str.2
%26 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str, i8 noundef zeroext %21, ptr noundef %25)
br label %27
27: ; preds = %11
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %8, !llvm.loop !6
30: ; preds = %8
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0pzgl1j3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%02x%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mc_macbytes_into_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call i64 @malloc(i32 noundef 18)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %3, align 8
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 6
br i1 %9, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %26
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = mul nsw i32 %12, 3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %11, i64 %14
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 5
%23 = zext i1 %22 to i64
%24 = select i1 %22, ptr @.str.1, ptr @.str.2
%25 = call i32 @sprintf(ptr noundef %15, ptr noundef @.str, i8 noundef zeroext %20, ptr noundef %24)
br label %26
26: ; preds = %10
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 6
br i1 %30, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %1
%32 = load ptr, ptr %3, align 8
ret ptr %32
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpll74_c8j.c'
source_filename = "/tmp/tmpll74_c8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"length = %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"index %d is %c \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memsetSample() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 10, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%7 = call i32 @memset(ptr noundef %6, i8 noundef signext 100, i32 noundef 10)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %20, %0
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13, i32 noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %8, !llvm.loop !6
23: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpll74_c8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"length = %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"index %d is %c \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memsetSample() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 10, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%7 = call i32 @memset(ptr noundef %6, i8 noundef signext 100, i32 noundef 10)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %19
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %17)
br label %19
19: ; preds = %11
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %0
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphz8z9k9_.c'
source_filename = "/tmp/tmphz8z9k9_.c"
target datalayout = "e-m:e-p270: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/tmphz8z9k9_.c"
target datalayout = "e-m:e-p270: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/tmp7cpvae1l.c'
source_filename = "/tmp/tmp7cpvae1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_getpid = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @raw_syscall_getpid_run(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @__NR_getpid, align 4
%4 = call i32 @syscall(i32 noundef %3)
ret void
}
declare i32 @syscall(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/tmp7cpvae1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_getpid = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @raw_syscall_getpid_run(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @__NR_getpid, align 4
%4 = call i32 @syscall(i32 noundef %3)
ret void
}
declare i32 @syscall(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/tmpp72lya1f.c'
source_filename = "/tmp/tmpp72lya1f.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Your message is %d characters too long\0A.\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Updating status...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @update_status(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [80 x i8], align 16
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @message_extra_length(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, i32 noundef %12)
store i32 1, ptr %2, align 4
br label %25
14: ; preds = %1
%15 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%16 = call i32 @get_credentials(ptr noundef %15)
%17 = load ptr, ptr %3, align 8
%18 = call ptr @prepare_message(ptr noundef %17)
store ptr %18, ptr %3, align 8
%19 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%20 = load ptr, ptr %3, align 8
%21 = call i32 @access_url(ptr noundef %19, ptr noundef %20, i32 noundef 2)
%22 = load ptr, ptr %3, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %25
25: ; preds = %14, %10
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @message_extra_length(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @get_credentials(ptr noundef) #1
declare ptr @prepare_message(ptr noundef) #1
declare i32 @access_url(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(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/tmpp72lya1f.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Your message is %d characters too long\0A.\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Updating status...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @update_status(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [80 x i8], align 16
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @message_extra_length(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, i32 noundef %12)
store i32 1, ptr %2, align 4
br label %25
14: ; preds = %1
%15 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%16 = call i32 @get_credentials(ptr noundef %15)
%17 = load ptr, ptr %3, align 8
%18 = call ptr @prepare_message(ptr noundef %17)
store ptr %18, ptr %3, align 8
%19 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%20 = load ptr, ptr %3, align 8
%21 = call i32 @access_url(ptr noundef %19, ptr noundef %20, i32 noundef 2)
%22 = load ptr, ptr %3, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %25
25: ; preds = %14, %10
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @message_extra_length(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @get_credentials(ptr noundef) #1
declare ptr @prepare_message(ptr noundef) #1
declare i32 @access_url(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(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/tmp7y_s7aqp.c'
source_filename = "/tmp/tmp7y_s7aqp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__prussintc_set_hmr(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = and i32 %8, -4
%10 = add nsw i32 2048, %9
%11 = ashr i32 %10, 2
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %7, i64 %12
%14 = load volatile i32, ptr %13, align 4
%15 = load i32, ptr %6, align 4
%16 = and i32 %15, 15
%17 = load i32, ptr %5, align 4
%18 = and i32 %17, 3
%19 = shl i32 %18, 3
%20 = shl i32 %16, %19
%21 = or i32 %14, %20
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = and i32 %23, -4
%25 = add nsw i32 2048, %24
%26 = ashr i32 %25, 2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %22, i64 %27
store volatile i32 %21, ptr %28, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7y_s7aqp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__prussintc_set_hmr(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = and i32 %8, -4
%10 = add nsw i32 2048, %9
%11 = ashr i32 %10, 2
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %7, i64 %12
%14 = load volatile i32, ptr %13, align 4
%15 = load i32, ptr %6, align 4
%16 = and i32 %15, 15
%17 = load i32, ptr %5, align 4
%18 = and i32 %17, 3
%19 = shl i32 %18, 3
%20 = shl i32 %16, %19
%21 = or i32 %14, %20
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = and i32 %23, -4
%25 = add nsw i32 2048, %24
%26 = ashr i32 %25, 2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %22, i64 %27
store volatile i32 %21, ptr %28, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa19uyja3.c'
source_filename = "/tmp/tmpa19uyja3.c"
target datalayout = "e-m:e-p270: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.v4l2_buffer = type { i32, i32 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@V4L2_BUF_TYPE_VIDEO_CAPTURE = dso_local global i32 0, align 4
@V4L2_MEMORY_MMAP = dso_local global i32 0, align 4
@VIDIOC_DQBUF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_frame(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 %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %8, %2
%12 = load i32, ptr @EINVAL, align 4
store i32 %12, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %26
13: ; preds = %8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 8)
%16 = load i32, ptr @V4L2_BUF_TYPE_VIDEO_CAPTURE, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds %struct.v4l2_buffer, ptr %17, i32 0, i32 1
store i32 %16, ptr %18, align 4
%19 = load i32, ptr @V4L2_MEMORY_MMAP, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds %struct.v4l2_buffer, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr @VIDIOC_DQBUF, align 4
%24 = load ptr, ptr %5, align 8
%25 = call i32 @xioctl(i32 noundef %22, i32 noundef %23, ptr noundef %24)
store i32 %25, ptr %3, align 4
br label %26
26: ; preds = %13, %11
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @xioctl(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/tmpa19uyja3.c"
target datalayout = "e-m:e-p270: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.v4l2_buffer = type { i32, i32 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@V4L2_BUF_TYPE_VIDEO_CAPTURE = dso_local global i32 0, align 4
@V4L2_MEMORY_MMAP = dso_local global i32 0, align 4
@VIDIOC_DQBUF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_frame(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 %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %8, %2
%12 = load i32, ptr @EINVAL, align 4
store i32 %12, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %26
13: ; preds = %8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 8)
%16 = load i32, ptr @V4L2_BUF_TYPE_VIDEO_CAPTURE, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds %struct.v4l2_buffer, ptr %17, i32 0, i32 1
store i32 %16, ptr %18, align 4
%19 = load i32, ptr @V4L2_MEMORY_MMAP, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds %struct.v4l2_buffer, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr @VIDIOC_DQBUF, align 4
%24 = load ptr, ptr %5, align 8
%25 = call i32 @xioctl(i32 noundef %22, i32 noundef %23, ptr noundef %24)
store i32 %25, ptr %3, align 4
br label %26
26: ; preds = %13, %11
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @xioctl(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/tmpwbd3yunz.c'
source_filename = "/tmp/tmpwbd3yunz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jouerCoupIABatailleNavale(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
switch i32 %6, label %16 [
i32 1, label %7
i32 2, label %10
i32 3, label %13
]
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @IABatailleNavaleFacile(ptr noundef %8)
store i32 %9, ptr %5, align 4
br label %16
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @IABatailleNavaleNormal(ptr noundef %11)
store i32 %12, ptr %5, align 4
br label %16
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = call i32 @IABatailleNavaleDifficile(ptr noundef %14)
store i32 %15, ptr %5, align 4
br label %16
16: ; preds = %2, %13, %10, %7
%17 = load i32, ptr %5, align 4
ret i32 %17
}
declare i32 @IABatailleNavaleFacile(ptr noundef) #1
declare i32 @IABatailleNavaleNormal(ptr noundef) #1
declare i32 @IABatailleNavaleDifficile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwbd3yunz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jouerCoupIABatailleNavale(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
switch i32 %6, label %16 [
i32 1, label %7
i32 2, label %10
i32 3, label %13
]
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @IABatailleNavaleFacile(ptr noundef %8)
store i32 %9, ptr %5, align 4
br label %16
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @IABatailleNavaleNormal(ptr noundef %11)
store i32 %12, ptr %5, align 4
br label %16
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = call i32 @IABatailleNavaleDifficile(ptr noundef %14)
store i32 %15, ptr %5, align 4
br label %16
16: ; preds = %13, %10, %7, %2
%17 = load i32, ptr %5, align 4
ret i32 %17
}
declare i32 @IABatailleNavaleFacile(ptr noundef) #1
declare i32 @IABatailleNavaleNormal(ptr noundef) #1
declare i32 @IABatailleNavaleDifficile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo6qdin0a.c'
source_filename = "/tmp/tmpo6qdin0a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scarab_os_strerror(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @strerror(i32 noundef %3)
ret ptr %4
}
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo6qdin0a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scarab_os_strerror(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @strerror(i32 noundef %3)
ret ptr %4
}
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0nnb7lnb.c'
source_filename = "/tmp/tmp0nnb7lnb.c"
target datalayout = "e-m:e-p270: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/tmp0nnb7lnb.c"
target datalayout = "e-m:e-p270: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/tmplex7even.c'
source_filename = "/tmp/tmplex7even.c"
target datalayout = "e-m:e-p270: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/tmplex7even.c"
target datalayout = "e-m:e-p270: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/tmpp67sj2mz.c'
source_filename = "/tmp/tmpp67sj2mz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"BGP route file tools\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"--------------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"bgpprint [FILE] : just read & print FILE; best used with -fmt FMT\0A\00", align 1
@.str.3 = private unnamed_addr constant [75 x i8] c"bgpcmp [BEFORE] [AFTER] : show what changed in BGP files BEFORE and AFTER\0A\00", align 1
@.str.4 = private unnamed_addr constant [83 x i8] c"bgpsortby [NAME] [FILE] : sort FILE by prefix, MED, etc.. prefix is a tie-breaker\0A\00", align 1
@.str.5 = private unnamed_addr constant [55 x i8] c"bgpsortby help\09 : print available sort options\0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c"bgpfilter [FILE] [EXPR] : grep FILE using regexp EXPR\0A\00", align 1
@.str.7 = private unnamed_addr constant [57 x i8] c"bgpfilter help : prints help about bgp filters\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage_en_bgp() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
ret 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/tmpp67sj2mz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"BGP route file tools\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"--------------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"bgpprint [FILE] : just read & print FILE; best used with -fmt FMT\0A\00", align 1
@.str.3 = private unnamed_addr constant [75 x i8] c"bgpcmp [BEFORE] [AFTER] : show what changed in BGP files BEFORE and AFTER\0A\00", align 1
@.str.4 = private unnamed_addr constant [83 x i8] c"bgpsortby [NAME] [FILE] : sort FILE by prefix, MED, etc.. prefix is a tie-breaker\0A\00", align 1
@.str.5 = private unnamed_addr constant [55 x i8] c"bgpsortby help\09 : print available sort options\0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c"bgpfilter [FILE] [EXPR] : grep FILE using regexp EXPR\0A\00", align 1
@.str.7 = private unnamed_addr constant [57 x i8] c"bgpfilter help : prints help about bgp filters\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage_en_bgp() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
ret 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/tmpgz9o9vay.c'
source_filename = "/tmp/tmpgz9o9vay.c"
target datalayout = "e-m:e-p270: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/tmpgz9o9vay.c"
target datalayout = "e-m:e-p270: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/tmprj6by15y.c'
source_filename = "/tmp/tmprj6by15y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @probability_norm(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %3, align 8
%7 = load double, ptr %3, align 8
%8 = fcmp olt double %7, -5.000000e+00
br i1 %8, label %9, label %10
9: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %46
10: ; preds = %1
%11 = load double, ptr %3, align 8
%12 = fcmp ogt double %11, 5.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %10
store double 1.000000e+00, ptr %2, align 8
br label %46
14: ; preds = %10
%15 = load double, ptr %3, align 8
%16 = call double @llvm.fabs.f64(double %15)
%17 = call double @sqrt(double noundef 2.000000e+00) #4
%18 = fdiv double %16, %17
store double %18, ptr %4, align 8
%19 = load double, ptr %4, align 8
%20 = load double, ptr %4, align 8
%21 = load double, ptr %4, align 8
%22 = load double, ptr %4, align 8
%23 = load double, ptr %4, align 8
%24 = load double, ptr %4, align 8
%25 = call double @llvm.fmuladd.f64(double %24, double 4.306380e-05, double 0x3F3220071442EE6C)
%26 = call double @llvm.fmuladd.f64(double %23, double %25, double 0x3F23ECC0E4E05F94)
%27 = call double @llvm.fmuladd.f64(double %22, double %26, double 0x3F82FC6D19201C06)
%28 = call double @llvm.fmuladd.f64(double %21, double %27, double 0x3FA5A5FCE8133C57)
%29 = call double @llvm.fmuladd.f64(double %20, double %28, double 0x3FB20DCCEB575BC4)
%30 = call double @llvm.fmuladd.f64(double %19, double %29, double 1.000000e+00)
store double %30, ptr %5, align 8
%31 = load double, ptr %5, align 8
%32 = call i32 @pow(double noundef %31, double noundef -1.600000e+01)
%33 = sub nsw i32 1, %32
%34 = sitofp i32 %33 to double
store double %34, ptr %6, align 8
%35 = load double, ptr %3, align 8
%36 = fcmp olt double %35, 0.000000e+00
br i1 %36, label %37, label %40
37: ; preds = %14
%38 = load double, ptr %6, align 8
%39 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %38, double 5.000000e-01)
br label %43
40: ; preds = %14
%41 = load double, ptr %6, align 8
%42 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %41, double 5.000000e-01)
br label %43
43: ; preds = %40, %37
%44 = phi double [ %39, %37 ], [ %42, %40 ]
store double %44, ptr %5, align 8
%45 = load double, ptr %5, align 8
store double %45, ptr %2, align 8
br label %46
46: ; preds = %43, %13, %9
%47 = load double, ptr %2, align 8
ret double %47
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @pow(double noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprj6by15y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @probability_norm(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %3, align 8
%7 = load double, ptr %3, align 8
%8 = fcmp olt double %7, -5.000000e+00
br i1 %8, label %9, label %10
9: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %46
10: ; preds = %1
%11 = load double, ptr %3, align 8
%12 = fcmp ogt double %11, 5.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %10
store double 1.000000e+00, ptr %2, align 8
br label %46
14: ; preds = %10
%15 = load double, ptr %3, align 8
%16 = call double @llvm.fabs.f64(double %15)
%17 = call double @sqrt(double noundef 2.000000e+00) #4
%18 = fdiv double %16, %17
store double %18, ptr %4, align 8
%19 = load double, ptr %4, align 8
%20 = load double, ptr %4, align 8
%21 = load double, ptr %4, align 8
%22 = load double, ptr %4, align 8
%23 = load double, ptr %4, align 8
%24 = load double, ptr %4, align 8
%25 = call double @llvm.fmuladd.f64(double %24, double 4.306380e-05, double 0x3F3220071442EE6C)
%26 = call double @llvm.fmuladd.f64(double %23, double %25, double 0x3F23ECC0E4E05F94)
%27 = call double @llvm.fmuladd.f64(double %22, double %26, double 0x3F82FC6D19201C06)
%28 = call double @llvm.fmuladd.f64(double %21, double %27, double 0x3FA5A5FCE8133C57)
%29 = call double @llvm.fmuladd.f64(double %20, double %28, double 0x3FB20DCCEB575BC4)
%30 = call double @llvm.fmuladd.f64(double %19, double %29, double 1.000000e+00)
store double %30, ptr %5, align 8
%31 = load double, ptr %5, align 8
%32 = call i32 @pow(double noundef %31, double noundef -1.600000e+01)
%33 = sub nsw i32 1, %32
%34 = sitofp i32 %33 to double
store double %34, ptr %6, align 8
%35 = load double, ptr %3, align 8
%36 = fcmp olt double %35, 0.000000e+00
br i1 %36, label %37, label %40
37: ; preds = %14
%38 = load double, ptr %6, align 8
%39 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %38, double 5.000000e-01)
br label %43
40: ; preds = %14
%41 = load double, ptr %6, align 8
%42 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %41, double 5.000000e-01)
br label %43
43: ; preds = %40, %37
%44 = phi double [ %39, %37 ], [ %42, %40 ]
store double %44, ptr %5, align 8
%45 = load double, ptr %5, align 8
store double %45, ptr %2, align 8
br label %46
46: ; preds = %43, %13, %9
%47 = load double, ptr %2, align 8
ret double %47
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @pow(double noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6rv7x6_u.c'
source_filename = "/tmp/tmp6rv7x6_u.c"
target datalayout = "e-m:e-p270: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.tm = type { i32, i32, i32, i32, i32, i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @HibernateCalendarGet(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load volatile i32, ptr inttoptr (i64 1074774784 to ptr), align 4
%7 = and i32 %6, 1
%8 = call i32 @ASSERT(i32 noundef %7)
br label %9
9: ; preds = %11, %1
%10 = load volatile i32, ptr inttoptr (i64 1074774804 to ptr), align 4
store i32 %10, ptr %4, align 4
br label %11
11: ; preds = %9
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, -2147483648
%14 = icmp eq i32 %13, 0
br i1 %14, label %9, label %15, !llvm.loop !6
15: ; preds = %11
br label %16
16: ; preds = %18, %15
%17 = load volatile i32, ptr inttoptr (i64 1074774800 to ptr), align 4
store i32 %17, ptr %5, align 4
br label %18
18: ; preds = %16
%19 = load i32, ptr %5, align 4
%20 = and i32 %19, -2147483648
%21 = icmp eq i32 %20, 0
br i1 %21, label %16, label %22, !llvm.loop !8
22: ; preds = %18
%23 = load i32, ptr %4, align 4
%24 = load volatile i32, ptr inttoptr (i64 1074774804 to ptr), align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 -1, ptr %2, align 4
br label %78
27: ; preds = %22
%28 = load i32, ptr %5, align 4
%29 = and i32 %28, 16128
%30 = ashr i32 %29, 8
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds %struct.tm, ptr %31, i32 0, i32 0
store i32 %30, ptr %32, align 4
%33 = load i32, ptr %5, align 4
%34 = and i32 %33, 63
%35 = ashr i32 %34, 0
%36 = load ptr, ptr %3, align 8
%37 = getelementptr inbounds %struct.tm, ptr %36, i32 0, i32 1
store i32 %35, ptr %37, align 4
%38 = load i32, ptr %4, align 4
%39 = and i32 %38, 3840
%40 = ashr i32 %39, 8
%41 = sub nsw i32 %40, 1
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds %struct.tm, ptr %42, i32 0, i32 2
store i32 %41, ptr %43, align 4
%44 = load i32, ptr %4, align 4
%45 = and i32 %44, 31
%46 = ashr i32 %45, 0
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds %struct.tm, ptr %47, i32 0, i32 3
store i32 %46, ptr %48, align 4
%49 = load i32, ptr %4, align 4
%50 = and i32 %49, 117440512
%51 = ashr i32 %50, 24
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds %struct.tm, ptr %52, i32 0, i32 4
store i32 %51, ptr %53, align 4
%54 = load i32, ptr %4, align 4
%55 = and i32 %54, 8323072
%56 = ashr i32 %55, 16
%57 = add nsw i32 %56, 100
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds %struct.tm, ptr %58, i32 0, i32 5
store i32 %57, ptr %59, align 4
%60 = load i32, ptr %5, align 4
%61 = and i32 %60, 2031616
%62 = ashr i32 %61, 16
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds %struct.tm, ptr %63, i32 0, i32 6
store i32 %62, ptr %64, align 4
%65 = load volatile i32, ptr inttoptr (i64 1074774784 to ptr), align 4
%66 = and i32 %65, 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %77
68: ; preds = %27
%69 = load i32, ptr %5, align 4
%70 = and i32 %69, 4194304
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %77
72: ; preds = %68
%73 = load ptr, ptr %3, align 8
%74 = getelementptr inbounds %struct.tm, ptr %73, i32 0, i32 6
%75 = load i32, ptr %74, align 4
%76 = add nsw i32 %75, 12
store i32 %76, ptr %74, align 4
br label %77
77: ; preds = %72, %68, %27
store i32 0, ptr %2, align 4
br label %78
78: ; preds = %77, %26
%79 = load i32, ptr %2, align 4
ret i32 %79
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6rv7x6_u.c"
target datalayout = "e-m:e-p270: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.tm = type { i32, i32, i32, i32, i32, i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @HibernateCalendarGet(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load volatile i32, ptr inttoptr (i64 1074774784 to ptr), align 4
%7 = and i32 %6, 1
%8 = call i32 @ASSERT(i32 noundef %7)
br label %9
9: ; preds = %11, %1
%10 = load volatile i32, ptr inttoptr (i64 1074774804 to ptr), align 4
store i32 %10, ptr %4, align 4
br label %11
11: ; preds = %9
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, -2147483648
%14 = icmp eq i32 %13, 0
br i1 %14, label %9, label %15, !llvm.loop !6
15: ; preds = %11
br label %16
16: ; preds = %18, %15
%17 = load volatile i32, ptr inttoptr (i64 1074774800 to ptr), align 4
store i32 %17, ptr %5, align 4
br label %18
18: ; preds = %16
%19 = load i32, ptr %5, align 4
%20 = and i32 %19, -2147483648
%21 = icmp eq i32 %20, 0
br i1 %21, label %16, label %22, !llvm.loop !8
22: ; preds = %18
%23 = load i32, ptr %4, align 4
%24 = load volatile i32, ptr inttoptr (i64 1074774804 to ptr), align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 -1, ptr %2, align 4
br label %78
27: ; preds = %22
%28 = load i32, ptr %5, align 4
%29 = and i32 %28, 16128
%30 = ashr i32 %29, 8
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds %struct.tm, ptr %31, i32 0, i32 0
store i32 %30, ptr %32, align 4
%33 = load i32, ptr %5, align 4
%34 = and i32 %33, 63
%35 = ashr i32 %34, 0
%36 = load ptr, ptr %3, align 8
%37 = getelementptr inbounds %struct.tm, ptr %36, i32 0, i32 1
store i32 %35, ptr %37, align 4
%38 = load i32, ptr %4, align 4
%39 = and i32 %38, 3840
%40 = ashr i32 %39, 8
%41 = sub nsw i32 %40, 1
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds %struct.tm, ptr %42, i32 0, i32 2
store i32 %41, ptr %43, align 4
%44 = load i32, ptr %4, align 4
%45 = and i32 %44, 31
%46 = ashr i32 %45, 0
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds %struct.tm, ptr %47, i32 0, i32 3
store i32 %46, ptr %48, align 4
%49 = load i32, ptr %4, align 4
%50 = and i32 %49, 117440512
%51 = ashr i32 %50, 24
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds %struct.tm, ptr %52, i32 0, i32 4
store i32 %51, ptr %53, align 4
%54 = load i32, ptr %4, align 4
%55 = and i32 %54, 8323072
%56 = ashr i32 %55, 16
%57 = add nsw i32 %56, 100
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds %struct.tm, ptr %58, i32 0, i32 5
store i32 %57, ptr %59, align 4
%60 = load i32, ptr %5, align 4
%61 = and i32 %60, 2031616
%62 = ashr i32 %61, 16
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds %struct.tm, ptr %63, i32 0, i32 6
store i32 %62, ptr %64, align 4
%65 = load volatile i32, ptr inttoptr (i64 1074774784 to ptr), align 4
%66 = and i32 %65, 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %77
68: ; preds = %27
%69 = load i32, ptr %5, align 4
%70 = and i32 %69, 4194304
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %77
72: ; preds = %68
%73 = load ptr, ptr %3, align 8
%74 = getelementptr inbounds %struct.tm, ptr %73, i32 0, i32 6
%75 = load i32, ptr %74, align 4
%76 = add nsw i32 %75, 12
store i32 %76, ptr %74, align 4
br label %77
77: ; preds = %72, %68, %27
store i32 0, ptr %2, align 4
br label %78
78: ; preds = %77, %26
%79 = load i32, ptr %2, align 4
ret i32 %79
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpidzek0bn.c'
source_filename = "/tmp/tmpidzek0bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Decipher(ptr noundef %0, i32 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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %2
%25 = load ptr, ptr %4, align 8
store ptr %25, ptr %3, align 8
br label %188
26: ; preds = %2
store i32 0, ptr %6, align 4
br label %27
27: ; preds = %34, %26
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %27
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %27, !llvm.loop !6
37: ; preds = %27
%38 = load i32, ptr %5, align 4
%39 = zext i32 %38 to i64
%40 = load i32, ptr %6, align 4
%41 = zext i32 %40 to i64
%42 = call ptr @llvm.stacksave()
store ptr %42, ptr %7, align 8
%43 = mul nuw i64 %39, %41
%44 = alloca i8, i64 %43, align 16
store i64 %39, ptr %8, align 8
store i64 %41, ptr %9, align 8
%45 = load i32, ptr %6, align 4
%46 = add nsw i32 %45, 1
%47 = call ptr @malloc(i32 noundef %46)
store ptr %47, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %48
48: ; preds = %69, %37
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %5, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %72
52: ; preds = %48
store i32 0, ptr %12, align 4
br label %53
53: ; preds = %65, %52
%54 = load i32, ptr %12, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %68
57: ; preds = %53
%58 = load i32, ptr %11, align 4
%59 = sext i32 %58 to i64
%60 = mul nsw i64 %59, %41
%61 = getelementptr inbounds i8, ptr %44, i64 %60
%62 = load i32, ptr %12, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
store i8 36, ptr %64, align 1
br label %65
65: ; preds = %57
%66 = load i32, ptr %12, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %12, align 4
br label %53, !llvm.loop !8
68: ; preds = %53
br label %69
69: ; preds = %68
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %11, align 4
br label %48, !llvm.loop !9
72: ; preds = %48
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
br label %73
73: ; preds = %99, %72
%74 = load i32, ptr %14, align 4
%75 = load i32, ptr %6, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %102
77: ; preds = %73
%78 = load i32, ptr %15, align 4
%79 = sext i32 %78 to i64
%80 = mul nsw i64 %79, %41
%81 = getelementptr inbounds i8, ptr %44, i64 %80
%82 = load i32, ptr %14, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
store i8 35, ptr %84, align 1
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %15, align 4
%87 = add nsw i32 %86, %85
store i32 %87, ptr %15, align 4
%88 = load i32, ptr %15, align 4
%89 = load i32, ptr %5, align 4
%90 = sub nsw i32 %89, 1
%91 = icmp eq i32 %88, %90
br i1 %91, label %95, label %92
92: ; preds = %77
%93 = load i32, ptr %15, align 4
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %92, %77
%96 = load i32, ptr %13, align 4
%97 = mul nsw i32 %96, -1
store i32 %97, ptr %13, align 4
br label %98
98: ; preds = %95, %92
br label %99
99: ; preds = %98
%100 = load i32, ptr %14, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %14, align 4
br label %73, !llvm.loop !10
102: ; preds = %73
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
br label %103
103: ; preds = %142, %102
%104 = load i32, ptr %17, align 4
%105 = load i32, ptr %5, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %145
107: ; preds = %103
store i32 0, ptr %18, align 4
br label %108
108: ; preds = %138, %107
%109 = load i32, ptr %18, align 4
%110 = load i32, ptr %6, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %141
112: ; preds = %108
%113 = load i32, ptr %17, align 4
%114 = sext i32 %113 to i64
%115 = mul nsw i64 %114, %41
%116 = getelementptr inbounds i8, ptr %44, i64 %115
%117 = load i32, ptr %18, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, ptr %116, i64 %118
%120 = load i8, ptr %119, align 1
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 35
br i1 %122, label %123, label %137
123: ; preds = %112
%124 = load ptr, ptr %4, align 8
%125 = load i32, ptr %16, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %16, align 4
%127 = sext i32 %125 to i64
%128 = getelementptr inbounds i8, ptr %124, i64 %127
%129 = load i8, ptr %128, align 1
%130 = load i32, ptr %17, align 4
%131 = sext i32 %130 to i64
%132 = mul nsw i64 %131, %41
%133 = getelementptr inbounds i8, ptr %44, i64 %132
%134 = load i32, ptr %18, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %133, i64 %135
store i8 %129, ptr %136, align 1
br label %137
137: ; preds = %123, %112
br label %138
138: ; preds = %137
%139 = load i32, ptr %18, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %18, align 4
br label %108, !llvm.loop !11
141: ; preds = %108
br label %142
142: ; preds = %141
%143 = load i32, ptr %17, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %17, align 4
br label %103, !llvm.loop !12
145: ; preds = %103
store i32 0, ptr %19, align 4
store i32 1, ptr %13, align 4
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
br label %146
146: ; preds = %178, %145
%147 = load i32, ptr %20, align 4
%148 = load i32, ptr %6, align 4
%149 = icmp slt i32 %147, %148
br i1 %149, label %150, label %181
150: ; preds = %146
%151 = load i32, ptr %21, align 4
%152 = sext i32 %151 to i64
%153 = mul nsw i64 %152, %41
%154 = getelementptr inbounds i8, ptr %44, i64 %153
%155 = load i32, ptr %20, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8, ptr %154, i64 %156
%158 = load i8, ptr %157, align 1
%159 = load ptr, ptr %10, align 8
%160 = load i32, ptr %19, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %19, align 4
%162 = sext i32 %160 to i64
%163 = getelementptr inbounds i8, ptr %159, i64 %162
store i8 %158, ptr %163, align 1
%164 = load i32, ptr %13, align 4
%165 = load i32, ptr %21, align 4
%166 = add nsw i32 %165, %164
store i32 %166, ptr %21, align 4
%167 = load i32, ptr %21, align 4
%168 = load i32, ptr %5, align 4
%169 = sub nsw i32 %168, 1
%170 = icmp eq i32 %167, %169
br i1 %170, label %174, label %171
171: ; preds = %150
%172 = load i32, ptr %21, align 4
%173 = icmp eq i32 %172, 0
br i1 %173, label %174, label %177
174: ; preds = %171, %150
%175 = load i32, ptr %13, align 4
%176 = mul nsw i32 %175, -1
store i32 %176, ptr %13, align 4
br label %177
177: ; preds = %174, %171
br label %178
178: ; preds = %177
%179 = load i32, ptr %20, align 4
%180 = add nsw i32 %179, 1
store i32 %180, ptr %20, align 4
br label %146, !llvm.loop !13
181: ; preds = %146
%182 = load ptr, ptr %10, align 8
%183 = load i32, ptr %19, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, ptr %182, i64 %184
store i8 0, ptr %185, align 1
%186 = load ptr, ptr %10, align 8
store ptr %186, ptr %3, align 8
%187 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %187)
br label %188
188: ; preds = %181, %24
%189 = load ptr, ptr %3, align 8
ret ptr %189
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @malloc(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!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/tmpidzek0bn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Decipher(ptr noundef %0, i32 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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %2
%25 = load ptr, ptr %4, align 8
store ptr %25, ptr %3, align 8
br label %205
26: ; preds = %2
store i32 0, ptr %6, align 4
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = icmp ne i8 %31, 0
br i1 %32, label %.lr.ph, label %42
.lr.ph: ; preds = %26
br label %33
33: ; preds = %.lr.ph, %33
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = icmp ne i8 %40, 0
br i1 %41, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %42
42: ; preds = %._crit_edge, %26
%43 = load i32, ptr %5, align 4
%44 = zext i32 %43 to i64
%45 = load i32, ptr %6, align 4
%46 = zext i32 %45 to i64
%47 = call ptr @llvm.stacksave()
store ptr %47, ptr %7, align 8
%48 = mul nuw i64 %44, %46
%49 = alloca i8, i64 %48, align 16
store i64 %44, ptr %8, align 8
store i64 %46, ptr %9, align 8
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
%52 = call ptr @malloc(i32 noundef %51)
store ptr %52, ptr %10, align 8
store i32 0, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %.lr.ph5, label %81
.lr.ph5: ; preds = %42
br label %56
56: ; preds = %.lr.ph5, %75
store i32 0, ptr %12, align 4
%57 = load i32, ptr %12, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %.lr.ph2, label %74
.lr.ph2: ; preds = %56
br label %60
60: ; preds = %.lr.ph2, %68
%61 = load i32, ptr %11, align 4
%62 = sext i32 %61 to i64
%63 = mul nsw i64 %62, %46
%64 = getelementptr inbounds i8, ptr %49, i64 %63
%65 = load i32, ptr %12, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store i8 36, ptr %67, align 1
br label %68
68: ; preds = %60
%69 = load i32, ptr %12, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %12, align 4
%71 = load i32, ptr %12, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %60, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %68
br label %74
74: ; preds = %._crit_edge3, %56
br label %75
75: ; preds = %74
%76 = load i32, ptr %11, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %11, align 4
%78 = load i32, ptr %11, align 4
%79 = load i32, ptr %5, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %56, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %75
br label %81
81: ; preds = %._crit_edge6, %42
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%82 = load i32, ptr %14, align 4
%83 = load i32, ptr %6, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %.lr.ph8, label %113
.lr.ph8: ; preds = %81
br label %85
85: ; preds = %.lr.ph8, %107
%86 = load i32, ptr %15, align 4
%87 = sext i32 %86 to i64
%88 = mul nsw i64 %87, %46
%89 = getelementptr inbounds i8, ptr %49, i64 %88
%90 = load i32, ptr %14, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
store i8 35, ptr %92, align 1
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %15, align 4
%95 = add nsw i32 %94, %93
store i32 %95, ptr %15, align 4
%96 = load i32, ptr %15, align 4
%97 = load i32, ptr %5, align 4
%98 = sub nsw i32 %97, 1
%99 = icmp eq i32 %96, %98
br i1 %99, label %103, label %100
100: ; preds = %85
%101 = load i32, ptr %15, align 4
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %106
103: ; preds = %100, %85
%104 = load i32, ptr %13, align 4
%105 = mul nsw i32 %104, -1
store i32 %105, ptr %13, align 4
br label %106
106: ; preds = %103, %100
br label %107
107: ; preds = %106
%108 = load i32, ptr %14, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %14, align 4
%110 = load i32, ptr %14, align 4
%111 = load i32, ptr %6, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %85, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %107
br label %113
113: ; preds = %._crit_edge9, %81
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%114 = load i32, ptr %17, align 4
%115 = load i32, ptr %5, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %.lr.ph14, label %160
.lr.ph14: ; preds = %113
br label %117
117: ; preds = %.lr.ph14, %154
store i32 0, ptr %18, align 4
%118 = load i32, ptr %18, align 4
%119 = load i32, ptr %6, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %.lr.ph11, label %153
.lr.ph11: ; preds = %117
br label %121
121: ; preds = %.lr.ph11, %147
%122 = load i32, ptr %17, align 4
%123 = sext i32 %122 to i64
%124 = mul nsw i64 %123, %46
%125 = getelementptr inbounds i8, ptr %49, i64 %124
%126 = load i32, ptr %18, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, ptr %125, i64 %127
%129 = load i8, ptr %128, align 1
%130 = sext i8 %129 to i32
%131 = icmp eq i32 %130, 35
br i1 %131, label %132, label %146
132: ; preds = %121
%133 = load ptr, ptr %4, align 8
%134 = load i32, ptr %16, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %16, align 4
%136 = sext i32 %134 to i64
%137 = getelementptr inbounds i8, ptr %133, i64 %136
%138 = load i8, ptr %137, align 1
%139 = load i32, ptr %17, align 4
%140 = sext i32 %139 to i64
%141 = mul nsw i64 %140, %46
%142 = getelementptr inbounds i8, ptr %49, i64 %141
%143 = load i32, ptr %18, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i8, ptr %142, i64 %144
store i8 %138, ptr %145, align 1
br label %146
146: ; preds = %132, %121
br label %147
147: ; preds = %146
%148 = load i32, ptr %18, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %18, align 4
%150 = load i32, ptr %18, align 4
%151 = load i32, ptr %6, align 4
%152 = icmp slt i32 %150, %151
br i1 %152, label %121, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %147
br label %153
153: ; preds = %._crit_edge12, %117
br label %154
154: ; preds = %153
%155 = load i32, ptr %17, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %17, align 4
%157 = load i32, ptr %17, align 4
%158 = load i32, ptr %5, align 4
%159 = icmp slt i32 %157, %158
br i1 %159, label %117, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %154
br label %160
160: ; preds = %._crit_edge15, %113
store i32 0, ptr %19, align 4
store i32 1, ptr %13, align 4
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
%161 = load i32, ptr %20, align 4
%162 = load i32, ptr %6, align 4
%163 = icmp slt i32 %161, %162
br i1 %163, label %.lr.ph17, label %198
.lr.ph17: ; preds = %160
br label %164
164: ; preds = %.lr.ph17, %192
%165 = load i32, ptr %21, align 4
%166 = sext i32 %165 to i64
%167 = mul nsw i64 %166, %46
%168 = getelementptr inbounds i8, ptr %49, i64 %167
%169 = load i32, ptr %20, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds i8, ptr %168, i64 %170
%172 = load i8, ptr %171, align 1
%173 = load ptr, ptr %10, align 8
%174 = load i32, ptr %19, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %19, align 4
%176 = sext i32 %174 to i64
%177 = getelementptr inbounds i8, ptr %173, i64 %176
store i8 %172, ptr %177, align 1
%178 = load i32, ptr %13, align 4
%179 = load i32, ptr %21, align 4
%180 = add nsw i32 %179, %178
store i32 %180, ptr %21, align 4
%181 = load i32, ptr %21, align 4
%182 = load i32, ptr %5, align 4
%183 = sub nsw i32 %182, 1
%184 = icmp eq i32 %181, %183
br i1 %184, label %188, label %185
185: ; preds = %164
%186 = load i32, ptr %21, align 4
%187 = icmp eq i32 %186, 0
br i1 %187, label %188, label %191
188: ; preds = %185, %164
%189 = load i32, ptr %13, align 4
%190 = mul nsw i32 %189, -1
store i32 %190, ptr %13, align 4
br label %191
191: ; preds = %188, %185
br label %192
192: ; preds = %191
%193 = load i32, ptr %20, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %20, align 4
%195 = load i32, ptr %20, align 4
%196 = load i32, ptr %6, align 4
%197 = icmp slt i32 %195, %196
br i1 %197, label %164, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %192
br label %198
198: ; preds = %._crit_edge18, %160
%199 = load ptr, ptr %10, align 8
%200 = load i32, ptr %19, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %199, i64 %201
store i8 0, ptr %202, align 1
%203 = load ptr, ptr %10, align 8
store ptr %203, ptr %3, align 8
%204 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %204)
br label %205
205: ; preds = %198, %24
%206 = load ptr, ptr %3, align 8
ret ptr %206
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @malloc(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!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/tmpl3gea3p3.c'
source_filename = "/tmp/tmpl3gea3p3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @malloc(i32 noundef 100)
store ptr %3, ptr %2, align 8
%4 = call i32 @FREE(ptr noundef %2)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @FREE(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl3gea3p3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @malloc(i32 noundef 100)
store ptr %3, ptr %2, align 8
%4 = call i32 @FREE(ptr noundef %2)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @FREE(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsa7s3l4l.c'
source_filename = "/tmp/tmpsa7s3l4l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu:%s:%s:%d:%s\0A\00", align 1
@ERR_TXT_STRING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ERR_print_errors_cb(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca [4096 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%14 = call i32 @CRYPTO_THREADID_current(ptr noundef %13)
%15 = call i64 @CRYPTO_THREADID_hash(ptr noundef %13)
store i64 %15, ptr %12, align 8
br label %16
16: ; preds = %46, %2
%17 = call i64 @ERR_get_error_line_data(ptr noundef %8, ptr noundef %10, ptr noundef %9, ptr noundef %11)
store i64 %17, ptr %5, align 8
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %47
19: ; preds = %16
%20 = load i64, ptr %5, align 8
%21 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%22 = call i32 @ERR_error_string_n(i64 noundef %20, ptr noundef %21, i32 noundef 256)
%23 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%24 = load i64, ptr %12, align 8
%25 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%26 = load ptr, ptr %8, align 8
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr @ERR_TXT_STRING, align 4
%30 = and i32 %28, %29
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %19
%33 = load ptr, ptr %9, align 8
br label %35
34: ; preds = %19
br label %35
35: ; preds = %34, %32
%36 = phi ptr [ %33, %32 ], [ @.str.1, %34 ]
%37 = call i32 @snprintf(ptr noundef %23, i32 noundef 4096, ptr noundef @.str, i64 noundef %24, ptr noundef %25, ptr noundef %26, i32 noundef %27, ptr noundef %36)
%38 = load ptr, ptr %3, align 8
%39 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%40 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%41 = call i64 @strlen(ptr noundef %40)
%42 = load ptr, ptr %4, align 8
%43 = call i32 %38(ptr noundef %39, i64 noundef %41, ptr noundef %42)
%44 = icmp sle i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %35
br label %47
46: ; preds = %35
br label %16, !llvm.loop !6
47: ; preds = %45, %16
ret void
}
declare i32 @CRYPTO_THREADID_current(ptr noundef) #1
declare i64 @CRYPTO_THREADID_hash(ptr noundef) #1
declare i64 @ERR_get_error_line_data(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ERR_error_string_n(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsa7s3l4l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu:%s:%s:%d:%s\0A\00", align 1
@ERR_TXT_STRING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ERR_print_errors_cb(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca [4096 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%14 = call i32 @CRYPTO_THREADID_current(ptr noundef %13)
%15 = call i64 @CRYPTO_THREADID_hash(ptr noundef %13)
store i64 %15, ptr %12, align 8
%16 = call i64 @ERR_get_error_line_data(ptr noundef %8, ptr noundef %10, ptr noundef %9, ptr noundef %11)
store i64 %16, ptr %5, align 8
%17 = icmp ne i64 %16, 0
br i1 %17, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %21
18: ; preds = %37
%19 = call i64 @ERR_get_error_line_data(ptr noundef %8, ptr noundef %10, ptr noundef %9, ptr noundef %11)
store i64 %19, ptr %5, align 8
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %..loopexit_crit_edge, !llvm.loop !6
21: ; preds = %.lr.ph, %18
%22 = load i64, ptr %5, align 8
%23 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%24 = call i32 @ERR_error_string_n(i64 noundef %22, ptr noundef %23, i32 noundef 256)
%25 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%26 = load i64, ptr %12, align 8
%27 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %10, align 4
%30 = load i32, ptr %11, align 4
%31 = load i32, ptr @ERR_TXT_STRING, align 4
%32 = and i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %21
%35 = load ptr, ptr %9, align 8
br label %37
36: ; preds = %21
br label %37
37: ; preds = %36, %34
%38 = phi ptr [ %35, %34 ], [ @.str.1, %36 ]
%39 = call i32 @snprintf(ptr noundef %25, i32 noundef 4096, ptr noundef @.str, i64 noundef %26, ptr noundef %27, ptr noundef %28, i32 noundef %29, ptr noundef %38)
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%42 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%43 = call i64 @strlen(ptr noundef %42)
%44 = load ptr, ptr %4, align 8
%45 = call i32 %40(ptr noundef %41, i64 noundef %43, ptr noundef %44)
%46 = icmp sle i32 %45, 0
br i1 %46, label %47, label %18
47: ; preds = %37
br label %48
..loopexit_crit_edge: ; preds = %18
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %48
48: ; preds = %.loopexit, %47
ret void
}
declare i32 @CRYPTO_THREADID_current(ptr noundef) #1
declare i64 @CRYPTO_THREADID_hash(ptr noundef) #1
declare i64 @ERR_get_error_line_data(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ERR_error_string_n(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo7k08q_j.c'
source_filename = "/tmp/tmpo7k08q_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"/tmp/wrekames.tmp\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"MBytes \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"Mbits \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @litBandwidthMes(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [301 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %8, align 4
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %50
13: ; preds = %1
br label %14
14: ; preds = %13
%15 = load ptr, ptr %4, align 8
%16 = call i32 @feof(ptr noundef %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %46
19: ; preds = %14
%20 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%21 = load ptr, ptr %4, align 8
%22 = call i32 @fgets(ptr noundef %20, i32 noundef 301, ptr noundef %21)
%23 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%24 = call ptr @strstr(ptr noundef %23, ptr noundef @.str.2)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %28, label %27
27: ; preds = %19
br label %46
28: ; preds = %19
%29 = load ptr, ptr %6, align 8
%30 = call ptr @strrchr(ptr noundef %29, i8 noundef signext 32)
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %7, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %34, label %33
33: ; preds = %28
br label %46
34: ; preds = %28
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 0
store i8 0, ptr %36, align 1
%37 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%38 = load ptr, ptr %6, align 8
%39 = call i32 @strlen(ptr noundef @.str.3)
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = call i32 @strcpy(ptr noundef %37, ptr noundef %41)
%43 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%44 = call i32 @atol(ptr noundef %43)
%45 = load ptr, ptr %3, align 8
store i32 %44, ptr %45, align 4
store i32 1, ptr %8, align 4
br label %46
46: ; preds = %34, %33, %27, %14
%47 = load ptr, ptr %4, align 8
%48 = call i32 @fclose(ptr noundef %47)
%49 = load i32, ptr %8, align 4
store i32 %49, ptr %2, align 4
br label %50
50: ; preds = %46, %12
%51 = load i32, ptr %2, align 4
ret i32 %51
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @atol(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo7k08q_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"/tmp/wrekames.tmp\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"MBytes \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"Mbits \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @litBandwidthMes(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [301 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %8, align 4
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %50
13: ; preds = %1
br label %14
14: ; preds = %13
%15 = load ptr, ptr %4, align 8
%16 = call i32 @feof(ptr noundef %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %46
19: ; preds = %14
%20 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%21 = load ptr, ptr %4, align 8
%22 = call i32 @fgets(ptr noundef %20, i32 noundef 301, ptr noundef %21)
%23 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%24 = call ptr @strstr(ptr noundef %23, ptr noundef @.str.2)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %28, label %27
27: ; preds = %19
br label %46
28: ; preds = %19
%29 = load ptr, ptr %6, align 8
%30 = call ptr @strrchr(ptr noundef %29, i8 noundef signext 32)
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %7, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %34, label %33
33: ; preds = %28
br label %46
34: ; preds = %28
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 0
store i8 0, ptr %36, align 1
%37 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%38 = load ptr, ptr %6, align 8
%39 = call i32 @strlen(ptr noundef @.str.3)
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = call i32 @strcpy(ptr noundef %37, ptr noundef %41)
%43 = getelementptr inbounds [301 x i8], ptr %5, i64 0, i64 0
%44 = call i32 @atol(ptr noundef %43)
%45 = load ptr, ptr %3, align 8
store i32 %44, ptr %45, align 4
store i32 1, ptr %8, align 4
br label %46
46: ; preds = %34, %33, %27, %14
%47 = load ptr, ptr %4, align 8
%48 = call i32 @fclose(ptr noundef %47)
%49 = load i32, ptr %8, align 4
store i32 %49, ptr %2, align 4
br label %50
50: ; preds = %46, %12
%51 = load i32, ptr %2, align 4
ret i32 %51
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @atol(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj1kgbdxa.c'
source_filename = "/tmp/tmpj1kgbdxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"f_area(3) = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"d_area(3) = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main_main() #0 {
%1 = alloca i32, align 4
%2 = call i64 @f_area(i32 noundef 3)
%3 = trunc i64 %2 to i32
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i64 @d_area(i32 noundef 3)
%7 = trunc i64 %6 to i32
store i32 %7, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8)
ret void
}
declare i64 @f_area(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @d_area(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/tmpj1kgbdxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"f_area(3) = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"d_area(3) = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main_main() #0 {
%1 = alloca i32, align 4
%2 = call i64 @f_area(i32 noundef 3)
%3 = trunc i64 %2 to i32
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i64 @d_area(i32 noundef 3)
%7 = trunc i64 %6 to i32
store i32 %7, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8)
ret void
}
declare i64 @f_area(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @d_area(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_cwf5cjr.c'
source_filename = "/tmp/tmp_cwf5cjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_cwf5cjr.c"
target datalayout = "e-m:e-p270: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/tmpl0lzit6z.c'
source_filename = "/tmp/tmpl0lzit6z.c"
target datalayout = "e-m:e-p270: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/tmpl0lzit6z.c"
target datalayout = "e-m:e-p270: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/tmpiah7ydix.c'
source_filename = "/tmp/tmpiah7ydix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_reservoir_iterator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiah7ydix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_reservoir_iterator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk_x3r0xt.c'
source_filename = "/tmp/tmpk_x3r0xt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_discrete_acquire_katcp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @set_value_discrete_katcp(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i32 @propagate_acquire_katcp(ptr noundef %11, ptr noundef %12)
%14 = load i32, ptr %7, align 4
ret i32 %14
}
declare i32 @set_value_discrete_katcp(ptr noundef, i32 noundef) #1
declare i32 @propagate_acquire_katcp(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/tmpk_x3r0xt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_discrete_acquire_katcp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @set_value_discrete_katcp(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i32 @propagate_acquire_katcp(ptr noundef %11, ptr noundef %12)
%14 = load i32, ptr %7, align 4
ret i32 %14
}
declare i32 @set_value_discrete_katcp(ptr noundef, i32 noundef) #1
declare i32 @propagate_acquire_katcp(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/tmprres5dk9.c'
source_filename = "/tmp/tmprres5dk9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @small_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 %4, align 8
%7 = load i64, ptr %3, align 8
%8 = mul i64 %7, %6
store i64 %8, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = call ptr @malloc(i64 noundef %9) #3
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %3, align 8
%16 = call i32 @memset(ptr noundef %14, i32 noundef 0, i64 noundef %15)
br label %17
17: ; preds = %13, %2
%18 = load ptr, ptr %5, align 8
ret ptr %18
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprres5dk9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @small_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 %4, align 8
%7 = load i64, ptr %3, align 8
%8 = mul i64 %7, %6
store i64 %8, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = call ptr @malloc(i64 noundef %9) #3
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %3, align 8
%16 = call i32 @memset(ptr noundef %14, i32 noundef 0, i64 noundef %15)
br label %17
17: ; preds = %13, %2
%18 = load ptr, ptr %5, align 8
ret ptr %18
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1vc0_8k8.c'
source_filename = "/tmp/tmp1vc0_8k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"sxmv\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmdline_parser_dump(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1vc0_8k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"sxmv\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmdline_parser_dump(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"}
|
; ModuleID = '/tmp/tmpi0uvln_7.c'
source_filename = "/tmp/tmpi0uvln_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvins_wstr(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi0uvln_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvins_wstr(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp49ti2gtk.c'
source_filename = "/tmp/tmp49ti2gtk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ganttproject.gan\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09<resource\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pre_user() #0 {
%1 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef null)
ret void
}
declare i32 @write(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp49ti2gtk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ganttproject.gan\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09<resource\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pre_user() #0 {
%1 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef null)
ret void
}
declare i32 @write(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpis9h3tzq.c'
source_filename = "/tmp/tmpis9h3tzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_setnamedcolorbg(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @japi_setnamedcolorbg(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @japi_setnamedcolorbg(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/tmpis9h3tzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_setnamedcolorbg(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @japi_setnamedcolorbg(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @japi_setnamedcolorbg(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/tmp9fkaa2_7.c'
source_filename = "/tmp/tmp9fkaa2_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @path_delete(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %11
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @path_destroy(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @free(ptr noundef %9)
br label %11
11: ; preds = %6, %5
ret void
}
declare i32 @path_destroy(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/tmp9fkaa2_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @path_delete(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %11
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @path_destroy(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @free(ptr noundef %9)
br label %11
11: ; preds = %6, %5
ret void
}
declare i32 @path_destroy(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/tmpungegmos.c'
source_filename = "/tmp/tmpungegmos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readn_str(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = sub i64 %10, 1
store i64 %11, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %12
12: ; preds = %3, %32
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i64, ptr %7, align 8
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = sub i64 %18, %20
%22 = call i64 @read(i32 noundef %13, ptr noundef %17, i64 noundef %21)
store i64 %22, ptr %9, align 8
%23 = load i64, ptr %9, align 8
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %12
%26 = load i64, ptr %9, align 8
store i64 %26, ptr %4, align 8
br label %45
27: ; preds = %12
%28 = load i64, ptr %9, align 8
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27
br label %38
31: ; preds = %27
br label %32
32: ; preds = %31
%33 = load i64, ptr %9, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = add nsw i64 %35, %33
%37 = trunc i64 %36 to i32
store i32 %37, ptr %8, align 4
br label %12
38: ; preds = %30
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %8, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store i8 0, ptr %42, align 1
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
store i64 %44, ptr %4, align 8
br label %45
45: ; preds = %38, %25
%46 = load i64, ptr %4, align 8
ret i64 %46
}
declare i64 @read(i32 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/tmpungegmos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readn_str(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = sub i64 %10, 1
store i64 %11, ptr %7, align 8
store i32 0, ptr %8, align 4
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i64, ptr %7, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = sub i64 %17, %19
%21 = call i64 @read(i32 noundef %12, ptr noundef %16, i64 noundef %20)
store i64 %21, ptr %9, align 8
%22 = load i64, ptr %9, align 8
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %.lr.ph
.lr.ph: ; preds = %3
br label %26
._crit_edge: ; preds = %31
br label %24
24: ; preds = %._crit_edge, %3
%25 = load i64, ptr %9, align 8
store i64 %25, ptr %4, align 8
br label %56
26: ; preds = %.lr.ph, %31
%27 = load i64, ptr %9, align 8
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %26
br label %49
30: ; preds = %26
br label %31
31: ; preds = %30
%32 = load i64, ptr %9, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = add nsw i64 %34, %32
%36 = trunc i64 %35 to i32
store i32 %36, ptr %8, align 4
%37 = load i32, ptr %5, align 4
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i64, ptr %7, align 8
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = sub i64 %42, %44
%46 = call i64 @read(i32 noundef %37, ptr noundef %41, i64 noundef %45)
store i64 %46, ptr %9, align 8
%47 = load i64, ptr %9, align 8
%48 = icmp slt i64 %47, 0
br i1 %48, label %._crit_edge, label %26
49: ; preds = %29
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
store i8 0, ptr %53, align 1
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
store i64 %55, ptr %4, align 8
br label %56
56: ; preds = %49, %24
%57 = load i64, ptr %4, align 8
ret i64 %57
}
declare i64 @read(i32 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/tmp31xukri4.c'
source_filename = "/tmp/tmp31xukri4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glmComputeDistance2f(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x float], align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [2 x float], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @glmMakeVector2f(ptr noundef %6, ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [2 x float], ptr %5, i64 0, i64 0
%11 = call float @glmComputeVectorLength2f(ptr noundef %10)
ret float %11
}
declare i32 @glmMakeVector2f(ptr noundef, ptr noundef, ptr noundef) #1
declare float @glmComputeVectorLength2f(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp31xukri4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glmComputeDistance2f(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x float], align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [2 x float], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @glmMakeVector2f(ptr noundef %6, ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [2 x float], ptr %5, i64 0, i64 0
%11 = call float @glmComputeVectorLength2f(ptr noundef %10)
ret float %11
}
declare i32 @glmMakeVector2f(ptr noundef, ptr noundef, ptr noundef) #1
declare float @glmComputeVectorLength2f(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzlyv7bwt.c'
source_filename = "/tmp/tmpzlyv7bwt.c"
target datalayout = "e-m:e-p270: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/tmpzlyv7bwt.c"
target datalayout = "e-m:e-p270: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/tmp4z2n77b7.c'
source_filename = "/tmp/tmp4z2n77b7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@append_str.empty = internal global [1 x i8] zeroinitializer, align 1
@append_str.z = internal global ptr null, align 8
@append_str.alloced = internal global i32 0, align 4
@append_str.used = internal global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @append_str(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [40 x i8], align 16
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %4
store i32 0, ptr @append_str.used, align 4
%15 = load ptr, ptr @append_str.z, align 8
store ptr %15, ptr %5, align 8
br label %120
16: ; preds = %4
%17 = load i32, ptr %7, align 4
%18 = icmp sle i32 %17, 0
br i1 %18, label %19, label %34
19: ; preds = %16
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %30
22: ; preds = %19
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr @append_str.used, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr @append_str.used, align 4
%26 = load i32, ptr @append_str.used, align 4
%27 = icmp sge i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
br label %30
30: ; preds = %22, %19
%31 = load ptr, ptr %6, align 8
%32 = call i64 @strlen(ptr noundef %31)
%33 = trunc i64 %32 to i32
store i32 %33, ptr %7, align 4
br label %34
34: ; preds = %30, %16
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = add i64 %36, 80
%38 = load i32, ptr @append_str.used, align 4
%39 = sext i32 %38 to i64
%40 = add i64 %37, %39
%41 = trunc i64 %40 to i32
%42 = load i32, ptr @append_str.alloced, align 4
%43 = icmp sge i32 %41, %42
br i1 %43, label %44, label %57
44: ; preds = %34
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = add i64 %46, 80
%48 = load i32, ptr @append_str.used, align 4
%49 = sext i32 %48 to i64
%50 = add i64 %47, %49
%51 = add i64 %50, 200
%52 = trunc i64 %51 to i32
store i32 %52, ptr @append_str.alloced, align 4
%53 = load ptr, ptr @append_str.z, align 8
%54 = load i32, ptr @append_str.alloced, align 4
%55 = call i64 @realloc(ptr noundef %53, i32 noundef %54)
%56 = inttoptr i64 %55 to ptr
store ptr %56, ptr @append_str.z, align 8
br label %57
57: ; preds = %44, %34
%58 = load ptr, ptr @append_str.z, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %61
60: ; preds = %57
store ptr @append_str.empty, ptr %5, align 8
br label %120
61: ; preds = %57
br label %62
62: ; preds = %113, %61
%63 = load i32, ptr %7, align 4
%64 = add nsw i32 %63, -1
store i32 %64, ptr %7, align 4
%65 = icmp sgt i32 %63, 0
br i1 %65, label %66, label %114
66: ; preds = %62
%67 = load ptr, ptr %6, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 1
store ptr %68, ptr %6, align 8
%69 = load i8, ptr %67, align 1
%70 = sext i8 %69 to i32
store i32 %70, ptr %10, align 4
%71 = load i32, ptr %10, align 4
%72 = icmp eq i32 %71, 37
br i1 %72, label %73, label %105
73: ; preds = %66
%74 = load i32, ptr %7, align 4
%75 = icmp sgt i32 %74, 0
br i1 %75, label %76, label %105
76: ; preds = %73
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 0
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 100
br i1 %81, label %82, label %105
82: ; preds = %76
%83 = getelementptr inbounds [40 x i8], ptr %11, i64 0, i64 0
%84 = load i32, ptr %8, align 4
%85 = call i32 @lemon_sprintf(ptr noundef %83, ptr noundef @.str, i32 noundef %84)
%86 = load i32, ptr %9, align 4
store i32 %86, ptr %8, align 4
%87 = load ptr, ptr @append_str.z, align 8
%88 = load i32, ptr @append_str.used, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = getelementptr inbounds [40 x i8], ptr %11, i64 0, i64 0
%92 = call i32 @lemon_strcpy(ptr noundef %90, ptr noundef %91)
%93 = load ptr, ptr @append_str.z, align 8
%94 = load i32, ptr @append_str.used, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %93, i64 %95
%97 = call i64 @strlen(ptr noundef %96)
%98 = trunc i64 %97 to i32
%99 = load i32, ptr @append_str.used, align 4
%100 = add nsw i32 %99, %98
store i32 %100, ptr @append_str.used, align 4
%101 = load ptr, ptr %6, align 8
%102 = getelementptr inbounds i8, ptr %101, i32 1
store ptr %102, ptr %6, align 8
%103 = load i32, ptr %7, align 4
%104 = add nsw i32 %103, -1
store i32 %104, ptr %7, align 4
br label %113
105: ; preds = %76, %73, %66
%106 = load i32, ptr %10, align 4
%107 = trunc i32 %106 to i8
%108 = load ptr, ptr @append_str.z, align 8
%109 = load i32, ptr @append_str.used, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr @append_str.used, align 4
%111 = sext i32 %109 to i64
%112 = getelementptr inbounds i8, ptr %108, i64 %111
store i8 %107, ptr %112, align 1
br label %113
113: ; preds = %105, %82
br label %62, !llvm.loop !6
114: ; preds = %62
%115 = load ptr, ptr @append_str.z, align 8
%116 = load i32, ptr @append_str.used, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %115, i64 %117
store i8 0, ptr %118, align 1
%119 = load ptr, ptr @append_str.z, align 8
store ptr %119, ptr %5, align 8
br label %120
120: ; preds = %114, %60, %14
%121 = load ptr, ptr %5, align 8
ret ptr %121
}
declare i32 @assert(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @lemon_sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @lemon_strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4z2n77b7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@append_str.empty = internal global [1 x i8] zeroinitializer, align 1
@append_str.z = internal global ptr null, align 8
@append_str.alloced = internal global i32 0, align 4
@append_str.used = internal global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @append_str(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [40 x i8], align 16
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %4
store i32 0, ptr @append_str.used, align 4
%15 = load ptr, ptr @append_str.z, align 8
store ptr %15, ptr %5, align 8
br label %122
16: ; preds = %4
%17 = load i32, ptr %7, align 4
%18 = icmp sle i32 %17, 0
br i1 %18, label %19, label %34
19: ; preds = %16
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %30
22: ; preds = %19
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr @append_str.used, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr @append_str.used, align 4
%26 = load i32, ptr @append_str.used, align 4
%27 = icmp sge i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
br label %30
30: ; preds = %22, %19
%31 = load ptr, ptr %6, align 8
%32 = call i64 @strlen(ptr noundef %31)
%33 = trunc i64 %32 to i32
store i32 %33, ptr %7, align 4
br label %34
34: ; preds = %30, %16
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = add i64 %36, 80
%38 = load i32, ptr @append_str.used, align 4
%39 = sext i32 %38 to i64
%40 = add i64 %37, %39
%41 = trunc i64 %40 to i32
%42 = load i32, ptr @append_str.alloced, align 4
%43 = icmp sge i32 %41, %42
br i1 %43, label %44, label %57
44: ; preds = %34
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = add i64 %46, 80
%48 = load i32, ptr @append_str.used, align 4
%49 = sext i32 %48 to i64
%50 = add i64 %47, %49
%51 = add i64 %50, 200
%52 = trunc i64 %51 to i32
store i32 %52, ptr @append_str.alloced, align 4
%53 = load ptr, ptr @append_str.z, align 8
%54 = load i32, ptr @append_str.alloced, align 4
%55 = call i64 @realloc(ptr noundef %53, i32 noundef %54)
%56 = inttoptr i64 %55 to ptr
store ptr %56, ptr @append_str.z, align 8
br label %57
57: ; preds = %44, %34
%58 = load ptr, ptr @append_str.z, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %61
60: ; preds = %57
store ptr @append_str.empty, ptr %5, align 8
br label %122
61: ; preds = %57
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, -1
store i32 %63, ptr %7, align 4
%64 = icmp sgt i32 %62, 0
br i1 %64, label %.lr.ph, label %116
.lr.ph: ; preds = %61
br label %65
65: ; preds = %.lr.ph, %112
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %6, align 8
%68 = load i8, ptr %66, align 1
%69 = sext i8 %68 to i32
store i32 %69, ptr %10, align 4
%70 = load i32, ptr %10, align 4
%71 = icmp eq i32 %70, 37
br i1 %71, label %72, label %104
72: ; preds = %65
%73 = load i32, ptr %7, align 4
%74 = icmp sgt i32 %73, 0
br i1 %74, label %75, label %104
75: ; preds = %72
%76 = load ptr, ptr %6, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 0
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 100
br i1 %80, label %81, label %104
81: ; preds = %75
%82 = getelementptr inbounds [40 x i8], ptr %11, i64 0, i64 0
%83 = load i32, ptr %8, align 4
%84 = call i32 @lemon_sprintf(ptr noundef %82, ptr noundef @.str, i32 noundef %83)
%85 = load i32, ptr %9, align 4
store i32 %85, ptr %8, align 4
%86 = load ptr, ptr @append_str.z, align 8
%87 = load i32, ptr @append_str.used, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
%90 = getelementptr inbounds [40 x i8], ptr %11, i64 0, i64 0
%91 = call i32 @lemon_strcpy(ptr noundef %89, ptr noundef %90)
%92 = load ptr, ptr @append_str.z, align 8
%93 = load i32, ptr @append_str.used, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
%96 = call i64 @strlen(ptr noundef %95)
%97 = trunc i64 %96 to i32
%98 = load i32, ptr @append_str.used, align 4
%99 = add nsw i32 %98, %97
store i32 %99, ptr @append_str.used, align 4
%100 = load ptr, ptr %6, align 8
%101 = getelementptr inbounds i8, ptr %100, i32 1
store ptr %101, ptr %6, align 8
%102 = load i32, ptr %7, align 4
%103 = add nsw i32 %102, -1
store i32 %103, ptr %7, align 4
br label %112
104: ; preds = %75, %72, %65
%105 = load i32, ptr %10, align 4
%106 = trunc i32 %105 to i8
%107 = load ptr, ptr @append_str.z, align 8
%108 = load i32, ptr @append_str.used, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr @append_str.used, align 4
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds i8, ptr %107, i64 %110
store i8 %106, ptr %111, align 1
br label %112
112: ; preds = %104, %81
%113 = load i32, ptr %7, align 4
%114 = add nsw i32 %113, -1
store i32 %114, ptr %7, align 4
%115 = icmp sgt i32 %113, 0
br i1 %115, label %65, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %112
br label %116
116: ; preds = %._crit_edge, %61
%117 = load ptr, ptr @append_str.z, align 8
%118 = load i32, ptr @append_str.used, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %117, i64 %119
store i8 0, ptr %120, align 1
%121 = load ptr, ptr @append_str.z, align 8
store ptr %121, ptr %5, align 8
br label %122
122: ; preds = %116, %60, %14
%123 = load ptr, ptr %5, align 8
ret ptr %123
}
declare i32 @assert(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @lemon_sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @lemon_strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgqlbfsun.c'
source_filename = "/tmp/tmpgqlbfsun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lffifo_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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgqlbfsun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lffifo_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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqoasfp2t.c'
source_filename = "/tmp/tmpqoasfp2t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putDebugChar(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
br label %3
3: ; preds = %7, %1
%4 = call i32 (...) @putDebugCharReady()
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %7, label %8
7: ; preds = %3
br label %3, !llvm.loop !6
8: ; preds = %3
%9 = load i8, ptr %2, align 1
store volatile i8 %9, ptr inttoptr (i64 100662987 to ptr), align 1
%10 = load volatile i8, ptr inttoptr (i64 100662988 to ptr), align 1
%11 = sext i8 %10 to i32
%12 = and i32 %11, -129
%13 = trunc i32 %12 to i8
store volatile i8 %13, ptr inttoptr (i64 100662988 to ptr), align 1
ret void
}
declare i32 @putDebugCharReady(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqoasfp2t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putDebugChar(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
br label %3
3: ; preds = %3, %1
%4 = call i32 (...) @putDebugCharReady()
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %3, label %7, !llvm.loop !6
7: ; preds = %3
%8 = load i8, ptr %2, align 1
store volatile i8 %8, ptr inttoptr (i64 100662987 to ptr), align 1
%9 = load volatile i8, ptr inttoptr (i64 100662988 to ptr), align 1
%10 = sext i8 %9 to i32
%11 = and i32 %10, -129
%12 = trunc i32 %11 to i8
store volatile i8 %12, ptr inttoptr (i64 100662988 to ptr), align 1
ret void
}
declare i32 @putDebugCharReady(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpje8z70j7.c'
source_filename = "/tmp/tmpje8z70j7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"What triangular number do you want? \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"triangular number %i is %i\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
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 1, ptr %2, align 4
br label %7
7: ; preds = %15, %0
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, %12
store i32 %14, ptr %4, align 4
br label %15
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
br label %7, !llvm.loop !6
18: ; preds = %7
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19, i32 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpje8z70j7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"What triangular number do you want? \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"triangular number %i is %i\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
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 1, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %14
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, %11
store i32 %13, ptr %4, align 4
br label %14
14: ; preds = %10
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %0
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %21, i32 noundef %22)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7ciiheb7.c'
source_filename = "/tmp/tmp7ciiheb7.c"
target datalayout = "e-m:e-p270: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/tmp7ciiheb7.c"
target datalayout = "e-m:e-p270: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/tmplw01yrhe.c'
source_filename = "/tmp/tmplw01yrhe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeByte(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @buffWrite(ptr noundef %3, i32 noundef 1, ptr noundef %5)
ret void
}
declare i32 @buffWrite(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/tmplw01yrhe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeByte(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @buffWrite(ptr noundef %3, i32 noundef 1, ptr noundef %5)
ret void
}
declare i32 @buffWrite(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/tmpvsaqxh_v.c'
source_filename = "/tmp/tmpvsaqxh_v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mychomp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = getelementptr inbounds i8, ptr %12, i64 -1
store i8 0, ptr %13, align 1
br label %14
14: ; preds = %8, %1
%15 = load i32, ptr %3, align 4
%16 = icmp sgt i32 %15, 1
br i1 %16, label %17, label %32
17: ; preds = %14
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = getelementptr inbounds i8, ptr %21, i64 -2
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 13
br i1 %25, label %26, label %32
26: ; preds = %17
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = getelementptr inbounds i8, ptr %30, i64 -2
store i8 0, ptr %31, align 1
br label %32
32: ; preds = %26, %17, %14
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvsaqxh_v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mychomp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = getelementptr inbounds i8, ptr %12, i64 -1
store i8 0, ptr %13, align 1
br label %14
14: ; preds = %8, %1
%15 = load i32, ptr %3, align 4
%16 = icmp sgt i32 %15, 1
br i1 %16, label %17, label %32
17: ; preds = %14
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = getelementptr inbounds i8, ptr %21, i64 -2
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 13
br i1 %25, label %26, label %32
26: ; preds = %17
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = getelementptr inbounds i8, ptr %30, i64 -2
store i8 0, ptr %31, align 1
br label %32
32: ; preds = %26, %17, %14
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy5pbus0w.c'
source_filename = "/tmp/tmpy5pbus0w.c"
target datalayout = "e-m:e-p270: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/tmpy5pbus0w.c"
target datalayout = "e-m:e-p270: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/tmpihfi0p8w.c'
source_filename = "/tmp/tmpihfi0p8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"/sys/class/backlight/intel_backlight/max_brightness\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"/sys/class/backlight/intel_backlight/brightness\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@errno = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [28 x i8] c"cur: %ld (%ld%%), max: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%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
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
%11 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %11, ptr %9, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load ptr, ptr %9, align 8
%15 = call i64 @getval(ptr noundef %14)
store i64 %15, ptr %6, align 8
br label %16
16: ; preds = %13, %2
%17 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %17, ptr %10, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load ptr, ptr %10, align 8
%21 = call i64 @getval(ptr noundef %20)
store i64 %21, ptr %7, align 8
br label %22
22: ; preds = %19, %16
%23 = load ptr, ptr %9, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load ptr, ptr %9, align 8
%27 = call i32 @fclose(ptr noundef %26)
br label %28
28: ; preds = %25, %22
%29 = load i64, ptr @errno, align 8
%30 = icmp ne i64 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load i32, ptr %4, align 4
%33 = icmp sgt i32 %32, 2
br i1 %33, label %34, label %41
34: ; preds = %31, %28
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 0
%37 = load ptr, ptr %36, align 8
%38 = load i64, ptr %6, align 8
%39 = load ptr, ptr %10, align 8
%40 = call i32 @usage(ptr noundef %37, i64 noundef %38, ptr noundef %39)
store i32 %40, ptr %3, align 4
br label %109
41: ; preds = %31
%42 = load i32, ptr %4, align 4
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %52
44: ; preds = %41
%45 = load i64, ptr %7, align 8
%46 = load i64, ptr %7, align 8
%47 = mul nsw i64 %46, 100
%48 = load i64, ptr %6, align 8
%49 = sdiv i64 %47, %48
%50 = load i64, ptr %6, align 8
%51 = call i32 @printf(ptr noundef @.str.4, i64 noundef %45, i64 noundef %49, i64 noundef %50)
store i32 %51, ptr %3, align 4
br label %109
52: ; preds = %41
br label %53
53: ; preds = %52
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = call i32 @strlen(ptr noundef %59)
%61 = sub nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %56, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 37
br i1 %66, label %67, label %74
67: ; preds = %53
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 1
%70 = load ptr, ptr %69, align 8
%71 = load i64, ptr %7, align 8
%72 = load i64, ptr %6, align 8
%73 = call i64 @sper(ptr noundef %70, i64 noundef %71, i64 noundef %72)
br label %81
74: ; preds = %53
%75 = load ptr, ptr %5, align 8
%76 = getelementptr inbounds ptr, ptr %75, i64 1
%77 = load ptr, ptr %76, align 8
%78 = load i64, ptr %7, align 8
%79 = load i64, ptr %6, align 8
%80 = call i64 @sfix(ptr noundef %77, i64 noundef %78, i64 noundef %79)
br label %81
81: ; preds = %74, %67
%82 = phi i64 [ %73, %67 ], [ %80, %74 ]
store i64 %82, ptr %8, align 8
%83 = load i64, ptr @errno, align 8
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %92
85: ; preds = %81
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 0
%88 = load ptr, ptr %87, align 8
%89 = load i64, ptr %6, align 8
%90 = load ptr, ptr %10, align 8
%91 = call i32 @usage(ptr noundef %88, i64 noundef %89, ptr noundef %90)
store i32 %91, ptr %3, align 4
br label %109
92: ; preds = %81
%93 = load i64, ptr %8, align 8
%94 = load i64, ptr %6, align 8
%95 = icmp sgt i64 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = load i64, ptr %6, align 8
store i64 %97, ptr %8, align 8
br label %103
98: ; preds = %92
%99 = load i64, ptr %8, align 8
%100 = icmp slt i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %98
store i64 0, ptr %8, align 8
br label %102
102: ; preds = %101, %98
br label %103
103: ; preds = %102, %96
%104 = load ptr, ptr %10, align 8
%105 = load i64, ptr %8, align 8
%106 = call i32 @fprintf(ptr noundef %104, ptr noundef @.str.5, i64 noundef %105)
%107 = load ptr, ptr %10, align 8
%108 = call i32 @fclose(ptr noundef %107)
store i32 0, ptr %3, align 4
br label %109
109: ; preds = %103, %85, %44, %34
%110 = load i32, ptr %3, align 4
ret i32 %110
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @getval(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @usage(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @sper(ptr noundef, i64 noundef, i64 noundef) #1
declare i64 @sfix(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @fprintf(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/tmpihfi0p8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"/sys/class/backlight/intel_backlight/max_brightness\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"/sys/class/backlight/intel_backlight/brightness\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@errno = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [28 x i8] c"cur: %ld (%ld%%), max: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%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
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
%11 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %11, ptr %9, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load ptr, ptr %9, align 8
%15 = call i64 @getval(ptr noundef %14)
store i64 %15, ptr %6, align 8
br label %16
16: ; preds = %13, %2
%17 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %17, ptr %10, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load ptr, ptr %10, align 8
%21 = call i64 @getval(ptr noundef %20)
store i64 %21, ptr %7, align 8
br label %22
22: ; preds = %19, %16
%23 = load ptr, ptr %9, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load ptr, ptr %9, align 8
%27 = call i32 @fclose(ptr noundef %26)
br label %28
28: ; preds = %25, %22
%29 = load i64, ptr @errno, align 8
%30 = icmp ne i64 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load i32, ptr %4, align 4
%33 = icmp sgt i32 %32, 2
br i1 %33, label %34, label %41
34: ; preds = %31, %28
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 0
%37 = load ptr, ptr %36, align 8
%38 = load i64, ptr %6, align 8
%39 = load ptr, ptr %10, align 8
%40 = call i32 @usage(ptr noundef %37, i64 noundef %38, ptr noundef %39)
store i32 %40, ptr %3, align 4
br label %109
41: ; preds = %31
%42 = load i32, ptr %4, align 4
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %52
44: ; preds = %41
%45 = load i64, ptr %7, align 8
%46 = load i64, ptr %7, align 8
%47 = mul nsw i64 %46, 100
%48 = load i64, ptr %6, align 8
%49 = sdiv i64 %47, %48
%50 = load i64, ptr %6, align 8
%51 = call i32 @printf(ptr noundef @.str.4, i64 noundef %45, i64 noundef %49, i64 noundef %50)
store i32 %51, ptr %3, align 4
br label %109
52: ; preds = %41
br label %53
53: ; preds = %52
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = call i32 @strlen(ptr noundef %59)
%61 = sub nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %56, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 37
br i1 %66, label %67, label %74
67: ; preds = %53
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 1
%70 = load ptr, ptr %69, align 8
%71 = load i64, ptr %7, align 8
%72 = load i64, ptr %6, align 8
%73 = call i64 @sper(ptr noundef %70, i64 noundef %71, i64 noundef %72)
br label %81
74: ; preds = %53
%75 = load ptr, ptr %5, align 8
%76 = getelementptr inbounds ptr, ptr %75, i64 1
%77 = load ptr, ptr %76, align 8
%78 = load i64, ptr %7, align 8
%79 = load i64, ptr %6, align 8
%80 = call i64 @sfix(ptr noundef %77, i64 noundef %78, i64 noundef %79)
br label %81
81: ; preds = %74, %67
%82 = phi i64 [ %73, %67 ], [ %80, %74 ]
store i64 %82, ptr %8, align 8
%83 = load i64, ptr @errno, align 8
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %92
85: ; preds = %81
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 0
%88 = load ptr, ptr %87, align 8
%89 = load i64, ptr %6, align 8
%90 = load ptr, ptr %10, align 8
%91 = call i32 @usage(ptr noundef %88, i64 noundef %89, ptr noundef %90)
store i32 %91, ptr %3, align 4
br label %109
92: ; preds = %81
%93 = load i64, ptr %8, align 8
%94 = load i64, ptr %6, align 8
%95 = icmp sgt i64 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = load i64, ptr %6, align 8
store i64 %97, ptr %8, align 8
br label %103
98: ; preds = %92
%99 = load i64, ptr %8, align 8
%100 = icmp slt i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %98
store i64 0, ptr %8, align 8
br label %102
102: ; preds = %101, %98
br label %103
103: ; preds = %102, %96
%104 = load ptr, ptr %10, align 8
%105 = load i64, ptr %8, align 8
%106 = call i32 @fprintf(ptr noundef %104, ptr noundef @.str.5, i64 noundef %105)
%107 = load ptr, ptr %10, align 8
%108 = call i32 @fclose(ptr noundef %107)
store i32 0, ptr %3, align 4
br label %109
109: ; preds = %103, %85, %44, %34
%110 = load i32, ptr %3, align 4
ret i32 %110
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @getval(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @usage(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @sper(ptr noundef, i64 noundef, i64 noundef) #1
declare i64 @sfix(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @fprintf(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/tmpnnj91a3c.c'
source_filename = "/tmp/tmpnnj91a3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @SAI1_IRQHandler() #0 {
%1 = call i32 (...) @default_handler()
ret void
}
declare i32 @default_handler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnnj91a3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @SAI1_IRQHandler() #0 {
%1 = call i32 (...) @default_handler()
ret void
}
declare i32 @default_handler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprba5byc4.c'
source_filename = "/tmp/tmprba5byc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str2list(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr null, %11
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %70
14: ; preds = %3
br label %15
15: ; preds = %27, %14
%16 = load ptr, ptr %5, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 32
br label %25
25: ; preds = %20, %15
%26 = phi i1 [ false, %15 ], [ %24, %20 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
br label %15, !llvm.loop !6
30: ; preds = %25
%31 = load ptr, ptr %5, align 8
%32 = load i8, ptr %31, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %34, label %64
34: ; preds = %30
%35 = load ptr, ptr %5, align 8
store ptr %35, ptr %9, align 8
br label %36
36: ; preds = %62, %34
%37 = load ptr, ptr %9, align 8
%38 = load i8, ptr %37, align 1
%39 = icmp ne i8 %38, 0
br i1 %39, label %40, label %63
40: ; preds = %36
%41 = load ptr, ptr %9, align 8
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %8, align 4
%45 = sext i32 %43 to i64
%46 = getelementptr inbounds ptr, ptr %42, i64 %45
store ptr %41, ptr %46, align 8
%47 = load i32, ptr %8, align 4
%48 = load i32, ptr %7, align 4
%49 = icmp eq i32 %47, %48
br i1 %49, label %50, label %51
50: ; preds = %40
store i32 0, ptr %4, align 4
br label %70
51: ; preds = %40
%52 = load ptr, ptr %9, align 8
%53 = call ptr @strchr(ptr noundef %52, i8 noundef signext 32)
store ptr %53, ptr %10, align 8
%54 = load ptr, ptr %10, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %56, label %61
56: ; preds = %51
%57 = load ptr, ptr %10, align 8
store i8 0, ptr %57, align 1
%58 = load ptr, ptr %10, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %10, align 8
%60 = load ptr, ptr %10, align 8
store ptr %60, ptr %9, align 8
br label %62
61: ; preds = %51
br label %63
62: ; preds = %56
br label %36, !llvm.loop !8
63: ; preds = %61, %36
br label %64
64: ; preds = %63, %30
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
store ptr null, ptr %68, align 8
%69 = load i32, ptr %8, align 4
store i32 %69, ptr %4, align 4
br label %70
70: ; preds = %64, %50, %13
%71 = load i32, ptr %4, align 4
ret i32 %71
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprba5byc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str2list(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr null, %11
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %72
14: ; preds = %3
br label %15
15: ; preds = %27, %14
%16 = load ptr, ptr %5, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 32
br label %25
25: ; preds = %20, %15
%26 = phi i1 [ false, %15 ], [ %24, %20 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
br label %15, !llvm.loop !6
30: ; preds = %25
%31 = load ptr, ptr %5, align 8
%32 = load i8, ptr %31, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %34, label %66
34: ; preds = %30
%35 = load ptr, ptr %5, align 8
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = load i8, ptr %36, align 1
%38 = icmp ne i8 %37, 0
br i1 %38, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %34
br label %39
39: ; preds = %.lr.ph, %61
%40 = load ptr, ptr %9, align 8
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds ptr, ptr %41, i64 %44
store ptr %40, ptr %45, align 8
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp eq i32 %46, %47
br i1 %48, label %49, label %50
49: ; preds = %39
store i32 0, ptr %4, align 4
br label %72
50: ; preds = %39
%51 = load ptr, ptr %9, align 8
%52 = call ptr @strchr(ptr noundef %51, i8 noundef signext 32)
store ptr %52, ptr %10, align 8
%53 = load ptr, ptr %10, align 8
%54 = icmp ne ptr %53, null
br i1 %54, label %55, label %60
55: ; preds = %50
%56 = load ptr, ptr %10, align 8
store i8 0, ptr %56, align 1
%57 = load ptr, ptr %10, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %10, align 8
%59 = load ptr, ptr %10, align 8
store ptr %59, ptr %9, align 8
br label %61
60: ; preds = %50
br label %65
61: ; preds = %55
%62 = load ptr, ptr %9, align 8
%63 = load i8, ptr %62, align 1
%64 = icmp ne i8 %63, 0
br i1 %64, label %39, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %61
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %34
br label %65
65: ; preds = %.loopexit, %60
br label %66
66: ; preds = %65, %30
%67 = load ptr, ptr %6, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
store ptr null, ptr %70, align 8
%71 = load i32, ptr %8, align 4
store i32 %71, ptr %4, align 4
br label %72
72: ; preds = %66, %49, %13
%73 = load i32, ptr %4, align 4
ret i32 %73
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdzrpun68.c'
source_filename = "/tmp/tmpdzrpun68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [60 x i8] c"Errore di rete! Verificare il cavo e/o il programma server\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fatal_error(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr %2, align 4
%6 = call i32 @chiudi_connessione(i32 noundef %5)
%7 = load i32, ptr @EXIT_FAILURE, align 4
%8 = call i32 @exit(i32 noundef %7) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @chiudi_connessione(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdzrpun68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [60 x i8] c"Errore di rete! Verificare il cavo e/o il programma server\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fatal_error(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr %2, align 4
%6 = call i32 @chiudi_connessione(i32 noundef %5)
%7 = load i32, ptr @EXIT_FAILURE, align 4
%8 = call i32 @exit(i32 noundef %7) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @chiudi_connessione(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1uj29xf6.c'
source_filename = "/tmp/tmp1uj29xf6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lookpointer4array(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 = mul nsw i32 %6, 4
%8 = call i32 @lookNarray(ptr noundef %5, i32 noundef %7)
ret void
}
declare i32 @lookNarray(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/tmp1uj29xf6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lookpointer4array(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 = mul nsw i32 %6, 4
%8 = call i32 @lookNarray(ptr noundef %5, i32 noundef %7)
ret void
}
declare i32 @lookNarray(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/tmp9pl5iozb.c'
source_filename = "/tmp/tmp9pl5iozb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@EIO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dread_c(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = load i32, ptr %6, align 4
%13 = load i64, ptr %8, align 8
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i64 @lseek(i32 noundef %12, i64 noundef %13, i32 noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %5
%18 = load i32, ptr @errno, align 4
%19 = load ptr, ptr %10, align 8
store i32 %18, ptr %19, align 4
br label %51
20: ; preds = %5
br label %21
21: ; preds = %47, %20
%22 = load i64, ptr %9, align 8
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %51
24: ; preds = %21
%25 = load i32, ptr %6, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i64, ptr %9, align 8
%28 = call i64 @read(i32 noundef %25, ptr noundef %26, i64 noundef %27)
store i64 %28, ptr %11, align 8
%29 = load i64, ptr %11, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %40
31: ; preds = %24
%32 = load i32, ptr @errno, align 4
%33 = load i32, ptr @EINTR, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
store i64 0, ptr %11, align 8
br label %39
36: ; preds = %31
%37 = load i32, ptr @errno, align 4
%38 = load ptr, ptr %10, align 8
store i32 %37, ptr %38, align 4
br label %51
39: ; preds = %35
br label %47
40: ; preds = %24
%41 = load i64, ptr %11, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load i32, ptr @EIO, align 4
%45 = load ptr, ptr %10, align 8
store i32 %44, ptr %45, align 4
br label %51
46: ; preds = %40
br label %47
47: ; preds = %46, %39
%48 = load i64, ptr %11, align 8
%49 = load i64, ptr %9, align 8
%50 = sub i64 %49, %48
store i64 %50, ptr %9, align 8
br label %21, !llvm.loop !6
51: ; preds = %17, %36, %43, %21
ret void
}
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare i64 @read(i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9pl5iozb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@EIO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dread_c(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = load i32, ptr %6, align 4
%13 = load i64, ptr %8, align 8
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i64 @lseek(i32 noundef %12, i64 noundef %13, i32 noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %5
%18 = load i32, ptr @errno, align 4
%19 = load ptr, ptr %10, align 8
store i32 %18, ptr %19, align 4
br label %52
20: ; preds = %5
%21 = load i64, ptr %9, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %20
br label %23
23: ; preds = %.lr.ph, %46
%24 = load i32, ptr %6, align 4
%25 = load ptr, ptr %7, align 8
%26 = load i64, ptr %9, align 8
%27 = call i64 @read(i32 noundef %24, ptr noundef %25, i64 noundef %26)
store i64 %27, ptr %11, align 8
%28 = load i64, ptr %11, align 8
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %39
30: ; preds = %23
%31 = load i32, ptr @errno, align 4
%32 = load i32, ptr @EINTR, align 4
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %35
34: ; preds = %30
store i64 0, ptr %11, align 8
br label %38
35: ; preds = %30
%36 = load i32, ptr @errno, align 4
%37 = load ptr, ptr %10, align 8
store i32 %36, ptr %37, align 4
br label %52
38: ; preds = %34
br label %46
39: ; preds = %23
%40 = load i64, ptr %11, align 8
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load i32, ptr @EIO, align 4
%44 = load ptr, ptr %10, align 8
store i32 %43, ptr %44, align 4
br label %52
45: ; preds = %39
br label %46
46: ; preds = %45, %38
%47 = load i64, ptr %11, align 8
%48 = load i64, ptr %9, align 8
%49 = sub i64 %48, %47
store i64 %49, ptr %9, align 8
%50 = load i64, ptr %9, align 8
%51 = icmp ne i64 %50, 0
br i1 %51, label %23, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %46
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %20
br label %52
52: ; preds = %.loopexit, %42, %35, %17
ret void
}
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare i64 @read(i32 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"}
|
; ModuleID = '/tmp/tmp4m7mlauc.c'
source_filename = "/tmp/tmp4m7mlauc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c">THREE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_input(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr @SEEK_END, align 4
%14 = call i32 @fseek(ptr noundef %12, i64 noundef 0, i32 noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i64 @ftell(ptr noundef %15)
store i64 %16, ptr %6, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr @SEEK_SET, align 4
%19 = call i32 @fseek(ptr noundef %17, i64 noundef 0, i32 noundef %18)
%20 = load i64, ptr %6, align 8
%21 = call ptr @malloc(i64 noundef %20)
store ptr %21, ptr %7, align 8
br label %22
22: ; preds = %27, %2
%23 = load ptr, ptr %7, align 8
%24 = load i64, ptr %6, align 8
%25 = load ptr, ptr %5, align 8
%26 = call i64 @fgets_unlocked(ptr noundef %23, i64 noundef %24, ptr noundef %25)
br label %27
27: ; preds = %22
%28 = load ptr, ptr %7, align 8
%29 = call i64 @strncmp(ptr noundef %28, ptr noundef @.str.1, i32 noundef 6)
%30 = icmp ne i64 %29, 0
br i1 %30, label %22, label %31, !llvm.loop !6
31: ; preds = %27
store i32 0, ptr %8, align 4
br label %32
32: ; preds = %76, %31
%33 = load ptr, ptr %7, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i64, ptr %6, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = sub nsw i64 %37, %39
%41 = load ptr, ptr %5, align 8
%42 = call i64 @fgets_unlocked(ptr noundef %36, i64 noundef %40, ptr noundef %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %77
44: ; preds = %32
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = call i32 @strlen(ptr noundef %48)
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %60, label %52
52: ; preds = %44
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 62
br i1 %59, label %60, label %61
60: ; preds = %52, %44
br label %77
61: ; preds = %52
%62 = load i32, ptr %9, align 4
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, %62
store i32 %64, ptr %8, align 4
%65 = load ptr, ptr %7, align 8
%66 = load i32, ptr %8, align 4
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %65, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 10
br i1 %72, label %73, label %76
73: ; preds = %61
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %8, align 4
br label %76
76: ; preds = %73, %61
br label %32, !llvm.loop !8
77: ; preds = %60, %32
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %8, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %8, align 4
%81 = sext i32 %79 to i64
%82 = getelementptr inbounds i8, ptr %78, i64 %81
store i8 62, ptr %82, align 1
%83 = load ptr, ptr %7, align 8
%84 = load i32, ptr %8, align 4
%85 = call ptr @realloc(ptr noundef %83, i32 noundef %84)
store ptr %85, ptr %7, align 8
%86 = load i32, ptr %8, align 4
%87 = load ptr, ptr %3, align 8
store i32 %86, ptr %87, align 4
%88 = load ptr, ptr %7, align 8
ret ptr %88
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @fgets_unlocked(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(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/tmp4m7mlauc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c">THREE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_input(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr @SEEK_END, align 4
%14 = call i32 @fseek(ptr noundef %12, i64 noundef 0, i32 noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i64 @ftell(ptr noundef %15)
store i64 %16, ptr %6, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr @SEEK_SET, align 4
%19 = call i32 @fseek(ptr noundef %17, i64 noundef 0, i32 noundef %18)
%20 = load i64, ptr %6, align 8
%21 = call ptr @malloc(i64 noundef %20)
store ptr %21, ptr %7, align 8
br label %22
22: ; preds = %27, %2
%23 = load ptr, ptr %7, align 8
%24 = load i64, ptr %6, align 8
%25 = load ptr, ptr %5, align 8
%26 = call i64 @fgets_unlocked(ptr noundef %23, i64 noundef %24, ptr noundef %25)
br label %27
27: ; preds = %22
%28 = load ptr, ptr %7, align 8
%29 = call i64 @strncmp(ptr noundef %28, ptr noundef @.str.1, i32 noundef 6)
%30 = icmp ne i64 %29, 0
br i1 %30, label %22, label %31, !llvm.loop !6
31: ; preds = %27
store i32 0, ptr %8, align 4
%32 = load ptr, ptr %7, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i64, ptr %6, align 8
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = sub nsw i64 %36, %38
%40 = load ptr, ptr %5, align 8
%41 = call i64 @fgets_unlocked(ptr noundef %35, i64 noundef %39, ptr noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %31
br label %43
43: ; preds = %.lr.ph, %75
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %8, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = call i32 @strlen(ptr noundef %47)
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %59, label %51
51: ; preds = %43
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 62
br i1 %58, label %59, label %60
59: ; preds = %51, %43
br label %87
60: ; preds = %51
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, %61
store i32 %63, ptr %8, align 4
%64 = load ptr, ptr %7, align 8
%65 = load i32, ptr %8, align 4
%66 = sub nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %64, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 10
br i1 %71, label %72, label %75
72: ; preds = %60
%73 = load i32, ptr %8, align 4
%74 = add nsw i32 %73, -1
store i32 %74, ptr %8, align 4
br label %75
75: ; preds = %72, %60
%76 = load ptr, ptr %7, align 8
%77 = load i32, ptr %8, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
%80 = load i64, ptr %6, align 8
%81 = load i32, ptr %8, align 4
%82 = sext i32 %81 to i64
%83 = sub nsw i64 %80, %82
%84 = load ptr, ptr %5, align 8
%85 = call i64 @fgets_unlocked(ptr noundef %79, i64 noundef %83, ptr noundef %84)
%86 = icmp ne i64 %85, 0
br i1 %86, label %43, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %75
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %31
br label %87
87: ; preds = %.loopexit, %59
%88 = load ptr, ptr %7, align 8
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %8, align 4
%91 = sext i32 %89 to i64
%92 = getelementptr inbounds i8, ptr %88, i64 %91
store i8 62, ptr %92, align 1
%93 = load ptr, ptr %7, align 8
%94 = load i32, ptr %8, align 4
%95 = call ptr @realloc(ptr noundef %93, i32 noundef %94)
store ptr %95, ptr %7, align 8
%96 = load i32, ptr %8, align 4
%97 = load ptr, ptr %3, align 8
store i32 %96, ptr %97, align 4
%98 = load ptr, ptr %7, align 8
ret ptr %98
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @fgets_unlocked(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(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/tmpv6t7tu8o.c'
source_filename = "/tmp/tmpv6t7tu8o.c"
target datalayout = "e-m:e-p270: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.hostent = type { i32 }
@.str = private unnamed_addr constant [16 x i8] c"gethostbyname()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @resolve(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @gethostbyname(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %1
%9 = call i32 @herror(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds %struct.hostent, ptr %12, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i32 @memcpy(ptr noundef %4, i32 noundef %14, i32 noundef 4)
%16 = load i32, ptr %4, align 4
ret i32 %16
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @herror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpv6t7tu8o.c"
target datalayout = "e-m:e-p270: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.hostent = type { i32 }
@.str = private unnamed_addr constant [16 x i8] c"gethostbyname()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @resolve(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @gethostbyname(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %1
%9 = call i32 @herror(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds %struct.hostent, ptr %12, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i32 @memcpy(ptr noundef %4, i32 noundef %14, i32 noundef 4)
%16 = load i32, ptr %4, align 4
ret i32 %16
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @herror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmphda7v5k5.c'
source_filename = "/tmp/tmphda7v5k5.c"
target datalayout = "e-m:e-p270: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_CREAT = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphda7v5k5.c"
target datalayout = "e-m:e-p270: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_CREAT = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprwrqhapz.c'
source_filename = "/tmp/tmprwrqhapz.c"
target datalayout = "e-m:e-p270: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/tmprwrqhapz.c"
target datalayout = "e-m:e-p270: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/tmpvqxavex6.c'
source_filename = "/tmp/tmpvqxavex6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"stupid_spring_string\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"string\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Result at %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @kmp(ptr noundef @.str, ptr noundef @.str.1)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str.2, i32 noundef %8)
ret i32 0
}
declare i32 @kmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvqxavex6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"stupid_spring_string\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"string\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Result at %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @kmp(ptr noundef @.str, ptr noundef @.str.1)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str.2, i32 noundef %8)
ret i32 0
}
declare i32 @kmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8wl66sfr.c'
source_filename = "/tmp/tmp8wl66sfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 [100 x [100 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100 x i32], align 16
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %31, %0
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %34
14: ; preds = %10
store i32 0, ptr %5, align 4
br label %15
15: ; preds = %27, %14
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %30
19: ; preds = %15
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x [100 x i32]], ptr %3, i64 0, i64 %21
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i32], ptr %22, i64 0, i64 %24
%26 = call i32 @scanf(ptr noundef @.str, ptr noundef %25)
br label %27
27: ; preds = %19
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %15, !llvm.loop !6
30: ; preds = %15
br label %31
31: ; preds = %30
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %10, !llvm.loop !8
34: ; preds = %10
%35 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
store i32 0, ptr %4, align 4
br label %36
36: ; preds = %45, %34
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %48
40: ; preds = %36
%41 = getelementptr inbounds [100 x [100 x i32]], ptr %3, i64 0, i64 0
%42 = load i32, ptr %4, align 4
%43 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 0
%44 = call i32 @check(ptr noundef %41, i32 noundef %42, ptr noundef %43)
br label %45
45: ; preds = %40
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %4, align 4
br label %36, !llvm.loop !9
48: ; preds = %36
store i32 0, ptr %4, align 4
br label %49
49: ; preds = %59, %48
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %2, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %62
53: ; preds = %49
%54 = load i32, ptr %4, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = call i32 @printf(ptr noundef @.str.1, i32 noundef %57)
br label %59
59: ; preds = %53
%60 = load i32, ptr %4, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %4, align 4
br label %49, !llvm.loop !10
62: ; preds = %49
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @check(ptr noundef, i32 noundef, 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}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8wl66sfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 [100 x [100 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100 x i32], align 16
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %38
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %32
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %31
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %25
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [100 x [100 x i32]], ptr %3, i64 0, i64 %19
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x i32], ptr %20, i64 0, i64 %22
%24 = call i32 @scanf(ptr noundef @.str, ptr noundef %23)
br label %25
25: ; preds = %17
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %13
br label %32
32: ; preds = %31
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %38
38: ; preds = %._crit_edge3, %0
%39 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
store i32 0, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph5, label %54
.lr.ph5: ; preds = %38
br label %43
43: ; preds = %.lr.ph5, %48
%44 = getelementptr inbounds [100 x [100 x i32]], ptr %3, i64 0, i64 0
%45 = load i32, ptr %4, align 4
%46 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 0
%47 = call i32 @check(ptr noundef %44, i32 noundef %45, ptr noundef %46)
br label %48
48: ; preds = %43
%49 = load i32, ptr %4, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %4, align 4
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %2, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %43, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %48
br label %54
54: ; preds = %._crit_edge6, %38
store i32 0, ptr %4, align 4
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %2, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %.lr.ph8, label %70
.lr.ph8: ; preds = %54
br label %58
58: ; preds = %.lr.ph8, %64
%59 = load i32, ptr %4, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = call i32 @printf(ptr noundef @.str.1, i32 noundef %62)
br label %64
64: ; preds = %58
%65 = load i32, ptr %4, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %4, align 4
%67 = load i32, ptr %4, align 4
%68 = load i32, ptr %2, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %58, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %64
br label %70
70: ; preds = %._crit_edge9, %54
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @check(ptr noundef, i32 noundef, 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}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpqzw7vcl1.c'
source_filename = "/tmp/tmpqzw7vcl1.c"
target datalayout = "e-m:e-p270: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/tmpqzw7vcl1.c"
target datalayout = "e-m:e-p270: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/tmp6gxmdga2.c'
source_filename = "/tmp/tmp6gxmdga2.c"
target datalayout = "e-m:e-p270: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/tmp6gxmdga2.c"
target datalayout = "e-m:e-p270: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/tmp1ptf8qss.c'
source_filename = "/tmp/tmp1ptf8qss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Usage: %s -i infile -o outfile\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"-i\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"-o\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [33 x i8] c"Error: Could not open file \22%s\22\0A\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"Error: Could not stat file \22%s\22\0A\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"Error: Reading from \22%s\22\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.8 = private unnamed_addr constant [36 x i8] c"Warning: Could not close file \22%s\22\0A\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.10 = private unnamed_addr constant [24 x i8] c"Error: Writing to \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = 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
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 5
br i1 %15, label %16, label %33
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %31
19: ; preds = %16
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i64 @strcasecmp(ptr noundef @.str, ptr noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %19
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 0
%28 = load ptr, ptr %27, align 8
%29 = call i32 @printf(ptr noundef @.str.1, ptr noundef %28)
%30 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %30, ptr %3, align 4
br label %169
31: ; preds = %19, %16
%32 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %32, ptr %3, align 4
br label %169
33: ; preds = %2
store i32 1, ptr %13, align 4
br label %34
34: ; preds = %84, %33
%35 = load i32, ptr %13, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %87
38: ; preds = %34
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %13, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = call i64 @strcasecmp(ptr noundef @.str.2, ptr noundef %43)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %60
46: ; preds = %38
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %57
50: ; preds = %46
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %13, align 4
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %51, i64 %54
%56 = load ptr, ptr %55, align 8
store ptr %56, ptr %8, align 8
br label %59
57: ; preds = %46
%58 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %58, ptr %3, align 4
br label %169
59: ; preds = %50
br label %83
60: ; preds = %38
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %13, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = call i64 @strcasecmp(ptr noundef @.str.3, ptr noundef %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %82
68: ; preds = %60
%69 = load i32, ptr %13, align 4
%70 = load i32, ptr %4, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %79
72: ; preds = %68
%73 = load ptr, ptr %5, align 8
%74 = load i32, ptr %13, align 4
%75 = add nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %73, i64 %76
%78 = load ptr, ptr %77, align 8
store ptr %78, ptr %9, align 8
br label %81
79: ; preds = %68
%80 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %80, ptr %3, align 4
br label %169
81: ; preds = %72
br label %82
82: ; preds = %81, %60
br label %83
83: ; preds = %82, %59
br label %84
84: ; preds = %83
%85 = load i32, ptr %13, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %13, align 4
br label %34, !llvm.loop !6
87: ; preds = %34
%88 = load ptr, ptr %8, align 8
%89 = call ptr @fopen(ptr noundef %88, ptr noundef @.str.4)
store ptr %89, ptr %6, align 8
%90 = load ptr, ptr %6, align 8
%91 = icmp eq ptr %90, null
br i1 %91, label %92, label %97
92: ; preds = %87
%93 = load i32, ptr @stderr, align 4
%94 = load ptr, ptr %8, align 8
%95 = call i32 @fprintf(i32 noundef %93, ptr noundef @.str.5, ptr noundef %94)
%96 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %96, ptr %3, align 4
br label %169
97: ; preds = %87
%98 = load ptr, ptr %8, align 8
%99 = call i32 @stat(ptr noundef %98, ptr noundef %10)
%100 = icmp eq i32 %99, -1
br i1 %100, label %101, label %106
101: ; preds = %97
%102 = load i32, ptr @stderr, align 4
%103 = load ptr, ptr %8, align 8
%104 = call i32 @fprintf(i32 noundef %102, ptr noundef @.str.6, ptr noundef %103)
%105 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %105, ptr %3, align 4
br label %169
106: ; preds = %97
%107 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%108 = load i64, ptr %107, align 8
%109 = sub nsw i64 %108, 32
store i64 %109, ptr %12, align 8
%110 = load i64, ptr %12, align 8
%111 = call ptr @malloc(i64 noundef %110)
store ptr %111, ptr %11, align 8
%112 = load ptr, ptr %11, align 8
%113 = load i64, ptr %12, align 8
%114 = load ptr, ptr %6, align 8
%115 = call i32 @fread(ptr noundef %112, i64 noundef %113, i32 noundef 1, ptr noundef %114)
%116 = load ptr, ptr %6, align 8
%117 = call i64 @ferror(ptr noundef %116)
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %124
119: ; preds = %106
%120 = load i32, ptr @stderr, align 4
%121 = load ptr, ptr %8, align 8
%122 = call i32 @fprintf(i32 noundef %120, ptr noundef @.str.7, ptr noundef %121)
%123 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %123, ptr %3, align 4
br label %169
124: ; preds = %106
%125 = load ptr, ptr %6, align 8
%126 = call i64 @fclose(ptr noundef %125)
%127 = load i64, ptr @EOF, align 8
%128 = icmp eq i64 %126, %127
br i1 %128, label %129, label %133
129: ; preds = %124
%130 = load i32, ptr @stderr, align 4
%131 = load ptr, ptr %8, align 8
%132 = call i32 @fprintf(i32 noundef %130, ptr noundef @.str.8, ptr noundef %131)
br label %133
133: ; preds = %129, %124
%134 = load ptr, ptr %9, align 8
%135 = call ptr @fopen(ptr noundef %134, ptr noundef @.str.9)
store ptr %135, ptr %7, align 8
%136 = load ptr, ptr %7, align 8
%137 = icmp eq ptr %136, null
br i1 %137, label %138, label %143
138: ; preds = %133
%139 = load i32, ptr @stderr, align 4
%140 = load ptr, ptr %9, align 8
%141 = call i32 @fprintf(i32 noundef %139, ptr noundef @.str.5, ptr noundef %140)
%142 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %142, ptr %3, align 4
br label %169
143: ; preds = %133
%144 = load ptr, ptr %11, align 8
%145 = load i64, ptr %12, align 8
%146 = load ptr, ptr %7, align 8
%147 = call i32 @fwrite(ptr noundef %144, i64 noundef %145, i32 noundef 1, ptr noundef %146)
%148 = load ptr, ptr %7, align 8
%149 = call i64 @ferror(ptr noundef %148)
%150 = icmp ne i64 %149, 0
br i1 %150, label %151, label %156
151: ; preds = %143
%152 = load i32, ptr @stderr, align 4
%153 = load ptr, ptr %9, align 8
%154 = call i32 @fprintf(i32 noundef %152, ptr noundef @.str.10, ptr noundef %153)
%155 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %155, ptr %3, align 4
br label %169
156: ; preds = %143
%157 = load ptr, ptr %7, align 8
%158 = call i64 @fclose(ptr noundef %157)
%159 = load i64, ptr @EOF, align 8
%160 = icmp eq i64 %158, %159
br i1 %160, label %161, label %165
161: ; preds = %156
%162 = load i32, ptr @stderr, align 4
%163 = load ptr, ptr %9, align 8
%164 = call i32 @fprintf(i32 noundef %162, ptr noundef @.str.8, ptr noundef %163)
br label %165
165: ; preds = %161, %156
%166 = load ptr, ptr %11, align 8
%167 = call i32 @free(ptr noundef %166)
%168 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %168, ptr %3, align 4
br label %169
169: ; preds = %165, %151, %138, %119, %101, %92, %79, %57, %31, %25
%170 = load i32, ptr %3, align 4
ret i32 %170
}
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i64 @ferror(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ptf8qss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Usage: %s -i infile -o outfile\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"-i\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"-o\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [33 x i8] c"Error: Could not open file \22%s\22\0A\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"Error: Could not stat file \22%s\22\0A\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"Error: Reading from \22%s\22\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.8 = private unnamed_addr constant [36 x i8] c"Warning: Could not close file \22%s\22\0A\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.10 = private unnamed_addr constant [24 x i8] c"Error: Writing to \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = 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
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 5
br i1 %15, label %16, label %33
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %31
19: ; preds = %16
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i64 @strcasecmp(ptr noundef @.str, ptr noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %19
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 0
%28 = load ptr, ptr %27, align 8
%29 = call i32 @printf(ptr noundef @.str.1, ptr noundef %28)
%30 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %30, ptr %3, align 4
br label %171
31: ; preds = %19, %16
%32 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %32, ptr %3, align 4
br label %171
33: ; preds = %2
store i32 1, ptr %13, align 4
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph, label %89
.lr.ph: ; preds = %33
br label %37
37: ; preds = %.lr.ph, %83
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %13, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = call i64 @strcasecmp(ptr noundef @.str.2, ptr noundef %42)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %59
45: ; preds = %37
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %4, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %56
49: ; preds = %45
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %13, align 4
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %50, i64 %53
%55 = load ptr, ptr %54, align 8
store ptr %55, ptr %8, align 8
br label %58
56: ; preds = %45
%57 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %57, ptr %3, align 4
br label %171
58: ; preds = %49
br label %82
59: ; preds = %37
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = call i64 @strcasecmp(ptr noundef @.str.3, ptr noundef %64)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %81
67: ; preds = %59
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %78
71: ; preds = %67
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %13, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds ptr, ptr %72, i64 %75
%77 = load ptr, ptr %76, align 8
store ptr %77, ptr %9, align 8
br label %80
78: ; preds = %67
%79 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %79, ptr %3, align 4
br label %171
80: ; preds = %71
br label %81
81: ; preds = %80, %59
br label %82
82: ; preds = %81, %58
br label %83
83: ; preds = %82
%84 = load i32, ptr %13, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %13, align 4
%86 = load i32, ptr %13, align 4
%87 = load i32, ptr %4, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %83
br label %89
89: ; preds = %._crit_edge, %33
%90 = load ptr, ptr %8, align 8
%91 = call ptr @fopen(ptr noundef %90, ptr noundef @.str.4)
store ptr %91, ptr %6, align 8
%92 = load ptr, ptr %6, align 8
%93 = icmp eq ptr %92, null
br i1 %93, label %94, label %99
94: ; preds = %89
%95 = load i32, ptr @stderr, align 4
%96 = load ptr, ptr %8, align 8
%97 = call i32 @fprintf(i32 noundef %95, ptr noundef @.str.5, ptr noundef %96)
%98 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %98, ptr %3, align 4
br label %171
99: ; preds = %89
%100 = load ptr, ptr %8, align 8
%101 = call i32 @stat(ptr noundef %100, ptr noundef %10)
%102 = icmp eq i32 %101, -1
br i1 %102, label %103, label %108
103: ; preds = %99
%104 = load i32, ptr @stderr, align 4
%105 = load ptr, ptr %8, align 8
%106 = call i32 @fprintf(i32 noundef %104, ptr noundef @.str.6, ptr noundef %105)
%107 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %107, ptr %3, align 4
br label %171
108: ; preds = %99
%109 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%110 = load i64, ptr %109, align 8
%111 = sub nsw i64 %110, 32
store i64 %111, ptr %12, align 8
%112 = load i64, ptr %12, align 8
%113 = call ptr @malloc(i64 noundef %112)
store ptr %113, ptr %11, align 8
%114 = load ptr, ptr %11, align 8
%115 = load i64, ptr %12, align 8
%116 = load ptr, ptr %6, align 8
%117 = call i32 @fread(ptr noundef %114, i64 noundef %115, i32 noundef 1, ptr noundef %116)
%118 = load ptr, ptr %6, align 8
%119 = call i64 @ferror(ptr noundef %118)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %126
121: ; preds = %108
%122 = load i32, ptr @stderr, align 4
%123 = load ptr, ptr %8, align 8
%124 = call i32 @fprintf(i32 noundef %122, ptr noundef @.str.7, ptr noundef %123)
%125 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %125, ptr %3, align 4
br label %171
126: ; preds = %108
%127 = load ptr, ptr %6, align 8
%128 = call i64 @fclose(ptr noundef %127)
%129 = load i64, ptr @EOF, align 8
%130 = icmp eq i64 %128, %129
br i1 %130, label %131, label %135
131: ; preds = %126
%132 = load i32, ptr @stderr, align 4
%133 = load ptr, ptr %8, align 8
%134 = call i32 @fprintf(i32 noundef %132, ptr noundef @.str.8, ptr noundef %133)
br label %135
135: ; preds = %131, %126
%136 = load ptr, ptr %9, align 8
%137 = call ptr @fopen(ptr noundef %136, ptr noundef @.str.9)
store ptr %137, ptr %7, align 8
%138 = load ptr, ptr %7, align 8
%139 = icmp eq ptr %138, null
br i1 %139, label %140, label %145
140: ; preds = %135
%141 = load i32, ptr @stderr, align 4
%142 = load ptr, ptr %9, align 8
%143 = call i32 @fprintf(i32 noundef %141, ptr noundef @.str.5, ptr noundef %142)
%144 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %144, ptr %3, align 4
br label %171
145: ; preds = %135
%146 = load ptr, ptr %11, align 8
%147 = load i64, ptr %12, align 8
%148 = load ptr, ptr %7, align 8
%149 = call i32 @fwrite(ptr noundef %146, i64 noundef %147, i32 noundef 1, ptr noundef %148)
%150 = load ptr, ptr %7, align 8
%151 = call i64 @ferror(ptr noundef %150)
%152 = icmp ne i64 %151, 0
br i1 %152, label %153, label %158
153: ; preds = %145
%154 = load i32, ptr @stderr, align 4
%155 = load ptr, ptr %9, align 8
%156 = call i32 @fprintf(i32 noundef %154, ptr noundef @.str.10, ptr noundef %155)
%157 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %157, ptr %3, align 4
br label %171
158: ; preds = %145
%159 = load ptr, ptr %7, align 8
%160 = call i64 @fclose(ptr noundef %159)
%161 = load i64, ptr @EOF, align 8
%162 = icmp eq i64 %160, %161
br i1 %162, label %163, label %167
163: ; preds = %158
%164 = load i32, ptr @stderr, align 4
%165 = load ptr, ptr %9, align 8
%166 = call i32 @fprintf(i32 noundef %164, ptr noundef @.str.8, ptr noundef %165)
br label %167
167: ; preds = %163, %158
%168 = load ptr, ptr %11, align 8
%169 = call i32 @free(ptr noundef %168)
%170 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %170, ptr %3, align 4
br label %171
171: ; preds = %167, %153, %140, %121, %103, %94, %78, %56, %31, %25
%172 = load i32, ptr %3, align 4
ret i32 %172
}
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i64 @ferror(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmph58z_9hd.c'
source_filename = "/tmp/tmph58z_9hd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssh_version_string_read(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %7, align 8
%11 = call i64 @read_line(i32 noundef %8, ptr noundef %9, ptr noundef %10)
%12 = icmp slt i64 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = call i64 @parse_line(ptr noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13, %3
store i32 -1, ptr %4, align 4
br label %19
18: ; preds = %13
store i32 0, ptr %4, align 4
br label %19
19: ; preds = %18, %17
%20 = load i32, ptr %4, align 4
ret i32 %20
}
declare i64 @read_line(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @parse_line(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph58z_9hd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssh_version_string_read(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %7, align 8
%11 = call i64 @read_line(i32 noundef %8, ptr noundef %9, ptr noundef %10)
%12 = icmp slt i64 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = call i64 @parse_line(ptr noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13, %3
store i32 -1, ptr %4, align 4
br label %19
18: ; preds = %13
store i32 0, ptr %4, align 4
br label %19
19: ; preds = %18, %17
%20 = load i32, ptr %4, align 4
ret i32 %20
}
declare i64 @read_line(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @parse_line(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp33hlz1re.c'
source_filename = "/tmp/tmp33hlz1re.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isEven(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = srem i32 %4, 2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp33hlz1re.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isEven(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = srem i32 %4, 2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz6tfog00.c'
source_filename = "/tmp/tmpz6tfog00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"wc %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"%s: slots = %lu, filename = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [12 x i8] c"%s: %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = 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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 3
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call ptr @basename(ptr noundef %19)
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @atoi(ptr noundef %23)
store i64 %24, ptr %6, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %7, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = add nsw i32 %29, 5
%31 = zext i32 %30 to i64
%32 = call ptr @llvm.stacksave()
store ptr %32, ptr %8, align 8
%33 = alloca i8, i64 %31, align 16
store i64 %31, ptr %9, align 8
%34 = trunc i64 %31 to i32
%35 = load ptr, ptr %7, align 8
%36 = call i32 @snprintf(ptr noundef %33, i32 noundef %34, ptr noundef @.str, ptr noundef %35)
%37 = call i32 @system(ptr noundef %33)
%38 = load ptr, ptr %5, align 8
%39 = load i64, ptr %6, align 8
%40 = load ptr, ptr %7, align 8
%41 = call i32 @printf(ptr noundef @.str.1, ptr noundef %38, i64 noundef %39, ptr noundef %40)
%42 = load ptr, ptr %7, align 8
%43 = call ptr @fopen(ptr noundef %42, ptr noundef @.str.2)
store ptr %43, ptr %10, align 8
%44 = load ptr, ptr %10, align 8
%45 = icmp eq ptr %44, null
br i1 %45, label %46, label %55
46: ; preds = %2
%47 = load i32, ptr @stderr, align 4
%48 = load ptr, ptr %5, align 8
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.3, ptr noundef %48, ptr noundef %49, ptr noundef %51)
%53 = load i32, ptr @EXIT_FAILURE, align 4
%54 = call i32 @exit(i32 noundef %53) #4
unreachable
55: ; preds = %2
%56 = load i64, ptr %6, align 8
%57 = call ptr @calloc(i64 noundef %56, i32 noundef 8)
store ptr %57, ptr %11, align 8
%58 = load ptr, ptr %11, align 8
%59 = icmp ne ptr %58, null
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 noundef %60)
%62 = load ptr, ptr %11, align 8
%63 = load i64, ptr %6, align 8
%64 = load ptr, ptr %10, align 8
%65 = call i64 @load_table(ptr noundef %62, i64 noundef %63, ptr noundef %64)
store i64 %65, ptr %12, align 8
%66 = load ptr, ptr %10, align 8
%67 = call i32 @fclose(ptr noundef %66)
%68 = load ptr, ptr %11, align 8
%69 = load i64, ptr %6, align 8
%70 = load i64, ptr %12, align 8
%71 = call i32 @print_table(ptr noundef %68, i64 noundef %69, i64 noundef %70)
%72 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %72)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare ptr @basename(ptr noundef) #1
declare i64 @atoi(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i64 @load_table(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @print_table(ptr noundef, i64 noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz6tfog00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"wc %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"%s: slots = %lu, filename = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [12 x i8] c"%s: %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = 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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 3
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call ptr @basename(ptr noundef %19)
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @atoi(ptr noundef %23)
store i64 %24, ptr %6, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %7, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = add nsw i32 %29, 5
%31 = zext i32 %30 to i64
%32 = call ptr @llvm.stacksave()
store ptr %32, ptr %8, align 8
%33 = alloca i8, i64 %31, align 16
store i64 %31, ptr %9, align 8
%34 = trunc i64 %31 to i32
%35 = load ptr, ptr %7, align 8
%36 = call i32 @snprintf(ptr noundef %33, i32 noundef %34, ptr noundef @.str, ptr noundef %35)
%37 = call i32 @system(ptr noundef %33)
%38 = load ptr, ptr %5, align 8
%39 = load i64, ptr %6, align 8
%40 = load ptr, ptr %7, align 8
%41 = call i32 @printf(ptr noundef @.str.1, ptr noundef %38, i64 noundef %39, ptr noundef %40)
%42 = load ptr, ptr %7, align 8
%43 = call ptr @fopen(ptr noundef %42, ptr noundef @.str.2)
store ptr %43, ptr %10, align 8
%44 = load ptr, ptr %10, align 8
%45 = icmp eq ptr %44, null
br i1 %45, label %46, label %55
46: ; preds = %2
%47 = load i32, ptr @stderr, align 4
%48 = load ptr, ptr %5, align 8
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.3, ptr noundef %48, ptr noundef %49, ptr noundef %51)
%53 = load i32, ptr @EXIT_FAILURE, align 4
%54 = call i32 @exit(i32 noundef %53) #4
unreachable
55: ; preds = %2
%56 = load i64, ptr %6, align 8
%57 = call ptr @calloc(i64 noundef %56, i32 noundef 8)
store ptr %57, ptr %11, align 8
%58 = load ptr, ptr %11, align 8
%59 = icmp ne ptr %58, null
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 noundef %60)
%62 = load ptr, ptr %11, align 8
%63 = load i64, ptr %6, align 8
%64 = load ptr, ptr %10, align 8
%65 = call i64 @load_table(ptr noundef %62, i64 noundef %63, ptr noundef %64)
store i64 %65, ptr %12, align 8
%66 = load ptr, ptr %10, align 8
%67 = call i32 @fclose(ptr noundef %66)
%68 = load ptr, ptr %11, align 8
%69 = load i64, ptr %6, align 8
%70 = load i64, ptr %12, align 8
%71 = call i32 @print_table(ptr noundef %68, i64 noundef %69, i64 noundef %70)
%72 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %72)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare ptr @basename(ptr noundef) #1
declare i64 @atoi(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i64 @load_table(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @print_table(ptr noundef, i64 noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnuxa1bje.c'
source_filename = "/tmp/tmpnuxa1bje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hx8347_sleep() #0 {
%1 = call i32 @lcd_cmd(i32 noundef 40, i32 noundef 56)
%2 = call i32 @Delay(i32 noundef 40)
%3 = call i32 @lcd_cmd(i32 noundef 31, i32 noundef 137)
%4 = call i32 @Delay(i32 noundef 40)
%5 = call i32 @lcd_cmd(i32 noundef 40, i32 noundef 4)
%6 = call i32 @Delay(i32 noundef 40)
%7 = call i32 @lcd_cmd(i32 noundef 25, i32 noundef 0)
%8 = call i32 @Delay(i32 noundef 5)
ret void
}
declare i32 @lcd_cmd(i32 noundef, i32 noundef) #1
declare i32 @Delay(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/tmpnuxa1bje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hx8347_sleep() #0 {
%1 = call i32 @lcd_cmd(i32 noundef 40, i32 noundef 56)
%2 = call i32 @Delay(i32 noundef 40)
%3 = call i32 @lcd_cmd(i32 noundef 31, i32 noundef 137)
%4 = call i32 @Delay(i32 noundef 40)
%5 = call i32 @lcd_cmd(i32 noundef 40, i32 noundef 4)
%6 = call i32 @Delay(i32 noundef 40)
%7 = call i32 @lcd_cmd(i32 noundef 25, i32 noundef 0)
%8 = call i32 @Delay(i32 noundef 5)
ret void
}
declare i32 @lcd_cmd(i32 noundef, i32 noundef) #1
declare i32 @Delay(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/tmpkhlx5bdo.c'
source_filename = "/tmp/tmpkhlx5bdo.c"
target datalayout = "e-m:e-p270: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/tmpkhlx5bdo.c"
target datalayout = "e-m:e-p270: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/tmphu0u6biz.c'
source_filename = "/tmp/tmphu0u6biz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @runTests() #0 {
%1 = call i32 (...) @testDoomsday()
ret void
}
declare i32 @testDoomsday(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphu0u6biz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @runTests() #0 {
%1 = call i32 (...) @testDoomsday()
ret void
}
declare i32 @testDoomsday(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa2toi2p7.c'
source_filename = "/tmp/tmpa2toi2p7.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Failure to convert the current time.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convert_time(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call ptr @ctime(ptr noundef %2)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call ptr @strdup(ptr noundef %13)
ret ptr %14
}
declare ptr @ctime(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @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" }
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/tmpa2toi2p7.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Failure to convert the current time.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convert_time(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call ptr @ctime(ptr noundef %2)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call ptr @strdup(ptr noundef %13)
ret ptr %14
}
declare ptr @ctime(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @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" }
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/tmpw7xui0u3.c'
source_filename = "/tmp/tmpw7xui0u3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 5381, ptr %5, align 4
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %21, %2
%8 = load i64, ptr %6, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %7
%12 = load i32, ptr %5, align 4
%13 = shl i32 %12, 5
%14 = load i32, ptr %5, align 4
%15 = add i32 %13, %14
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
%18 = load i8, ptr %16, align 1
%19 = sext i8 %18 to i32
%20 = add i32 %15, %19
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %11
%22 = load i64, ptr %6, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %6, align 8
br label %7, !llvm.loop !6
24: ; preds = %7
%25 = load i32, ptr %5, align 4
ret i32 %25
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpw7xui0u3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 5381, ptr %5, align 4
store i64 0, ptr %6, align 8
%7 = load i64, ptr %6, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %20
%11 = load i32, ptr %5, align 4
%12 = shl i32 %11, 5
%13 = load i32, ptr %5, align 4
%14 = add i32 %12, %13
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %3, align 8
%17 = load i8, ptr %15, align 1
%18 = sext i8 %17 to i32
%19 = add i32 %14, %18
store i32 %19, ptr %5, align 4
br label %20
20: ; preds = %10
%21 = load i64, ptr %6, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %6, align 8
%23 = load i64, ptr %6, align 8
%24 = load i64, ptr %4, align 8
%25 = icmp ult i64 %23, %24
br i1 %25, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
%27 = load i32, ptr %5, align 4
ret i32 %27
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzvufkyov.c'
source_filename = "/tmp/tmpzvufkyov.c"
target datalayout = "e-m:e-p270: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/tmpzvufkyov.c"
target datalayout = "e-m:e-p270: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/tmp7obaxub_.c'
source_filename = "/tmp/tmp7obaxub_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TSS_gennonce(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 i64 @TPM_GetRandom(ptr noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @TPM_GetRandom(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7obaxub_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TSS_gennonce(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 i64 @TPM_GetRandom(ptr noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @TPM_GetRandom(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyzibbb6o.c'
source_filename = "/tmp/tmpyzibbb6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @at_tok_nextColon(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load ptr, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 -1, ptr %2, align 4
br label %21
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = call ptr @strchr(ptr noundef %10, i8 noundef signext 58)
%12 = load ptr, ptr %3, align 8
store ptr %11, ptr %12, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %8
store i32 -1, ptr %2, align 4
br label %21
17: ; preds = %8
%18 = load ptr, ptr %3, align 8
%19 = load ptr, ptr %18, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %18, align 8
store i32 0, ptr %2, align 4
br label %21
21: ; preds = %17, %16, %7
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyzibbb6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @at_tok_nextColon(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load ptr, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 -1, ptr %2, align 4
br label %21
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = call ptr @strchr(ptr noundef %10, i8 noundef signext 58)
%12 = load ptr, ptr %3, align 8
store ptr %11, ptr %12, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %8
store i32 -1, ptr %2, align 4
br label %21
17: ; preds = %8
%18 = load ptr, ptr %3, align 8
%19 = load ptr, ptr %18, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %18, align 8
store i32 0, ptr %2, align 4
br label %21
21: ; preds = %17, %16, %7
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxy10mj3z.c'
source_filename = "/tmp/tmpxy10mj3z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LINES = dso_local global i32 0, align 4
@COLS = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
%8 = call i32 (...) @initscr()
%9 = load i32, ptr @LINES, align 4
%10 = add nsw i32 %9, 50
store i32 %10, ptr %5, align 4
%11 = load i32, ptr @COLS, align 4
%12 = add nsw i32 %11, 50
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call ptr @newpad(i32 noundef %13, i32 noundef %14)
store ptr %15, ptr %2, align 8
store i8 97, ptr %7, align 1
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %43, %0
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %46
20: ; preds = %16
store i32 0, ptr %4, align 4
br label %21
21: ; preds = %39, %20
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %42
25: ; preds = %21
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %4, align 4
%29 = load i8, ptr %7, align 1
%30 = call i32 @mvwaddch(ptr noundef %26, i32 noundef %27, i32 noundef %28, i8 noundef signext %29)
%31 = load i8, ptr %7, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 122
br i1 %33, label %34, label %35
34: ; preds = %25
store i8 97, ptr %7, align 1
br label %38
35: ; preds = %25
%36 = load i8, ptr %7, align 1
%37 = add i8 %36, 1
store i8 %37, ptr %7, align 1
br label %38
38: ; preds = %35, %34
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %21, !llvm.loop !6
42: ; preds = %21
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
br label %16, !llvm.loop !8
46: ; preds = %16
%47 = load ptr, ptr %2, align 8
%48 = call i32 @prefresh(ptr noundef %47, i32 noundef 5, i32 noundef 7, i32 noundef 2, i32 noundef 2, i32 noundef 9, i32 noundef 9)
%49 = call i32 @sleep(i32 noundef 1)
%50 = load ptr, ptr %2, align 8
%51 = load i32, ptr @LINES, align 4
%52 = add nsw i32 %51, 5
%53 = load i32, ptr @COLS, align 4
%54 = add nsw i32 %53, 7
%55 = call i32 @prefresh(ptr noundef %50, i32 noundef %52, i32 noundef %54, i32 noundef 5, i32 noundef 5, i32 noundef 21, i32 noundef 19)
%56 = call i32 @sleep(i32 noundef 1)
%57 = load ptr, ptr %2, align 8
%58 = call i32 @delwin(ptr noundef %57)
%59 = call i32 (...) @endwin()
%60 = load i32, ptr @EXIT_SUCCESS, align 4
%61 = call i32 @exit(i32 noundef %60) #3
unreachable
}
declare i32 @initscr(...) #1
declare ptr @newpad(i32 noundef, i32 noundef) #1
declare i32 @mvwaddch(ptr noundef, i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @prefresh(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @delwin(ptr noundef) #1
declare i32 @endwin(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxy10mj3z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LINES = dso_local global i32 0, align 4
@COLS = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
%8 = call i32 (...) @initscr()
%9 = load i32, ptr @LINES, align 4
%10 = add nsw i32 %9, 50
store i32 %10, ptr %5, align 4
%11 = load i32, ptr @COLS, align 4
%12 = add nsw i32 %11, 50
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call ptr @newpad(i32 noundef %13, i32 noundef %14)
store ptr %15, ptr %2, align 8
store i8 97, ptr %7, align 1
store i32 0, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph2, label %50
.lr.ph2: ; preds = %0
br label %19
19: ; preds = %.lr.ph2, %44
store i32 0, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %43
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %37
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = load i8, ptr %7, align 1
%28 = call i32 @mvwaddch(ptr noundef %24, i32 noundef %25, i32 noundef %26, i8 noundef signext %27)
%29 = load i8, ptr %7, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 122
br i1 %31, label %32, label %33
32: ; preds = %23
store i8 97, ptr %7, align 1
br label %36
33: ; preds = %23
%34 = load i8, ptr %7, align 1
%35 = add i8 %34, 1
store i8 %35, ptr %7, align 1
br label %36
36: ; preds = %33, %32
br label %37
37: ; preds = %36
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %19
br label %44
44: ; preds = %43
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %5, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %44
br label %50
50: ; preds = %._crit_edge3, %0
%51 = load ptr, ptr %2, align 8
%52 = call i32 @prefresh(ptr noundef %51, i32 noundef 5, i32 noundef 7, i32 noundef 2, i32 noundef 2, i32 noundef 9, i32 noundef 9)
%53 = call i32 @sleep(i32 noundef 1)
%54 = load ptr, ptr %2, align 8
%55 = load i32, ptr @LINES, align 4
%56 = add nsw i32 %55, 5
%57 = load i32, ptr @COLS, align 4
%58 = add nsw i32 %57, 7
%59 = call i32 @prefresh(ptr noundef %54, i32 noundef %56, i32 noundef %58, i32 noundef 5, i32 noundef 5, i32 noundef 21, i32 noundef 19)
%60 = call i32 @sleep(i32 noundef 1)
%61 = load ptr, ptr %2, align 8
%62 = call i32 @delwin(ptr noundef %61)
%63 = call i32 (...) @endwin()
%64 = load i32, ptr @EXIT_SUCCESS, align 4
%65 = call i32 @exit(i32 noundef %64) #3
unreachable
}
declare i32 @initscr(...) #1
declare ptr @newpad(i32 noundef, i32 noundef) #1
declare i32 @mvwaddch(ptr noundef, i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @prefresh(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @delwin(ptr noundef) #1
declare i32 @endwin(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmplwloggfv.c'
source_filename = "/tmp/tmplwloggfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MergeSort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %4
store i32 0, ptr %5, align 4
br label %37
15: ; preds = %4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %8, align 4
%18 = add nsw i32 %16, %17
%19 = sdiv i32 %18, 2
store i32 %19, ptr %10, align 4
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %10, align 4
%23 = load ptr, ptr %9, align 8
%24 = call i32 @MergeSort(ptr noundef %20, i32 noundef %21, i32 noundef %22, ptr noundef %23)
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
%28 = load i32, ptr %8, align 4
%29 = load ptr, ptr %9, align 8
%30 = call i32 @MergeSort(ptr noundef %25, i32 noundef %27, i32 noundef %28, ptr noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %8, align 4
%35 = load ptr, ptr %9, align 8
%36 = call i32 @Merge(ptr noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef %35)
store i32 0, ptr %5, align 4
br label %37
37: ; preds = %15, %14
%38 = load i32, ptr %5, align 4
ret i32 %38
}
declare i32 @Merge(ptr noundef, 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/tmplwloggfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MergeSort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %4
store i32 0, ptr %5, align 4
br label %37
15: ; preds = %4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %8, align 4
%18 = add nsw i32 %16, %17
%19 = sdiv i32 %18, 2
store i32 %19, ptr %10, align 4
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %10, align 4
%23 = load ptr, ptr %9, align 8
%24 = call i32 @MergeSort(ptr noundef %20, i32 noundef %21, i32 noundef %22, ptr noundef %23)
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
%28 = load i32, ptr %8, align 4
%29 = load ptr, ptr %9, align 8
%30 = call i32 @MergeSort(ptr noundef %25, i32 noundef %27, i32 noundef %28, ptr noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %8, align 4
%35 = load ptr, ptr %9, align 8
%36 = call i32 @Merge(ptr noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef %35)
store i32 0, ptr %5, align 4
br label %37
37: ; preds = %15, %14
%38 = load i32, ptr %5, align 4
ret i32 %38
}
declare i32 @Merge(ptr noundef, 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/tmp3rhz4z_o.c'
source_filename = "/tmp/tmp3rhz4z_o.c"
target datalayout = "e-m:e-p270: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/tmp3rhz4z_o.c"
target datalayout = "e-m:e-p270: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/tmpf8mdh4rj.c'
source_filename = "/tmp/tmpf8mdh4rj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Hello from prog1.c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf8mdh4rj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Hello from prog1.c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzzezctgo.c'
source_filename = "/tmp/tmpzzezctgo.c"
target datalayout = "e-m:e-p270: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/tmpzzezctgo.c"
target datalayout = "e-m:e-p270: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/tmpheacomjb.c'
source_filename = "/tmp/tmpheacomjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d - \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %9, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10000
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 2
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpheacomjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d - \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 10000
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %8
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
br label %8
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 2
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 10000
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2d0fcejh.c'
source_filename = "/tmp/tmp2d0fcejh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coulomb_frame_parameters(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store double %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 ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%19 = load double, ptr %7, align 8
%20 = load double, ptr %8, align 8
%21 = load double, ptr %7, align 8
%22 = fsub double %20, %21
%23 = fmul double %22, 0x3FEE10EA9E6EEB70
%24 = call double @llvm.fmuladd.f64(double %19, double 0x3FEE065300581494, double %23)
store double %24, ptr %13, align 8
%25 = load double, ptr %9, align 8
%26 = load double, ptr %13, align 8
%27 = fadd double %25, %26
store double %27, ptr %14, align 8
%28 = load double, ptr %14, align 8
%29 = load double, ptr %14, align 8
%30 = fmul double %29, %28
store double %30, ptr %14, align 8
%31 = load double, ptr %14, align 8
%32 = load double, ptr %13, align 8
%33 = fmul double 2.000000e+00, %32
%34 = load double, ptr %10, align 8
%35 = call double @llvm.fmuladd.f64(double %33, double %34, double %31)
%36 = call i32 @sqrt(double noundef %35)
%37 = sitofp i32 %36 to double
%38 = fdiv double 1.000000e+00, %37
store double %38, ptr %15, align 8
%39 = load double, ptr %10, align 8
%40 = load double, ptr %9, align 8
%41 = fadd double %39, %40
%42 = load double, ptr %13, align 8
%43 = fadd double %41, %42
%44 = load double, ptr %15, align 8
%45 = fmul double %43, %44
%46 = load ptr, ptr %12, align 8
%47 = getelementptr inbounds double, ptr %46, i64 0
store double %45, ptr %47, align 8
%48 = load double, ptr %10, align 8
%49 = load double, ptr %13, align 8
%50 = load double, ptr %9, align 8
%51 = load double, ptr %9, align 8
%52 = load double, ptr %13, align 8
%53 = fadd double %51, %52
%54 = fmul double %50, %53
%55 = call double @llvm.fmuladd.f64(double %48, double %49, double %54)
%56 = load double, ptr %15, align 8
%57 = load double, ptr %9, align 8
%58 = fneg double %57
%59 = call double @llvm.fmuladd.f64(double %55, double %56, double %58)
%60 = load ptr, ptr %11, align 8
store double %59, ptr %60, align 8
%61 = load ptr, ptr %11, align 8
%62 = load double, ptr %61, align 8
%63 = fcmp olt double %62, 1.000000e-09
br i1 %63, label %64, label %66
64: ; preds = %6
%65 = load ptr, ptr %11, align 8
store double 1.000000e-09, ptr %65, align 8
br label %66
66: ; preds = %64, %6
%67 = load double, ptr %10, align 8
%68 = load double, ptr %9, align 8
%69 = fadd double %67, %68
%70 = load double, ptr %13, align 8
%71 = fadd double %69, %70
store double %71, ptr %16, align 8
%72 = load double, ptr %10, align 8
%73 = load double, ptr %10, align 8
%74 = load double, ptr %9, align 8
%75 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %74, double %73)
%76 = fmul double %72, %75
%77 = load double, ptr %16, align 8
%78 = load double, ptr %16, align 8
%79 = fmul double %77, %78
%80 = fdiv double %76, %79
store double %80, ptr %17, align 8
%81 = load double, ptr %9, align 8
%82 = load double, ptr %13, align 8
%83 = fdiv double %81, %82
store double %83, ptr %18, align 8
%84 = load double, ptr %18, align 8
%85 = load double, ptr %18, align 8
%86 = fmul double %85, %84
store double %86, ptr %18, align 8
%87 = load double, ptr %18, align 8
%88 = load double, ptr %17, align 8
%89 = fsub double 1.000000e+00, %88
%90 = load double, ptr %17, align 8
%91 = call double @llvm.fmuladd.f64(double %87, double %89, double %90)
%92 = call i32 @sqrt(double noundef %91)
%93 = sitofp i32 %92 to double
%94 = load ptr, ptr %12, align 8
%95 = getelementptr inbounds double, ptr %94, i64 1
store double %93, ptr %95, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2d0fcejh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coulomb_frame_parameters(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store double %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 ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%19 = load double, ptr %7, align 8
%20 = load double, ptr %8, align 8
%21 = load double, ptr %7, align 8
%22 = fsub double %20, %21
%23 = fmul double %22, 0x3FEE10EA9E6EEB70
%24 = call double @llvm.fmuladd.f64(double %19, double 0x3FEE065300581494, double %23)
store double %24, ptr %13, align 8
%25 = load double, ptr %9, align 8
%26 = load double, ptr %13, align 8
%27 = fadd double %25, %26
store double %27, ptr %14, align 8
%28 = load double, ptr %14, align 8
%29 = load double, ptr %14, align 8
%30 = fmul double %29, %28
store double %30, ptr %14, align 8
%31 = load double, ptr %14, align 8
%32 = load double, ptr %13, align 8
%33 = fmul double 2.000000e+00, %32
%34 = load double, ptr %10, align 8
%35 = call double @llvm.fmuladd.f64(double %33, double %34, double %31)
%36 = call i32 @sqrt(double noundef %35)
%37 = sitofp i32 %36 to double
%38 = fdiv double 1.000000e+00, %37
store double %38, ptr %15, align 8
%39 = load double, ptr %10, align 8
%40 = load double, ptr %9, align 8
%41 = fadd double %39, %40
%42 = load double, ptr %13, align 8
%43 = fadd double %41, %42
%44 = load double, ptr %15, align 8
%45 = fmul double %43, %44
%46 = load ptr, ptr %12, align 8
%47 = getelementptr inbounds double, ptr %46, i64 0
store double %45, ptr %47, align 8
%48 = load double, ptr %10, align 8
%49 = load double, ptr %13, align 8
%50 = load double, ptr %9, align 8
%51 = load double, ptr %9, align 8
%52 = load double, ptr %13, align 8
%53 = fadd double %51, %52
%54 = fmul double %50, %53
%55 = call double @llvm.fmuladd.f64(double %48, double %49, double %54)
%56 = load double, ptr %15, align 8
%57 = load double, ptr %9, align 8
%58 = fneg double %57
%59 = call double @llvm.fmuladd.f64(double %55, double %56, double %58)
%60 = load ptr, ptr %11, align 8
store double %59, ptr %60, align 8
%61 = load ptr, ptr %11, align 8
%62 = load double, ptr %61, align 8
%63 = fcmp olt double %62, 1.000000e-09
br i1 %63, label %64, label %66
64: ; preds = %6
%65 = load ptr, ptr %11, align 8
store double 1.000000e-09, ptr %65, align 8
br label %66
66: ; preds = %64, %6
%67 = load double, ptr %10, align 8
%68 = load double, ptr %9, align 8
%69 = fadd double %67, %68
%70 = load double, ptr %13, align 8
%71 = fadd double %69, %70
store double %71, ptr %16, align 8
%72 = load double, ptr %10, align 8
%73 = load double, ptr %10, align 8
%74 = load double, ptr %9, align 8
%75 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %74, double %73)
%76 = fmul double %72, %75
%77 = load double, ptr %16, align 8
%78 = load double, ptr %16, align 8
%79 = fmul double %77, %78
%80 = fdiv double %76, %79
store double %80, ptr %17, align 8
%81 = load double, ptr %9, align 8
%82 = load double, ptr %13, align 8
%83 = fdiv double %81, %82
store double %83, ptr %18, align 8
%84 = load double, ptr %18, align 8
%85 = load double, ptr %18, align 8
%86 = fmul double %85, %84
store double %86, ptr %18, align 8
%87 = load double, ptr %18, align 8
%88 = load double, ptr %17, align 8
%89 = fsub double 1.000000e+00, %88
%90 = load double, ptr %17, align 8
%91 = call double @llvm.fmuladd.f64(double %87, double %89, double %90)
%92 = call i32 @sqrt(double noundef %91)
%93 = sitofp i32 %92 to double
%94 = load ptr, ptr %12, align 8
%95 = getelementptr inbounds double, ptr %94, i64 1
store double %93, ptr %95, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxfkn04k2.c'
source_filename = "/tmp/tmpxfkn04k2.c"
target datalayout = "e-m:e-p270: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/tmpxfkn04k2.c"
target datalayout = "e-m:e-p270: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/tmp9kz1c6om.c'
source_filename = "/tmp/tmp9kz1c6om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c" Hello from Bar12: \0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c" i1 = %d, i2 = %d, ui1 = %d\0A \00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c" c1 = %c, c2 = %c, uc1 = %c\0A \00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c" i3 = %d, i4 = %d, ui2 = %d\0A \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @Bar12(i32 noundef %0, i32 noundef %1, i32 noundef %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef zeroext %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i8 noundef signext %9, i8 noundef signext %10, i8 noundef zeroext %11) #0 {
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = alloca i8, align 1
%18 = alloca i8, align 1
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i8, align 1
%23 = alloca i8, align 1
%24 = alloca i8, align 1
store i32 %0, ptr %13, align 4
store i32 %1, ptr %14, align 4
store i32 %2, ptr %15, align 4
store i8 %3, ptr %16, align 1
store i8 %4, ptr %17, align 1
store i8 %5, ptr %18, align 1
store i32 %6, ptr %19, align 4
store i32 %7, ptr %20, align 4
store i32 %8, ptr %21, align 4
store i8 %9, ptr %22, align 1
store i8 %10, ptr %23, align 1
store i8 %11, ptr %24, align 1
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%26 = load i32, ptr %13, align 4
%27 = load i32, ptr %14, align 4
%28 = load i32, ptr %15, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26, i32 noundef %27, i32 noundef %28)
%30 = load i8, ptr %16, align 1
%31 = sext i8 %30 to i32
%32 = load i8, ptr %17, align 1
%33 = sext i8 %32 to i32
%34 = load i8, ptr %18, align 1
%35 = zext i8 %34 to i32
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31, i32 noundef %33, i32 noundef %35)
%37 = load i32, ptr %19, align 4
%38 = load i32, ptr %20, align 4
%39 = load i32, ptr %21, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %37, i32 noundef %38, i32 noundef %39)
%41 = load i8, ptr %22, align 1
%42 = sext i8 %41 to i32
%43 = load i8, ptr %23, align 1
%44 = sext i8 %43 to i32
%45 = load i8, ptr %24, align 1
%46 = zext i8 %45 to i32
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42, i32 noundef %44, i32 noundef %46)
ret i8 49
}
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/tmp9kz1c6om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c" Hello from Bar12: \0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c" i1 = %d, i2 = %d, ui1 = %d\0A \00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c" c1 = %c, c2 = %c, uc1 = %c\0A \00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c" i3 = %d, i4 = %d, ui2 = %d\0A \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @Bar12(i32 noundef %0, i32 noundef %1, i32 noundef %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef zeroext %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i8 noundef signext %9, i8 noundef signext %10, i8 noundef zeroext %11) #0 {
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = alloca i8, align 1
%18 = alloca i8, align 1
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i8, align 1
%23 = alloca i8, align 1
%24 = alloca i8, align 1
store i32 %0, ptr %13, align 4
store i32 %1, ptr %14, align 4
store i32 %2, ptr %15, align 4
store i8 %3, ptr %16, align 1
store i8 %4, ptr %17, align 1
store i8 %5, ptr %18, align 1
store i32 %6, ptr %19, align 4
store i32 %7, ptr %20, align 4
store i32 %8, ptr %21, align 4
store i8 %9, ptr %22, align 1
store i8 %10, ptr %23, align 1
store i8 %11, ptr %24, align 1
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%26 = load i32, ptr %13, align 4
%27 = load i32, ptr %14, align 4
%28 = load i32, ptr %15, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26, i32 noundef %27, i32 noundef %28)
%30 = load i8, ptr %16, align 1
%31 = sext i8 %30 to i32
%32 = load i8, ptr %17, align 1
%33 = sext i8 %32 to i32
%34 = load i8, ptr %18, align 1
%35 = zext i8 %34 to i32
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31, i32 noundef %33, i32 noundef %35)
%37 = load i32, ptr %19, align 4
%38 = load i32, ptr %20, align 4
%39 = load i32, ptr %21, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %37, i32 noundef %38, i32 noundef %39)
%41 = load i8, ptr %22, align 1
%42 = sext i8 %41 to i32
%43 = load i8, ptr %23, align 1
%44 = sext i8 %43 to i32
%45 = load i8, ptr %24, align 1
%46 = zext i8 %45 to i32
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42, i32 noundef %44, i32 noundef %46)
ret i8 49
}
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/tmpdtis2vjp.c'
source_filename = "/tmp/tmpdtis2vjp.c"
target datalayout = "e-m:e-p270: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 [62 x i8] c"Usage: largefile [-f file_size] [-i IO_size] test_directory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdtis2vjp.c"
target datalayout = "e-m:e-p270: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 [62 x i8] c"Usage: largefile [-f file_size] [-i IO_size] test_directory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv017hdlq.c'
source_filename = "/tmp/tmpv017hdlq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [68 x i8] c"\0AEnter number of asterisks to prints in each row (i.e. the width): \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [63 x i8] c"Invalid width. Please enter a positive integer for the width: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getWidth() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
br label %4
4: ; preds = %7, %0
%5 = load i32, ptr %1, align 4
%6 = icmp sle i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %4
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
br label %4, !llvm.loop !6
10: ; preds = %4
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv017hdlq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [68 x i8] c"\0AEnter number of asterisks to prints in each row (i.e. the width): \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [63 x i8] c"Invalid width. Please enter a positive integer for the width: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getWidth() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = load i32, ptr %1, align 4
%5 = icmp sle i32 %4, 0
br i1 %5, label %.lr.ph, label %11
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%9 = load i32, ptr %1, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %11
11: ; preds = %._crit_edge, %0
%12 = load i32, ptr %1, align 4
ret i32 %12
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbhnr8qpo.c'
source_filename = "/tmp/tmpbhnr8qpo.c"
target datalayout = "e-m:e-p270: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/tmpbhnr8qpo.c"
target datalayout = "e-m:e-p270: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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.