llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpxuuakec4.c'
source_filename = "/tmp/tmpxuuakec4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bababaababababca\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"ababababca\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"offset is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @KMP_match(ptr noundef %5, ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @printf(ptr noundef @.str.2, i32 noundef %8)
ret i32 0
}
declare i32 @KMP_match(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/tmpxuuakec4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bababaababababca\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"ababababca\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"offset is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @KMP_match(ptr noundef %5, ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @printf(ptr noundef @.str.2, i32 noundef %8)
ret i32 0
}
declare i32 @KMP_match(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/tmp999qk56o.c'
source_filename = "/tmp/tmp999qk56o.c"
target datalayout = "e-m:e-p270: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/tmp999qk56o.c"
target datalayout = "e-m:e-p270: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/tmpdprj_ot8.c'
source_filename = "/tmp/tmpdprj_ot8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @change_colors(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%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
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
%25 = load i32, ptr %13, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %60
27: ; preds = %7
%28 = load i32, ptr %14, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %60
30: ; preds = %27
%31 = load i32, ptr %15, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %60
33: ; preds = %30
store i32 0, ptr %20, align 4
store i32 0, ptr %16, align 4
br label %34
34: ; preds = %56, %33
%35 = load i32, ptr %16, align 4
%36 = load i32, ptr %12, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %59
38: ; preds = %34
%39 = load i32, ptr %20, align 4
%40 = trunc i32 %39 to i16
%41 = load ptr, ptr %11, align 8
%42 = load i32, ptr %16, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i16, ptr %41, i64 %43
store i16 %40, ptr %44, align 2
%45 = load ptr, ptr %10, align 8
%46 = load i32, ptr %16, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i16, ptr %45, i64 %47
store i16 %40, ptr %48, align 2
%49 = load ptr, ptr %9, align 8
%50 = load i32, ptr %16, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i16, ptr %49, i64 %51
store i16 %40, ptr %52, align 2
%53 = load i32, ptr %12, align 4
%54 = load i32, ptr %20, align 4
%55 = add nsw i32 %54, %53
store i32 %55, ptr %20, align 4
br label %56
56: ; preds = %38
%57 = load i32, ptr %16, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %16, align 4
br label %34, !llvm.loop !6
59: ; preds = %34
br label %161
60: ; preds = %30, %27, %7
%61 = load i32, ptr %12, align 4
%62 = load i32, ptr %12, align 4
%63 = mul nsw i32 %61, %62
store i32 %63, ptr %21, align 4
%64 = load i32, ptr %13, align 4
%65 = load i32, ptr %12, align 4
%66 = mul nsw i32 %64, %65
%67 = sdiv i32 %66, 255
store i32 %67, ptr %22, align 4
%68 = load i32, ptr %14, align 4
%69 = load i32, ptr %12, align 4
%70 = mul nsw i32 %68, %69
%71 = sdiv i32 %70, 255
store i32 %71, ptr %23, align 4
%72 = load i32, ptr %15, align 4
%73 = load i32, ptr %12, align 4
%74 = mul nsw i32 %72, %73
%75 = sdiv i32 %74, 255
store i32 %75, ptr %24, align 4
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds i16, ptr %76, i64 1
%78 = load i16, ptr %77, align 2
%79 = zext i16 %78 to i32
%80 = load i32, ptr %22, align 4
%81 = load i32, ptr %12, align 4
%82 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %80, i32 noundef %81)
%83 = zext i16 %82 to i32
%84 = icmp eq i32 %79, %83
br i1 %84, label %85, label %106
85: ; preds = %60
%86 = load ptr, ptr %10, align 8
%87 = getelementptr inbounds i16, ptr %86, i64 1
%88 = load i16, ptr %87, align 2
%89 = zext i16 %88 to i32
%90 = load i32, ptr %23, align 4
%91 = load i32, ptr %12, align 4
%92 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %90, i32 noundef %91)
%93 = zext i16 %92 to i32
%94 = icmp eq i32 %89, %93
br i1 %94, label %95, label %106
95: ; preds = %85
%96 = load ptr, ptr %11, align 8
%97 = getelementptr inbounds i16, ptr %96, i64 1
%98 = load i16, ptr %97, align 2
%99 = zext i16 %98 to i32
%100 = load i32, ptr %24, align 4
%101 = load i32, ptr %12, align 4
%102 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %100, i32 noundef %101)
%103 = zext i16 %102 to i32
%104 = icmp eq i32 %99, %103
br i1 %104, label %105, label %106
105: ; preds = %95
store i32 1, ptr %8, align 4
br label %162
106: ; preds = %95, %85, %60
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %19, align 4
store i32 0, ptr %16, align 4
br label %107
107: ; preds = %157, %106
%108 = load i32, ptr %16, align 4
%109 = load i32, ptr %12, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %160
111: ; preds = %107
%112 = load i32, ptr %17, align 4
%113 = load i32, ptr %16, align 4
%114 = load i32, ptr %12, align 4
%115 = mul nsw i32 %113, %114
%116 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %112, i32 noundef %115)
%117 = load ptr, ptr %9, align 8
%118 = load i32, ptr %16, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i16, ptr %117, i64 %119
store i16 %116, ptr %120, align 2
%121 = load i32, ptr %18, align 4
%122 = load i32, ptr %16, align 4
%123 = load i32, ptr %12, align 4
%124 = mul nsw i32 %122, %123
%125 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %121, i32 noundef %124)
%126 = load ptr, ptr %10, align 8
%127 = load i32, ptr %16, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i16, ptr %126, i64 %128
store i16 %125, ptr %129, align 2
%130 = load i32, ptr %19, align 4
%131 = load i32, ptr %16, align 4
%132 = load i32, ptr %12, align 4
%133 = mul nsw i32 %131, %132
%134 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %130, i32 noundef %133)
%135 = load ptr, ptr %11, align 8
%136 = load i32, ptr %16, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i16, ptr %135, i64 %137
store i16 %134, ptr %138, align 2
%139 = load i32, ptr %17, align 4
%140 = load i32, ptr %22, align 4
%141 = add nsw i32 %139, %140
%142 = load i32, ptr %21, align 4
%143 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %141, i32 noundef %142)
%144 = zext i16 %143 to i32
store i32 %144, ptr %17, align 4
%145 = load i32, ptr %18, align 4
%146 = load i32, ptr %23, align 4
%147 = add nsw i32 %145, %146
%148 = load i32, ptr %21, align 4
%149 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %147, i32 noundef %148)
%150 = zext i16 %149 to i32
store i32 %150, ptr %18, align 4
%151 = load i32, ptr %19, align 4
%152 = load i32, ptr %24, align 4
%153 = add nsw i32 %151, %152
%154 = load i32, ptr %21, align 4
%155 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %153, i32 noundef %154)
%156 = zext i16 %155 to i32
store i32 %156, ptr %19, align 4
br label %157
157: ; preds = %111
%158 = load i32, ptr %16, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %16, align 4
br label %107, !llvm.loop !8
160: ; preds = %107
br label %161
161: ; preds = %160, %59
store i32 0, ptr %8, align 4
br label %162
162: ; preds = %161, %105
%163 = load i32, ptr %8, align 4
ret i32 %163
}
declare zeroext i16 @bound(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdprj_ot8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @change_colors(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%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
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
%25 = load i32, ptr %13, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %62
27: ; preds = %7
%28 = load i32, ptr %14, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %62
30: ; preds = %27
%31 = load i32, ptr %15, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %62
33: ; preds = %30
store i32 0, ptr %20, align 4
store i32 0, ptr %16, align 4
%34 = load i32, ptr %16, align 4
%35 = load i32, ptr %12, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph2, label %61
.lr.ph2: ; preds = %33
br label %37
37: ; preds = %.lr.ph2, %55
%38 = load i32, ptr %20, align 4
%39 = trunc i32 %38 to i16
%40 = load ptr, ptr %11, align 8
%41 = load i32, ptr %16, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i16, ptr %40, i64 %42
store i16 %39, ptr %43, align 2
%44 = load ptr, ptr %10, align 8
%45 = load i32, ptr %16, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i16, ptr %44, i64 %46
store i16 %39, ptr %47, align 2
%48 = load ptr, ptr %9, align 8
%49 = load i32, ptr %16, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i16, ptr %48, i64 %50
store i16 %39, ptr %51, align 2
%52 = load i32, ptr %12, align 4
%53 = load i32, ptr %20, align 4
%54 = add nsw i32 %53, %52
store i32 %54, ptr %20, align 4
br label %55
55: ; preds = %37
%56 = load i32, ptr %16, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %16, align 4
%58 = load i32, ptr %16, align 4
%59 = load i32, ptr %12, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %37, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %55
br label %61
61: ; preds = %._crit_edge3, %33
br label %165
62: ; preds = %30, %27, %7
%63 = load i32, ptr %12, align 4
%64 = load i32, ptr %12, align 4
%65 = mul nsw i32 %63, %64
store i32 %65, ptr %21, align 4
%66 = load i32, ptr %13, align 4
%67 = load i32, ptr %12, align 4
%68 = mul nsw i32 %66, %67
%69 = sdiv i32 %68, 255
store i32 %69, ptr %22, align 4
%70 = load i32, ptr %14, align 4
%71 = load i32, ptr %12, align 4
%72 = mul nsw i32 %70, %71
%73 = sdiv i32 %72, 255
store i32 %73, ptr %23, align 4
%74 = load i32, ptr %15, align 4
%75 = load i32, ptr %12, align 4
%76 = mul nsw i32 %74, %75
%77 = sdiv i32 %76, 255
store i32 %77, ptr %24, align 4
%78 = load ptr, ptr %9, align 8
%79 = getelementptr inbounds i16, ptr %78, i64 1
%80 = load i16, ptr %79, align 2
%81 = zext i16 %80 to i32
%82 = load i32, ptr %22, align 4
%83 = load i32, ptr %12, align 4
%84 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %82, i32 noundef %83)
%85 = zext i16 %84 to i32
%86 = icmp eq i32 %81, %85
br i1 %86, label %87, label %108
87: ; preds = %62
%88 = load ptr, ptr %10, align 8
%89 = getelementptr inbounds i16, ptr %88, i64 1
%90 = load i16, ptr %89, align 2
%91 = zext i16 %90 to i32
%92 = load i32, ptr %23, align 4
%93 = load i32, ptr %12, align 4
%94 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %92, i32 noundef %93)
%95 = zext i16 %94 to i32
%96 = icmp eq i32 %91, %95
br i1 %96, label %97, label %108
97: ; preds = %87
%98 = load ptr, ptr %11, align 8
%99 = getelementptr inbounds i16, ptr %98, i64 1
%100 = load i16, ptr %99, align 2
%101 = zext i16 %100 to i32
%102 = load i32, ptr %24, align 4
%103 = load i32, ptr %12, align 4
%104 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %102, i32 noundef %103)
%105 = zext i16 %104 to i32
%106 = icmp eq i32 %101, %105
br i1 %106, label %107, label %108
107: ; preds = %97
store i32 1, ptr %8, align 4
br label %166
108: ; preds = %97, %87, %62
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %19, align 4
store i32 0, ptr %16, align 4
%109 = load i32, ptr %16, align 4
%110 = load i32, ptr %12, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %.lr.ph, label %164
.lr.ph: ; preds = %108
br label %112
112: ; preds = %.lr.ph, %158
%113 = load i32, ptr %17, align 4
%114 = load i32, ptr %16, align 4
%115 = load i32, ptr %12, align 4
%116 = mul nsw i32 %114, %115
%117 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %113, i32 noundef %116)
%118 = load ptr, ptr %9, align 8
%119 = load i32, ptr %16, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i16, ptr %118, i64 %120
store i16 %117, ptr %121, align 2
%122 = load i32, ptr %18, align 4
%123 = load i32, ptr %16, align 4
%124 = load i32, ptr %12, align 4
%125 = mul nsw i32 %123, %124
%126 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %122, i32 noundef %125)
%127 = load ptr, ptr %10, align 8
%128 = load i32, ptr %16, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i16, ptr %127, i64 %129
store i16 %126, ptr %130, align 2
%131 = load i32, ptr %19, align 4
%132 = load i32, ptr %16, align 4
%133 = load i32, ptr %12, align 4
%134 = mul nsw i32 %132, %133
%135 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %131, i32 noundef %134)
%136 = load ptr, ptr %11, align 8
%137 = load i32, ptr %16, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i16, ptr %136, i64 %138
store i16 %135, ptr %139, align 2
%140 = load i32, ptr %17, align 4
%141 = load i32, ptr %22, align 4
%142 = add nsw i32 %140, %141
%143 = load i32, ptr %21, align 4
%144 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %142, i32 noundef %143)
%145 = zext i16 %144 to i32
store i32 %145, ptr %17, align 4
%146 = load i32, ptr %18, align 4
%147 = load i32, ptr %23, align 4
%148 = add nsw i32 %146, %147
%149 = load i32, ptr %21, align 4
%150 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %148, i32 noundef %149)
%151 = zext i16 %150 to i32
store i32 %151, ptr %18, align 4
%152 = load i32, ptr %19, align 4
%153 = load i32, ptr %24, align 4
%154 = add nsw i32 %152, %153
%155 = load i32, ptr %21, align 4
%156 = call zeroext i16 @bound(i32 noundef 0, i32 noundef %154, i32 noundef %155)
%157 = zext i16 %156 to i32
store i32 %157, ptr %19, align 4
br label %158
158: ; preds = %112
%159 = load i32, ptr %16, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %16, align 4
%161 = load i32, ptr %16, align 4
%162 = load i32, ptr %12, align 4
%163 = icmp slt i32 %161, %162
br i1 %163, label %112, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %158
br label %164
164: ; preds = %._crit_edge, %108
br label %165
165: ; preds = %164, %61
store i32 0, ptr %8, align 4
br label %166
166: ; preds = %165, %107
%167 = load i32, ptr %8, align 4
ret i32 %167
}
declare zeroext i16 @bound(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmptxy1069s.c'
source_filename = "/tmp/tmptxy1069s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_attr_getstacksize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = call i32 @assert(i32 noundef 0)
%7 = load i32, ptr %3, align 4
ret i32 %7
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptxy1069s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_attr_getstacksize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = call i32 @assert(i32 noundef 0)
%7 = load i32, ptr %3, align 4
ret i32 %7
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmivfi2tm.c'
source_filename = "/tmp/tmpmivfi2tm.c"
target datalayout = "e-m:e-p270: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/tmpmivfi2tm.c"
target datalayout = "e-m:e-p270: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/tmp8n3d5c7r.c'
source_filename = "/tmp/tmp8n3d5c7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02d.pac\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Name_PAC(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [9 x i8], align 1
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %14, 1
%16 = mul nsw i32 %13, %15
%17 = load i32, ptr %10, align 4
%18 = add nsw i32 %16, %17
store i32 %18, ptr %12, align 4
%19 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
%20 = load i32, ptr %12, align 4
%21 = call i32 @sprintf(ptr noundef %19, ptr noundef @.str, i32 noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %7, align 8
%24 = call i32 @strcpy(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
%27 = call i32 @strcat(ptr noundef %25, ptr noundef %26)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmp8n3d5c7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02d.pac\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Name_PAC(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [9 x i8], align 1
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %14, 1
%16 = mul nsw i32 %13, %15
%17 = load i32, ptr %10, align 4
%18 = add nsw i32 %16, %17
store i32 %18, ptr %12, align 4
%19 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
%20 = load i32, ptr %12, align 4
%21 = call i32 @sprintf(ptr noundef %19, ptr noundef @.str, i32 noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %7, align 8
%24 = call i32 @strcpy(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds [9 x i8], ptr %11, i64 0, i64 0
%27 = call i32 @strcat(ptr noundef %25, ptr noundef %26)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpbxc4qmwd.c'
source_filename = "/tmp/tmpbxc4qmwd.c"
target datalayout = "e-m:e-p270: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/tmpbxc4qmwd.c"
target datalayout = "e-m:e-p270: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/tmp4q1j901s.c'
source_filename = "/tmp/tmp4q1j901s.c"
target datalayout = "e-m:e-p270: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
@_IONBF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Port 0 Pin 1: %x \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 2: %x \0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 3: %x \0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 4: %x \0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 5: %x \0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 6: %x \0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 7: %x \0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 8: %x \0A\00", align 1
@.str.8 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 9: %x \0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 10: %x \0A\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 11: %x \0A\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 12: %x \0A\00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 13: %x \0A\00", align 1
@.str.13 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 14: %x \0A\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 15: %x \0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 16: %x \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 = load i32, ptr @stdout, align 4
%7 = load i32, ptr @_IONBF, align 4
%8 = call i32 @setvbuf(i32 noundef %6, ptr noundef null, i32 noundef %7, i32 noundef 0)
%9 = call i32 @IOPi_init(i32 noundef 32, i32 noundef 1)
%10 = call i32 @set_port_direction(i32 noundef 32, i32 noundef 0, i32 noundef 255)
%11 = call i32 @set_port_direction(i32 noundef 32, i32 noundef 1, i32 noundef 255)
%12 = call i32 @set_port_pullups(i32 noundef 32, i32 noundef 0, i32 noundef 255)
%13 = call i32 @invert_port(i32 noundef 32, i32 noundef 0, i32 noundef 255)
%14 = call i32 @set_port_pullups(i32 noundef 32, i32 noundef 1, i32 noundef 255)
%15 = call i32 @invert_port(i32 noundef 32, i32 noundef 1, i32 noundef 255)
br label %16
16: ; preds = %2, %16
%17 = call i32 (...) @clearscreen()
%18 = call i32 @read_pin(i32 noundef 32, i32 noundef 1)
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
%20 = call i32 @read_pin(i32 noundef 32, i32 noundef 2)
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
%22 = call i32 @read_pin(i32 noundef 32, i32 noundef 3)
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
%24 = call i32 @read_pin(i32 noundef 32, i32 noundef 4)
%25 = call i32 @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = call i32 @read_pin(i32 noundef 32, i32 noundef 5)
%27 = call i32 @printf(ptr noundef @.str.4, i32 noundef %26)
%28 = call i32 @read_pin(i32 noundef 32, i32 noundef 6)
%29 = call i32 @printf(ptr noundef @.str.5, i32 noundef %28)
%30 = call i32 @read_pin(i32 noundef 32, i32 noundef 7)
%31 = call i32 @printf(ptr noundef @.str.6, i32 noundef %30)
%32 = call i32 @read_pin(i32 noundef 32, i32 noundef 8)
%33 = call i32 @printf(ptr noundef @.str.7, i32 noundef %32)
%34 = call i32 @read_pin(i32 noundef 32, i32 noundef 9)
%35 = call i32 @printf(ptr noundef @.str.8, i32 noundef %34)
%36 = call i32 @read_pin(i32 noundef 32, i32 noundef 10)
%37 = call i32 @printf(ptr noundef @.str.9, i32 noundef %36)
%38 = call i32 @read_pin(i32 noundef 32, i32 noundef 11)
%39 = call i32 @printf(ptr noundef @.str.10, i32 noundef %38)
%40 = call i32 @read_pin(i32 noundef 32, i32 noundef 12)
%41 = call i32 @printf(ptr noundef @.str.11, i32 noundef %40)
%42 = call i32 @read_pin(i32 noundef 32, i32 noundef 13)
%43 = call i32 @printf(ptr noundef @.str.12, i32 noundef %42)
%44 = call i32 @read_pin(i32 noundef 32, i32 noundef 14)
%45 = call i32 @printf(ptr noundef @.str.13, i32 noundef %44)
%46 = call i32 @read_pin(i32 noundef 32, i32 noundef 15)
%47 = call i32 @printf(ptr noundef @.str.14, i32 noundef %46)
%48 = call i32 @read_pin(i32 noundef 32, i32 noundef 16)
%49 = call i32 @printf(ptr noundef @.str.15, i32 noundef %48)
%50 = call i32 @usleep(i32 noundef 200000)
br label %16
}
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @IOPi_init(i32 noundef, i32 noundef) #1
declare i32 @set_port_direction(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @set_port_pullups(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @invert_port(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @clearscreen(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @read_pin(i32 noundef, i32 noundef) #1
declare i32 @usleep(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/tmp4q1j901s.c"
target datalayout = "e-m:e-p270: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
@_IONBF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Port 0 Pin 1: %x \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 2: %x \0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 3: %x \0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 4: %x \0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 5: %x \0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 6: %x \0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 7: %x \0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 8: %x \0A\00", align 1
@.str.8 = private unnamed_addr constant [19 x i8] c"Port 0 Pin 9: %x \0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 10: %x \0A\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 11: %x \0A\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 12: %x \0A\00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 13: %x \0A\00", align 1
@.str.13 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 14: %x \0A\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 15: %x \0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c"Port 0 Pin 16: %x \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 = load i32, ptr @stdout, align 4
%7 = load i32, ptr @_IONBF, align 4
%8 = call i32 @setvbuf(i32 noundef %6, ptr noundef null, i32 noundef %7, i32 noundef 0)
%9 = call i32 @IOPi_init(i32 noundef 32, i32 noundef 1)
%10 = call i32 @set_port_direction(i32 noundef 32, i32 noundef 0, i32 noundef 255)
%11 = call i32 @set_port_direction(i32 noundef 32, i32 noundef 1, i32 noundef 255)
%12 = call i32 @set_port_pullups(i32 noundef 32, i32 noundef 0, i32 noundef 255)
%13 = call i32 @invert_port(i32 noundef 32, i32 noundef 0, i32 noundef 255)
%14 = call i32 @set_port_pullups(i32 noundef 32, i32 noundef 1, i32 noundef 255)
%15 = call i32 @invert_port(i32 noundef 32, i32 noundef 1, i32 noundef 255)
br label %16
16: ; preds = %16, %2
%17 = call i32 (...) @clearscreen()
%18 = call i32 @read_pin(i32 noundef 32, i32 noundef 1)
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
%20 = call i32 @read_pin(i32 noundef 32, i32 noundef 2)
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
%22 = call i32 @read_pin(i32 noundef 32, i32 noundef 3)
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
%24 = call i32 @read_pin(i32 noundef 32, i32 noundef 4)
%25 = call i32 @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = call i32 @read_pin(i32 noundef 32, i32 noundef 5)
%27 = call i32 @printf(ptr noundef @.str.4, i32 noundef %26)
%28 = call i32 @read_pin(i32 noundef 32, i32 noundef 6)
%29 = call i32 @printf(ptr noundef @.str.5, i32 noundef %28)
%30 = call i32 @read_pin(i32 noundef 32, i32 noundef 7)
%31 = call i32 @printf(ptr noundef @.str.6, i32 noundef %30)
%32 = call i32 @read_pin(i32 noundef 32, i32 noundef 8)
%33 = call i32 @printf(ptr noundef @.str.7, i32 noundef %32)
%34 = call i32 @read_pin(i32 noundef 32, i32 noundef 9)
%35 = call i32 @printf(ptr noundef @.str.8, i32 noundef %34)
%36 = call i32 @read_pin(i32 noundef 32, i32 noundef 10)
%37 = call i32 @printf(ptr noundef @.str.9, i32 noundef %36)
%38 = call i32 @read_pin(i32 noundef 32, i32 noundef 11)
%39 = call i32 @printf(ptr noundef @.str.10, i32 noundef %38)
%40 = call i32 @read_pin(i32 noundef 32, i32 noundef 12)
%41 = call i32 @printf(ptr noundef @.str.11, i32 noundef %40)
%42 = call i32 @read_pin(i32 noundef 32, i32 noundef 13)
%43 = call i32 @printf(ptr noundef @.str.12, i32 noundef %42)
%44 = call i32 @read_pin(i32 noundef 32, i32 noundef 14)
%45 = call i32 @printf(ptr noundef @.str.13, i32 noundef %44)
%46 = call i32 @read_pin(i32 noundef 32, i32 noundef 15)
%47 = call i32 @printf(ptr noundef @.str.14, i32 noundef %46)
%48 = call i32 @read_pin(i32 noundef 32, i32 noundef 16)
%49 = call i32 @printf(ptr noundef @.str.15, i32 noundef %48)
%50 = call i32 @usleep(i32 noundef 200000)
br label %16
}
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @IOPi_init(i32 noundef, i32 noundef) #1
declare i32 @set_port_direction(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @set_port_pullups(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @invert_port(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @clearscreen(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @read_pin(i32 noundef, i32 noundef) #1
declare i32 @usleep(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/tmpch9kow87.c'
source_filename = "/tmp/tmpch9kow87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"front : [%d]%c [%d]%c, \00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"rear : [%d]%c [%d]%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FrontRearIndex(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 i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 -1, ptr %4, align 4
br label %120
17: ; preds = %3
%18 = load i32, ptr %7, align 4
store i32 %18, ptr %8, align 4
br label %19
19: ; preds = %118, %17
%20 = load i32, ptr %8, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strlen(ptr noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = sub nsw i32 %22, %24
%26 = add nsw i32 %25, 1
%27 = icmp slt i32 %20, %26
br i1 %27, label %28, label %119
28: ; preds = %19
store i32 0, ptr %9, align 4
%29 = load ptr, ptr %6, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = sub nsw i32 %30, 1
store i32 %31, ptr %10, align 4
br label %32
32: ; preds = %108, %28
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %10, align 4
%35 = icmp sle i32 %33, %34
br i1 %35, label %36, label %109
36: ; preds = %32
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %37, %38
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %41, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %40, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load i32, ptr %9, align 4
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
%52 = load i8, ptr %51, align 1
%53 = call i32 @printf(ptr noundef @.str, i32 noundef %39, i8 noundef signext %46, i32 noundef %47, i8 noundef signext %52)
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %10, align 4
%56 = add nsw i32 %54, %55
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %58, %59
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %57, i64 %61
%63 = load i8, ptr %62, align 1
%64 = load i32, ptr %10, align 4
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %10, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
%69 = load i8, ptr %68, align 1
%70 = call i32 @printf(ptr noundef @.str.1, i32 noundef %56, i8 noundef signext %63, i32 noundef %64, i8 noundef signext %69)
%71 = load ptr, ptr %5, align 8
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr %9, align 4
%74 = add nsw i32 %72, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %71, i64 %75
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = load ptr, ptr %6, align 8
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %78, %84
br i1 %85, label %102, label %86
86: ; preds = %36
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %8, align 4
%89 = load i32, ptr %10, align 4
%90 = add nsw i32 %88, %89
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %87, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = load ptr, ptr %6, align 8
%96 = load i32, ptr %10, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp ne i32 %94, %100
br i1 %101, label %102, label %103
102: ; preds = %86, %36
br label %109
103: ; preds = %86
%104 = load i32, ptr %9, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %9, align 4
%106 = load i32, ptr %10, align 4
%107 = add nsw i32 %106, -1
store i32 %107, ptr %10, align 4
br label %108
108: ; preds = %103
br label %32, !llvm.loop !6
109: ; preds = %102, %32
%110 = load i32, ptr %9, align 4
%111 = load i32, ptr %10, align 4
%112 = icmp sgt i32 %110, %111
br i1 %112, label %113, label %115
113: ; preds = %109
%114 = load i32, ptr %8, align 4
store i32 %114, ptr %4, align 4
br label %120
115: ; preds = %109
%116 = load i32, ptr %8, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %8, align 4
br label %118
118: ; preds = %115
br label %19, !llvm.loop !8
119: ; preds = %19
store i32 -1, ptr %4, align 4
br label %120
120: ; preds = %119, %113, %16
%121 = load i32, ptr %4, align 4
ret i32 %121
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpch9kow87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"front : [%d]%c [%d]%c, \00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"rear : [%d]%c [%d]%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FrontRearIndex(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 i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 -1, ptr %4, align 4
br label %129
17: ; preds = %3
%18 = load i32, ptr %7, align 4
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = load ptr, ptr %5, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = sub nsw i32 %21, %23
%25 = add nsw i32 %24, 1
%26 = icmp slt i32 %19, %25
br i1 %26, label %.lr.ph1, label %128
.lr.ph1: ; preds = %17
br label %27
27: ; preds = %.lr.ph1, %119
store i32 0, ptr %9, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = sub nsw i32 %29, 1
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %10, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %27
br label %34
34: ; preds = %.lr.ph, %106
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %35, %36
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %39, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %38, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load i32, ptr %9, align 4
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = call i32 @printf(ptr noundef @.str, i32 noundef %37, i8 noundef signext %44, i32 noundef %45, i8 noundef signext %50)
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %52, %53
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %55, i64 %59
%61 = load i8, ptr %60, align 1
%62 = load i32, ptr %10, align 4
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = load i8, ptr %66, align 1
%68 = call i32 @printf(ptr noundef @.str.1, i32 noundef %54, i8 noundef signext %61, i32 noundef %62, i8 noundef signext %67)
%69 = load ptr, ptr %5, align 8
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %9, align 4
%72 = add nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %69, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = load ptr, ptr %6, align 8
%78 = load i32, ptr %9, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %76, %82
br i1 %83, label %100, label %84
84: ; preds = %34
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr %8, align 4
%87 = load i32, ptr %10, align 4
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %85, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = load ptr, ptr %6, align 8
%94 = load i32, ptr %10, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %93, i64 %95
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %92, %98
br i1 %99, label %100, label %101
100: ; preds = %84, %34
br label %110
101: ; preds = %84
%102 = load i32, ptr %9, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %9, align 4
%104 = load i32, ptr %10, align 4
%105 = add nsw i32 %104, -1
store i32 %105, ptr %10, align 4
br label %106
106: ; preds = %101
%107 = load i32, ptr %9, align 4
%108 = load i32, ptr %10, align 4
%109 = icmp sle i32 %107, %108
br i1 %109, label %34, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %106
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %27
br label %110
110: ; preds = %.loopexit, %100
%111 = load i32, ptr %9, align 4
%112 = load i32, ptr %10, align 4
%113 = icmp sgt i32 %111, %112
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = load i32, ptr %8, align 4
store i32 %115, ptr %4, align 4
br label %129
116: ; preds = %110
%117 = load i32, ptr %8, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %8, align 4
br label %119
119: ; preds = %116
%120 = load i32, ptr %8, align 4
%121 = load ptr, ptr %5, align 8
%122 = call i32 @strlen(ptr noundef %121)
%123 = load ptr, ptr %6, align 8
%124 = call i32 @strlen(ptr noundef %123)
%125 = sub nsw i32 %122, %124
%126 = add nsw i32 %125, 1
%127 = icmp slt i32 %120, %126
br i1 %127, label %27, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %119
br label %128
128: ; preds = %._crit_edge, %17
store i32 -1, ptr %4, align 4
br label %129
129: ; preds = %128, %114, %16
%130 = load i32, ptr %4, align 4
ret i32 %130
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmptkcd81g6.c'
source_filename = "/tmp/tmptkcd81g6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"--version\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"1.00.0007\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_options_quit(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 %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %32, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %35
11: ; preds = %7
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i64 @strcmp(ptr noundef %16, ptr noundef @.str)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %11
%20 = call i32 @printf(ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %36
21: ; preds = %11
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = call i64 @strcmp(ptr noundef %26, ptr noundef @.str.3)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %21
%30 = call i32 (...) @usage()
store i32 1, ptr %3, align 4
br label %36
31: ; preds = %21
br label %32
32: ; preds = %31
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
br label %7, !llvm.loop !6
35: ; preds = %7
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %35, %29, %19
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmptkcd81g6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"--version\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"1.00.0007\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_options_quit(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 %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %31
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i64 @strcmp(ptr noundef %15, ptr noundef @.str)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 @printf(ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %38
20: ; preds = %10
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str.3)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %20
%29 = call i32 (...) @usage()
store i32 1, ptr %3, align 4
br label %38
30: ; preds = %20
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %38
38: ; preds = %37, %28, %18
%39 = load i32, ptr %3, align 4
ret i32 %39
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpv0s9b7z1.c'
source_filename = "/tmp/tmpv0s9b7z1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @t_fun(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 3
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
ret ptr null
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv0s9b7z1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @t_fun(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 3
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
ret ptr null
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptuso98gs.c'
source_filename = "/tmp/tmptuso98gs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(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 @v(ptr noundef %3, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 0)
ret void
}
declare i32 @v(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptuso98gs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(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 @v(ptr noundef %3, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 0)
ret void
}
declare i32 @v(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz19y024d.c'
source_filename = "/tmp/tmpz19y024d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d: %.2f\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"J: %d, i: %d, : %.2f, sum: %.2f, t_sum:%.2f\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
store float 0.000000e+00, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %59, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %62
9: ; preds = %6
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 9
br i1 %13, label %14, label %20
14: ; preds = %9
%15 = load i32, ptr %4, align 4
%16 = load float, ptr %1, align 4
%17 = fpext float %16 to double
%18 = fsub double 1.000000e+02, %17
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15, double noundef %18)
br label %62
20: ; preds = %9
%21 = call float @g_random(double noundef 6.000000e+00, double noundef 1.200000e+01)
store float %21, ptr %5, align 4
%22 = load float, ptr %5, align 4
%23 = load float, ptr %1, align 4
%24 = fadd float %23, %22
store float %24, ptr %1, align 4
%25 = load float, ptr %1, align 4
%26 = fpext float %25 to double
%27 = fsub double 1.000000e+02, %26
%28 = fptrunc double %27 to float
store float %28, ptr %2, align 4
%29 = load float, ptr %2, align 4
%30 = fcmp olt float %29, 0.000000e+00
br i1 %30, label %45, label %31
31: ; preds = %20
%32 = load i32, ptr %3, align 4
%33 = sub nsw i32 9, %32
%34 = mul nsw i32 %33, 6
%35 = sitofp i32 %34 to float
%36 = load float, ptr %2, align 4
%37 = fcmp ogt float %35, %36
br i1 %37, label %45, label %38
38: ; preds = %31
%39 = load i32, ptr %3, align 4
%40 = sub nsw i32 9, %39
%41 = mul nsw i32 %40, 12
%42 = sitofp i32 %41 to float
%43 = load float, ptr %2, align 4
%44 = fcmp olt float %42, %43
br i1 %44, label %45, label %48
45: ; preds = %38, %31, %20
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %3, align 4
br label %58
48: ; preds = %38
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr %3, align 4
%51 = load float, ptr %5, align 4
%52 = fpext float %51 to double
%53 = load float, ptr %1, align 4
%54 = fpext float %53 to double
%55 = load float, ptr %2, align 4
%56 = fpext float %55 to double
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %49, i32 noundef %50, double noundef %52, double noundef %54, double noundef %56)
br label %58
58: ; preds = %48, %45
br label %59
59: ; preds = %58
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
br label %6, !llvm.loop !6
62: ; preds = %14, %6
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare float @g_random(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz19y024d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d: %.2f\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"J: %d, i: %d, : %.2f, sum: %.2f, t_sum:%.2f\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
store float 0.000000e+00, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 10
br i1 %7, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %58
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 9
br i1 %12, label %13, label %19
13: ; preds = %8
%14 = load i32, ptr %4, align 4
%15 = load float, ptr %1, align 4
%16 = fpext float %15 to double
%17 = fsub double 1.000000e+02, %16
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14, double noundef %17)
br label %63
19: ; preds = %8
%20 = call float @g_random(double noundef 6.000000e+00, double noundef 1.200000e+01)
store float %20, ptr %5, align 4
%21 = load float, ptr %5, align 4
%22 = load float, ptr %1, align 4
%23 = fadd float %22, %21
store float %23, ptr %1, align 4
%24 = load float, ptr %1, align 4
%25 = fpext float %24 to double
%26 = fsub double 1.000000e+02, %25
%27 = fptrunc double %26 to float
store float %27, ptr %2, align 4
%28 = load float, ptr %2, align 4
%29 = fcmp olt float %28, 0.000000e+00
br i1 %29, label %44, label %30
30: ; preds = %19
%31 = load i32, ptr %3, align 4
%32 = sub nsw i32 9, %31
%33 = mul nsw i32 %32, 6
%34 = sitofp i32 %33 to float
%35 = load float, ptr %2, align 4
%36 = fcmp ogt float %34, %35
br i1 %36, label %44, label %37
37: ; preds = %30
%38 = load i32, ptr %3, align 4
%39 = sub nsw i32 9, %38
%40 = mul nsw i32 %39, 12
%41 = sitofp i32 %40 to float
%42 = load float, ptr %2, align 4
%43 = fcmp olt float %41, %42
br i1 %43, label %44, label %47
44: ; preds = %37, %30, %19
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, -1
store i32 %46, ptr %3, align 4
br label %57
47: ; preds = %37
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %3, align 4
%50 = load float, ptr %5, align 4
%51 = fpext float %50 to double
%52 = load float, ptr %1, align 4
%53 = fpext float %52 to double
%54 = load float, ptr %2, align 4
%55 = fpext float %54 to double
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %48, i32 noundef %49, double noundef %51, double noundef %53, double noundef %55)
br label %57
57: ; preds = %47, %44
br label %58
58: ; preds = %57
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %3, align 4
%61 = load i32, ptr %3, align 4
%62 = icmp slt i32 %61, 10
br i1 %62, label %8, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %58
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %63
63: ; preds = %.loopexit, %13
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare float @g_random(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb_qwuq8w.c'
source_filename = "/tmp/tmpb_qwuq8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"/dev/hello\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"fd open failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"\0A/dev/hello opened, fd=%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"/dev/hello closed :)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @O_RDWR, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 0) #3
unreachable
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = call i32 @_IO(i8 noundef signext 107, i32 noundef 1)
%15 = call i32 @ioctl(i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = call i32 @_IO(i8 noundef signext 107, i32 noundef 2)
%18 = call i32 @ioctl(i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %2, align 4
%20 = call i32 @close(i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef signext, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/tmpb_qwuq8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"/dev/hello\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"fd open failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"\0A/dev/hello opened, fd=%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"/dev/hello closed :)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @O_RDWR, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 0) #3
unreachable
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = call i32 @_IO(i8 noundef signext 107, i32 noundef 1)
%15 = call i32 @ioctl(i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = call i32 @_IO(i8 noundef signext 107, i32 noundef 2)
%18 = call i32 @ioctl(i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %2, align 4
%20 = call i32 @close(i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef signext, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/tmpv4pel9u5.c'
source_filename = "/tmp/tmpv4pel9u5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { i64, ptr }
@.str = private unnamed_addr constant [11 x i8] c"/dev/input\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@DT_CHR = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [12 x i8] c"/dev/input/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @event_add_all_inputs() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %6, align 4
%8 = call ptr @opendir(ptr noundef @.str)
store ptr %8, ptr %1, align 8
%9 = load ptr, ptr %1, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @perror(ptr noundef @.str.1)
br label %13
13: ; preds = %11, %0
br label %14
14: ; preds = %49, %13
%15 = load ptr, ptr %1, align 8
%16 = call ptr @readdir(ptr noundef %15)
store ptr %16, ptr %2, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %50
18: ; preds = %14
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds %struct.dirent, ptr %19, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = load i64, ptr @DT_CHR, align 8
%23 = icmp eq i64 %21, %22
br i1 %23, label %24, label %49
24: ; preds = %18
%25 = call i32 @strlen(ptr noundef @.str.2)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds %struct.dirent, ptr %26, i32 0, i32 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = add nsw i32 %25, %29
store i32 %30, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %39
34: ; preds = %24
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = sub nsw i32 %35, %36
%38 = call ptr @alloca(i32 noundef %37)
store ptr %38, ptr %3, align 8
br label %39
39: ; preds = %34, %24
%40 = load ptr, ptr %3, align 8
%41 = call i32 @strcpy(ptr noundef %40, ptr noundef @.str.2)
%42 = load ptr, ptr %3, align 8
%43 = load ptr, ptr %2, align 8
%44 = getelementptr inbounds %struct.dirent, ptr %43, i32 0, i32 1
%45 = load ptr, ptr %44, align 8
%46 = call i32 @strcat(ptr noundef %42, ptr noundef %45)
%47 = load ptr, ptr %3, align 8
%48 = call i32 @event_add_source(ptr noundef %47)
store i32 %48, ptr %6, align 4
br label %49
49: ; preds = %39, %18
br label %14, !llvm.loop !6
50: ; preds = %14
%51 = call i32 @event_get_name(i32 noundef 0)
%52 = load ptr, ptr %1, align 8
%53 = call i32 @closedir(ptr noundef %52)
ret void
}
declare ptr @opendir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @alloca(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @event_add_source(ptr noundef) #1
declare i32 @event_get_name(i32 noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv4pel9u5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { i64, ptr }
@.str = private unnamed_addr constant [11 x i8] c"/dev/input\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@DT_CHR = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [12 x i8] c"/dev/input/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @event_add_all_inputs() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %6, align 4
%8 = call ptr @opendir(ptr noundef @.str)
store ptr %8, ptr %1, align 8
%9 = load ptr, ptr %1, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @perror(ptr noundef @.str.1)
br label %13
13: ; preds = %11, %0
%14 = load ptr, ptr %1, align 8
%15 = call ptr @readdir(ptr noundef %14)
store ptr %15, ptr %2, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %.lr.ph, label %52
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %48
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds %struct.dirent, ptr %18, i32 0, i32 0
%20 = load i64, ptr %19, align 8
%21 = load i64, ptr @DT_CHR, align 8
%22 = icmp eq i64 %20, %21
br i1 %22, label %23, label %48
23: ; preds = %17
%24 = call i32 @strlen(ptr noundef @.str.2)
%25 = load ptr, ptr %2, align 8
%26 = getelementptr inbounds %struct.dirent, ptr %25, i32 0, i32 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = add nsw i32 %24, %28
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp sgt i32 %30, %31
br i1 %32, label %33, label %38
33: ; preds = %23
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %5, align 4
%36 = sub nsw i32 %34, %35
%37 = call ptr @alloca(i32 noundef %36)
store ptr %37, ptr %3, align 8
br label %38
38: ; preds = %33, %23
%39 = load ptr, ptr %3, align 8
%40 = call i32 @strcpy(ptr noundef %39, ptr noundef @.str.2)
%41 = load ptr, ptr %3, align 8
%42 = load ptr, ptr %2, align 8
%43 = getelementptr inbounds %struct.dirent, ptr %42, i32 0, i32 1
%44 = load ptr, ptr %43, align 8
%45 = call i32 @strcat(ptr noundef %41, ptr noundef %44)
%46 = load ptr, ptr %3, align 8
%47 = call i32 @event_add_source(ptr noundef %46)
store i32 %47, ptr %6, align 4
br label %48
48: ; preds = %38, %17
%49 = load ptr, ptr %1, align 8
%50 = call ptr @readdir(ptr noundef %49)
store ptr %50, ptr %2, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %52
52: ; preds = %._crit_edge, %13
%53 = call i32 @event_get_name(i32 noundef 0)
%54 = load ptr, ptr %1, align 8
%55 = call i32 @closedir(ptr noundef %54)
ret void
}
declare ptr @opendir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @alloca(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @event_add_source(ptr noundef) #1
declare i32 @event_get_name(i32 noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1w5cj8n6.c'
source_filename = "/tmp/tmp1w5cj8n6.c"
target datalayout = "e-m:e-p270: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/tmp1w5cj8n6.c"
target datalayout = "e-m:e-p270: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/tmpm4io4_vl.c'
source_filename = "/tmp/tmpm4io4_vl.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"Error: couldn't open %s with %s permission\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printFileError(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, ptr noundef %6, ptr noundef %7)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm4io4_vl.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"Error: couldn't open %s with %s permission\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printFileError(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, ptr noundef %6, ptr noundef %7)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphm2vc607.c'
source_filename = "/tmp/tmphm2vc607.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_printFloat(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, float noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphm2vc607.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_printFloat(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, float noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjua3p5na.c'
source_filename = "/tmp/tmpjua3p5na.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Ingrese numeros. Ingrese 0 para salir.\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"\0ANumero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Factorial: %d\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"Chau!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
br label %7
7: ; preds = %20, %0
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = load i32, ptr %2, align 4
store i32 %11, ptr %3, align 4
br label %12
12: ; preds = %15, %10
%13 = load i32, ptr %2, align 4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = mul nsw i32 %18, %17
store i32 %19, ptr %3, align 4
br label %12, !llvm.loop !6
20: ; preds = %12
%21 = load i32, ptr %3, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
br label %7, !llvm.loop !8
25: ; preds = %7
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjua3p5na.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Ingrese numeros. Ingrese 0 para salir.\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"\0ANumero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Factorial: %d\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"Chau!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %.lr.ph2, label %27
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %20
%10 = load i32, ptr %2, align 4
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %.lr.ph, label %20
.lr.ph: ; preds = %9
br label %13
13: ; preds = %.lr.ph, %13
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = mul nsw i32 %16, %15
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sgt i32 %18, 1
br i1 %19, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %20
20: ; preds = %._crit_edge, %9
%21 = load i32, ptr %3, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%25 = load i32, ptr %2, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %20
br label %27
27: ; preds = %._crit_edge3, %0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpfyxm8zzt.c'
source_filename = "/tmp/tmpfyxm8zzt.c"
target datalayout = "e-m:e-p270: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/tmpfyxm8zzt.c"
target datalayout = "e-m:e-p270: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/tmpozuwslgn.c'
source_filename = "/tmp/tmpozuwslgn.c"
target datalayout = "e-m:e-p270: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/tmpozuwslgn.c"
target datalayout = "e-m:e-p270: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/tmpgulmyy2v.c'
source_filename = "/tmp/tmpgulmyy2v.c"
target datalayout = "e-m:e-p270: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/tmpgulmyy2v.c"
target datalayout = "e-m:e-p270: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/tmpztbwl2sh.c'
source_filename = "/tmp/tmpztbwl2sh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"SIM\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"NAO\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 [100 x i8], align 16
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %15, %0
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %7
br label %15
15: ; preds = %14
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %7, !llvm.loop !6
18: ; preds = %7
store i32 0, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = sub nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %39, %18
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %37
25: ; preds = %21
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %30, %35
br label %37
37: ; preds = %25, %21
%38 = phi i1 [ false, %21 ], [ %36, %25 ]
br i1 %38, label %39, label %44
39: ; preds = %37
%40 = load i32, ptr %2, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %2, align 4
%42 = load i32, ptr %3, align 4
%43 = sub nsw i32 %42, 1
store i32 %43, ptr %3, align 4
br label %21, !llvm.loop !8
44: ; preds = %37
%45 = load i32, ptr %2, align 4
%46 = load i32, ptr %3, align 4
%47 = icmp eq i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 @printf(ptr noundef @.str.1)
br label %52
50: ; preds = %44
%51 = call i32 @printf(ptr noundef @.str.2)
br label %52
52: ; preds = %50, %48
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpztbwl2sh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"SIM\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"NAO\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 [100 x i8], align 16
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %14
br label %14
14: ; preds = %13
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %23
23: ; preds = %._crit_edge, %0
store i32 0, ptr %2, align 4
%24 = load i32, ptr %3, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %3, align 4
br label %26
26: ; preds = %44, %23
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %42
30: ; preds = %26
%31 = load i32, ptr %2, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %35, %40
br label %42
42: ; preds = %30, %26
%43 = phi i1 [ false, %26 ], [ %41, %30 ]
br i1 %43, label %44, label %49
44: ; preds = %42
%45 = load i32, ptr %2, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %2, align 4
%47 = load i32, ptr %3, align 4
%48 = sub nsw i32 %47, 1
store i32 %48, ptr %3, align 4
br label %26, !llvm.loop !8
49: ; preds = %42
%50 = load i32, ptr %2, align 4
%51 = load i32, ptr %3, align 4
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = call i32 @printf(ptr noundef @.str.1)
br label %57
55: ; preds = %49
%56 = call i32 @printf(ptr noundef @.str.2)
br label %57
57: ; preds = %55, %53
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp10c7ml4s.c'
source_filename = "/tmp/tmp10c7ml4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %24, %2
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %27
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = mul nsw i32 %15, %20
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, %21
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %10
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %7, !llvm.loop !6
27: ; preds = %7
%28 = load i32, ptr %6, align 4
%29 = call i32 @mysqrt(i32 noundef %28)
store i32 %29, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %30
30: ; preds = %46, %27
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 3
br i1 %32, label %33, label %49
33: ; preds = %30
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = mul nsw i32 %38, 62
%40 = load i32, ptr %6, align 4
%41 = sdiv i32 %39, %40
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 %41, ptr %45, align 4
br label %46
46: ; preds = %33
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %30, !llvm.loop !8
49: ; preds = %30
ret void
}
declare i32 @mysqrt(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/tmp10c7ml4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %23
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = mul nsw i32 %14, %19
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %6, align 4
br label %23
23: ; preds = %9
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %26, 3
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %2
%29 = load i32, ptr %6, align 4
%30 = call i32 @mysqrt(i32 noundef %29)
store i32 %30, ptr %6, align 4
store i32 0, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 3
br i1 %32, label %.lr.ph2, label %51
.lr.ph2: ; preds = %28
br label %33
33: ; preds = %.lr.ph2, %46
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = mul nsw i32 %38, 62
%40 = load i32, ptr %6, align 4
%41 = sdiv i32 %39, %40
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 %41, ptr %45, align 4
br label %46
46: ; preds = %33
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %5, align 4
%50 = icmp slt i32 %49, 3
br i1 %50, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %51
51: ; preds = %._crit_edge3, %28
ret void
}
declare i32 @mysqrt(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/tmph9u8m9bi.c'
source_filename = "/tmp/tmph9u8m9bi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGHUP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_hup_default() #0 {
%1 = load i32, ptr @SIGHUP, align 4
%2 = call i32 @sig_default(i32 noundef %1)
ret void
}
declare i32 @sig_default(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/tmph9u8m9bi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGHUP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_hup_default() #0 {
%1 = load i32, ptr @SIGHUP, align 4
%2 = call i32 @sig_default(i32 noundef %1)
ret void
}
declare i32 @sig_default(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/tmpx3446eeh.c'
source_filename = "/tmp/tmpx3446eeh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sched_setaffinity()\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 @CPU_SET(i32 noundef 0, ptr noundef %8)
%10 = call i32 @sched_setaffinity(i32 noundef 0, i32 noundef 4, ptr noundef %8)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
br label %15
15: ; preds = %13, %2
store i32 0, ptr %6, align 4
br label %16
16: ; preds = %15, %16
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @printf(ptr noundef @.str.1, i32 noundef %19)
br label %16
}
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @sched_setaffinity(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(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/tmpx3446eeh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sched_setaffinity()\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 @CPU_SET(i32 noundef 0, ptr noundef %8)
%10 = call i32 @sched_setaffinity(i32 noundef 0, i32 noundef 4, ptr noundef %8)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
br label %15
15: ; preds = %13, %2
store i32 0, ptr %6, align 4
br label %16
16: ; preds = %16, %15
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @printf(ptr noundef @.str.1, i32 noundef %19)
br label %16
}
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @sched_setaffinity(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(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/tmpqg5fvxk8.c'
source_filename = "/tmp/tmpqg5fvxk8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.stat = type { i32 }
%struct.hostent = type { i32, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [41 x i8] c"Usage: file_name port_number(8000-9000)\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"socket() failed\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"gethostbyname() failed\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"server address is %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"connect() failed\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"LIST\0A\00\00", align 1
@.str.7 = private unnamed_addr constant [49 x i8] c"ADD maybe3.txt 27\0Aadsab cdefghijklmnopqrstuvwxyz\00", align 1
@.str.8 = private unnamed_addr constant [85 x i8] c"ADD test.txt 69\0Aabcdefghijklmnopqrstuvwxyzdksjahfklsdjhfasdjklhfsdklafhasklfhasjklf\00\00", align 1
@.str.9 = private unnamed_addr constant [42 x i8] c"APPEND maybe.txt 20\0AAPPENDED: HELLO WORLD\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"READ test.txt\0A\00\00", align 1
@.str.11 = private unnamed_addr constant [18 x i8] c"DELETE test.txt\0A\00\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"ADD banner1.png 59930\0A\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"banner1.png\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"banner2.png\00", align 1
@.str.16 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"File %s Cannot be opened.\0A\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"File write failed.\0A\00", align 1
@.str.19 = private unnamed_addr constant [19 x i8] c"recv() timed out.\0A\00", align 1
@.str.20 = private unnamed_addr constant [26 x i8] c"Ok received from server!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca %struct.stat, align 4
%20 = alloca [5000000 x i8], align 16
%21 = alloca i32, align 4
%22 = alloca ptr, align 8
%23 = alloca [5000000 x i8], align 16
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = 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
%28 = load i32, ptr %4, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @read_cli(i32 noundef %28, ptr noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %2
%34 = load i32, ptr @stderr, align 4
%35 = call i32 @fprintf(i32 noundef %34, ptr noundef @.str)
%36 = load i32, ptr @EXIT_FAILURE, align 4
%37 = call i32 @exit(i32 noundef %36) #3
unreachable
38: ; preds = %2
%39 = load i32, ptr %7, align 4
%40 = trunc i32 %39 to i16
store i16 %40, ptr %6, align 2
%41 = load i32, ptr @PF_INET, align 4
%42 = load i32, ptr @SOCK_STREAM, align 4
%43 = call i32 @socket(i32 noundef %41, i32 noundef %42, i32 noundef 0)
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %38
%47 = call i32 @perror(ptr noundef @.str.1)
%48 = load i32, ptr @EXIT_FAILURE, align 4
%49 = call i32 @exit(i32 noundef %48) #3
unreachable
50: ; preds = %38
%51 = call ptr @gethostbyname(ptr noundef @.str.2)
store ptr %51, ptr %9, align 8
%52 = load ptr, ptr %9, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = call i32 @perror(ptr noundef @.str.3)
%56 = load i32, ptr @EXIT_FAILURE, align 4
%57 = call i32 @exit(i32 noundef %56) #3
unreachable
58: ; preds = %50
%59 = load i32, ptr @PF_INET, align 4
%60 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %59, ptr %60, align 4
%61 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds %struct.hostent, ptr %62, i32 0, i32 1
%64 = load i64, ptr %63, align 8
%65 = inttoptr i64 %64 to ptr
%66 = load ptr, ptr %9, align 8
%67 = getelementptr inbounds %struct.hostent, ptr %66, i32 0, i32 0
%68 = load i32, ptr %67, align 8
%69 = call i32 @memcpy(ptr noundef %61, ptr noundef %65, i32 noundef %68)
%70 = load i16, ptr %6, align 2
%71 = call i32 @htons(i16 noundef zeroext %70)
%72 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %71, ptr %72, align 4
%73 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%74 = load i32, ptr %73, align 4
%75 = call ptr @inet_ntoa(i32 noundef %74)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %75)
%77 = load i32, ptr %8, align 4
%78 = call i64 @connect(i32 noundef %77, ptr noundef %10, i32 noundef 12)
%79 = icmp slt i64 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %58
%81 = call i32 @perror(ptr noundef @.str.5)
%82 = load i32, ptr @EXIT_FAILURE, align 4
%83 = call i32 @exit(i32 noundef %82) #3
unreachable
84: ; preds = %58
store ptr @.str.6, ptr %11, align 8
store ptr @.str.7, ptr %12, align 8
store ptr @.str.8, ptr %13, align 8
store ptr @.str.9, ptr %14, align 8
store ptr @.str.10, ptr %15, align 8
store ptr @.str.11, ptr %16, align 8
store ptr @.str.12, ptr %17, align 8
%85 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%86 = call i32 @bzero(ptr noundef %85, i32 noundef 5000000)
%87 = call ptr @fopen(ptr noundef @.str.13, ptr noundef @.str.14)
store ptr %87, ptr %22, align 8
br label %88
88: ; preds = %100, %84
%89 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%90 = load ptr, ptr %22, align 8
%91 = call i32 @fread(ptr noundef %89, i32 noundef 1, i32 noundef 5000000, ptr noundef %90)
store i32 %91, ptr %21, align 4
%92 = icmp sgt i32 %91, 0
br i1 %92, label %93, label %103
93: ; preds = %88
%94 = load i32, ptr %8, align 4
%95 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%96 = load i32, ptr %21, align 4
%97 = call i64 @send(i32 noundef %94, ptr noundef %95, i32 noundef %96, i32 noundef 0)
%98 = icmp slt i64 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %93
br label %103
100: ; preds = %93
%101 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%102 = call i32 @bzero(ptr noundef %101, i32 noundef 5000000)
br label %88, !llvm.loop !6
103: ; preds = %99, %88
store ptr @.str.15, ptr %24, align 8
%104 = load ptr, ptr %24, align 8
%105 = call ptr @fopen(ptr noundef %104, ptr noundef @.str.16)
store ptr %105, ptr %25, align 8
%106 = load ptr, ptr %25, align 8
%107 = icmp eq ptr %106, null
br i1 %107, label %108, label %111
108: ; preds = %103
%109 = load ptr, ptr %24, align 8
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %109)
br label %145
111: ; preds = %103
%112 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%113 = call i32 @bzero(ptr noundef %112, i32 noundef 5000000)
store i32 0, ptr %26, align 4
br label %114
114: ; preds = %138, %111
%115 = load i32, ptr %8, align 4
%116 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%117 = call i32 @recv(i32 noundef %115, ptr noundef %116, i32 noundef 5000000, i32 noundef 0)
store i32 %117, ptr %26, align 4
%118 = icmp sgt i32 %117, 0
br i1 %118, label %119, label %139
119: ; preds = %114
%120 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%121 = load i32, ptr %26, align 4
%122 = load ptr, ptr %25, align 8
%123 = call i32 @fwrite(ptr noundef %120, i32 noundef 1, i32 noundef %121, ptr noundef %122)
store i32 %123, ptr %27, align 4
%124 = load i32, ptr %27, align 4
%125 = load i32, ptr %26, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %129
127: ; preds = %119
%128 = call i32 @error(ptr noundef @.str.18)
br label %129
129: ; preds = %127, %119
%130 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%131 = call i32 @bzero(ptr noundef %130, i32 noundef 5000000)
%132 = load i32, ptr %26, align 4
%133 = icmp eq i32 %132, 0
br i1 %133, label %137, label %134
134: ; preds = %129
%135 = load i32, ptr %26, align 4
%136 = icmp ne i32 %135, 512
br i1 %136, label %137, label %138
137: ; preds = %134, %129
br label %139
138: ; preds = %134
br label %114, !llvm.loop !8
139: ; preds = %137, %114
%140 = load i32, ptr %26, align 4
%141 = icmp slt i32 %140, 0
br i1 %141, label %142, label %144
142: ; preds = %139
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %144
144: ; preds = %142, %139
br label %145
145: ; preds = %144, %108
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%147 = load ptr, ptr %25, align 8
%148 = call i32 @fclose(ptr noundef %147)
%149 = load i32, ptr %8, align 4
%150 = call i32 @close(i32 noundef %149)
%151 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %151
}
declare i32 @read_cli(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i16 noundef zeroext) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @inet_ntoa(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/tmpqg5fvxk8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.stat = type { i32 }
%struct.hostent = type { i32, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [41 x i8] c"Usage: file_name port_number(8000-9000)\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"socket() failed\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"gethostbyname() failed\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"server address is %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"connect() failed\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"LIST\0A\00\00", align 1
@.str.7 = private unnamed_addr constant [49 x i8] c"ADD maybe3.txt 27\0Aadsab cdefghijklmnopqrstuvwxyz\00", align 1
@.str.8 = private unnamed_addr constant [85 x i8] c"ADD test.txt 69\0Aabcdefghijklmnopqrstuvwxyzdksjahfklsdjhfasdjklhfsdklafhasklfhasjklf\00\00", align 1
@.str.9 = private unnamed_addr constant [42 x i8] c"APPEND maybe.txt 20\0AAPPENDED: HELLO WORLD\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"READ test.txt\0A\00\00", align 1
@.str.11 = private unnamed_addr constant [18 x i8] c"DELETE test.txt\0A\00\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"ADD banner1.png 59930\0A\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"banner1.png\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"banner2.png\00", align 1
@.str.16 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"File %s Cannot be opened.\0A\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"File write failed.\0A\00", align 1
@.str.19 = private unnamed_addr constant [19 x i8] c"recv() timed out.\0A\00", align 1
@.str.20 = private unnamed_addr constant [26 x i8] c"Ok received from server!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca %struct.stat, align 4
%20 = alloca [5000000 x i8], align 16
%21 = alloca i32, align 4
%22 = alloca ptr, align 8
%23 = alloca [5000000 x i8], align 16
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = 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
%28 = load i32, ptr %4, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @read_cli(i32 noundef %28, ptr noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %2
%34 = load i32, ptr @stderr, align 4
%35 = call i32 @fprintf(i32 noundef %34, ptr noundef @.str)
%36 = load i32, ptr @EXIT_FAILURE, align 4
%37 = call i32 @exit(i32 noundef %36) #3
unreachable
38: ; preds = %2
%39 = load i32, ptr %7, align 4
%40 = trunc i32 %39 to i16
store i16 %40, ptr %6, align 2
%41 = load i32, ptr @PF_INET, align 4
%42 = load i32, ptr @SOCK_STREAM, align 4
%43 = call i32 @socket(i32 noundef %41, i32 noundef %42, i32 noundef 0)
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %38
%47 = call i32 @perror(ptr noundef @.str.1)
%48 = load i32, ptr @EXIT_FAILURE, align 4
%49 = call i32 @exit(i32 noundef %48) #3
unreachable
50: ; preds = %38
%51 = call ptr @gethostbyname(ptr noundef @.str.2)
store ptr %51, ptr %9, align 8
%52 = load ptr, ptr %9, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = call i32 @perror(ptr noundef @.str.3)
%56 = load i32, ptr @EXIT_FAILURE, align 4
%57 = call i32 @exit(i32 noundef %56) #3
unreachable
58: ; preds = %50
%59 = load i32, ptr @PF_INET, align 4
%60 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %59, ptr %60, align 4
%61 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds %struct.hostent, ptr %62, i32 0, i32 1
%64 = load i64, ptr %63, align 8
%65 = inttoptr i64 %64 to ptr
%66 = load ptr, ptr %9, align 8
%67 = getelementptr inbounds %struct.hostent, ptr %66, i32 0, i32 0
%68 = load i32, ptr %67, align 8
%69 = call i32 @memcpy(ptr noundef %61, ptr noundef %65, i32 noundef %68)
%70 = load i16, ptr %6, align 2
%71 = call i32 @htons(i16 noundef zeroext %70)
%72 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %71, ptr %72, align 4
%73 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%74 = load i32, ptr %73, align 4
%75 = call ptr @inet_ntoa(i32 noundef %74)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %75)
%77 = load i32, ptr %8, align 4
%78 = call i64 @connect(i32 noundef %77, ptr noundef %10, i32 noundef 12)
%79 = icmp slt i64 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %58
%81 = call i32 @perror(ptr noundef @.str.5)
%82 = load i32, ptr @EXIT_FAILURE, align 4
%83 = call i32 @exit(i32 noundef %82) #3
unreachable
84: ; preds = %58
store ptr @.str.6, ptr %11, align 8
store ptr @.str.7, ptr %12, align 8
store ptr @.str.8, ptr %13, align 8
store ptr @.str.9, ptr %14, align 8
store ptr @.str.10, ptr %15, align 8
store ptr @.str.11, ptr %16, align 8
store ptr @.str.12, ptr %17, align 8
%85 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%86 = call i32 @bzero(ptr noundef %85, i32 noundef 5000000)
%87 = call ptr @fopen(ptr noundef @.str.13, ptr noundef @.str.14)
store ptr %87, ptr %22, align 8
%88 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%89 = load ptr, ptr %22, align 8
%90 = call i32 @fread(ptr noundef %88, i32 noundef 1, i32 noundef 5000000, ptr noundef %89)
store i32 %90, ptr %21, align 4
%91 = icmp sgt i32 %90, 0
br i1 %91, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %84
br label %92
92: ; preds = %.lr.ph, %99
%93 = load i32, ptr %8, align 4
%94 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%95 = load i32, ptr %21, align 4
%96 = call i64 @send(i32 noundef %93, ptr noundef %94, i32 noundef %95, i32 noundef 0)
%97 = icmp slt i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %92
br label %105
99: ; preds = %92
%100 = getelementptr inbounds [5000000 x i8], ptr %20, i64 0, i64 0
%101 = call i32 @bzero(ptr noundef %100, i32 noundef 5000000)
%102 = load ptr, ptr %22, align 8
%103 = call i32 @fread(ptr noundef %88, i32 noundef 1, i32 noundef 5000000, ptr noundef %102)
store i32 %103, ptr %21, align 4
%104 = icmp sgt i32 %103, 0
br i1 %104, label %92, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %99
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %84
br label %105
105: ; preds = %.loopexit1, %98
store ptr @.str.15, ptr %24, align 8
%106 = load ptr, ptr %24, align 8
%107 = call ptr @fopen(ptr noundef %106, ptr noundef @.str.16)
store ptr %107, ptr %25, align 8
%108 = load ptr, ptr %25, align 8
%109 = icmp eq ptr %108, null
br i1 %109, label %110, label %113
110: ; preds = %105
%111 = load ptr, ptr %24, align 8
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %111)
br label %149
113: ; preds = %105
%114 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%115 = call i32 @bzero(ptr noundef %114, i32 noundef 5000000)
store i32 0, ptr %26, align 4
%116 = load i32, ptr %8, align 4
%117 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%118 = call i32 @recv(i32 noundef %116, ptr noundef %117, i32 noundef 5000000, i32 noundef 0)
store i32 %118, ptr %26, align 4
%119 = icmp sgt i32 %118, 0
br i1 %119, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %113
br label %124
120: ; preds = %139
%121 = load i32, ptr %8, align 4
%122 = call i32 @recv(i32 noundef %121, ptr noundef %117, i32 noundef 5000000, i32 noundef 0)
store i32 %122, ptr %26, align 4
%123 = icmp sgt i32 %122, 0
br i1 %123, label %124, label %..loopexit_crit_edge, !llvm.loop !8
124: ; preds = %.lr.ph2, %120
%125 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%126 = load i32, ptr %26, align 4
%127 = load ptr, ptr %25, align 8
%128 = call i32 @fwrite(ptr noundef %125, i32 noundef 1, i32 noundef %126, ptr noundef %127)
store i32 %128, ptr %27, align 4
%129 = load i32, ptr %27, align 4
%130 = load i32, ptr %26, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %132, label %134
132: ; preds = %124
%133 = call i32 @error(ptr noundef @.str.18)
br label %134
134: ; preds = %132, %124
%135 = getelementptr inbounds [5000000 x i8], ptr %23, i64 0, i64 0
%136 = call i32 @bzero(ptr noundef %135, i32 noundef 5000000)
%137 = load i32, ptr %26, align 4
%138 = icmp eq i32 %137, 0
br i1 %138, label %142, label %139
139: ; preds = %134
%140 = load i32, ptr %26, align 4
%141 = icmp ne i32 %140, 512
br i1 %141, label %142, label %120
142: ; preds = %139, %134
br label %143
..loopexit_crit_edge: ; preds = %120
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %113
br label %143
143: ; preds = %.loopexit, %142
%144 = load i32, ptr %26, align 4
%145 = icmp slt i32 %144, 0
br i1 %145, label %146, label %148
146: ; preds = %143
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %148
148: ; preds = %146, %143
br label %149
149: ; preds = %148, %110
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%151 = load ptr, ptr %25, align 8
%152 = call i32 @fclose(ptr noundef %151)
%153 = load i32, ptr %8, align 4
%154 = call i32 @close(i32 noundef %153)
%155 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %155
}
declare i32 @read_cli(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i16 noundef zeroext) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @inet_ntoa(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/tmp8vf3a2w2.c'
source_filename = "/tmp/tmp8vf3a2w2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local void @softboundcets_setbuf(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @setbuf(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @setbuf(ptr noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8vf3a2w2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local void @softboundcets_setbuf(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @setbuf(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @setbuf(ptr noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpopjgj4kh.c'
source_filename = "/tmp/tmpopjgj4kh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.trace.hex = private unnamed_addr constant [17 x i8] c"0123456789ABCDEF\00", align 16
@.str = private unnamed_addr constant [10 x i8] c"%c%c%c%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trace(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [17 x i8], align 16
store i32 %0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.trace.hex, i64 17, i1 false)
%5 = getelementptr inbounds i32, ptr %2, i64 4
%6 = load i32, ptr %5, align 4
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = lshr i32 %7, 12
%9 = zext i32 %8 to i64
%10 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = load i32, ptr %3, align 4
%13 = and i32 %12, 3840
%14 = lshr i32 %13, 8
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = load i32, ptr %3, align 4
%19 = and i32 %18, 240
%20 = lshr i32 %19, 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load i32, ptr %3, align 4
%25 = and i32 %24, 15
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = call i32 @printf(ptr noundef @.str, i8 noundef signext %11, i8 noundef signext %17, i8 noundef signext %23, i8 noundef signext %28)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpopjgj4kh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.trace.hex = private unnamed_addr constant [17 x i8] c"0123456789ABCDEF\00", align 16
@.str = private unnamed_addr constant [10 x i8] c"%c%c%c%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trace(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [17 x i8], align 16
store i32 %0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.trace.hex, i64 17, i1 false)
%5 = getelementptr inbounds i32, ptr %2, i64 4
%6 = load i32, ptr %5, align 4
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = lshr i32 %7, 12
%9 = zext i32 %8 to i64
%10 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = load i32, ptr %3, align 4
%13 = and i32 %12, 3840
%14 = lshr i32 %13, 8
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = load i32, ptr %3, align 4
%19 = and i32 %18, 240
%20 = lshr i32 %19, 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load i32, ptr %3, align 4
%25 = and i32 %24, 15
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = call i32 @printf(ptr noundef @.str, i8 noundef signext %11, i8 noundef signext %17, i8 noundef signext %23, i8 noundef signext %28)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpro0b_g87.c'
source_filename = "/tmp/tmpro0b_g87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGTSTP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wrap_sendsigtstp() #0 {
%1 = load i32, ptr @SIGTSTP, align 4
%2 = call i32 @killpg(i32 noundef 0, i32 noundef %1)
ret void
}
declare i32 @killpg(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/tmpro0b_g87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGTSTP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wrap_sendsigtstp() #0 {
%1 = load i32, ptr @SIGTSTP, align 4
%2 = call i32 @killpg(i32 noundef 0, i32 noundef %1)
ret void
}
declare i32 @killpg(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/tmp3jj37mhw.c'
source_filename = "/tmp/tmp3jj37mhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"joga %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @joga(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 i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 1
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
ret void
}
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/tmp3jj37mhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"joga %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @joga(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 i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 1
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
ret void
}
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/tmp3ew127le.c'
source_filename = "/tmp/tmp3ew127le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Usage: cp source destination\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"cp: failed to open %s\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"cp: failed to open %s for writing\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"cp: write error on file %s\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 [1024 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @error(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @open(ptr noundef %17, i32 noundef %18)
store i32 %19, ptr %7, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @error(ptr noundef @.str.1, ptr noundef %24)
br label %26
26: ; preds = %21, %14
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @creat(ptr noundef %29, i32 noundef 384)
store i32 %30, ptr %8, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %37
32: ; preds = %26
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
%36 = call i32 (ptr, ...) @error(ptr noundef @.str.2, ptr noundef %35)
br label %37
37: ; preds = %32, %26
br label %38
38: ; preds = %55, %37
%39 = load i32, ptr %7, align 4
%40 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%41 = call i32 @read(i32 noundef %39, ptr noundef %40, i32 noundef 1024)
store i32 %41, ptr %9, align 4
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %56
43: ; preds = %38
%44 = load i32, ptr %8, align 4
%45 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%46 = load i32, ptr %9, align 4
%47 = call i32 @write(i32 noundef %44, ptr noundef %45, i32 noundef %46)
%48 = load i32, ptr %9, align 4
%49 = icmp ne i32 %47, %48
br i1 %49, label %50, label %55
50: ; preds = %43
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 2
%53 = load ptr, ptr %52, align 8
%54 = call i32 (ptr, ...) @error(ptr noundef @.str.3, ptr noundef %53)
br label %55
55: ; preds = %50, %43
br label %38, !llvm.loop !6
56: ; preds = %38
ret i32 0
}
declare i32 @error(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @creat(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3ew127le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Usage: cp source destination\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"cp: failed to open %s\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"cp: failed to open %s for writing\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"cp: write error on file %s\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 [1024 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @error(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @open(ptr noundef %17, i32 noundef %18)
store i32 %19, ptr %7, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @error(ptr noundef @.str.1, ptr noundef %24)
br label %26
26: ; preds = %21, %14
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @creat(ptr noundef %29, i32 noundef 384)
store i32 %30, ptr %8, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %37
32: ; preds = %26
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
%36 = call i32 (ptr, ...) @error(ptr noundef @.str.2, ptr noundef %35)
br label %37
37: ; preds = %32, %26
%38 = load i32, ptr %7, align 4
%39 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 1024)
store i32 %40, ptr %9, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %.lr.ph, label %58
.lr.ph: ; preds = %37
br label %42
42: ; preds = %.lr.ph, %54
%43 = load i32, ptr %8, align 4
%44 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%45 = load i32, ptr %9, align 4
%46 = call i32 @write(i32 noundef %43, ptr noundef %44, i32 noundef %45)
%47 = load i32, ptr %9, align 4
%48 = icmp ne i32 %46, %47
br i1 %48, label %49, label %54
49: ; preds = %42
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 2
%52 = load ptr, ptr %51, align 8
%53 = call i32 (ptr, ...) @error(ptr noundef @.str.3, ptr noundef %52)
br label %54
54: ; preds = %49, %42
%55 = load i32, ptr %7, align 4
%56 = call i32 @read(i32 noundef %55, ptr noundef %39, i32 noundef 1024)
store i32 %56, ptr %9, align 4
%57 = icmp sgt i32 %56, 0
br i1 %57, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %58
58: ; preds = %._crit_edge, %37
ret i32 0
}
declare i32 @error(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @creat(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpd8qm3vz3.c'
source_filename = "/tmp/tmpd8qm3vz3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signalfd(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @syscall(i32 noundef 289, i32 noundef %7, ptr noundef %8, i32 noundef 8, i32 noundef %9)
ret i32 %10
}
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd8qm3vz3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signalfd(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @syscall(i32 noundef 289, i32 noundef %7, ptr noundef %8, i32 noundef 8, i32 noundef %9)
ret i32 %10
}
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp74ua13ni.c'
source_filename = "/tmp/tmp74ua13ni.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SensorSetReg_NOON30PC11(i16 noundef zeroext %0, i16 noundef zeroext %1) #0 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
store i16 %0, ptr %3, align 2
store i16 %1, ptr %4, align 2
%5 = load i16, ptr %3, align 2
%6 = trunc i16 %5 to i8
%7 = load i16, ptr %4, align 2
%8 = trunc i16 %7 to i8
%9 = call i32 @VIM_SIF_I2cWriteByte(i8 noundef zeroext %6, i8 noundef zeroext %8)
ret void
}
declare i32 @VIM_SIF_I2cWriteByte(i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74ua13ni.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SensorSetReg_NOON30PC11(i16 noundef zeroext %0, i16 noundef zeroext %1) #0 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
store i16 %0, ptr %3, align 2
store i16 %1, ptr %4, align 2
%5 = load i16, ptr %3, align 2
%6 = trunc i16 %5 to i8
%7 = load i16, ptr %4, align 2
%8 = trunc i16 %7 to i8
%9 = call i32 @VIM_SIF_I2cWriteByte(i8 noundef zeroext %6, i8 noundef zeroext %8)
ret void
}
declare i32 @VIM_SIF_I2cWriteByte(i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpog_zjrjj.c'
source_filename = "/tmp/tmpog_zjrjj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Jinc.a1 = internal constant [14 x double] [double 0x3FBE000000000000, double 0xBFC2750000000000, double 0x3FE5A6A580000000, double 0xC01B8920D2680000, double 0x405E6643DC4A1102, double 0xC0A9CC8B6A2EA448, double 0x40FF29945CC23C35, double 0xC159645BEE011BE7, double 0x41BAD6B4C84E170E, double 0xC221DA5076CEDB16, double 0x428D30A1B77EE996, double 0xC2FCC418ACCD750B, double 0x4370D088BA5DA244, double 0xC3E701C3F7BD61CD], align 16
@Jinc.b1 = internal constant [14 x double] [double 0xBFBA400000000000, double 0x3FD1C3D000000000, double 0xBFFFE58188000000, double 0x403B3FB3258C3FFF, double 0xC082DEC0AB499CBC, double 0x40D341980EF2329F, double 0xC12B2B73C0DFBFB1, double 0x4189526F70E0A2A5, double 0xC1EE2097FCA372B9, double 0x425646B0F8D0F712, double 0xC2C409D1CC506D64, double 0x43358C2B1F8519AB, double 0xC3AB4B650E855364, double 0x44241CC8E64BD500], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Jinc(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
store double %0, ptr %3, align 8
%14 = load double, ptr %3, align 8
%15 = fmul double %14, 0x401921FB54442D18
store double %15, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = fcmp olt double %16, 1.000000e-09
br i1 %17, label %18, label %24
18: ; preds = %1
%19 = load double, ptr %3, align 8
%20 = load double, ptr %3, align 8
%21 = fmul double %19, %20
%22 = fdiv double %21, 8.000000e+00
%23 = fsub double 1.000000e+00, %22
store double %23, ptr %2, align 8
br label %130
24: ; preds = %1
%25 = load double, ptr %3, align 8
%26 = fcmp ole double %25, 0.000000e+00
br i1 %26, label %27, label %28
27: ; preds = %24
store double 1.000000e+00, ptr %2, align 8
br label %130
28: ; preds = %24
%29 = load double, ptr %3, align 8
%30 = fcmp ole double %29, 1.200000e+01
br i1 %30, label %31, label %67
31: ; preds = %28
%32 = load double, ptr %3, align 8
%33 = load double, ptr %3, align 8
%34 = fmul double %32, %33
store double %34, ptr %4, align 8
store double 1.000000e+00, ptr %5, align 8
store double 1.000000e+00, ptr %6, align 8
store i32 1, ptr %7, align 4
br label %35
35: ; preds = %62, %31
%36 = load i32, ptr %7, align 4
%37 = icmp sle i32 %36, 30
br i1 %37, label %38, label %65
38: ; preds = %35
%39 = load double, ptr %4, align 8
%40 = fmul double -2.500000e-01, %39
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
%44 = mul nsw i32 %41, %43
%45 = sitofp i32 %44 to double
%46 = fdiv double %40, %45
%47 = load double, ptr %6, align 8
%48 = fmul double %47, %46
store double %48, ptr %6, align 8
%49 = load double, ptr %6, align 8
%50 = load double, ptr %5, align 8
%51 = fadd double %50, %49
store double %51, ptr %5, align 8
%52 = load double, ptr %6, align 8
%53 = call i32 @fabs(double noundef %52)
%54 = sitofp i32 %53 to double
%55 = load double, ptr %5, align 8
%56 = call i32 @fabs(double noundef %55)
%57 = sitofp i32 %56 to double
%58 = fmul double %57, 1.000000e-15
%59 = fcmp olt double %54, %58
br i1 %59, label %60, label %61
60: ; preds = %38
br label %65
61: ; preds = %38
br label %62
62: ; preds = %61
%63 = load i32, ptr %7, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %7, align 4
br label %35, !llvm.loop !6
65: ; preds = %60, %35
%66 = load double, ptr %5, align 8
store double %66, ptr %2, align 8
br label %130
67: ; preds = %28
%68 = load double, ptr %3, align 8
%69 = fcmp oge double %68, 5.000000e+01
br i1 %69, label %70, label %71
70: ; preds = %67
store i32 8, ptr %8, align 4
br label %77
71: ; preds = %67
%72 = load double, ptr %3, align 8
%73 = fcmp oge double %72, 3.500000e+01
br i1 %73, label %74, label %75
74: ; preds = %71
store i32 10, ptr %8, align 4
br label %76
75: ; preds = %71
store i32 12, ptr %8, align 4
br label %76
76: ; preds = %75, %74
br label %77
77: ; preds = %76, %70
%78 = load double, ptr %3, align 8
%79 = fdiv double 0x3FE45F306DC9C883, %78
%80 = call double @sqrt(double noundef %79) #4
store double %80, ptr %9, align 8
%81 = load double, ptr %3, align 8
%82 = fsub double %81, 0x4002D97C7F3321D2
store double %82, ptr %10, align 8
store double 1.000000e+00, ptr %11, align 8
%83 = load double, ptr %3, align 8
%84 = fdiv double 3.750000e-01, %83
store double %84, ptr %12, align 8
store i32 0, ptr %13, align 4
br label %85
85: ; preds = %112, %77
%86 = load i32, ptr %13, align 4
%87 = load i32, ptr %8, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %115
89: ; preds = %85
%90 = load i32, ptr %13, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [14 x double], ptr @Jinc.a1, i64 0, i64 %91
%93 = load double, ptr %92, align 8
%94 = load double, ptr %3, align 8
%95 = load i32, ptr %13, align 4
%96 = mul nsw i32 -2, %95
%97 = sub nsw i32 %96, 2
%98 = call double @pow(double noundef %94, i32 noundef %97)
%99 = load double, ptr %11, align 8
%100 = call double @llvm.fmuladd.f64(double %93, double %98, double %99)
store double %100, ptr %11, align 8
%101 = load i32, ptr %13, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [14 x double], ptr @Jinc.b1, i64 0, i64 %102
%104 = load double, ptr %103, align 8
%105 = load double, ptr %3, align 8
%106 = load i32, ptr %13, align 4
%107 = mul nsw i32 -2, %106
%108 = sub nsw i32 %107, 3
%109 = call double @pow(double noundef %105, i32 noundef %108)
%110 = load double, ptr %12, align 8
%111 = call double @llvm.fmuladd.f64(double %104, double %109, double %110)
store double %111, ptr %12, align 8
br label %112
112: ; preds = %89
%113 = load i32, ptr %13, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %13, align 4
br label %85, !llvm.loop !8
115: ; preds = %85
%116 = load double, ptr %9, align 8
%117 = fmul double 2.000000e+00, %116
%118 = load double, ptr %11, align 8
%119 = load double, ptr %10, align 8
%120 = call double @cos(double noundef %119) #4
%121 = load double, ptr %12, align 8
%122 = load double, ptr %10, align 8
%123 = call double @sin(double noundef %122) #4
%124 = fmul double %121, %123
%125 = fneg double %124
%126 = call double @llvm.fmuladd.f64(double %118, double %120, double %125)
%127 = fmul double %117, %126
%128 = load double, ptr %3, align 8
%129 = fdiv double %127, %128
store double %129, ptr %2, align 8
br label %130
130: ; preds = %115, %65, %27, %18
%131 = load double, ptr %2, align 8
ret double %131
}
declare i32 @fabs(double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare double @pow(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpog_zjrjj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Jinc.a1 = internal constant [14 x double] [double 0x3FBE000000000000, double 0xBFC2750000000000, double 0x3FE5A6A580000000, double 0xC01B8920D2680000, double 0x405E6643DC4A1102, double 0xC0A9CC8B6A2EA448, double 0x40FF29945CC23C35, double 0xC159645BEE011BE7, double 0x41BAD6B4C84E170E, double 0xC221DA5076CEDB16, double 0x428D30A1B77EE996, double 0xC2FCC418ACCD750B, double 0x4370D088BA5DA244, double 0xC3E701C3F7BD61CD], align 16
@Jinc.b1 = internal constant [14 x double] [double 0xBFBA400000000000, double 0x3FD1C3D000000000, double 0xBFFFE58188000000, double 0x403B3FB3258C3FFF, double 0xC082DEC0AB499CBC, double 0x40D341980EF2329F, double 0xC12B2B73C0DFBFB1, double 0x4189526F70E0A2A5, double 0xC1EE2097FCA372B9, double 0x425646B0F8D0F712, double 0xC2C409D1CC506D64, double 0x43358C2B1F8519AB, double 0xC3AB4B650E855364, double 0x44241CC8E64BD500], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Jinc(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
store double %0, ptr %3, align 8
%14 = load double, ptr %3, align 8
%15 = fmul double %14, 0x401921FB54442D18
store double %15, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = fcmp olt double %16, 1.000000e-09
br i1 %17, label %18, label %24
18: ; preds = %1
%19 = load double, ptr %3, align 8
%20 = load double, ptr %3, align 8
%21 = fmul double %19, %20
%22 = fdiv double %21, 8.000000e+00
%23 = fsub double 1.000000e+00, %22
store double %23, ptr %2, align 8
br label %133
24: ; preds = %1
%25 = load double, ptr %3, align 8
%26 = fcmp ole double %25, 0.000000e+00
br i1 %26, label %27, label %28
27: ; preds = %24
store double 1.000000e+00, ptr %2, align 8
br label %133
28: ; preds = %24
%29 = load double, ptr %3, align 8
%30 = fcmp ole double %29, 1.200000e+01
br i1 %30, label %31, label %68
31: ; preds = %28
%32 = load double, ptr %3, align 8
%33 = load double, ptr %3, align 8
%34 = fmul double %32, %33
store double %34, ptr %4, align 8
store double 1.000000e+00, ptr %5, align 8
store double 1.000000e+00, ptr %6, align 8
store i32 1, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp sle i32 %35, 30
br i1 %36, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %31
br label %37
37: ; preds = %.lr.ph2, %61
%38 = load double, ptr %4, align 8
%39 = fmul double -2.500000e-01, %38
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
%43 = mul nsw i32 %40, %42
%44 = sitofp i32 %43 to double
%45 = fdiv double %39, %44
%46 = load double, ptr %6, align 8
%47 = fmul double %46, %45
store double %47, ptr %6, align 8
%48 = load double, ptr %6, align 8
%49 = load double, ptr %5, align 8
%50 = fadd double %49, %48
store double %50, ptr %5, align 8
%51 = load double, ptr %6, align 8
%52 = call i32 @fabs(double noundef %51)
%53 = sitofp i32 %52 to double
%54 = load double, ptr %5, align 8
%55 = call i32 @fabs(double noundef %54)
%56 = sitofp i32 %55 to double
%57 = fmul double %56, 1.000000e-15
%58 = fcmp olt double %53, %57
br i1 %58, label %59, label %60
59: ; preds = %37
br label %66
60: ; preds = %37
br label %61
61: ; preds = %60
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %7, align 4
%64 = load i32, ptr %7, align 4
%65 = icmp sle i32 %64, 30
br i1 %65, label %37, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %61
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %31
br label %66
66: ; preds = %.loopexit, %59
%67 = load double, ptr %5, align 8
store double %67, ptr %2, align 8
br label %133
68: ; preds = %28
%69 = load double, ptr %3, align 8
%70 = fcmp oge double %69, 5.000000e+01
br i1 %70, label %71, label %72
71: ; preds = %68
store i32 8, ptr %8, align 4
br label %78
72: ; preds = %68
%73 = load double, ptr %3, align 8
%74 = fcmp oge double %73, 3.500000e+01
br i1 %74, label %75, label %76
75: ; preds = %72
store i32 10, ptr %8, align 4
br label %77
76: ; preds = %72
store i32 12, ptr %8, align 4
br label %77
77: ; preds = %76, %75
br label %78
78: ; preds = %77, %71
%79 = load double, ptr %3, align 8
%80 = fdiv double 0x3FE45F306DC9C883, %79
%81 = call double @sqrt(double noundef %80) #4
store double %81, ptr %9, align 8
%82 = load double, ptr %3, align 8
%83 = fsub double %82, 0x4002D97C7F3321D2
store double %83, ptr %10, align 8
store double 1.000000e+00, ptr %11, align 8
%84 = load double, ptr %3, align 8
%85 = fdiv double 3.750000e-01, %84
store double %85, ptr %12, align 8
store i32 0, ptr %13, align 4
%86 = load i32, ptr %13, align 4
%87 = load i32, ptr %8, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %.lr.ph, label %118
.lr.ph: ; preds = %78
br label %89
89: ; preds = %.lr.ph, %112
%90 = load i32, ptr %13, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [14 x double], ptr @Jinc.a1, i64 0, i64 %91
%93 = load double, ptr %92, align 8
%94 = load double, ptr %3, align 8
%95 = load i32, ptr %13, align 4
%96 = mul nsw i32 -2, %95
%97 = sub nsw i32 %96, 2
%98 = call double @pow(double noundef %94, i32 noundef %97)
%99 = load double, ptr %11, align 8
%100 = call double @llvm.fmuladd.f64(double %93, double %98, double %99)
store double %100, ptr %11, align 8
%101 = load i32, ptr %13, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [14 x double], ptr @Jinc.b1, i64 0, i64 %102
%104 = load double, ptr %103, align 8
%105 = load double, ptr %3, align 8
%106 = load i32, ptr %13, align 4
%107 = mul nsw i32 -2, %106
%108 = sub nsw i32 %107, 3
%109 = call double @pow(double noundef %105, i32 noundef %108)
%110 = load double, ptr %12, align 8
%111 = call double @llvm.fmuladd.f64(double %104, double %109, double %110)
store double %111, ptr %12, align 8
br label %112
112: ; preds = %89
%113 = load i32, ptr %13, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %13, align 4
%115 = load i32, ptr %13, align 4
%116 = load i32, ptr %8, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %89, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %112
br label %118
118: ; preds = %._crit_edge, %78
%119 = load double, ptr %9, align 8
%120 = fmul double 2.000000e+00, %119
%121 = load double, ptr %11, align 8
%122 = load double, ptr %10, align 8
%123 = call double @cos(double noundef %122) #4
%124 = load double, ptr %12, align 8
%125 = load double, ptr %10, align 8
%126 = call double @sin(double noundef %125) #4
%127 = fmul double %124, %126
%128 = fneg double %127
%129 = call double @llvm.fmuladd.f64(double %121, double %123, double %128)
%130 = fmul double %120, %129
%131 = load double, ptr %3, align 8
%132 = fdiv double %130, %131
store double %132, ptr %2, align 8
br label %133
133: ; preds = %118, %66, %27, %18
%134 = load double, ptr %2, align 8
ret double %134
}
declare i32 @fabs(double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare double @pow(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe8_f0rgo.c'
source_filename = "/tmp/tmpe8_f0rgo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merging(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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 ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = 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 i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call ptr @malloc(i32 noundef %19)
store ptr %20, ptr %11, align 8
%21 = load i32, ptr %7, align 4
store i32 %21, ptr %12, align 4
%22 = load i32, ptr %9, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %13, align 4
%24 = load i32, ptr %7, align 4
store i32 %24, ptr %14, align 4
br label %25
25: ; preds = %72, %5
%26 = load i32, ptr %12, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %13, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp sle i32 %30, %31
br label %33
33: ; preds = %29, %25
%34 = phi i1 [ false, %25 ], [ %32, %29 ]
br i1 %34, label %35, label %75
35: ; preds = %33
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %12, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %13, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = icmp sle i32 %40, %45
br i1 %46, label %47, label %59
47: ; preds = %35
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr %12, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %11, align 8
%54 = load i32, ptr %14, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
store i32 %52, ptr %56, align 4
%57 = load i32, ptr %12, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %12, align 4
br label %71
59: ; preds = %35
%60 = load ptr, ptr %6, align 8
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load ptr, ptr %11, align 8
%66 = load i32, ptr %14, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
store i32 %64, ptr %68, align 4
%69 = load i32, ptr %13, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %13, align 4
br label %71
71: ; preds = %59, %47
br label %72
72: ; preds = %71
%73 = load i32, ptr %14, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %14, align 4
br label %25, !llvm.loop !6
75: ; preds = %33
br label %76
76: ; preds = %80, %75
%77 = load i32, ptr %12, align 4
%78 = load i32, ptr %9, align 4
%79 = icmp sle i32 %77, %78
br i1 %79, label %80, label %92
80: ; preds = %76
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %12, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %12, align 4
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds i32, ptr %81, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %11, align 8
%88 = load i32, ptr %14, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %14, align 4
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds i32, ptr %87, i64 %90
store i32 %86, ptr %91, align 4
br label %76, !llvm.loop !8
92: ; preds = %76
br label %93
93: ; preds = %97, %92
%94 = load i32, ptr %13, align 4
%95 = load i32, ptr %8, align 4
%96 = icmp sle i32 %94, %95
br i1 %96, label %97, label %109
97: ; preds = %93
%98 = load ptr, ptr %6, align 8
%99 = load i32, ptr %13, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %13, align 4
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds i32, ptr %98, i64 %101
%103 = load i32, ptr %102, align 4
%104 = load ptr, ptr %11, align 8
%105 = load i32, ptr %14, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %14, align 4
%107 = sext i32 %105 to i64
%108 = getelementptr inbounds i32, ptr %104, i64 %107
store i32 %103, ptr %108, align 4
br label %93, !llvm.loop !9
109: ; preds = %93
%110 = load i32, ptr %7, align 4
store i32 %110, ptr %15, align 4
br label %111
111: ; preds = %125, %109
%112 = load i32, ptr %15, align 4
%113 = load i32, ptr %8, align 4
%114 = icmp sle i32 %112, %113
br i1 %114, label %115, label %128
115: ; preds = %111
%116 = load ptr, ptr %11, align 8
%117 = load i32, ptr %15, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i32, ptr %116, i64 %118
%120 = load i32, ptr %119, align 4
%121 = load ptr, ptr %6, align 8
%122 = load i32, ptr %15, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i32, ptr %121, i64 %123
store i32 %120, ptr %124, align 4
br label %125
125: ; preds = %115
%126 = load i32, ptr %15, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %15, align 4
br label %111, !llvm.loop !10
128: ; preds = %111
%129 = load ptr, ptr %11, align 8
%130 = call i32 @free(ptr noundef %129)
ret void
}
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"}
!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/tmpe8_f0rgo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merging(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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 ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = 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 i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call ptr @malloc(i32 noundef %19)
store ptr %20, ptr %11, align 8
%21 = load i32, ptr %7, align 4
store i32 %21, ptr %12, align 4
%22 = load i32, ptr %9, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %13, align 4
%24 = load i32, ptr %7, align 4
store i32 %24, ptr %14, align 4
br label %25
25: ; preds = %72, %5
%26 = load i32, ptr %12, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %13, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp sle i32 %30, %31
br label %33
33: ; preds = %29, %25
%34 = phi i1 [ false, %25 ], [ %32, %29 ]
br i1 %34, label %35, label %75
35: ; preds = %33
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %12, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %13, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = icmp sle i32 %40, %45
br i1 %46, label %47, label %59
47: ; preds = %35
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr %12, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %11, align 8
%54 = load i32, ptr %14, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
store i32 %52, ptr %56, align 4
%57 = load i32, ptr %12, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %12, align 4
br label %71
59: ; preds = %35
%60 = load ptr, ptr %6, align 8
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load ptr, ptr %11, align 8
%66 = load i32, ptr %14, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
store i32 %64, ptr %68, align 4
%69 = load i32, ptr %13, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %13, align 4
br label %71
71: ; preds = %59, %47
br label %72
72: ; preds = %71
%73 = load i32, ptr %14, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %14, align 4
br label %25, !llvm.loop !6
75: ; preds = %33
%76 = load i32, ptr %12, align 4
%77 = load i32, ptr %9, align 4
%78 = icmp sle i32 %76, %77
br i1 %78, label %.lr.ph, label %94
.lr.ph: ; preds = %75
br label %79
79: ; preds = %.lr.ph, %79
%80 = load ptr, ptr %6, align 8
%81 = load i32, ptr %12, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %12, align 4
%83 = sext i32 %81 to i64
%84 = getelementptr inbounds i32, ptr %80, i64 %83
%85 = load i32, ptr %84, align 4
%86 = load ptr, ptr %11, align 8
%87 = load i32, ptr %14, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %14, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds i32, ptr %86, i64 %89
store i32 %85, ptr %90, align 4
%91 = load i32, ptr %12, align 4
%92 = load i32, ptr %9, align 4
%93 = icmp sle i32 %91, %92
br i1 %93, label %79, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %79
br label %94
94: ; preds = %._crit_edge, %75
%95 = load i32, ptr %13, align 4
%96 = load i32, ptr %8, align 4
%97 = icmp sle i32 %95, %96
br i1 %97, label %.lr.ph2, label %113
.lr.ph2: ; preds = %94
br label %98
98: ; preds = %.lr.ph2, %98
%99 = load ptr, ptr %6, align 8
%100 = load i32, ptr %13, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %13, align 4
%102 = sext i32 %100 to i64
%103 = getelementptr inbounds i32, ptr %99, i64 %102
%104 = load i32, ptr %103, align 4
%105 = load ptr, ptr %11, align 8
%106 = load i32, ptr %14, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %14, align 4
%108 = sext i32 %106 to i64
%109 = getelementptr inbounds i32, ptr %105, i64 %108
store i32 %104, ptr %109, align 4
%110 = load i32, ptr %13, align 4
%111 = load i32, ptr %8, align 4
%112 = icmp sle i32 %110, %111
br i1 %112, label %98, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %98
br label %113
113: ; preds = %._crit_edge3, %94
%114 = load i32, ptr %7, align 4
store i32 %114, ptr %15, align 4
%115 = load i32, ptr %15, align 4
%116 = load i32, ptr %8, align 4
%117 = icmp sle i32 %115, %116
br i1 %117, label %.lr.ph5, label %134
.lr.ph5: ; preds = %113
br label %118
118: ; preds = %.lr.ph5, %128
%119 = load ptr, ptr %11, align 8
%120 = load i32, ptr %15, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, ptr %119, i64 %121
%123 = load i32, ptr %122, align 4
%124 = load ptr, ptr %6, align 8
%125 = load i32, ptr %15, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, ptr %124, i64 %126
store i32 %123, ptr %127, align 4
br label %128
128: ; preds = %118
%129 = load i32, ptr %15, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %15, align 4
%131 = load i32, ptr %15, align 4
%132 = load i32, ptr %8, align 4
%133 = icmp sle i32 %131, %132
br i1 %133, label %118, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %128
br label %134
134: ; preds = %._crit_edge6, %113
%135 = load ptr, ptr %11, align 8
%136 = call i32 @free(ptr noundef %135)
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpjvwulkyr.c'
source_filename = "/tmp/tmpjvwulkyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FIQ_restore(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @__get_cpsr()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = and i32 %5, -65
%7 = load i32, ptr %2, align 4
%8 = and i32 %7, 64
%9 = or i32 %6, %8
%10 = call i32 @__set_cpsr(i32 noundef %9)
%11 = load i32, ptr %3, align 4
ret i32 %11
}
declare i32 @__get_cpsr(...) #1
declare i32 @__set_cpsr(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/tmpjvwulkyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FIQ_restore(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @__get_cpsr()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = and i32 %5, -65
%7 = load i32, ptr %2, align 4
%8 = and i32 %7, 64
%9 = or i32 %6, %8
%10 = call i32 @__set_cpsr(i32 noundef %9)
%11 = load i32, ptr %3, align 4
ret i32 %11
}
declare i32 @__get_cpsr(...) #1
declare i32 @__set_cpsr(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/tmp9eb6u086.c'
source_filename = "/tmp/tmp9eb6u086.c"
target datalayout = "e-m:e-p270: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/tmp9eb6u086.c"
target datalayout = "e-m:e-p270: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/tmpd9cp3wzg.c'
source_filename = "/tmp/tmpd9cp3wzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Informe a posicao %d: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Tamanho Par excedido.\0APares do vetor: \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"Tamanho Impar excedido.\0AImpares do vetor: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [5 x i32], align 16
%5 = alloca [5 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %73, %0
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 30
br i1 %11, label %12, label %76
12: ; preds = %9
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%17 = load i32, ptr %1, align 4
%18 = srem i32 %17, 2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %46
20: ; preds = %12
%21 = load i32, ptr %1, align 4
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %23
store i32 %21, ptr %24, align 4
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp sgt i32 %27, 4
br i1 %28, label %29, label %45
29: ; preds = %20
store i32 0, ptr %3, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %31
31: ; preds = %40, %29
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 5
br i1 %33, label %34, label %43
34: ; preds = %31
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %38)
br label %40
40: ; preds = %34
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %7, align 4
br label %31, !llvm.loop !6
43: ; preds = %31
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
45: ; preds = %43, %20
br label %72
46: ; preds = %12
%47 = load i32, ptr %1, align 4
%48 = load i32, ptr %2, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 %49
store i32 %47, ptr %50, align 4
%51 = load i32, ptr %2, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %2, align 4
%53 = load i32, ptr %2, align 4
%54 = icmp sgt i32 %53, 4
br i1 %54, label %55, label %71
55: ; preds = %46
store i32 0, ptr %2, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %8, align 4
br label %57
57: ; preds = %66, %55
%58 = load i32, ptr %8, align 4
%59 = icmp slt i32 %58, 5
br i1 %59, label %60, label %69
60: ; preds = %57
%61 = load i32, ptr %8, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %64)
br label %66
66: ; preds = %60
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
br label %57, !llvm.loop !8
69: ; preds = %57
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %71
71: ; preds = %69, %46
br label %72
72: ; preds = %71, %45
br label %73
73: ; preds = %72
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %6, align 4
br label %9, !llvm.loop !9
76: ; preds = %9
ret void
}
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd9cp3wzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Informe a posicao %d: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Tamanho Par excedido.\0APares do vetor: \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"Tamanho Impar excedido.\0AImpares do vetor: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [5 x i32], align 16
%5 = alloca [5 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 30
br i1 %10, label %.lr.ph5, label %79
.lr.ph5: ; preds = %0
br label %11
11: ; preds = %.lr.ph5, %74
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%16 = load i32, ptr %1, align 4
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %46
19: ; preds = %11
%20 = load i32, ptr %1, align 4
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %22
store i32 %20, ptr %23, align 4
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp sgt i32 %26, 4
br i1 %27, label %28, label %45
28: ; preds = %19
store i32 0, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp slt i32 %30, 5
br i1 %31, label %.lr.ph2, label %43
.lr.ph2: ; preds = %28
br label %32
32: ; preds = %.lr.ph2, %38
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %36)
br label %38
38: ; preds = %32
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %41, 5
br i1 %42, label %32, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %38
br label %43
43: ; preds = %._crit_edge3, %28
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
45: ; preds = %43, %19
br label %73
46: ; preds = %11
%47 = load i32, ptr %1, align 4
%48 = load i32, ptr %2, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 %49
store i32 %47, ptr %50, align 4
%51 = load i32, ptr %2, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %2, align 4
%53 = load i32, ptr %2, align 4
%54 = icmp sgt i32 %53, 4
br i1 %54, label %55, label %72
55: ; preds = %46
store i32 0, ptr %2, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %8, align 4
%57 = load i32, ptr %8, align 4
%58 = icmp slt i32 %57, 5
br i1 %58, label %.lr.ph, label %70
.lr.ph: ; preds = %55
br label %59
59: ; preds = %.lr.ph, %65
%60 = load i32, ptr %8, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %63)
br label %65
65: ; preds = %59
%66 = load i32, ptr %8, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %8, align 4
%68 = load i32, ptr %8, align 4
%69 = icmp slt i32 %68, 5
br i1 %69, label %59, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %65
br label %70
70: ; preds = %._crit_edge, %55
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %72
72: ; preds = %70, %46
br label %73
73: ; preds = %72, %45
br label %74
74: ; preds = %73
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %6, align 4
%77 = load i32, ptr %6, align 4
%78 = icmp slt i32 %77, 30
br i1 %78, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %74
br label %79
79: ; preds = %._crit_edge6, %0
ret void
}
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp4jqgnihf.c'
source_filename = "/tmp/tmp4jqgnihf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4jqgnihf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu7ice_wa.c'
source_filename = "/tmp/tmpu7ice_wa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@LOG_CRIT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"[%s]create socked failed, %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"[%s]bind socket failed, %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"[%s]listen socket failed, %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @new_server(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 12)
%10 = load i32, ptr @AF_INET, align 4
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %10, ptr %11, align 4
%12 = call i32 @htons(i32 noundef 5555)
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %12, ptr %13, align 4
%14 = load i32, ptr @INADDR_ANY, align 4
%15 = call i32 @htonl(i32 noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
store i32 %15, ptr %17, align 4
%18 = load i32, ptr @AF_INET, align 4
%19 = load i32, ptr @SOCK_STREAM, align 4
%20 = call i32 @socket(i32 noundef %18, i32 noundef %19, i32 noundef 0)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %2
%24 = load i32, ptr @LOG_CRIT, align 4
%25 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%26 = call i32 @get_cur_time(ptr noundef %25)
%27 = load i32, ptr @errno, align 4
%28 = call i32 @strerror(i32 noundef %27)
%29 = call i32 @log_printf(i32 noundef %24, ptr noundef @.str, i32 noundef %26, i32 noundef %28)
store i32 -1, ptr %3, align 4
br label %55
30: ; preds = %2
%31 = load i32, ptr %7, align 4
%32 = call i64 @bind(i32 noundef %31, ptr noundef %6, i32 noundef 12)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i32, ptr @LOG_CRIT, align 4
%36 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%37 = call i32 @get_cur_time(ptr noundef %36)
%38 = load i32, ptr @errno, align 4
%39 = call i32 @strerror(i32 noundef %38)
%40 = call i32 @log_printf(i32 noundef %35, ptr noundef @.str.1, i32 noundef %37, i32 noundef %39)
store i32 -1, ptr %3, align 4
br label %55
41: ; preds = %30
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %5, align 4
%44 = call i64 @listen(i32 noundef %42, i32 noundef %43)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %41
%47 = load i32, ptr @LOG_CRIT, align 4
%48 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%49 = call i32 @get_cur_time(ptr noundef %48)
%50 = load i32, ptr @errno, align 4
%51 = call i32 @strerror(i32 noundef %50)
%52 = call i32 @log_printf(i32 noundef %47, ptr noundef @.str.2, i32 noundef %49, i32 noundef %51)
store i32 -1, ptr %3, align 4
br label %55
53: ; preds = %41
%54 = load i32, ptr %7, align 4
store i32 %54, ptr %3, align 4
br label %55
55: ; preds = %53, %46, %34, %23
%56 = load i32, ptr %3, align 4
ret i32 %56
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @log_printf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @get_cur_time(ptr noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(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/tmpu7ice_wa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@LOG_CRIT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"[%s]create socked failed, %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"[%s]bind socket failed, %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"[%s]listen socket failed, %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @new_server(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 12)
%10 = load i32, ptr @AF_INET, align 4
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %10, ptr %11, align 4
%12 = call i32 @htons(i32 noundef 5555)
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %12, ptr %13, align 4
%14 = load i32, ptr @INADDR_ANY, align 4
%15 = call i32 @htonl(i32 noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
store i32 %15, ptr %17, align 4
%18 = load i32, ptr @AF_INET, align 4
%19 = load i32, ptr @SOCK_STREAM, align 4
%20 = call i32 @socket(i32 noundef %18, i32 noundef %19, i32 noundef 0)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %2
%24 = load i32, ptr @LOG_CRIT, align 4
%25 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%26 = call i32 @get_cur_time(ptr noundef %25)
%27 = load i32, ptr @errno, align 4
%28 = call i32 @strerror(i32 noundef %27)
%29 = call i32 @log_printf(i32 noundef %24, ptr noundef @.str, i32 noundef %26, i32 noundef %28)
store i32 -1, ptr %3, align 4
br label %55
30: ; preds = %2
%31 = load i32, ptr %7, align 4
%32 = call i64 @bind(i32 noundef %31, ptr noundef %6, i32 noundef 12)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i32, ptr @LOG_CRIT, align 4
%36 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%37 = call i32 @get_cur_time(ptr noundef %36)
%38 = load i32, ptr @errno, align 4
%39 = call i32 @strerror(i32 noundef %38)
%40 = call i32 @log_printf(i32 noundef %35, ptr noundef @.str.1, i32 noundef %37, i32 noundef %39)
store i32 -1, ptr %3, align 4
br label %55
41: ; preds = %30
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %5, align 4
%44 = call i64 @listen(i32 noundef %42, i32 noundef %43)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %41
%47 = load i32, ptr @LOG_CRIT, align 4
%48 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%49 = call i32 @get_cur_time(ptr noundef %48)
%50 = load i32, ptr @errno, align 4
%51 = call i32 @strerror(i32 noundef %50)
%52 = call i32 @log_printf(i32 noundef %47, ptr noundef @.str.2, i32 noundef %49, i32 noundef %51)
store i32 -1, ptr %3, align 4
br label %55
53: ; preds = %41
%54 = load i32, ptr %7, align 4
store i32 %54, ptr %3, align 4
br label %55
55: ; preds = %53, %46, %34, %23
%56 = load i32, ptr %3, align 4
ret i32 %56
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @log_printf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @get_cur_time(ptr noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(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/tmpbsz4tvd2.c'
source_filename = "/tmp/tmpbsz4tvd2.c"
target datalayout = "e-m:e-p270: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/tmpbsz4tvd2.c"
target datalayout = "e-m:e-p270: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/tmpol0dsifo.c'
source_filename = "/tmp/tmpol0dsifo.c"
target datalayout = "e-m:e-p270: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/tmpol0dsifo.c"
target datalayout = "e-m:e-p270: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/tmp70mntmu5.c'
source_filename = "/tmp/tmp70mntmu5.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 -1, ptr %2, align 1
br label %3
3: ; preds = %0, %3
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fwrite(ptr noundef %2, i32 noundef 1, i32 noundef 1, i32 noundef %4)
br label %3
}
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp70mntmu5.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 -1, ptr %2, align 1
br label %3
3: ; preds = %3, %0
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fwrite(ptr noundef %2, i32 noundef 1, i32 noundef 1, i32 noundef %4)
br label %3
}
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp727ymhp.c'
source_filename = "/tmp/tmpp727ymhp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tml_sr_Conv(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%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 ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %29
24: ; preds = %5
%25 = load i32, ptr %7, align 4
store i32 %25, ptr %16, align 4
%26 = load i32, ptr %9, align 4
store i32 %26, ptr %17, align 4
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr %18, align 8
%28 = load ptr, ptr %8, align 8
store ptr %28, ptr %19, align 8
br label %34
29: ; preds = %5
%30 = load i32, ptr %9, align 4
store i32 %30, ptr %16, align 4
%31 = load i32, ptr %7, align 4
store i32 %31, ptr %17, align 4
%32 = load ptr, ptr %8, align 8
store ptr %32, ptr %18, align 8
%33 = load ptr, ptr %6, align 8
store ptr %33, ptr %19, align 8
br label %34
34: ; preds = %29, %24
%35 = load i32, ptr %16, align 4
%36 = call ptr @tml_sr_Malloc(i32 noundef %35)
store ptr %36, ptr %20, align 8
%37 = load i32, ptr %17, align 4
%38 = load i32, ptr %16, align 4
%39 = add nsw i32 %37, %38
%40 = sub nsw i32 %39, 1
store i32 %40, ptr %12, align 4
store i32 0, ptr %11, align 4
br label %41
41: ; preds = %58, %34
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %16, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %61
45: ; preds = %41
%46 = load ptr, ptr %18, align 8
%47 = load i32, ptr %11, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds float, ptr %46, i64 %48
%50 = load float, ptr %49, align 4
%51 = load ptr, ptr %20, align 8
%52 = load i32, ptr %16, align 4
%53 = load i32, ptr %11, align 4
%54 = sub nsw i32 %52, %53
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %51, i64 %56
store float %50, ptr %57, align 4
br label %58
58: ; preds = %45
%59 = load i32, ptr %11, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %11, align 4
br label %41, !llvm.loop !6
61: ; preds = %41
store i32 0, ptr %11, align 4
br label %62
62: ; preds = %129, %61
%63 = load i32, ptr %11, align 4
%64 = load i32, ptr %12, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %132
66: ; preds = %62
%67 = load i32, ptr %16, align 4
%68 = load i32, ptr %11, align 4
%69 = sub nsw i32 %67, %68
%70 = sub nsw i32 %69, 1
%71 = icmp sgt i32 %70, 0
br i1 %71, label %72, label %77
72: ; preds = %66
%73 = load i32, ptr %16, align 4
%74 = load i32, ptr %11, align 4
%75 = sub nsw i32 %73, %74
%76 = sub nsw i32 %75, 1
br label %78
77: ; preds = %66
br label %78
78: ; preds = %77, %72
%79 = phi i32 [ %76, %72 ], [ 0, %77 ]
store i32 %79, ptr %13, align 4
%80 = load i32, ptr %11, align 4
%81 = load i32, ptr %16, align 4
%82 = sub nsw i32 %80, %81
%83 = add nsw i32 %82, 1
%84 = icmp sgt i32 0, %83
br i1 %84, label %85, label %86
85: ; preds = %78
br label %91
86: ; preds = %78
%87 = load i32, ptr %11, align 4
%88 = load i32, ptr %16, align 4
%89 = sub nsw i32 %87, %88
%90 = add nsw i32 %89, 1
br label %91
91: ; preds = %86, %85
%92 = phi i32 [ 0, %85 ], [ %90, %86 ]
store i32 %92, ptr %14, align 4
%93 = load i32, ptr %11, align 4
%94 = add nsw i32 %93, 1
%95 = load i32, ptr %16, align 4
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %100
97: ; preds = %91
%98 = load i32, ptr %11, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %15, align 4
br label %114
100: ; preds = %91
%101 = load i32, ptr %11, align 4
%102 = load i32, ptr %12, align 4
%103 = load i32, ptr %16, align 4
%104 = sub nsw i32 %102, %103
%105 = sub nsw i32 %104, 1
%106 = icmp sgt i32 %101, %105
br i1 %106, label %107, label %111
107: ; preds = %100
%108 = load i32, ptr %12, align 4
%109 = load i32, ptr %11, align 4
%110 = sub nsw i32 %108, %109
store i32 %110, ptr %15, align 4
br label %113
111: ; preds = %100
%112 = load i32, ptr %16, align 4
store i32 %112, ptr %15, align 4
br label %113
113: ; preds = %111, %107
br label %114
114: ; preds = %113, %97
%115 = load ptr, ptr %20, align 8
%116 = load i32, ptr %13, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds float, ptr %115, i64 %117
%119 = load ptr, ptr %19, align 8
%120 = load i32, ptr %14, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, ptr %119, i64 %121
%123 = load i32, ptr %15, align 4
%124 = call float @tml_sr_vDotProd(ptr noundef %118, ptr noundef %122, i32 noundef %123)
%125 = load ptr, ptr %10, align 8
%126 = load i32, ptr %11, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds float, ptr %125, i64 %127
store float %124, ptr %128, align 4
br label %129
129: ; preds = %114
%130 = load i32, ptr %11, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %11, align 4
br label %62, !llvm.loop !8
132: ; preds = %62
%133 = load ptr, ptr %20, align 8
%134 = call i32 @free(ptr noundef %133)
ret void
}
declare ptr @tml_sr_Malloc(i32 noundef) #1
declare float @tml_sr_vDotProd(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp727ymhp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tml_sr_Conv(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%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 ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %29
24: ; preds = %5
%25 = load i32, ptr %7, align 4
store i32 %25, ptr %16, align 4
%26 = load i32, ptr %9, align 4
store i32 %26, ptr %17, align 4
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr %18, align 8
%28 = load ptr, ptr %8, align 8
store ptr %28, ptr %19, align 8
br label %34
29: ; preds = %5
%30 = load i32, ptr %9, align 4
store i32 %30, ptr %16, align 4
%31 = load i32, ptr %7, align 4
store i32 %31, ptr %17, align 4
%32 = load ptr, ptr %8, align 8
store ptr %32, ptr %18, align 8
%33 = load ptr, ptr %6, align 8
store ptr %33, ptr %19, align 8
br label %34
34: ; preds = %29, %24
%35 = load i32, ptr %16, align 4
%36 = call ptr @tml_sr_Malloc(i32 noundef %35)
store ptr %36, ptr %20, align 8
%37 = load i32, ptr %17, align 4
%38 = load i32, ptr %16, align 4
%39 = add nsw i32 %37, %38
%40 = sub nsw i32 %39, 1
store i32 %40, ptr %12, align 4
store i32 0, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = load i32, ptr %16, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph, label %63
.lr.ph: ; preds = %34
br label %44
44: ; preds = %.lr.ph, %57
%45 = load ptr, ptr %18, align 8
%46 = load i32, ptr %11, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds float, ptr %45, i64 %47
%49 = load float, ptr %48, align 4
%50 = load ptr, ptr %20, align 8
%51 = load i32, ptr %16, align 4
%52 = load i32, ptr %11, align 4
%53 = sub nsw i32 %51, %52
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds float, ptr %50, i64 %55
store float %49, ptr %56, align 4
br label %57
57: ; preds = %44
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %11, align 4
%60 = load i32, ptr %11, align 4
%61 = load i32, ptr %16, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %34
store i32 0, ptr %11, align 4
%64 = load i32, ptr %11, align 4
%65 = load i32, ptr %12, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %.lr.ph2, label %136
.lr.ph2: ; preds = %63
br label %67
67: ; preds = %.lr.ph2, %130
%68 = load i32, ptr %16, align 4
%69 = load i32, ptr %11, align 4
%70 = sub nsw i32 %68, %69
%71 = sub nsw i32 %70, 1
%72 = icmp sgt i32 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %67
%74 = load i32, ptr %16, align 4
%75 = load i32, ptr %11, align 4
%76 = sub nsw i32 %74, %75
%77 = sub nsw i32 %76, 1
br label %79
78: ; preds = %67
br label %79
79: ; preds = %78, %73
%80 = phi i32 [ %77, %73 ], [ 0, %78 ]
store i32 %80, ptr %13, align 4
%81 = load i32, ptr %11, align 4
%82 = load i32, ptr %16, align 4
%83 = sub nsw i32 %81, %82
%84 = add nsw i32 %83, 1
%85 = icmp sgt i32 0, %84
br i1 %85, label %86, label %87
86: ; preds = %79
br label %92
87: ; preds = %79
%88 = load i32, ptr %11, align 4
%89 = load i32, ptr %16, align 4
%90 = sub nsw i32 %88, %89
%91 = add nsw i32 %90, 1
br label %92
92: ; preds = %87, %86
%93 = phi i32 [ 0, %86 ], [ %91, %87 ]
store i32 %93, ptr %14, align 4
%94 = load i32, ptr %11, align 4
%95 = add nsw i32 %94, 1
%96 = load i32, ptr %16, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %101
98: ; preds = %92
%99 = load i32, ptr %11, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %15, align 4
br label %115
101: ; preds = %92
%102 = load i32, ptr %11, align 4
%103 = load i32, ptr %12, align 4
%104 = load i32, ptr %16, align 4
%105 = sub nsw i32 %103, %104
%106 = sub nsw i32 %105, 1
%107 = icmp sgt i32 %102, %106
br i1 %107, label %108, label %112
108: ; preds = %101
%109 = load i32, ptr %12, align 4
%110 = load i32, ptr %11, align 4
%111 = sub nsw i32 %109, %110
store i32 %111, ptr %15, align 4
br label %114
112: ; preds = %101
%113 = load i32, ptr %16, align 4
store i32 %113, ptr %15, align 4
br label %114
114: ; preds = %112, %108
br label %115
115: ; preds = %114, %98
%116 = load ptr, ptr %20, align 8
%117 = load i32, ptr %13, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds float, ptr %116, i64 %118
%120 = load ptr, ptr %19, align 8
%121 = load i32, ptr %14, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds float, ptr %120, i64 %122
%124 = load i32, ptr %15, align 4
%125 = call float @tml_sr_vDotProd(ptr noundef %119, ptr noundef %123, i32 noundef %124)
%126 = load ptr, ptr %10, align 8
%127 = load i32, ptr %11, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds float, ptr %126, i64 %128
store float %125, ptr %129, align 4
br label %130
130: ; preds = %115
%131 = load i32, ptr %11, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %11, align 4
%133 = load i32, ptr %11, align 4
%134 = load i32, ptr %12, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %67, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %130
br label %136
136: ; preds = %._crit_edge3, %63
%137 = load ptr, ptr %20, align 8
%138 = call i32 @free(ptr noundef %137)
ret void
}
declare ptr @tml_sr_Malloc(i32 noundef) #1
declare float @tml_sr_vDotProd(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}
|
; ModuleID = '/tmp/tmpx5onqxei.c'
source_filename = "/tmp/tmpx5onqxei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a.o65\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"~\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"\0Adots+pills = %d\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 -1, ptr %1, align 4
br label %67
12: ; preds = %0
store i32 0, ptr %4, align 4
br label %13
13: ; preds = %59, %12
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 31
br i1 %15, label %16, label %62
16: ; preds = %13
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %54, %16
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 16
br i1 %19, label %20, label %57
20: ; preds = %17
%21 = load ptr, ptr %2, align 8
%22 = call i32 @fgetc(ptr noundef %21)
store i32 %22, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %23
23: ; preds = %50, %20
%24 = load i32, ptr %5, align 4
%25 = icmp slt i32 %24, 2
br i1 %25, label %26, label %53
26: ; preds = %23
%27 = load i32, ptr %6, align 4
%28 = and i32 %27, 240
switch i32 %28, label %45 [
i32 128, label %29
i32 144, label %31
i32 64, label %33
i32 32, label %37
i32 0, label %41
i32 16, label %43
]
29: ; preds = %26
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %47
31: ; preds = %26
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %47
33: ; preds = %26
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %47
37: ; preds = %26
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
br label %47
41: ; preds = %26
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %47
43: ; preds = %26
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %47
45: ; preds = %26
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %47
47: ; preds = %45, %43, %41, %37, %33, %31, %29
%48 = load i32, ptr %6, align 4
%49 = shl i32 %48, 4
store i32 %49, ptr %6, align 4
br label %50
50: ; preds = %47
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
br label %23, !llvm.loop !6
53: ; preds = %23
br label %54
54: ; preds = %53
%55 = load i32, ptr %3, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %3, align 4
br label %17, !llvm.loop !8
57: ; preds = %17
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %59
59: ; preds = %57
%60 = load i32, ptr %4, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %4, align 4
br label %13, !llvm.loop !9
62: ; preds = %13
%63 = load i32, ptr %7, align 4
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %63)
%65 = load ptr, ptr %2, align 8
%66 = call i32 @fclose(ptr noundef %65)
store i32 0, ptr %1, align 4
br label %67
67: ; preds = %62, %11
%68 = load i32, ptr %1, align 4
ret i32 %68
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @printf(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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx5onqxei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a.o65\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"~\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"\0Adots+pills = %d\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 -1, ptr %1, align 4
br label %70
12: ; preds = %0
store i32 0, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 31
br i1 %14, label %.lr.ph5, label %65
.lr.ph5: ; preds = %12
br label %15
15: ; preds = %.lr.ph5, %60
store i32 0, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 16
br i1 %17, label %.lr.ph2, label %58
.lr.ph2: ; preds = %15
br label %18
18: ; preds = %.lr.ph2, %53
%19 = load ptr, ptr %2, align 8
%20 = call i32 @fgetc(ptr noundef %19)
store i32 %20, ptr %6, align 4
store i32 0, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 2
br i1 %22, label %.lr.ph, label %52
.lr.ph: ; preds = %18
br label %23
23: ; preds = %.lr.ph, %47
%24 = load i32, ptr %6, align 4
%25 = and i32 %24, 240
switch i32 %25, label %42 [
i32 128, label %26
i32 144, label %28
i32 64, label %30
i32 32, label %34
i32 0, label %38
i32 16, label %40
]
26: ; preds = %23
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %44
28: ; preds = %23
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %44
30: ; preds = %23
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
br label %44
34: ; preds = %23
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
br label %44
38: ; preds = %23
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %44
40: ; preds = %23
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %44
42: ; preds = %23
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %44
44: ; preds = %42, %40, %38, %34, %30, %28, %26
%45 = load i32, ptr %6, align 4
%46 = shl i32 %45, 4
store i32 %46, ptr %6, align 4
br label %47
47: ; preds = %44
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = icmp slt i32 %50, 2
br i1 %51, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %52
52: ; preds = %._crit_edge, %18
br label %53
53: ; preds = %52
%54 = load i32, ptr %3, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %3, align 4
%56 = load i32, ptr %3, align 4
%57 = icmp slt i32 %56, 16
br i1 %57, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %58
58: ; preds = %._crit_edge3, %15
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %60
60: ; preds = %58
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
%63 = load i32, ptr %4, align 4
%64 = icmp slt i32 %63, 31
br i1 %64, label %15, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %65
65: ; preds = %._crit_edge6, %12
%66 = load i32, ptr %7, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %66)
%68 = load ptr, ptr %2, align 8
%69 = call i32 @fclose(ptr noundef %68)
store i32 0, ptr %1, align 4
br label %70
70: ; preds = %65, %11
%71 = load i32, ptr %1, align 4
ret i32 %71
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @printf(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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpl3mzt58y.c'
source_filename = "/tmp/tmpl3mzt58y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_default_storage_first_message() #0 {
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl3mzt58y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_default_storage_first_message() #0 {
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgc_1zmcf.c'
source_filename = "/tmp/tmpgc_1zmcf.c"
target datalayout = "e-m:e-p270: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/tmpgc_1zmcf.c"
target datalayout = "e-m:e-p270: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/tmp4aj8igvf.c'
source_filename = "/tmp/tmp4aj8igvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@get_state.duff = internal global [64 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [10 x i8] c"Running \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Sleeping \00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"DiskSleep\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Zombie \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Traced \00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"Paging \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_state(i8 noundef signext %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
switch i32 %5, label %12 [
i32 82, label %6
i32 83, label %7
i32 68, label %8
i32 90, label %9
i32 84, label %10
i32 87, label %11
]
6: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %15
7: ; preds = %1
store ptr @.str.1, ptr %2, align 8
br label %15
8: ; preds = %1
store ptr @.str.2, ptr %2, align 8
br label %15
9: ; preds = %1
store ptr @.str.3, ptr %2, align 8
br label %15
10: ; preds = %1
store ptr @.str.4, ptr %2, align 8
br label %15
11: ; preds = %1
store ptr @.str.5, ptr %2, align 8
br label %15
12: ; preds = %1
%13 = load i8, ptr %3, align 1
%14 = call i32 @sprintf(ptr noundef @get_state.duff, ptr noundef @.str.6, i8 noundef signext %13)
store ptr @get_state.duff, ptr %2, align 8
br label %15
15: ; preds = %12, %11, %10, %9, %8, %7, %6
%16 = load ptr, ptr %2, align 8
ret ptr %16
}
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4aj8igvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@get_state.duff = internal global [64 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [10 x i8] c"Running \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Sleeping \00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"DiskSleep\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Zombie \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Traced \00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"Paging \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_state(i8 noundef signext %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
switch i32 %5, label %12 [
i32 82, label %6
i32 83, label %7
i32 68, label %8
i32 90, label %9
i32 84, label %10
i32 87, label %11
]
6: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %15
7: ; preds = %1
store ptr @.str.1, ptr %2, align 8
br label %15
8: ; preds = %1
store ptr @.str.2, ptr %2, align 8
br label %15
9: ; preds = %1
store ptr @.str.3, ptr %2, align 8
br label %15
10: ; preds = %1
store ptr @.str.4, ptr %2, align 8
br label %15
11: ; preds = %1
store ptr @.str.5, ptr %2, align 8
br label %15
12: ; preds = %1
%13 = load i8, ptr %3, align 1
%14 = call i32 @sprintf(ptr noundef @get_state.duff, ptr noundef @.str.6, i8 noundef signext %13)
store ptr @get_state.duff, ptr %2, align 8
br label %15
15: ; preds = %12, %11, %10, %9, %8, %7, %6
%16 = load ptr, ptr %2, align 8
ret ptr %16
}
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfpiadbxn.c'
source_filename = "/tmp/tmpfpiadbxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"\\t\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\\b\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\\\\\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %18, %0
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %19
7: ; preds = %3
%8 = load i32, ptr %2, align 4
switch i32 %8, label %15 [
i32 9, label %9
i32 8, label %11
i32 92, label %13
]
9: ; preds = %7
%10 = call i32 @printf(ptr noundef @.str)
br label %18
11: ; preds = %7
%12 = call i32 @printf(ptr noundef @.str.1)
br label %18
13: ; preds = %7
%14 = call i32 @printf(ptr noundef @.str.2)
br label %18
15: ; preds = %7
%16 = load i32, ptr %2, align 4
%17 = call i32 @putchar(i32 noundef %16)
br label %18
18: ; preds = %15, %13, %11, %9
br label %3, !llvm.loop !6
19: ; preds = %3
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @putchar(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/tmpfpiadbxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"\\t\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\\b\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\\\\\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getchar()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr @EOF, align 4
%5 = icmp ne i32 %3, %4
br i1 %5, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %17
%7 = load i32, ptr %2, align 4
switch i32 %7, label %14 [
i32 9, label %8
i32 8, label %10
i32 92, label %12
]
8: ; preds = %6
%9 = call i32 @printf(ptr noundef @.str)
br label %17
10: ; preds = %6
%11 = call i32 @printf(ptr noundef @.str.1)
br label %17
12: ; preds = %6
%13 = call i32 @printf(ptr noundef @.str.2)
br label %17
14: ; preds = %6
%15 = load i32, ptr %2, align 4
%16 = call i32 @putchar(i32 noundef %15)
br label %17
17: ; preds = %14, %12, %10, %8
%18 = call i32 (...) @getchar()
store i32 %18, ptr %2, align 4
%19 = load i32, ptr @EOF, align 4
%20 = icmp ne i32 %18, %19
br i1 %20, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %21
21: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @putchar(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/tmp09bcbjp0.c'
source_filename = "/tmp/tmp09bcbjp0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_int_array(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 %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %21, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %24
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
br label %21
21: ; preds = %14
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
br label %10, !llvm.loop !6
24: ; preds = %10
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp09bcbjp0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_int_array(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 %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %26
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %20
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %3
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpluw5pk_p.c'
source_filename = "/tmp/tmpluw5pk_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @addnmeacksum(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = sext i32 %7 to i64
%10 = getelementptr inbounds i8, ptr %8, i64 %9
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %4, align 8
store i8 42, ptr %11, align 1
%13 = load ptr, ptr %4, align 8
store i8 0, ptr %13, align 1
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %2, align 8
br label %16
16: ; preds = %28, %1
%17 = load ptr, ptr %2, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = load ptr, ptr %2, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 42
br label %26
26: ; preds = %21, %16
%27 = phi i1 [ false, %16 ], [ %25, %21 ]
br i1 %27, label %28, label %35
28: ; preds = %26
%29 = load ptr, ptr %2, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %2, align 8
%31 = load i8, ptr %29, align 1
%32 = sext i8 %31 to i32
%33 = load i32, ptr %3, align 4
%34 = xor i32 %33, %32
store i32 %34, ptr %3, align 4
br label %16, !llvm.loop !6
35: ; preds = %26
%36 = load i32, ptr %3, align 4
%37 = and i32 %36, 255
store i32 %37, ptr %3, align 4
%38 = load ptr, ptr %2, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %2, align 8
%40 = load i32, ptr %3, align 4
%41 = call i32 @sprintf(ptr noundef %39, ptr noundef @.str, i32 noundef %40)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpluw5pk_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @addnmeacksum(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = sext i32 %7 to i64
%10 = getelementptr inbounds i8, ptr %8, i64 %9
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %4, align 8
store i8 42, ptr %11, align 1
%13 = load ptr, ptr %4, align 8
store i8 0, ptr %13, align 1
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %2, align 8
br label %16
16: ; preds = %28, %1
%17 = load ptr, ptr %2, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = load ptr, ptr %2, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 42
br label %26
26: ; preds = %21, %16
%27 = phi i1 [ false, %16 ], [ %25, %21 ]
br i1 %27, label %28, label %35
28: ; preds = %26
%29 = load ptr, ptr %2, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %2, align 8
%31 = load i8, ptr %29, align 1
%32 = sext i8 %31 to i32
%33 = load i32, ptr %3, align 4
%34 = xor i32 %33, %32
store i32 %34, ptr %3, align 4
br label %16, !llvm.loop !6
35: ; preds = %26
%36 = load i32, ptr %3, align 4
%37 = and i32 %36, 255
store i32 %37, ptr %3, align 4
%38 = load ptr, ptr %2, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %2, align 8
%40 = load i32, ptr %3, align 4
%41 = call i32 @sprintf(ptr noundef %39, ptr noundef @.str, i32 noundef %40)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpm0870nxc.c'
source_filename = "/tmp/tmpm0870nxc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mintaka_index_allocate3_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = load i32, ptr %16, align 4
%18 = call i32 @mintaka_index_allocate3(ptr noundef %11, i32 noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef %17)
ret i32 %18
}
declare i32 @mintaka_index_allocate3(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm0870nxc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mintaka_index_allocate3_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = load i32, ptr %16, align 4
%18 = call i32 @mintaka_index_allocate3(ptr noundef %11, i32 noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef %17)
ret i32 %18
}
declare i32 @mintaka_index_allocate3(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9hq853me.c'
source_filename = "/tmp/tmp9hq853me.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ASN1_TIME_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ASN1_TIME_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @ASN1_TIME_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9hq853me.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ASN1_TIME_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ASN1_TIME_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @ASN1_TIME_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw742dmka.c'
source_filename = "/tmp/tmpw742dmka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 3, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @power(i32 noundef %4, i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @power(i32 noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw742dmka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 3, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @power(i32 noundef %4, i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @power(i32 noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc0t4__t6.c'
source_filename = "/tmp/tmpc0t4__t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_value_test() #0 {
%1 = call i32 (...) @s_value_basic_test()
%2 = call i32 (...) @s_value_array_test()
ret void
}
declare i32 @s_value_basic_test(...) #1
declare i32 @s_value_array_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc0t4__t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_value_test() #0 {
%1 = call i32 (...) @s_value_basic_test()
%2 = call i32 (...) @s_value_array_test()
ret void
}
declare i32 @s_value_basic_test(...) #1
declare i32 @s_value_array_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfzovdmnn.c'
source_filename = "/tmp/tmpfzovdmnn.c"
target datalayout = "e-m:e-p270: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/tmpfzovdmnn.c"
target datalayout = "e-m:e-p270: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/tmpzp6qdxkk.c'
source_filename = "/tmp/tmpzp6qdxkk.c"
target datalayout = "e-m:e-p270: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.passwd = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getuid_by_loginname(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %17
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call ptr @getpwnam(ptr noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds %struct.passwd, ptr %13, i32 0, i32 0
%15 = load i32, ptr %14, align 4
store i32 %15, ptr %2, align 4
br label %18
16: ; preds = %7
br label %17
17: ; preds = %16, %1
store i32 -1, ptr %2, align 4
br label %18
18: ; preds = %17, %12
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare ptr @getpwnam(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzp6qdxkk.c"
target datalayout = "e-m:e-p270: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.passwd = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getuid_by_loginname(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %17
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call ptr @getpwnam(ptr noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds %struct.passwd, ptr %13, i32 0, i32 0
%15 = load i32, ptr %14, align 4
store i32 %15, ptr %2, align 4
br label %18
16: ; preds = %7
br label %17
17: ; preds = %16, %1
store i32 -1, ptr %2, align 4
br label %18
18: ; preds = %17, %12
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare ptr @getpwnam(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk1adazod.c'
source_filename = "/tmp/tmpk1adazod.c"
target datalayout = "e-m:e-p270: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/tmpk1adazod.c"
target datalayout = "e-m:e-p270: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/tmpim9olqai.c'
source_filename = "/tmp/tmpim9olqai.c"
target datalayout = "e-m:e-p270: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_RDWR = dso_local global i32 0, align 4
@O_SYNC = 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/tmpim9olqai.c"
target datalayout = "e-m:e-p270: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_RDWR = dso_local global i32 0, align 4
@O_SYNC = 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/tmp6fsg8ss5.c'
source_filename = "/tmp/tmp6fsg8ss5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"entre com um texto: \00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"entre com um letra que estaja na frase: \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"entre com outra letra: \00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"\0Aa letra %c foi tracada %d vezes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [15 x i8], align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @gets(ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%11 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%12 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%13 = load i8, ptr %3, align 1
%14 = load i8, ptr %4, align 1
%15 = call i32 @substitui(ptr noundef %12, i8 noundef signext %13, i8 noundef signext %14)
store i32 %15, ptr %1, align 4
%16 = load i8, ptr %3, align 1
%17 = sext i8 %16 to i32
%18 = load i32, ptr %1, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %17, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @substitui(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6fsg8ss5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"entre com um texto: \00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"entre com um letra que estaja na frase: \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"entre com outra letra: \00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"\0Aa letra %c foi tracada %d vezes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [15 x i8], align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @gets(ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%11 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%12 = getelementptr inbounds [15 x i8], ptr %2, i64 0, i64 0
%13 = load i8, ptr %3, align 1
%14 = load i8, ptr %4, align 1
%15 = call i32 @substitui(ptr noundef %12, i8 noundef signext %13, i8 noundef signext %14)
store i32 %15, ptr %1, align 4
%16 = load i8, ptr %3, align 1
%17 = sext i8 %16 to i32
%18 = load i32, ptr %1, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %17, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @substitui(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk0r4c_kz.c'
source_filename = "/tmp/tmpk0r4c_kz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 1, ptr %1, align 4
br label %4
4: ; preds = %25, %0
%5 = load i32, ptr %1, align 4
%6 = icmp ne i32 %5, 11
br i1 %6, label %7, label %28
7: ; preds = %4
store i32 1, ptr %2, align 4
br label %8
8: ; preds = %17, %7
%9 = load i32, ptr %2, align 4
%10 = icmp ne i32 %9, 11
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = load i32, ptr %1, align 4
%13 = load i32, ptr %2, align 4
%14 = mul nsw i32 %12, %13
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @printn(i32 noundef %15)
br label %17
17: ; preds = %11
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = load i32, ptr %1, align 4
%22 = icmp eq i32 %21, 5
br i1 %22, label %23, label %24
23: ; preds = %20
br label %28
24: ; preds = %20
br label %25
25: ; preds = %24
%26 = load i32, ptr %1, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %1, align 4
br label %4, !llvm.loop !8
28: ; preds = %23, %4
ret void
}
declare i32 @printn(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/tmpk0r4c_kz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 1, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = icmp ne i32 %4, 11
br i1 %5, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %0
br label %6
6: ; preds = %.lr.ph2, %25
store i32 1, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 11
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %6
br label %9
9: ; preds = %.lr.ph, %15
%10 = load i32, ptr %1, align 4
%11 = load i32, ptr %2, align 4
%12 = mul nsw i32 %10, %11
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 @printn(i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp ne i32 %18, 11
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %6
%21 = load i32, ptr %1, align 4
%22 = icmp eq i32 %21, 5
br i1 %22, label %23, label %24
23: ; preds = %20
br label %30
24: ; preds = %20
br label %25
25: ; preds = %24
%26 = load i32, ptr %1, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %1, align 4
%28 = load i32, ptr %1, align 4
%29 = icmp ne i32 %28, 11
br i1 %29, label %6, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %25
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %30
30: ; preds = %.loopexit, %23
ret void
}
declare i32 @printn(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/tmp407_bvtb.c'
source_filename = "/tmp/tmp407_bvtb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsm_logical_eq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = call ptr (...) @fsm_universal()
%6 = load ptr, ptr %3, align 8
%7 = call ptr @fsm_symbol(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fsm_symbol(ptr noundef %8)
%10 = call ptr @fsm_concat(ptr noundef %7, ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fsm_symbol(ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call ptr @fsm_symbol(ptr noundef %13)
%15 = call ptr @fsm_concat(ptr noundef %12, ptr noundef %14)
%16 = call i32 @fsm_union(ptr noundef %10, ptr noundef %15)
%17 = call i32 (...) @union_quantifiers()
%18 = call ptr @fsm_ignore(i32 noundef %16, i32 noundef %17, i32 noundef 1)
%19 = call ptr (...) @fsm_universal()
%20 = load ptr, ptr %3, align 8
%21 = call ptr @fsm_symbol(ptr noundef %20)
%22 = load ptr, ptr %4, align 8
%23 = call ptr @fsm_symbol(ptr noundef %22)
%24 = call ptr @fsm_concat(ptr noundef %21, ptr noundef %23)
%25 = load ptr, ptr %4, align 8
%26 = call ptr @fsm_symbol(ptr noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = call ptr @fsm_symbol(ptr noundef %27)
%29 = call ptr @fsm_concat(ptr noundef %26, ptr noundef %28)
%30 = call i32 @fsm_union(ptr noundef %24, ptr noundef %29)
%31 = call i32 (...) @union_quantifiers()
%32 = call ptr @fsm_ignore(i32 noundef %30, i32 noundef %31, i32 noundef 1)
%33 = call ptr (...) @fsm_universal()
%34 = call ptr @fsm_concat(ptr noundef %32, ptr noundef %33)
%35 = call ptr @fsm_concat(ptr noundef %19, ptr noundef %34)
%36 = call ptr @fsm_concat(ptr noundef %18, ptr noundef %35)
%37 = call ptr @fsm_concat(ptr noundef %5, ptr noundef %36)
ret ptr %37
}
declare ptr @fsm_concat(ptr noundef, ptr noundef) #1
declare ptr @fsm_universal(...) #1
declare ptr @fsm_ignore(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fsm_union(ptr noundef, ptr noundef) #1
declare ptr @fsm_symbol(ptr noundef) #1
declare i32 @union_quantifiers(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp407_bvtb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsm_logical_eq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = call ptr (...) @fsm_universal()
%6 = load ptr, ptr %3, align 8
%7 = call ptr @fsm_symbol(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fsm_symbol(ptr noundef %8)
%10 = call ptr @fsm_concat(ptr noundef %7, ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fsm_symbol(ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call ptr @fsm_symbol(ptr noundef %13)
%15 = call ptr @fsm_concat(ptr noundef %12, ptr noundef %14)
%16 = call i32 @fsm_union(ptr noundef %10, ptr noundef %15)
%17 = call i32 (...) @union_quantifiers()
%18 = call ptr @fsm_ignore(i32 noundef %16, i32 noundef %17, i32 noundef 1)
%19 = call ptr (...) @fsm_universal()
%20 = load ptr, ptr %3, align 8
%21 = call ptr @fsm_symbol(ptr noundef %20)
%22 = load ptr, ptr %4, align 8
%23 = call ptr @fsm_symbol(ptr noundef %22)
%24 = call ptr @fsm_concat(ptr noundef %21, ptr noundef %23)
%25 = load ptr, ptr %4, align 8
%26 = call ptr @fsm_symbol(ptr noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = call ptr @fsm_symbol(ptr noundef %27)
%29 = call ptr @fsm_concat(ptr noundef %26, ptr noundef %28)
%30 = call i32 @fsm_union(ptr noundef %24, ptr noundef %29)
%31 = call i32 (...) @union_quantifiers()
%32 = call ptr @fsm_ignore(i32 noundef %30, i32 noundef %31, i32 noundef 1)
%33 = call ptr (...) @fsm_universal()
%34 = call ptr @fsm_concat(ptr noundef %32, ptr noundef %33)
%35 = call ptr @fsm_concat(ptr noundef %19, ptr noundef %34)
%36 = call ptr @fsm_concat(ptr noundef %18, ptr noundef %35)
%37 = call ptr @fsm_concat(ptr noundef %5, ptr noundef %36)
ret ptr %37
}
declare ptr @fsm_concat(ptr noundef, ptr noundef) #1
declare ptr @fsm_universal(...) #1
declare ptr @fsm_ignore(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fsm_union(ptr noundef, ptr noundef) #1
declare ptr @fsm_symbol(ptr noundef) #1
declare i32 @union_quantifiers(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxy9b2yjt.c'
source_filename = "/tmp/tmpxy9b2yjt.c"
target datalayout = "e-m:e-p270: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.in_addr = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_IP = dso_local global i32 0, align 4
@IP_MULTICAST_IF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @multicast_speak(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.in_addr, align 4
store ptr %0, ptr %3, align 8
%6 = load i32, ptr @AF_INET, align 4
%7 = load i32, ptr @SOCK_DGRAM, align 4
%8 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef 0)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 0, ptr %2, align 4
br label %26
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @inet_addr(ptr noundef %13)
%15 = getelementptr inbounds %struct.in_addr, ptr %5, i32 0, i32 0
store i32 %14, ptr %15, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr @IPPROTO_IP, align 4
%18 = load i32, ptr @IP_MULTICAST_IF, align 4
%19 = call i64 @setsockopt(i32 noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %5, i32 noundef 4)
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %12
%22 = load i32, ptr %4, align 4
%23 = call i32 @close(i32 noundef %22)
store i32 0, ptr %2, align 4
br label %26
24: ; preds = %12
%25 = load i32, ptr %4, align 4
store i32 %25, ptr %2, align 4
br label %26
26: ; preds = %24, %21, %11
%27 = load i32, ptr %2, align 4
ret i32 %27
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxy9b2yjt.c"
target datalayout = "e-m:e-p270: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.in_addr = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_IP = dso_local global i32 0, align 4
@IP_MULTICAST_IF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @multicast_speak(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.in_addr, align 4
store ptr %0, ptr %3, align 8
%6 = load i32, ptr @AF_INET, align 4
%7 = load i32, ptr @SOCK_DGRAM, align 4
%8 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef 0)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 0, ptr %2, align 4
br label %26
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @inet_addr(ptr noundef %13)
%15 = getelementptr inbounds %struct.in_addr, ptr %5, i32 0, i32 0
store i32 %14, ptr %15, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr @IPPROTO_IP, align 4
%18 = load i32, ptr @IP_MULTICAST_IF, align 4
%19 = call i64 @setsockopt(i32 noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %5, i32 noundef 4)
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %12
%22 = load i32, ptr %4, align 4
%23 = call i32 @close(i32 noundef %22)
store i32 0, ptr %2, align 4
br label %26
24: ; preds = %12
%25 = load i32, ptr %4, align 4
store i32 %25, ptr %2, align 4
br label %26
26: ; preds = %24, %21, %11
%27 = load i32, ptr %2, align 4
ret i32 %27
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_gksa0iy.c'
source_filename = "/tmp/tmp_gksa0iy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"Total: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %20, %0
%5 = call i32 (...) @getchar()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr @EOF, align 4
%7 = icmp ne i32 %5, %6
br i1 %7, label %8, label %21
8: ; preds = %4
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, 32
br i1 %10, label %17, label %11
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 9
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = icmp eq i32 %15, 10
br i1 %16, label %17, label %20
17: ; preds = %14, %11, %8
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %17, %14
br label %4, !llvm.loop !6
21: ; preds = %4
%22 = load i32, ptr %2, align 4
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
ret i32 0
}
declare i32 @getchar(...) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_gksa0iy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"Total: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %19
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 32
br i1 %9, label %16, label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 9
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 10
br i1 %15, label %16, label %19
16: ; preds = %13, %10, %7
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %2, align 4
br label %19
19: ; preds = %16, %13
%20 = call i32 (...) @getchar()
store i32 %20, ptr %3, align 4
%21 = load i32, ptr @EOF, align 4
%22 = icmp ne i32 %20, %21
br i1 %22, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %23
23: ; preds = %._crit_edge, %0
%24 = load i32, ptr %2, align 4
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %24)
ret i32 0
}
declare i32 @getchar(...) #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"}
|
; ModuleID = '/tmp/tmpnss579iq.c'
source_filename = "/tmp/tmpnss579iq.c"
target datalayout = "e-m:e-p270: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/tmpnss579iq.c"
target datalayout = "e-m:e-p270: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/tmpr0od62kq.c'
source_filename = "/tmp/tmpr0od62kq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isdigit should be 0 for l\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0x6c() #0 {
%1 = call i64 @isdigit(i32 noundef 108)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 545, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmpr0od62kq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isdigit should be 0 for l\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0x6c() #0 {
%1 = call i64 @isdigit(i32 noundef 108)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 545, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmp7ma2lfpg.c'
source_filename = "/tmp/tmp7ma2lfpg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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".Z\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c".gz\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".bz2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @itsit(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 115
br i1 %13, label %14, label %27
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 46
br i1 %19, label %20, label %27
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 2
%24 = call i32 @itsit(ptr noundef %21, ptr noundef %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %20
store i32 1, ptr %3, align 4
br label %160
27: ; preds = %20, %14, %2
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = getelementptr inbounds i8, ptr %31, i64 -2
%33 = call i32 @strcmp(ptr noundef %32, ptr noundef @.str)
%34 = icmp ne i32 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %27
%36 = load i32, ptr %6, align 4
%37 = sub nsw i32 %36, 2
store i32 %37, ptr %6, align 4
br label %62
38: ; preds = %27
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = getelementptr inbounds i8, ptr %42, i64 -3
%44 = call i32 @strcmp(ptr noundef %43, ptr noundef @.str.1)
%45 = icmp ne i32 %44, 0
br i1 %45, label %49, label %46
46: ; preds = %38
%47 = load i32, ptr %6, align 4
%48 = sub nsw i32 %47, 3
store i32 %48, ptr %6, align 4
br label %61
49: ; preds = %38
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = getelementptr inbounds i8, ptr %53, i64 -4
%55 = call i32 @strcmp(ptr noundef %54, ptr noundef @.str.2)
%56 = icmp ne i32 %55, 0
br i1 %56, label %60, label %57
57: ; preds = %49
%58 = load i32, ptr %6, align 4
%59 = sub nsw i32 %58, 4
store i32 %59, ptr %6, align 4
br label %60
60: ; preds = %57, %49
br label %61
61: ; preds = %60, %46
br label %62
62: ; preds = %61, %35
br label %63
63: ; preds = %83, %62
%64 = load ptr, ptr %4, align 8
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %81
68: ; preds = %63
%69 = load ptr, ptr %5, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %81
73: ; preds = %68
%74 = load ptr, ptr %4, align 8
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = load ptr, ptr %5, align 8
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %76, %79
br label %81
81: ; preds = %73, %68, %63
%82 = phi i1 [ false, %68 ], [ false, %63 ], [ %80, %73 ]
br i1 %82, label %83, label %90
83: ; preds = %81
%84 = load ptr, ptr %4, align 8
%85 = getelementptr inbounds i8, ptr %84, i32 1
store ptr %85, ptr %4, align 8
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %5, align 8
%88 = load i32, ptr %6, align 4
%89 = add nsw i32 %88, -1
store i32 %89, ptr %6, align 4
br label %63, !llvm.loop !6
90: ; preds = %81
%91 = load ptr, ptr %4, align 8
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %101
95: ; preds = %90
%96 = load ptr, ptr %5, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %95
store i32 1, ptr %3, align 4
br label %160
101: ; preds = %95, %90
br label %102
102: ; preds = %107, %101
%103 = load ptr, ptr %5, align 8
%104 = load i8, ptr %103, align 1
%105 = call i64 @isdigit(i8 noundef signext %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %102
%108 = load ptr, ptr %5, align 8
%109 = getelementptr inbounds i8, ptr %108, i32 1
store ptr %109, ptr %5, align 8
br label %102, !llvm.loop !8
110: ; preds = %102
%111 = load ptr, ptr %4, align 8
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %159
115: ; preds = %110
%116 = load ptr, ptr %5, align 8
%117 = getelementptr inbounds i8, ptr %116, i32 1
store ptr %117, ptr %5, align 8
%118 = load i8, ptr %116, align 1
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 46
br i1 %120, label %121, label %159
121: ; preds = %115
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, -1
store i32 %123, ptr %6, align 4
br label %124
124: ; preds = %157, %121
%125 = load i32, ptr %6, align 4
%126 = icmp sgt i32 %125, 0
br i1 %126, label %127, label %132
127: ; preds = %124
%128 = load ptr, ptr %5, align 8
%129 = load i8, ptr %128, align 1
%130 = sext i8 %129 to i32
%131 = icmp ne i32 %130, 0
br label %132
132: ; preds = %127, %124
%133 = phi i1 [ false, %124 ], [ %131, %127 ]
br i1 %133, label %134, label %158
134: ; preds = %132
%135 = load i32, ptr %6, align 4
%136 = add nsw i32 %135, -1
store i32 %136, ptr %6, align 4
%137 = load ptr, ptr %5, align 8
%138 = getelementptr inbounds i8, ptr %137, i32 1
store ptr %138, ptr %5, align 8
%139 = load i8, ptr %137, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 46
br i1 %141, label %142, label %157
142: ; preds = %134
%143 = load ptr, ptr %5, align 8
%144 = getelementptr inbounds i8, ptr %143, i32 1
store ptr %144, ptr %5, align 8
%145 = load i8, ptr %143, align 1
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 67
br i1 %147, label %148, label %154
148: ; preds = %142
%149 = load ptr, ptr %5, align 8
%150 = getelementptr inbounds i8, ptr %149, i32 1
store ptr %150, ptr %5, align 8
%151 = load i8, ptr %149, align 1
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 0
br label %154
154: ; preds = %148, %142
%155 = phi i1 [ false, %142 ], [ %153, %148 ]
%156 = zext i1 %155 to i32
store i32 %156, ptr %3, align 4
br label %160
157: ; preds = %134
br label %124, !llvm.loop !9
158: ; preds = %132
store i32 1, ptr %3, align 4
br label %160
159: ; preds = %115, %110
store i32 0, ptr %3, align 4
br label %160
160: ; preds = %159, %158, %154, %100, %26
%161 = load i32, ptr %3, align 4
ret i32 %161
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @isdigit(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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ma2lfpg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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".Z\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c".gz\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".bz2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @itsit(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 115
br i1 %13, label %14, label %27
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 46
br i1 %19, label %20, label %27
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 2
%24 = call i32 @itsit(ptr noundef %21, ptr noundef %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %20
store i32 1, ptr %3, align 4
br label %162
27: ; preds = %20, %14, %2
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = getelementptr inbounds i8, ptr %31, i64 -2
%33 = call i32 @strcmp(ptr noundef %32, ptr noundef @.str)
%34 = icmp ne i32 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %27
%36 = load i32, ptr %6, align 4
%37 = sub nsw i32 %36, 2
store i32 %37, ptr %6, align 4
br label %62
38: ; preds = %27
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = getelementptr inbounds i8, ptr %42, i64 -3
%44 = call i32 @strcmp(ptr noundef %43, ptr noundef @.str.1)
%45 = icmp ne i32 %44, 0
br i1 %45, label %49, label %46
46: ; preds = %38
%47 = load i32, ptr %6, align 4
%48 = sub nsw i32 %47, 3
store i32 %48, ptr %6, align 4
br label %61
49: ; preds = %38
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = getelementptr inbounds i8, ptr %53, i64 -4
%55 = call i32 @strcmp(ptr noundef %54, ptr noundef @.str.2)
%56 = icmp ne i32 %55, 0
br i1 %56, label %60, label %57
57: ; preds = %49
%58 = load i32, ptr %6, align 4
%59 = sub nsw i32 %58, 4
store i32 %59, ptr %6, align 4
br label %60
60: ; preds = %57, %49
br label %61
61: ; preds = %60, %46
br label %62
62: ; preds = %61, %35
br label %63
63: ; preds = %83, %62
%64 = load ptr, ptr %4, align 8
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %81
68: ; preds = %63
%69 = load ptr, ptr %5, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %81
73: ; preds = %68
%74 = load ptr, ptr %4, align 8
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = load ptr, ptr %5, align 8
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %76, %79
br label %81
81: ; preds = %73, %68, %63
%82 = phi i1 [ false, %68 ], [ false, %63 ], [ %80, %73 ]
br i1 %82, label %83, label %90
83: ; preds = %81
%84 = load ptr, ptr %4, align 8
%85 = getelementptr inbounds i8, ptr %84, i32 1
store ptr %85, ptr %4, align 8
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %5, align 8
%88 = load i32, ptr %6, align 4
%89 = add nsw i32 %88, -1
store i32 %89, ptr %6, align 4
br label %63, !llvm.loop !6
90: ; preds = %81
%91 = load ptr, ptr %4, align 8
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %101
95: ; preds = %90
%96 = load ptr, ptr %5, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %95
store i32 1, ptr %3, align 4
br label %162
101: ; preds = %95, %90
%102 = load ptr, ptr %5, align 8
%103 = load i8, ptr %102, align 1
%104 = call i64 @isdigit(i8 noundef signext %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %.lr.ph, label %113
.lr.ph: ; preds = %101
br label %106
106: ; preds = %.lr.ph, %106
%107 = load ptr, ptr %5, align 8
%108 = getelementptr inbounds i8, ptr %107, i32 1
store ptr %108, ptr %5, align 8
%109 = load ptr, ptr %5, align 8
%110 = load i8, ptr %109, align 1
%111 = call i64 @isdigit(i8 noundef signext %110)
%112 = icmp ne i64 %111, 0
br i1 %112, label %106, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %106
br label %113
113: ; preds = %._crit_edge, %101
%114 = load ptr, ptr %4, align 8
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 0
br i1 %117, label %118, label %161
118: ; preds = %113
%119 = load ptr, ptr %5, align 8
%120 = getelementptr inbounds i8, ptr %119, i32 1
store ptr %120, ptr %5, align 8
%121 = load i8, ptr %119, align 1
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 46
br i1 %123, label %124, label %161
124: ; preds = %118
%125 = load i32, ptr %6, align 4
%126 = add nsw i32 %125, -1
store i32 %126, ptr %6, align 4
br label %127
127: ; preds = %137, %124
%128 = load i32, ptr %6, align 4
%129 = icmp sgt i32 %128, 0
br i1 %129, label %130, label %135
130: ; preds = %127
%131 = load ptr, ptr %5, align 8
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = icmp ne i32 %133, 0
br label %135
135: ; preds = %130, %127
%136 = phi i1 [ false, %127 ], [ %134, %130 ]
br i1 %136, label %137, label %160
137: ; preds = %135
%138 = load i32, ptr %6, align 4
%139 = add nsw i32 %138, -1
store i32 %139, ptr %6, align 4
%140 = load ptr, ptr %5, align 8
%141 = getelementptr inbounds i8, ptr %140, i32 1
store ptr %141, ptr %5, align 8
%142 = load i8, ptr %140, align 1
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %143, 46
br i1 %144, label %145, label %127, !llvm.loop !9
145: ; preds = %137
%146 = load ptr, ptr %5, align 8
%147 = getelementptr inbounds i8, ptr %146, i32 1
store ptr %147, ptr %5, align 8
%148 = load i8, ptr %146, align 1
%149 = sext i8 %148 to i32
%150 = icmp eq i32 %149, 67
br i1 %150, label %151, label %157
151: ; preds = %145
%152 = load ptr, ptr %5, align 8
%153 = getelementptr inbounds i8, ptr %152, i32 1
store ptr %153, ptr %5, align 8
%154 = load i8, ptr %152, align 1
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 0
br label %157
157: ; preds = %151, %145
%158 = phi i1 [ false, %145 ], [ %156, %151 ]
%159 = zext i1 %158 to i32
store i32 %159, ptr %3, align 4
br label %162
160: ; preds = %135
store i32 1, ptr %3, align 4
br label %162
161: ; preds = %118, %113
store i32 0, ptr %3, align 4
br label %162
162: ; preds = %161, %160, %157, %100, %26
%163 = load i32, ptr %3, align 4
ret i32 %163
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @isdigit(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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp5lr3rkz3.c'
source_filename = "/tmp/tmp5lr3rkz3.c"
target datalayout = "e-m:e-p270: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/tmp5lr3rkz3.c"
target datalayout = "e-m:e-p270: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/tmppn78xq0z.c'
source_filename = "/tmp/tmppn78xq0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @map2check_calloc(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 = load i32, ptr %6, align 4
%10 = mul nsw i32 %8, %9
%11 = call i32 @map2check_malloc(ptr noundef %7, i32 noundef %10)
ret void
}
declare i32 @map2check_malloc(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/tmppn78xq0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @map2check_calloc(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 = load i32, ptr %6, align 4
%10 = mul nsw i32 %8, %9
%11 = call i32 @map2check_malloc(ptr noundef %7, i32 noundef %10)
ret void
}
declare i32 @map2check_malloc(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/tmplwhgx2zm.c'
source_filename = "/tmp/tmplwhgx2zm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shuffle(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %44, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %47
12: ; preds = %8
%13 = call i32 (...) @rand()
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %14, %15
%17 = srem i32 %13, %16
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %17, %18
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %24
23: ; preds = %12
br label %44
24: ; preds = %12
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
store i32 %29, ptr %7, align 4
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
store i32 %34, ptr %38, align 4
%39 = load i32, ptr %7, align 4
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store i32 %39, ptr %43, align 4
br label %44
44: ; preds = %24, %23
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
br label %8, !llvm.loop !6
47: ; preds = %8
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplwhgx2zm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shuffle(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %49
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %43
%12 = call i32 (...) @rand()
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = sub nsw i32 %13, %14
%16 = srem i32 %12, %15
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %16, %17
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %11
br label %43
23: ; preds = %11
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %7, align 4
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 %33, ptr %37, align 4
%38 = load i32, ptr %7, align 4
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
store i32 %38, ptr %42, align 4
br label %43
43: ; preds = %23, %22
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
%46 = load i32, ptr %5, align 4
%47 = load i32, ptr %4, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %2
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi5a8glfh.c'
source_filename = "/tmp/tmpi5a8glfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cConCat(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
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = load i64, ptr %6, align 8
%13 = add i64 %12, %11
store i64 %13, ptr %6, align 8
br label %14
14: ; preds = %9, %2
%15 = load ptr, ptr %4, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load ptr, ptr %4, align 8
%19 = call i64 @strlen(ptr noundef %18)
%20 = load i64, ptr %6, align 8
%21 = add i64 %20, %19
store i64 %21, ptr %6, align 8
br label %22
22: ; preds = %17, %14
%23 = load ptr, ptr %3, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load ptr, ptr %4, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %49
28: ; preds = %25, %22
%29 = load i64, ptr %6, align 8
%30 = add i64 %29, 1
%31 = call ptr @malloc(i64 noundef %30)
store ptr %31, ptr %5, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %49
33: ; preds = %28
%34 = load ptr, ptr %5, align 8
store i8 0, ptr %34, align 1
%35 = load ptr, ptr %3, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load ptr, ptr %5, align 8
%39 = load ptr, ptr %3, align 8
%40 = call i32 @strcpy(ptr noundef %38, ptr noundef %39)
br label %41
41: ; preds = %37, %33
%42 = load ptr, ptr %4, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %48
44: ; preds = %41
%45 = load ptr, ptr %5, align 8
%46 = load ptr, ptr %4, align 8
%47 = call i32 @strcat(ptr noundef %45, ptr noundef %46)
br label %48
48: ; preds = %44, %41
br label %49
49: ; preds = %48, %28, %25
%50 = load ptr, ptr %5, align 8
ret ptr %50
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpi5a8glfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cConCat(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
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = load i64, ptr %6, align 8
%13 = add i64 %12, %11
store i64 %13, ptr %6, align 8
br label %14
14: ; preds = %9, %2
%15 = load ptr, ptr %4, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load ptr, ptr %4, align 8
%19 = call i64 @strlen(ptr noundef %18)
%20 = load i64, ptr %6, align 8
%21 = add i64 %20, %19
store i64 %21, ptr %6, align 8
br label %22
22: ; preds = %17, %14
%23 = load ptr, ptr %3, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load ptr, ptr %4, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %49
28: ; preds = %25, %22
%29 = load i64, ptr %6, align 8
%30 = add i64 %29, 1
%31 = call ptr @malloc(i64 noundef %30)
store ptr %31, ptr %5, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %49
33: ; preds = %28
%34 = load ptr, ptr %5, align 8
store i8 0, ptr %34, align 1
%35 = load ptr, ptr %3, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load ptr, ptr %5, align 8
%39 = load ptr, ptr %3, align 8
%40 = call i32 @strcpy(ptr noundef %38, ptr noundef %39)
br label %41
41: ; preds = %37, %33
%42 = load ptr, ptr %4, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %48
44: ; preds = %41
%45 = load ptr, ptr %5, align 8
%46 = load ptr, ptr %4, align 8
%47 = call i32 @strcat(ptr noundef %45, ptr noundef %46)
br label %48
48: ; preds = %44, %41
br label %49
49: ; preds = %48, %28, %25
%50 = load ptr, ptr %5, align 8
ret ptr %50
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmp2b93qi7h.c'
source_filename = "/tmp/tmp2b93qi7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERASE\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"DEC\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"DEC*\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"2DEC\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"2DEC*\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"OCT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @IsEmbeddedConstant(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %27
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strcmp(ptr noundef %8, ptr noundef @.str.1)
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str.2)
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %27
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str.3)
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str.4)
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.5)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23, %19, %15, %11, %7, %1
store i32 1, ptr %2, align 4
br label %29
28: ; preds = %23
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %28, %27
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2b93qi7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERASE\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"DEC\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"DEC*\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"2DEC\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"2DEC*\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"OCT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @IsEmbeddedConstant(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %27
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strcmp(ptr noundef %8, ptr noundef @.str.1)
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str.2)
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %27
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str.3)
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str.4)
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.5)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23, %19, %15, %11, %7, %1
store i32 1, ptr %2, align 4
br label %29
28: ; preds = %23
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %28, %27
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxmtl2zq5.c'
source_filename = "/tmp/tmpxmtl2zq5.c"
target datalayout = "e-m:e-p270: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/tmpxmtl2zq5.c"
target datalayout = "e-m:e-p270: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/tmplc0wlbrx.c'
source_filename = "/tmp/tmplc0wlbrx.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplc0wlbrx.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwq9f460w.c'
source_filename = "/tmp/tmpwq9f460w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, ptr %2, align 4
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, ptr %3, align 4
br label %6
6: ; preds = %19, %0
%7 = load i32, ptr %3, align 4
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sge i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %15, ptr %3, align 4
br label %19
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %16, %14
br label %6, !llvm.loop !6
20: ; preds = %6
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpwq9f460w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, ptr %2, align 4
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sge i32 %6, 0
br i1 %7, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %18
%9 = load i32, ptr %2, align 4
%10 = sub nsw i32 %9, 1
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %14, ptr %3, align 4
br label %18
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = sub nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %18
18: ; preds = %15, %13
%19 = load i32, ptr %3, align 4
%20 = icmp sge i32 %19, 0
br i1 %20, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %21
21: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0jra1wb5.c'
source_filename = "/tmp/tmp0jra1wb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 119 should be 10\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_119() #0 {
%1 = call i32 @isqrt(i32 noundef 119)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 600, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmp0jra1wb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 119 should be 10\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_119() #0 {
%1 = call i32 @isqrt(i32 noundef 119)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 600, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmpvz0d90xc.c'
source_filename = "/tmp/tmpvz0d90xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @fib(i32 noundef 38)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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/tmpvz0d90xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @fib(i32 noundef 38)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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/tmpbeihzw9w.c'
source_filename = "/tmp/tmpbeihzw9w.c"
target datalayout = "e-m:e-p270: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/tmpbeihzw9w.c"
target datalayout = "e-m:e-p270: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/tmpdtt_386j.c'
source_filename = "/tmp/tmpdtt_386j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @WebRtcSpl_MaxAbsValueW16C(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i64, ptr %4, align 8
%9 = icmp ugt i64 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
store i64 0, ptr %5, align 8
br label %12
12: ; preds = %29, %2
%13 = load i64, ptr %5, align 8
%14 = load i64, ptr %4, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %32
16: ; preds = %12
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %5, align 8
%19 = getelementptr inbounds i64, ptr %17, i64 %18
%20 = load i64, ptr %19, align 8
%21 = trunc i64 %20 to i32
%22 = call i32 @abs(i32 noundef %21) #3
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %16
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %7, align 4
br label %28
28: ; preds = %26, %16
br label %29
29: ; preds = %28
%30 = load i64, ptr %5, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %5, align 8
br label %12, !llvm.loop !6
32: ; preds = %12
%33 = load i32, ptr %7, align 4
%34 = icmp sgt i32 %33, 32767
br i1 %34, label %35, label %36
35: ; preds = %32
store i32 32767, ptr %7, align 4
br label %36
36: ; preds = %35, %32
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
ret i64 %38
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(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 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdtt_386j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @WebRtcSpl_MaxAbsValueW16C(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i64, ptr %4, align 8
%9 = icmp ugt i64 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
store i64 0, ptr %5, align 8
%12 = load i64, ptr %5, align 8
%13 = load i64, ptr %4, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %34
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %28
%16 = load ptr, ptr %3, align 8
%17 = load i64, ptr %5, align 8
%18 = getelementptr inbounds i64, ptr %16, i64 %17
%19 = load i64, ptr %18, align 8
%20 = trunc i64 %19 to i32
%21 = call i32 @abs(i32 noundef %20) #3
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %15
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %7, align 4
br label %27
27: ; preds = %25, %15
br label %28
28: ; preds = %27
%29 = load i64, ptr %5, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %5, align 8
%31 = load i64, ptr %5, align 8
%32 = load i64, ptr %4, align 8
%33 = icmp ult i64 %31, %32
br i1 %33, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %2
%35 = load i32, ptr %7, align 4
%36 = icmp sgt i32 %35, 32767
br i1 %36, label %37, label %38
37: ; preds = %34
store i32 32767, ptr %7, align 4
br label %38
38: ; preds = %37, %34
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
ret i64 %40
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(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 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnisos187.c'
source_filename = "/tmp/tmpnisos187.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putchar(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 i32 @PutcharP__Putchar__putchar(i32 noundef %3)
ret i32 %4
}
declare i32 @PutcharP__Putchar__putchar(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/tmpnisos187.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putchar(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 i32 @PutcharP__Putchar__putchar(i32 noundef %3)
ret i32 %4
}
declare i32 @PutcharP__Putchar__putchar(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/tmpm5t8lm4t.c'
source_filename = "/tmp/tmpm5t8lm4t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_prev_fileobject(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 = call i32 @btree_prevkey(i32 noundef %6, i32 noundef 0)
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %16
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @btree_keyval(i32 noundef %11, i32 noundef 0, ptr noundef %12)
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 32
store i8 0, ptr %15, align 1
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %10, %9
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @btree_prevkey(i32 noundef, i32 noundef) #1
declare i32 @btree_keyval(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/tmpm5t8lm4t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_prev_fileobject(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 = call i32 @btree_prevkey(i32 noundef %6, i32 noundef 0)
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %16
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @btree_keyval(i32 noundef %11, i32 noundef 0, ptr noundef %12)
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 32
store i8 0, ptr %15, align 1
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %10, %9
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @btree_prevkey(i32 noundef, i32 noundef) #1
declare i32 @btree_keyval(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/tmp_sdhkgw1.c'
source_filename = "/tmp/tmp_sdhkgw1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timespec, align 8
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
store i32 %5, ptr %6, align 8
%7 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 1
store i64 0, ptr %7, align 8
%8 = call i64 @__nanosleep(ptr noundef %4, ptr noundef %4)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
11: ; preds = %1
%12 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%13 = load i32, ptr %12, align 8
%14 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 1
%15 = load i64, ptr %14, align 8
%16 = icmp sge i64 %15, 500000000
%17 = zext i1 %16 to i32
%18 = add i32 %13, %17
store i32 %18, ptr %2, align 4
br label %19
19: ; preds = %11, %10
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i64 @__nanosleep(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_sdhkgw1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timespec, align 8
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
store i32 %5, ptr %6, align 8
%7 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 1
store i64 0, ptr %7, align 8
%8 = call i64 @__nanosleep(ptr noundef %4, ptr noundef %4)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
11: ; preds = %1
%12 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%13 = load i32, ptr %12, align 8
%14 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 1
%15 = load i64, ptr %14, align 8
%16 = icmp sge i64 %15, 500000000
%17 = zext i1 %16 to i32
%18 = add i32 %13, %17
store i32 %18, ptr %2, align 4
br label %19
19: ; preds = %11, %10
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i64 @__nanosleep(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/tmpu3wnckv5.c'
source_filename = "/tmp/tmpu3wnckv5.c"
target datalayout = "e-m:e-p270: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/tmpu3wnckv5.c"
target datalayout = "e-m:e-p270: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/tmpx_12c7vs.c'
source_filename = "/tmp/tmpx_12c7vs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.memmove1.src = private unnamed_addr constant [4 x i8] c"\01\02\03\04", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memmove1() #0 {
%1 = alloca [4 x i8], align 1
%2 = alloca [10 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.memmove1.src, i64 4, i1 false)
%3 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @memmove(ptr noundef %3, ptr noundef %4, i32 noundef 5)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx_12c7vs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.memmove1.src = private unnamed_addr constant [4 x i8] c"\01\02\03\04", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memmove1() #0 {
%1 = alloca [4 x i8], align 1
%2 = alloca [10 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.memmove1.src, i64 4, i1 false)
%3 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @memmove(ptr noundef %3, ptr noundef %4, i32 noundef 5)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaogh6rv3.c'
source_filename = "/tmp/tmpaogh6rv3.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaogh6rv3.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmply79fojm.c'
source_filename = "/tmp/tmply79fojm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lengthOfLastWord(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %4, align 4
br label %10
10: ; preds = %26, %1
%11 = load i32, ptr %4, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %29
13: ; preds = %10
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 32
br i1 %20, label %21, label %24
21: ; preds = %13
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %3, align 4
br label %25
24: ; preds = %13
br label %29
25: ; preds = %21
br label %26
26: ; preds = %25
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %4, align 4
br label %10, !llvm.loop !6
29: ; preds = %24, %10
%30 = load i32, ptr %3, align 4
%31 = sub nsw i32 %30, 1
store i32 %31, ptr %4, align 4
br label %32
32: ; preds = %48, %29
%33 = load i32, ptr %4, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %35, label %51
35: ; preds = %32
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = call i64 @isChar(i8 noundef signext %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %35
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
br label %47
46: ; preds = %35
br label %51
47: ; preds = %43
br label %48
48: ; preds = %47
%49 = load i32, ptr %4, align 4
%50 = add nsw i32 %49, -1
store i32 %50, ptr %4, align 4
br label %32, !llvm.loop !8
51: ; preds = %46, %32
%52 = load i32, ptr %5, align 4
ret i32 %52
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isChar(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/tmply79fojm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lengthOfLastWord(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %25
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 32
br i1 %19, label %20, label %23
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 %24
23: ; preds = %12
br label %30
24: ; preds = %20
br label %25
25: ; preds = %24
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sge i32 %28, 0
br i1 %29, label %12, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %25
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %1
br label %30
30: ; preds = %.loopexit1, %23
%31 = load i32, ptr %3, align 4
%32 = sub nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %48
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = call i64 @isChar(i8 noundef signext %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %35
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
br label %47
46: ; preds = %35
br label %53
47: ; preds = %43
br label %48
48: ; preds = %47
%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 = icmp sge i32 %51, 0
br i1 %52, label %35, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %48
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %53
53: ; preds = %.loopexit, %46
%54 = load i32, ptr %5, align 4
ret i32 %54
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isChar(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/tmpvhkb8sa7.c'
source_filename = "/tmp/tmpvhkb8sa7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter your message:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Enter your key:\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Encrypted Version\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\0ADecrypt Version\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%11 = load i32, ptr %3, align 4
%12 = call i32 @encrypt(ptr noundef %10, i32 noundef %11)
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%16 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%17 = load i32, ptr %3, align 4
%18 = call i32 @decrypt(ptr noundef %16, i32 noundef %17)
%19 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @encrypt(ptr noundef, i32 noundef) #1
declare i32 @decrypt(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/tmpvhkb8sa7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter your message:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Enter your key:\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Encrypted Version\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\0ADecrypt Version\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%11 = load i32, ptr %3, align 4
%12 = call i32 @encrypt(ptr noundef %10, i32 noundef %11)
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%16 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%17 = load i32, ptr %3, align 4
%18 = call i32 @decrypt(ptr noundef %16, i32 noundef %17)
%19 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @encrypt(ptr noundef, i32 noundef) #1
declare i32 @decrypt(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/tmp8k4piqg8.c'
source_filename = "/tmp/tmp8k4piqg8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signal(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
ret ptr @SIG_ERR
}
declare void @SIG_ERR(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/tmp8k4piqg8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signal(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
ret ptr @SIG_ERR
}
declare void @SIG_ERR(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/tmpvighlpr7.c'
source_filename = "/tmp/tmpvighlpr7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [8 x i8] c"b\C4\85nana\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"na\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @count_substrings(ptr noundef @.str.1, ptr noundef @.str.2)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @count_substrings(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/tmpvighlpr7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [8 x i8] c"b\C4\85nana\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"na\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @count_substrings(ptr noundef @.str.1, ptr noundef @.str.2)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @count_substrings(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/tmpr1d40q9e.c'
source_filename = "/tmp/tmpr1d40q9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_my_file(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = call i64 @isdigit(i8 noundef signext %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %8, %1
store i32 0, ptr %2, align 4
br label %56
14: ; preds = %8
br label %15
15: ; preds = %18, %14
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %4, align 8
br label %18
18: ; preds = %15
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = call i64 @isdigit(i8 noundef signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %15, label %23, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 46
br i1 %28, label %29, label %53
29: ; preds = %23
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 104
br i1 %34, label %35, label %53
35: ; preds = %29
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 2
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 50
br i1 %40, label %41, label %53
41: ; preds = %35
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 3
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 119
br i1 %46, label %47, label %53
47: ; preds = %41
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 4
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 0
br label %53
53: ; preds = %47, %41, %35, %29, %23
%54 = phi i1 [ false, %41 ], [ false, %35 ], [ false, %29 ], [ false, %23 ], [ %52, %47 ]
%55 = zext i1 %54 to i32
store i32 %55, ptr %2, align 4
br label %56
56: ; preds = %53, %13
%57 = load i32, ptr %2, align 4
ret i32 %57
}
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr1d40q9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_my_file(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = call i64 @isdigit(i8 noundef signext %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %8, %1
store i32 0, ptr %2, align 4
br label %56
14: ; preds = %8
br label %15
15: ; preds = %18, %14
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %4, align 8
br label %18
18: ; preds = %15
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = call i64 @isdigit(i8 noundef signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %15, label %23, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 46
br i1 %28, label %29, label %53
29: ; preds = %23
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 104
br i1 %34, label %35, label %53
35: ; preds = %29
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 2
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 50
br i1 %40, label %41, label %53
41: ; preds = %35
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 3
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 119
br i1 %46, label %47, label %53
47: ; preds = %41
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 4
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 0
br label %53
53: ; preds = %47, %41, %35, %29, %23
%54 = phi i1 [ false, %41 ], [ false, %35 ], [ false, %29 ], [ false, %23 ], [ %52, %47 ]
%55 = zext i1 %54 to i32
store i32 %55, ptr %2, align 4
br label %56
56: ; preds = %53, %13
%57 = load i32, ptr %2, align 4
ret i32 %57
}
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq2uo74p4.c'
source_filename = "/tmp/tmpq2uo74p4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main1(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %30, %4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %33
14: ; preds = %10
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds float, ptr %15, i64 %17
%19 = load float, ptr %18, align 4
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, ptr %20, i64 %22
%24 = load float, ptr %23, align 4
%25 = fmul float %19, %24
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float, ptr %26, i64 %28
store float %25, ptr %29, align 4
br label %30
30: ; preds = %14
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %9, align 4
br label %10, !llvm.loop !6
33: ; preds = %10
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %7, align 8
%36 = load ptr, ptr %8, align 8
%37 = call i32 @bar(ptr noundef %34, ptr noundef %35, ptr noundef %36)
ret i32 0
}
declare i32 @bar(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq2uo74p4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main1(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store i32 0, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %35
.lr.ph: ; preds = %4
br label %13
13: ; preds = %.lr.ph, %29
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds float, ptr %14, i64 %16
%18 = load float, ptr %17, align 4
%19 = load ptr, ptr %8, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, ptr %19, i64 %21
%23 = load float, ptr %22, align 4
%24 = fmul float %18, %23
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds float, ptr %25, i64 %27
store float %24, ptr %28, align 4
br label %29
29: ; preds = %13
%30 = load i32, ptr %9, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %4
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %7, align 8
%38 = load ptr, ptr %8, align 8
%39 = call i32 @bar(ptr noundef %36, ptr noundef %37, ptr noundef %38)
ret i32 0
}
declare i32 @bar(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnvv9jj4l.c'
source_filename = "/tmp/tmpnvv9jj4l.c"
target datalayout = "e-m:e-p270: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/tmpnvv9jj4l.c"
target datalayout = "e-m:e-p270: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/tmpkav0rhhb.c'
source_filename = "/tmp/tmpkav0rhhb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quicksort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%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
%11 = 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
store i32 %4, ptr %10, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = sub nsw i32 %12, %13
%15 = icmp sle i32 %14, 4
br i1 %15, label %16, label %54
16: ; preds = %5
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp sge i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16
br label %73
21: ; preds = %16
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %7, align 4
%24 = sub nsw i32 %22, %23
switch i32 %24, label %53 [
i32 1, label %25
i32 2, label %32
i32 3, label %39
i32 4, label %46
]
25: ; preds = %21
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load ptr, ptr %9, align 8
%31 = call i32 @sort2(ptr noundef %29, ptr noundef %30)
br label %73
32: ; preds = %21
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = load ptr, ptr %9, align 8
%38 = call i32 @sort3(ptr noundef %36, ptr noundef %37)
br label %73
39: ; preds = %21
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load ptr, ptr %9, align 8
%45 = call i32 @sort4(ptr noundef %43, ptr noundef %44)
br label %73
46: ; preds = %21
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load ptr, ptr %9, align 8
%52 = call i32 @sort5(ptr noundef %50, ptr noundef %51)
br label %73
53: ; preds = %21
br label %54
54: ; preds = %53, %5
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %10, align 4
%60 = call i32 @partition(ptr noundef %55, i32 noundef %56, i32 noundef %57, ptr noundef %58, i32 noundef %59)
store i32 %60, ptr %11, align 4
%61 = load ptr, ptr %6, align 8
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %11, align 4
%64 = sub nsw i32 %63, 1
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %10, align 4
call void @quicksort(ptr noundef %61, i32 noundef %62, i32 noundef %64, ptr noundef %65, i32 noundef %66)
%67 = load ptr, ptr %6, align 8
%68 = load i32, ptr %11, align 4
%69 = add nsw i32 %68, 1
%70 = load i32, ptr %8, align 4
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %10, align 4
call void @quicksort(ptr noundef %67, i32 noundef %69, i32 noundef %70, ptr noundef %71, i32 noundef %72)
br label %73
73: ; preds = %54, %46, %39, %32, %25, %20
ret void
}
declare i32 @sort2(ptr noundef, ptr noundef) #1
declare i32 @sort3(ptr noundef, ptr noundef) #1
declare i32 @sort4(ptr noundef, ptr noundef) #1
declare i32 @sort5(ptr noundef, ptr noundef) #1
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkav0rhhb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quicksort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%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
%11 = 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
store i32 %4, ptr %10, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = sub nsw i32 %12, %13
%15 = icmp sle i32 %14, 4
br i1 %15, label %16, label %54
16: ; preds = %5
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp sge i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16
br label %73
21: ; preds = %16
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %7, align 4
%24 = sub nsw i32 %22, %23
switch i32 %24, label %53 [
i32 1, label %25
i32 2, label %32
i32 3, label %39
i32 4, label %46
]
25: ; preds = %21
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load ptr, ptr %9, align 8
%31 = call i32 @sort2(ptr noundef %29, ptr noundef %30)
br label %73
32: ; preds = %21
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = load ptr, ptr %9, align 8
%38 = call i32 @sort3(ptr noundef %36, ptr noundef %37)
br label %73
39: ; preds = %21
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load ptr, ptr %9, align 8
%45 = call i32 @sort4(ptr noundef %43, ptr noundef %44)
br label %73
46: ; preds = %21
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load ptr, ptr %9, align 8
%52 = call i32 @sort5(ptr noundef %50, ptr noundef %51)
br label %73
53: ; preds = %21
br label %54
54: ; preds = %53, %5
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %10, align 4
%60 = call i32 @partition(ptr noundef %55, i32 noundef %56, i32 noundef %57, ptr noundef %58, i32 noundef %59)
store i32 %60, ptr %11, align 4
%61 = load ptr, ptr %6, align 8
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %11, align 4
%64 = sub nsw i32 %63, 1
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %10, align 4
call void @quicksort(ptr noundef %61, i32 noundef %62, i32 noundef %64, ptr noundef %65, i32 noundef %66)
%67 = load ptr, ptr %6, align 8
%68 = load i32, ptr %11, align 4
%69 = add nsw i32 %68, 1
%70 = load i32, ptr %8, align 4
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %10, align 4
call void @quicksort(ptr noundef %67, i32 noundef %69, i32 noundef %70, ptr noundef %71, i32 noundef %72)
br label %73
73: ; preds = %54, %46, %39, %32, %25, %20
ret void
}
declare i32 @sort2(ptr noundef, ptr noundef) #1
declare i32 @sort3(ptr noundef, ptr noundef) #1
declare i32 @sort4(ptr noundef, ptr noundef) #1
declare i32 @sort5(ptr noundef, ptr noundef) #1
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiulxlm35.c'
source_filename = "/tmp/tmpiulxlm35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Input 15 integers:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"You Entered:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = 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 [15 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %14, %0
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 15
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %10
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
%13 = call i32 (...) @getchar()
br label %14
14: ; preds = %8
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %5, !llvm.loop !6
17: ; preds = %5
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %19
19: ; preds = %28, %17
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 15
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
br label %19, !llvm.loop !8
31: ; preds = %19
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %43, %31
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 15
br i1 %36, label %37, label %46
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %41)
br label %43
43: ; preds = %37
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
br label %34, !llvm.loop !9
46: ; preds = %34
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 15, ptr %3, align 4
br label %49
49: ; preds = %59, %46
%50 = load i32, ptr %3, align 4
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %49
%53 = load i32, ptr %3, align 4
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %57)
br label %59
59: ; preds = %52
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, -1
store i32 %61, ptr %3, align 4
br label %49, !llvm.loop !10
62: ; preds = %49
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiulxlm35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Input 15 integers:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"You Entered:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = 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 [15 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 15
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %13
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %9
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %10)
%12 = call i32 (...) @getchar()
br label %13
13: ; preds = %7
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 15
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 15
br i1 %21, label %.lr.ph2, label %33
.lr.ph2: ; preds = %18
br label %22
22: ; preds = %.lr.ph2, %28
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp slt i32 %31, 15
br i1 %32, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %28
br label %33
33: ; preds = %._crit_edge3, %18
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %36, 15
br i1 %37, label %.lr.ph5, label %49
.lr.ph5: ; preds = %33
br label %38
38: ; preds = %.lr.ph5, %44
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %42)
br label %44
44: ; preds = %38
%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 = icmp slt i32 %47, 15
br i1 %48, label %38, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %44
br label %49
49: ; preds = %._crit_edge6, %33
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 15, ptr %3, align 4
%52 = load i32, ptr %3, align 4
%53 = icmp sgt i32 %52, 0
br i1 %53, label %.lr.ph8, label %66
.lr.ph8: ; preds = %49
br label %54
54: ; preds = %.lr.ph8, %61
%55 = load i32, ptr %3, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %59)
br label %61
61: ; preds = %54
%62 = load i32, ptr %3, align 4
%63 = add nsw i32 %62, -1
store i32 %63, ptr %3, align 4
%64 = load i32, ptr %3, align 4
%65 = icmp sgt i32 %64, 0
br i1 %65, label %54, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %61
br label %66
66: ; preds = %._crit_edge9, %49
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpjypw8r_c.c'
source_filename = "/tmp/tmpjypw8r_c.c"
target datalayout = "e-m:e-p270: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/tmpjypw8r_c.c"
target datalayout = "e-m:e-p270: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/tmpj12bo8d1.c'
source_filename = "/tmp/tmpj12bo8d1.c"
target datalayout = "e-m:e-p270: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.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @__bladerf_fini, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__bladerf_fini() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @get_loglevel()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @bladerf_log_set_verbosity(i32 noundef %3)
br label %5
5: ; preds = %0
br label %6
6: ; preds = %5
br label %7
7: ; preds = %6
br label %8
8: ; preds = %7
%9 = call i32 @fflush(ptr noundef null)
ret void
}
declare i32 @get_loglevel(...) #1
declare i32 @bladerf_log_set_verbosity(i32 noundef) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj12bo8d1.c"
target datalayout = "e-m:e-p270: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.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @__bladerf_fini, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__bladerf_fini() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @get_loglevel()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @bladerf_log_set_verbosity(i32 noundef %3)
br label %5
5: ; preds = %0
br label %6
6: ; preds = %5
br label %7
7: ; preds = %6
br label %8
8: ; preds = %7
%9 = call i32 @fflush(ptr noundef null)
ret void
}
declare i32 @get_loglevel(...) #1
declare i32 @bladerf_log_set_verbosity(i32 noundef) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprtkusbfd.c'
source_filename = "/tmp/tmprtkusbfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"I allocated %d bytes, I'm going to use the %d element\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"buf[index] = %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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 800, ptr %7, align 4
store i32 801, ptr %8, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %8, align 4
br label %16
16: ; preds = %11, %2
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 2
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 2
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %19, %16
%25 = load i32, ptr %7, align 4
%26 = call ptr @malloc(i32 noundef %25)
store ptr %26, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = trunc i32 %27 to i8
%29 = load i32, ptr %8, align 4
%30 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %28, i32 noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
store i8 1, ptr %34, align 1
%35 = load ptr, ptr %6, 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 i8, ptr %38, align 1
%40 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.1, i8 noundef signext %39)
%41 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #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/tmprtkusbfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"I allocated %d bytes, I'm going to use the %d element\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"buf[index] = %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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 800, ptr %7, align 4
store i32 801, ptr %8, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %8, align 4
br label %16
16: ; preds = %11, %2
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 2
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 2
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %19, %16
%25 = load i32, ptr %7, align 4
%26 = call ptr @malloc(i32 noundef %25)
store ptr %26, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = trunc i32 %27 to i8
%29 = load i32, ptr %8, align 4
%30 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %28, i32 noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
store i8 1, ptr %34, align 1
%35 = load ptr, ptr %6, 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 i8, ptr %38, align 1
%40 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.1, i8 noundef signext %39)
%41 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #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/tmpkhdu34hu.c'
source_filename = "/tmp/tmpkhdu34hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cb(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 i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
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/tmpkhdu34hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cb(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 i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
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/tmpqjbm0ch0.c'
source_filename = "/tmp/tmpqjbm0ch0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchr(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %28, %2
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %31
15: ; preds = %7
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load i8, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %27
25: ; preds = %15
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %3, align 4
br label %32
27: ; preds = %15
br label %28
28: ; preds = %27
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %7, !llvm.loop !6
31: ; preds = %7
store i32 -1, ptr %3, align 4
br label %32
32: ; preds = %31, %25
%33 = load i32, ptr %3, align 4
ret i32 %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 = '<stdin>'
source_filename = "/tmp/tmpqjbm0ch0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchr(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %27
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr %5, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %20, %22
br i1 %23, label %24, label %26
24: ; preds = %14
%25 = load i32, ptr %6, align 4
store i32 %25, ptr %3, align 4
br label %38
26: ; preds = %14
br label %27
27: ; preds = %26
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 0
br i1 %36, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %37
37: ; preds = %._crit_edge, %2
store i32 -1, ptr %3, align 4
br label %38
38: ; preds = %37, %24
%39 = load i32, ptr %3, align 4
ret i32 %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.