llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpfjuh29dv.c'
source_filename = "/tmp/tmpfjuh29dv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"{qff\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"}\00", align 1
@.str.3 = private unnamed_addr constant [65 x i8] c"\0A Cannot open input file %s, using default parameters for {qff}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_qff(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [82 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 0, ptr %13, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %16, 1
%18 = mul nsw i32 %15, %17
store i32 %18, ptr %14, align 4
%19 = load ptr, ptr %6, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str)
store ptr %20, ptr %12, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %181
22: ; preds = %4
br label %23
23: ; preds = %177, %22
%24 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%25 = load ptr, ptr %12, align 8
%26 = call ptr @fgets(ptr noundef %24, i32 noundef 80, ptr noundef %25)
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %178
28: ; preds = %23
%29 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%30 = call ptr @strstr(ptr noundef %29, ptr noundef @.str.1)
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %177
32: ; preds = %28
store i32 0, ptr %13, align 4
br label %33
33: ; preds = %88, %32
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %91
37: ; preds = %33
%38 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%39 = load ptr, ptr %12, align 8
%40 = call ptr @fgets(ptr noundef %38, i32 noundef 80, ptr noundef %39)
%41 = icmp eq ptr %40, null
br i1 %41, label %42, label %43
42: ; preds = %37
br label %91
43: ; preds = %37
%44 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%45 = load ptr, ptr %12, align 8
%46 = call ptr @fgets(ptr noundef %44, i32 noundef 80, ptr noundef %45)
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %49
48: ; preds = %43
br label %91
49: ; preds = %43
%50 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%51 = call double @atof(ptr noundef %50)
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %13, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [4 x double], ptr %52, i64 %54
%56 = getelementptr inbounds [4 x double], ptr %55, i64 0, i64 0
store double %51, ptr %56, align 8
%57 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%58 = load ptr, ptr %12, align 8
%59 = call ptr @fgets(ptr noundef %57, i32 noundef 80, ptr noundef %58)
%60 = icmp eq ptr %59, null
br i1 %60, label %61, label %62
61: ; preds = %49
br label %91
62: ; preds = %49
%63 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%64 = call double @atof(ptr noundef %63)
%65 = load ptr, ptr %8, align 8
%66 = load i32, ptr %13, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [4 x double], ptr %65, i64 %67
%69 = getelementptr inbounds [4 x double], ptr %68, i64 0, i64 1
store double %64, ptr %69, align 8
%70 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%71 = load ptr, ptr %12, align 8
%72 = call ptr @fgets(ptr noundef %70, i32 noundef 80, ptr noundef %71)
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %75
74: ; preds = %62
br label %91
75: ; preds = %62
%76 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%77 = call double @atof(ptr noundef %76)
%78 = load ptr, ptr %8, align 8
%79 = load i32, ptr %13, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [4 x double], ptr %78, i64 %80
%82 = getelementptr inbounds [4 x double], ptr %81, i64 0, i64 2
store double %77, ptr %82, align 8
%83 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%84 = call ptr @strstr(ptr noundef %83, ptr noundef @.str.2)
%85 = icmp ne ptr %84, null
br i1 %85, label %86, label %87
86: ; preds = %75
br label %91
87: ; preds = %75
br label %88
88: ; preds = %87
%89 = load i32, ptr %13, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %13, align 4
br label %33, !llvm.loop !6
91: ; preds = %86, %74, %61, %48, %42, %33
store i32 0, ptr %13, align 4
br label %92
92: ; preds = %173, %91
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %14, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %96, label %176
96: ; preds = %92
%97 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%98 = load ptr, ptr %12, align 8
%99 = call ptr @fgets(ptr noundef %97, i32 noundef 80, ptr noundef %98)
%100 = icmp eq ptr %99, null
br i1 %100, label %101, label %102
101: ; preds = %96
br label %176
102: ; preds = %96
%103 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%104 = load ptr, ptr %12, align 8
%105 = call ptr @fgets(ptr noundef %103, i32 noundef 80, ptr noundef %104)
%106 = icmp eq ptr %105, null
br i1 %106, label %107, label %108
107: ; preds = %102
br label %176
108: ; preds = %102
%109 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%110 = call double @atof(ptr noundef %109)
%111 = load ptr, ptr %9, align 8
%112 = load i32, ptr %13, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [6 x double], ptr %111, i64 %113
%115 = getelementptr inbounds [6 x double], ptr %114, i64 0, i64 0
store double %110, ptr %115, align 8
%116 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%117 = load ptr, ptr %12, align 8
%118 = call ptr @fgets(ptr noundef %116, i32 noundef 80, ptr noundef %117)
%119 = icmp eq ptr %118, null
br i1 %119, label %120, label %121
120: ; preds = %108
br label %176
121: ; preds = %108
%122 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%123 = call double @atof(ptr noundef %122)
%124 = load ptr, ptr %9, align 8
%125 = load i32, ptr %13, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [6 x double], ptr %124, i64 %126
%128 = getelementptr inbounds [6 x double], ptr %127, i64 0, i64 1
store double %123, ptr %128, align 8
%129 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%130 = load ptr, ptr %12, align 8
%131 = call ptr @fgets(ptr noundef %129, i32 noundef 80, ptr noundef %130)
%132 = icmp eq ptr %131, null
br i1 %132, label %133, label %134
133: ; preds = %121
br label %176
134: ; preds = %121
%135 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%136 = call double @atof(ptr noundef %135)
%137 = load ptr, ptr %9, align 8
%138 = load i32, ptr %13, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [6 x double], ptr %137, i64 %139
%141 = getelementptr inbounds [6 x double], ptr %140, i64 0, i64 2
store double %136, ptr %141, align 8
%142 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%143 = load ptr, ptr %12, align 8
%144 = call ptr @fgets(ptr noundef %142, i32 noundef 80, ptr noundef %143)
%145 = icmp eq ptr %144, null
br i1 %145, label %146, label %147
146: ; preds = %134
br label %176
147: ; preds = %134
%148 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%149 = call double @atof(ptr noundef %148)
%150 = load ptr, ptr %9, align 8
%151 = load i32, ptr %13, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [6 x double], ptr %150, i64 %152
%154 = getelementptr inbounds [6 x double], ptr %153, i64 0, i64 3
store double %149, ptr %154, align 8
%155 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%156 = load ptr, ptr %12, align 8
%157 = call ptr @fgets(ptr noundef %155, i32 noundef 80, ptr noundef %156)
%158 = icmp eq ptr %157, null
br i1 %158, label %159, label %160
159: ; preds = %147
br label %176
160: ; preds = %147
%161 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%162 = call double @atof(ptr noundef %161)
%163 = load ptr, ptr %9, align 8
%164 = load i32, ptr %13, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [6 x double], ptr %163, i64 %165
%167 = getelementptr inbounds [6 x double], ptr %166, i64 0, i64 4
store double %162, ptr %167, align 8
%168 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%169 = call ptr @strstr(ptr noundef %168, ptr noundef @.str.2)
%170 = icmp ne ptr %169, null
br i1 %170, label %171, label %172
171: ; preds = %160
br label %176
172: ; preds = %160
br label %173
173: ; preds = %172
%174 = load i32, ptr %13, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %13, align 4
br label %92, !llvm.loop !8
176: ; preds = %171, %159, %146, %133, %120, %107, %101, %92
br label %177
177: ; preds = %176, %28
br label %23, !llvm.loop !9
178: ; preds = %23
%179 = load ptr, ptr %12, align 8
%180 = call i32 @fclose(ptr noundef %179)
br label %184
181: ; preds = %4
%182 = load ptr, ptr %6, align 8
%183 = call i32 @printf(ptr noundef @.str.3, ptr noundef %182)
store i32 1, ptr %5, align 4
br label %185
184: ; preds = %178
store i32 0, ptr %5, align 4
br label %185
185: ; preds = %184, %181
%186 = load i32, ptr %5, align 4
ret i32 %186
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfjuh29dv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"{qff\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"}\00", align 1
@.str.3 = private unnamed_addr constant [65 x i8] c"\0A Cannot open input file %s, using default parameters for {qff}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_qff(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [82 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 0, ptr %13, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %16, 1
%18 = mul nsw i32 %15, %17
store i32 %18, ptr %14, align 4
%19 = load ptr, ptr %6, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str)
store ptr %20, ptr %12, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %187
22: ; preds = %4
%23 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%24 = load ptr, ptr %12, align 8
%25 = call ptr @fgets(ptr noundef %23, i32 noundef 80, ptr noundef %24)
%26 = icmp ne ptr %25, null
br i1 %26, label %.lr.ph3, label %184
.lr.ph3: ; preds = %22
br label %27
27: ; preds = %.lr.ph3, %180
%28 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%29 = call ptr @strstr(ptr noundef %28, ptr noundef @.str.1)
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %180
31: ; preds = %27
store i32 0, ptr %13, align 4
%32 = load i32, ptr %13, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %31
br label %35
35: ; preds = %.lr.ph, %86
%36 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%37 = load ptr, ptr %12, align 8
%38 = call ptr @fgets(ptr noundef %36, i32 noundef 80, ptr noundef %37)
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %41
40: ; preds = %35
br label %92
41: ; preds = %35
%42 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%43 = load ptr, ptr %12, align 8
%44 = call ptr @fgets(ptr noundef %42, i32 noundef 80, ptr noundef %43)
%45 = icmp eq ptr %44, null
br i1 %45, label %46, label %47
46: ; preds = %41
br label %92
47: ; preds = %41
%48 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%49 = call double @atof(ptr noundef %48)
%50 = load ptr, ptr %8, align 8
%51 = load i32, ptr %13, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [4 x double], ptr %50, i64 %52
%54 = getelementptr inbounds [4 x double], ptr %53, i64 0, i64 0
store double %49, ptr %54, align 8
%55 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%56 = load ptr, ptr %12, align 8
%57 = call ptr @fgets(ptr noundef %55, i32 noundef 80, ptr noundef %56)
%58 = icmp eq ptr %57, null
br i1 %58, label %59, label %60
59: ; preds = %47
br label %92
60: ; preds = %47
%61 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%62 = call double @atof(ptr noundef %61)
%63 = load ptr, ptr %8, align 8
%64 = load i32, ptr %13, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [4 x double], ptr %63, i64 %65
%67 = getelementptr inbounds [4 x double], ptr %66, i64 0, i64 1
store double %62, ptr %67, align 8
%68 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%69 = load ptr, ptr %12, align 8
%70 = call ptr @fgets(ptr noundef %68, i32 noundef 80, ptr noundef %69)
%71 = icmp eq ptr %70, null
br i1 %71, label %72, label %73
72: ; preds = %60
br label %92
73: ; preds = %60
%74 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%75 = call double @atof(ptr noundef %74)
%76 = load ptr, ptr %8, align 8
%77 = load i32, ptr %13, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [4 x double], ptr %76, i64 %78
%80 = getelementptr inbounds [4 x double], ptr %79, i64 0, i64 2
store double %75, ptr %80, align 8
%81 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%82 = call ptr @strstr(ptr noundef %81, ptr noundef @.str.2)
%83 = icmp ne ptr %82, null
br i1 %83, label %84, label %85
84: ; preds = %73
br label %92
85: ; preds = %73
br label %86
86: ; preds = %85
%87 = load i32, ptr %13, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %13, align 4
%89 = load i32, ptr %13, align 4
%90 = load i32, ptr %7, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %35, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %86
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %31
br label %92
92: ; preds = %.loopexit1, %84, %72, %59, %46, %40
store i32 0, ptr %13, align 4
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %14, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %92
br label %96
96: ; preds = %.lr.ph2, %173
%97 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%98 = load ptr, ptr %12, align 8
%99 = call ptr @fgets(ptr noundef %97, i32 noundef 80, ptr noundef %98)
%100 = icmp eq ptr %99, null
br i1 %100, label %101, label %102
101: ; preds = %96
br label %179
102: ; preds = %96
%103 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%104 = load ptr, ptr %12, align 8
%105 = call ptr @fgets(ptr noundef %103, i32 noundef 80, ptr noundef %104)
%106 = icmp eq ptr %105, null
br i1 %106, label %107, label %108
107: ; preds = %102
br label %179
108: ; preds = %102
%109 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%110 = call double @atof(ptr noundef %109)
%111 = load ptr, ptr %9, align 8
%112 = load i32, ptr %13, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [6 x double], ptr %111, i64 %113
%115 = getelementptr inbounds [6 x double], ptr %114, i64 0, i64 0
store double %110, ptr %115, align 8
%116 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%117 = load ptr, ptr %12, align 8
%118 = call ptr @fgets(ptr noundef %116, i32 noundef 80, ptr noundef %117)
%119 = icmp eq ptr %118, null
br i1 %119, label %120, label %121
120: ; preds = %108
br label %179
121: ; preds = %108
%122 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%123 = call double @atof(ptr noundef %122)
%124 = load ptr, ptr %9, align 8
%125 = load i32, ptr %13, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [6 x double], ptr %124, i64 %126
%128 = getelementptr inbounds [6 x double], ptr %127, i64 0, i64 1
store double %123, ptr %128, align 8
%129 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%130 = load ptr, ptr %12, align 8
%131 = call ptr @fgets(ptr noundef %129, i32 noundef 80, ptr noundef %130)
%132 = icmp eq ptr %131, null
br i1 %132, label %133, label %134
133: ; preds = %121
br label %179
134: ; preds = %121
%135 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%136 = call double @atof(ptr noundef %135)
%137 = load ptr, ptr %9, align 8
%138 = load i32, ptr %13, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [6 x double], ptr %137, i64 %139
%141 = getelementptr inbounds [6 x double], ptr %140, i64 0, i64 2
store double %136, ptr %141, align 8
%142 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%143 = load ptr, ptr %12, align 8
%144 = call ptr @fgets(ptr noundef %142, i32 noundef 80, ptr noundef %143)
%145 = icmp eq ptr %144, null
br i1 %145, label %146, label %147
146: ; preds = %134
br label %179
147: ; preds = %134
%148 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%149 = call double @atof(ptr noundef %148)
%150 = load ptr, ptr %9, align 8
%151 = load i32, ptr %13, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [6 x double], ptr %150, i64 %152
%154 = getelementptr inbounds [6 x double], ptr %153, i64 0, i64 3
store double %149, ptr %154, align 8
%155 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%156 = load ptr, ptr %12, align 8
%157 = call ptr @fgets(ptr noundef %155, i32 noundef 80, ptr noundef %156)
%158 = icmp eq ptr %157, null
br i1 %158, label %159, label %160
159: ; preds = %147
br label %179
160: ; preds = %147
%161 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 8
%162 = call double @atof(ptr noundef %161)
%163 = load ptr, ptr %9, align 8
%164 = load i32, ptr %13, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [6 x double], ptr %163, i64 %165
%167 = getelementptr inbounds [6 x double], ptr %166, i64 0, i64 4
store double %162, ptr %167, align 8
%168 = getelementptr inbounds [82 x i8], ptr %10, i64 0, i64 0
%169 = call ptr @strstr(ptr noundef %168, ptr noundef @.str.2)
%170 = icmp ne ptr %169, null
br i1 %170, label %171, label %172
171: ; preds = %160
br label %179
172: ; preds = %160
br label %173
173: ; preds = %172
%174 = load i32, ptr %13, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %13, align 4
%176 = load i32, ptr %13, align 4
%177 = load i32, ptr %14, align 4
%178 = icmp slt i32 %176, %177
br i1 %178, label %96, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %173
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %92
br label %179
179: ; preds = %.loopexit, %171, %159, %146, %133, %120, %107, %101
br label %180
180: ; preds = %179, %27
%181 = load ptr, ptr %12, align 8
%182 = call ptr @fgets(ptr noundef %23, i32 noundef 80, ptr noundef %181)
%183 = icmp ne ptr %182, null
br i1 %183, label %27, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %180
br label %184
184: ; preds = %._crit_edge, %22
%185 = load ptr, ptr %12, align 8
%186 = call i32 @fclose(ptr noundef %185)
br label %190
187: ; preds = %4
%188 = load ptr, ptr %6, align 8
%189 = call i32 @printf(ptr noundef @.str.3, ptr noundef %188)
store i32 1, ptr %5, align 4
br label %191
190: ; preds = %184
store i32 0, ptr %5, align 4
br label %191
191: ; preds = %190, %187
%192 = load i32, ptr %5, align 4
ret i32 %192
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpshj2hcgg.c'
source_filename = "/tmp/tmpshj2hcgg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@DBL_EPSILON = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PrintMatrixAsBinary(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %37, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %40
11: ; preds = %7
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %32, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %35
16: ; preds = %12
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %4, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %20, %21
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %17, i64 %23
%25 = load double, ptr %24, align 8
%26 = call i64 @fabs(double noundef %25)
%27 = load i64, ptr @DBL_EPSILON, align 8
%28 = icmp sle i64 %26, %27
%29 = zext i1 %28 to i64
%30 = select i1 %28, i32 0, i32 1
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %30)
br label %32
32: ; preds = %16
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
br label %12, !llvm.loop !6
35: ; preds = %12
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %37
37: ; preds = %35
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
br label %7, !llvm.loop !8
40: ; preds = %7
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @fabs(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpshj2hcgg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@DBL_EPSILON = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PrintMatrixAsBinary(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph2, label %44
.lr.ph2: ; preds = %2
br label %10
10: ; preds = %.lr.ph2, %38
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %36
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %30
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = mul nsw i32 %16, %17
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %15, i64 %21
%23 = load double, ptr %22, align 8
%24 = call i64 @fabs(double noundef %23)
%25 = load i64, ptr @DBL_EPSILON, align 8
%26 = icmp sle i64 %24, %25
%27 = zext i1 %26 to i64
%28 = select i1 %26, i32 0, i32 1
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %28)
br label %30
30: ; preds = %14
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %10
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %38
38: ; preds = %36
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %44
44: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @fabs(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpksc35sr0.c'
source_filename = "/tmp/tmpksc35sr0.c"
target datalayout = "e-m:e-p270: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/tmpksc35sr0.c"
target datalayout = "e-m:e-p270: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/tmpze01f5b9.c'
source_filename = "/tmp/tmpze01f5b9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"hello in calc\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calc_init(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @uart_puts(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
store i32 1, ptr %4, align 4
ret void
}
declare i32 @uart_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/tmpze01f5b9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"hello in calc\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calc_init(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @uart_puts(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
store i32 1, ptr %4, align 4
ret void
}
declare i32 @uart_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/tmpvgv3nagx.c'
source_filename = "/tmp/tmpvgv3nagx.c"
target datalayout = "e-m:e-p270: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/tmpvgv3nagx.c"
target datalayout = "e-m:e-p270: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/tmpjgn_wrku.c'
source_filename = "/tmp/tmpjgn_wrku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_int_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @check_int(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @check_int(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/tmpjgn_wrku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_int_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @check_int(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @check_int(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/tmphmu6vkxh.c'
source_filename = "/tmp/tmphmu6vkxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pass\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
store i32 0, ptr %1, align 4
%3 = call i64 @lstat(ptr noundef @.str, ptr noundef %2)
%4 = icmp ne i64 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %0
%6 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%7 = load i32, ptr %6, align 4
%8 = call i32 @S_ISDIR(i32 noundef %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %5, %0
%11 = call i32 (...) @abort() #3
unreachable
12: ; preds = %5
%13 = call i32 @printf(ptr noundef @.str.1)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @lstat(ptr noundef, ptr noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphmu6vkxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pass\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
store i32 0, ptr %1, align 4
%3 = call i64 @lstat(ptr noundef @.str, ptr noundef %2)
%4 = icmp ne i64 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %0
%6 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%7 = load i32, ptr %6, align 4
%8 = call i32 @S_ISDIR(i32 noundef %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %5, %0
%11 = call i32 (...) @abort() #3
unreachable
12: ; preds = %5
%13 = call i32 @printf(ptr noundef @.str.1)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @lstat(ptr noundef, ptr noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp60c3j2qo.c'
source_filename = "/tmp/tmp60c3j2qo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ighmm_determinant(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds double, ptr %15, i64 0
%17 = load double, ptr %16, align 8
store double %17, ptr %3, align 8
br label %120
18: ; preds = %2
%19 = load i32, ptr %5, align 4
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %37
21: ; preds = %18
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds double, ptr %22, i64 0
%24 = load double, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds double, ptr %25, i64 3
%27 = load double, ptr %26, align 8
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds double, ptr %28, i64 1
%30 = load double, ptr %29, align 8
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds double, ptr %31, i64 2
%33 = load double, ptr %32, align 8
%34 = fmul double %30, %33
%35 = fneg double %34
%36 = call double @llvm.fmuladd.f64(double %24, double %27, double %35)
store double %36, ptr %3, align 8
br label %120
37: ; preds = %18
store double 0.000000e+00, ptr %11, align 8
store i32 0, ptr %6, align 4
br label %38
38: ; preds = %115, %37
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %118
42: ; preds = %38
%43 = load i32, ptr %5, align 4
%44 = sub nsw i32 %43, 1
%45 = load i32, ptr %5, align 4
%46 = sub nsw i32 %45, 1
%47 = mul nsw i32 %44, %46
%48 = sext i32 %47 to i64
%49 = mul i64 %48, 8
%50 = trunc i64 %49 to i32
%51 = call ptr @malloc(i32 noundef %50)
store ptr %51, ptr %10, align 8
store i32 1, ptr %7, align 4
br label %52
52: ; preds = %92, %42
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %95
56: ; preds = %52
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
br label %57
57: ; preds = %88, %56
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr %5, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %91
61: ; preds = %57
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %66
65: ; preds = %61
br label %88
66: ; preds = %61
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %5, align 4
%70 = mul nsw i32 %68, %69
%71 = load i32, ptr %8, align 4
%72 = add nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, ptr %67, i64 %73
%75 = load double, ptr %74, align 8
%76 = load ptr, ptr %10, align 8
%77 = load i32, ptr %7, align 4
%78 = sub nsw i32 %77, 1
%79 = load i32, ptr %5, align 4
%80 = sub nsw i32 %79, 1
%81 = mul nsw i32 %78, %80
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %81, %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, ptr %76, i64 %84
store double %75, ptr %85, align 8
%86 = load i32, ptr %9, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %9, align 4
br label %88
88: ; preds = %66, %65
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %8, align 4
br label %57, !llvm.loop !6
91: ; preds = %57
br label %92
92: ; preds = %91
%93 = load i32, ptr %7, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %7, align 4
br label %52, !llvm.loop !8
95: ; preds = %52
%96 = load i32, ptr %6, align 4
%97 = sitofp i32 %96 to double
%98 = fadd double 1.000000e+00, %97
%99 = fadd double %98, 1.000000e+00
%100 = call double @pow(double noundef -1.000000e+00, double noundef %99) #4
%101 = load ptr, ptr %4, align 8
%102 = load i32, ptr %6, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, ptr %101, i64 %103
%105 = load double, ptr %104, align 8
%106 = fmul double %100, %105
%107 = load ptr, ptr %10, align 8
%108 = load i32, ptr %5, align 4
%109 = sub nsw i32 %108, 1
%110 = call double @ighmm_determinant(ptr noundef %107, i32 noundef %109)
%111 = load double, ptr %11, align 8
%112 = call double @llvm.fmuladd.f64(double %106, double %110, double %111)
store double %112, ptr %11, align 8
%113 = load ptr, ptr %10, align 8
%114 = call i32 @free(ptr noundef %113)
br label %115
115: ; preds = %95
%116 = load i32, ptr %6, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %6, align 4
br label %38, !llvm.loop !9
118: ; preds = %38
%119 = load double, ptr %11, align 8
store double %119, ptr %3, align 8
br label %120
120: ; preds = %118, %21, %14
%121 = load double, ptr %3, align 8
ret double %121
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare ptr @malloc(i32 noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp60c3j2qo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ighmm_determinant(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds double, ptr %15, i64 0
%17 = load double, ptr %16, align 8
store double %17, ptr %3, align 8
br label %126
18: ; preds = %2
%19 = load i32, ptr %5, align 4
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %37
21: ; preds = %18
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds double, ptr %22, i64 0
%24 = load double, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds double, ptr %25, i64 3
%27 = load double, ptr %26, align 8
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds double, ptr %28, i64 1
%30 = load double, ptr %29, align 8
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds double, ptr %31, i64 2
%33 = load double, ptr %32, align 8
%34 = fmul double %30, %33
%35 = fneg double %34
%36 = call double @llvm.fmuladd.f64(double %24, double %27, double %35)
store double %36, ptr %3, align 8
br label %126
37: ; preds = %18
store double 0.000000e+00, ptr %11, align 8
store i32 0, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph5, label %124
.lr.ph5: ; preds = %37
br label %41
41: ; preds = %.lr.ph5, %118
%42 = load i32, ptr %5, align 4
%43 = sub nsw i32 %42, 1
%44 = load i32, ptr %5, align 4
%45 = sub nsw i32 %44, 1
%46 = mul nsw i32 %43, %45
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 8
%49 = trunc i64 %48 to i32
%50 = call ptr @malloc(i32 noundef %49)
store ptr %50, ptr %10, align 8
store i32 1, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %5, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph2, label %98
.lr.ph2: ; preds = %41
br label %54
54: ; preds = %.lr.ph2, %92
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr %5, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %.lr.ph, label %91
.lr.ph: ; preds = %54
br label %58
58: ; preds = %.lr.ph, %85
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %6, align 4
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
br label %85
63: ; preds = %58
%64 = load ptr, ptr %4, align 8
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %5, align 4
%67 = mul nsw i32 %65, %66
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %64, i64 %70
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %7, align 4
%75 = sub nsw i32 %74, 1
%76 = load i32, ptr %5, align 4
%77 = sub nsw i32 %76, 1
%78 = mul nsw i32 %75, %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %78, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %73, i64 %81
store double %72, ptr %82, align 8
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %9, align 4
br label %85
85: ; preds = %63, %62
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
%88 = load i32, ptr %8, align 4
%89 = load i32, ptr %5, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %58, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %85
br label %91
91: ; preds = %._crit_edge, %54
br label %92
92: ; preds = %91
%93 = load i32, ptr %7, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %7, align 4
%95 = load i32, ptr %7, align 4
%96 = load i32, ptr %5, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %92
br label %98
98: ; preds = %._crit_edge3, %41
%99 = load i32, ptr %6, align 4
%100 = sitofp i32 %99 to double
%101 = fadd double 1.000000e+00, %100
%102 = fadd double %101, 1.000000e+00
%103 = call double @pow(double noundef -1.000000e+00, double noundef %102) #4
%104 = load ptr, ptr %4, align 8
%105 = load i32, ptr %6, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, ptr %104, i64 %106
%108 = load double, ptr %107, align 8
%109 = fmul double %103, %108
%110 = load ptr, ptr %10, align 8
%111 = load i32, ptr %5, align 4
%112 = sub nsw i32 %111, 1
%113 = call double @ighmm_determinant(ptr noundef %110, i32 noundef %112)
%114 = load double, ptr %11, align 8
%115 = call double @llvm.fmuladd.f64(double %109, double %113, double %114)
store double %115, ptr %11, align 8
%116 = load ptr, ptr %10, align 8
%117 = call i32 @free(ptr noundef %116)
br label %118
118: ; preds = %98
%119 = load i32, ptr %6, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %6, align 4
%121 = load i32, ptr %6, align 4
%122 = load i32, ptr %5, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %41, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %118
br label %124
124: ; preds = %._crit_edge6, %37
%125 = load double, ptr %11, align 8
store double %125, ptr %3, align 8
br label %126
126: ; preds = %124, %21, %14
%127 = load double, ptr %3, align 8
ret double %127
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare ptr @malloc(i32 noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpnwmy1_1_.c'
source_filename = "/tmp/tmpnwmy1_1_.c"
target datalayout = "e-m:e-p270: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/tmpnwmy1_1_.c"
target datalayout = "e-m:e-p270: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/tmp55enumx3.c'
source_filename = "/tmp/tmp55enumx3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f186(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 @f185(ptr noundef %3)
ret i32 %4
}
declare i32 @f185(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp55enumx3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f186(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 @f185(ptr noundef %3)
ret i32 %4
}
declare i32 @f185(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9xmax5a8.c'
source_filename = "/tmp/tmp9xmax5a8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpbrk(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 %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strcspn(ptr noundef %7, ptr noundef %8)
store i64 %9, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = load i64, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %10, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %21
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %6, align 8
%20 = getelementptr inbounds i8, ptr %18, i64 %19
store ptr %20, ptr %3, align 8
br label %21
21: ; preds = %17, %16
%22 = load ptr, ptr %3, align 8
ret ptr %22
}
declare i64 @strcspn(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/tmp9xmax5a8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpbrk(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 %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strcspn(ptr noundef %7, ptr noundef %8)
store i64 %9, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = load i64, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %10, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %21
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %6, align 8
%20 = getelementptr inbounds i8, ptr %18, i64 %19
store ptr %20, ptr %3, align 8
br label %21
21: ; preds = %17, %16
%22 = load ptr, ptr %3, align 8
ret ptr %22
}
declare i64 @strcspn(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/tmpw9g_c0vo.c'
source_filename = "/tmp/tmpw9g_c0vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"The value of INT_MAX is %i\0A\00", align 1
@INT_MAX = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"The value of INT_MIN is %i\0A\00", align 1
@INT_MIN = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"An int takes %zu bytes\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"The value of FLT_MAX is %f\0A\00", align 1
@FLT_MAX = dso_local global double 0.000000e+00, align 8
@.str.4 = private unnamed_addr constant [31 x i8] c"The value of FLT_MIN is %.50f\0A\00", align 1
@FLT_MIN = dso_local global double 0.000000e+00, align 8
@.str.5 = private unnamed_addr constant [26 x i8] c"A float takes %zu bytes\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"The value of CHAR_MAX is %i\0A\00", align 1
@CHAR_MAX = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [29 x i8] c"The value of CHAR_MIN is %i\0A\00", align 1
@CHAR_MIN = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [25 x i8] c"A char takes %zu bytes\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [28 x i8] c"The value of DBL_MAX is %f\0A\00", align 1
@DBL_MAX = dso_local global double 0.000000e+00, align 8
@.str.10 = private unnamed_addr constant [32 x i8] c"The value of DBL_MIN is %.200f\0A\00", align 1
@DBL_MIN = dso_local global double 0.000000e+00, align 8
@.str.11 = private unnamed_addr constant [27 x i8] c"A double takes %zu bytes\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [29 x i8] c"The value of SHRT_MAX is %d\0A\00", align 1
@SHRT_MAX = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [29 x i8] c"The value of SHRT_MIN is %d\0A\00", align 1
@SHRT_MIN = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [26 x i8] c"A short takes %zu bytes\0A\0A\00", align 1
@.str.15 = private unnamed_addr constant [30 x i8] c"The value of LONG_MAX is %ld\0A\00", align 1
@LONG_MAX = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [30 x i8] c"The value of LONG_MIN is %ld\0A\00", align 1
@LONG_MIN = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [24 x i8] c"A long takes %zu bytes\0A\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 = load i32, ptr @INT_MAX, align 4
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = load i32, ptr @INT_MIN, align 4
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.2, i32 noundef 4)
%7 = load double, ptr @FLT_MAX, align 8
%8 = fptosi double %7 to i32
%9 = call i32 @printf(ptr noundef @.str.3, i32 noundef %8)
%10 = load double, ptr @FLT_MIN, align 8
%11 = fptosi double %10 to i32
%12 = call i32 @printf(ptr noundef @.str.4, i32 noundef %11)
%13 = call i32 @printf(ptr noundef @.str.5, i32 noundef 4)
%14 = load i32, ptr @CHAR_MAX, align 4
%15 = call i32 @printf(ptr noundef @.str.6, i32 noundef %14)
%16 = load i32, ptr @CHAR_MIN, align 4
%17 = call i32 @printf(ptr noundef @.str.7, i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.8, i32 noundef 1)
%19 = load double, ptr @DBL_MAX, align 8
%20 = fptosi double %19 to i32
%21 = call i32 @printf(ptr noundef @.str.9, i32 noundef %20)
%22 = load double, ptr @DBL_MIN, align 8
%23 = fptosi double %22 to i32
%24 = call i32 @printf(ptr noundef @.str.10, i32 noundef %23)
%25 = call i32 @printf(ptr noundef @.str.11, i32 noundef 8)
%26 = load i32, ptr @SHRT_MAX, align 4
%27 = call i32 @printf(ptr noundef @.str.12, i32 noundef %26)
%28 = load i32, ptr @SHRT_MIN, align 4
%29 = call i32 @printf(ptr noundef @.str.13, i32 noundef %28)
%30 = call i32 @printf(ptr noundef @.str.14, i32 noundef 2)
%31 = load i32, ptr @LONG_MAX, align 4
%32 = call i32 @printf(ptr noundef @.str.15, i32 noundef %31)
%33 = load i32, ptr @LONG_MIN, align 4
%34 = call i32 @printf(ptr noundef @.str.16, i32 noundef %33)
%35 = call i32 @printf(ptr noundef @.str.17, i32 noundef 8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw9g_c0vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"The value of INT_MAX is %i\0A\00", align 1
@INT_MAX = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"The value of INT_MIN is %i\0A\00", align 1
@INT_MIN = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"An int takes %zu bytes\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"The value of FLT_MAX is %f\0A\00", align 1
@FLT_MAX = dso_local global double 0.000000e+00, align 8
@.str.4 = private unnamed_addr constant [31 x i8] c"The value of FLT_MIN is %.50f\0A\00", align 1
@FLT_MIN = dso_local global double 0.000000e+00, align 8
@.str.5 = private unnamed_addr constant [26 x i8] c"A float takes %zu bytes\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"The value of CHAR_MAX is %i\0A\00", align 1
@CHAR_MAX = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [29 x i8] c"The value of CHAR_MIN is %i\0A\00", align 1
@CHAR_MIN = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [25 x i8] c"A char takes %zu bytes\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [28 x i8] c"The value of DBL_MAX is %f\0A\00", align 1
@DBL_MAX = dso_local global double 0.000000e+00, align 8
@.str.10 = private unnamed_addr constant [32 x i8] c"The value of DBL_MIN is %.200f\0A\00", align 1
@DBL_MIN = dso_local global double 0.000000e+00, align 8
@.str.11 = private unnamed_addr constant [27 x i8] c"A double takes %zu bytes\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [29 x i8] c"The value of SHRT_MAX is %d\0A\00", align 1
@SHRT_MAX = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [29 x i8] c"The value of SHRT_MIN is %d\0A\00", align 1
@SHRT_MIN = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [26 x i8] c"A short takes %zu bytes\0A\0A\00", align 1
@.str.15 = private unnamed_addr constant [30 x i8] c"The value of LONG_MAX is %ld\0A\00", align 1
@LONG_MAX = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [30 x i8] c"The value of LONG_MIN is %ld\0A\00", align 1
@LONG_MIN = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [24 x i8] c"A long takes %zu bytes\0A\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 = load i32, ptr @INT_MAX, align 4
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = load i32, ptr @INT_MIN, align 4
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.2, i32 noundef 4)
%7 = load double, ptr @FLT_MAX, align 8
%8 = fptosi double %7 to i32
%9 = call i32 @printf(ptr noundef @.str.3, i32 noundef %8)
%10 = load double, ptr @FLT_MIN, align 8
%11 = fptosi double %10 to i32
%12 = call i32 @printf(ptr noundef @.str.4, i32 noundef %11)
%13 = call i32 @printf(ptr noundef @.str.5, i32 noundef 4)
%14 = load i32, ptr @CHAR_MAX, align 4
%15 = call i32 @printf(ptr noundef @.str.6, i32 noundef %14)
%16 = load i32, ptr @CHAR_MIN, align 4
%17 = call i32 @printf(ptr noundef @.str.7, i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.8, i32 noundef 1)
%19 = load double, ptr @DBL_MAX, align 8
%20 = fptosi double %19 to i32
%21 = call i32 @printf(ptr noundef @.str.9, i32 noundef %20)
%22 = load double, ptr @DBL_MIN, align 8
%23 = fptosi double %22 to i32
%24 = call i32 @printf(ptr noundef @.str.10, i32 noundef %23)
%25 = call i32 @printf(ptr noundef @.str.11, i32 noundef 8)
%26 = load i32, ptr @SHRT_MAX, align 4
%27 = call i32 @printf(ptr noundef @.str.12, i32 noundef %26)
%28 = load i32, ptr @SHRT_MIN, align 4
%29 = call i32 @printf(ptr noundef @.str.13, i32 noundef %28)
%30 = call i32 @printf(ptr noundef @.str.14, i32 noundef 2)
%31 = load i32, ptr @LONG_MAX, align 4
%32 = call i32 @printf(ptr noundef @.str.15, i32 noundef %31)
%33 = load i32, ptr @LONG_MIN, align 4
%34 = call i32 @printf(ptr noundef @.str.16, i32 noundef %33)
%35 = call i32 @printf(ptr noundef @.str.17, i32 noundef 8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6n68o9fm.c'
source_filename = "/tmp/tmp6n68o9fm.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"usage: %s [<bpf_file>]\0A\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"error: unable to open \22%s\22 (%s)\0A\00", align 1
@errno = dso_local global i32 0, align 4
@stdin = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EINVAL, align 4
store i32 %16, ptr %3, align 4
br label %45
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %37
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call ptr @fopen(ptr noundef %23, ptr noundef @.str.1)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %36
27: ; preds = %20
%28 = load i32, ptr @stderr, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr @errno, align 4
%33 = call ptr @strerror(i32 noundef %32)
%34 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.2, ptr noundef %31, ptr noundef %33)
%35 = load i32, ptr @errno, align 4
store i32 %35, ptr %3, align 4
br label %45
36: ; preds = %20
br label %39
37: ; preds = %17
%38 = load ptr, ptr @stdin, align 8
store ptr %38, ptr %7, align 8
br label %39
39: ; preds = %37, %36
%40 = load ptr, ptr %7, align 8
%41 = call i32 @bpf_decode(ptr noundef %40)
store i32 %41, ptr %6, align 4
%42 = load ptr, ptr %7, align 8
%43 = call i32 @fclose(ptr noundef %42)
%44 = load i32, ptr %6, align 4
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %39, %27, %10
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @bpf_decode(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6n68o9fm.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"usage: %s [<bpf_file>]\0A\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"error: unable to open \22%s\22 (%s)\0A\00", align 1
@errno = dso_local global i32 0, align 4
@stdin = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EINVAL, align 4
store i32 %16, ptr %3, align 4
br label %45
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %37
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call ptr @fopen(ptr noundef %23, ptr noundef @.str.1)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %36
27: ; preds = %20
%28 = load i32, ptr @stderr, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr @errno, align 4
%33 = call ptr @strerror(i32 noundef %32)
%34 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.2, ptr noundef %31, ptr noundef %33)
%35 = load i32, ptr @errno, align 4
store i32 %35, ptr %3, align 4
br label %45
36: ; preds = %20
br label %39
37: ; preds = %17
%38 = load ptr, ptr @stdin, align 8
store ptr %38, ptr %7, align 8
br label %39
39: ; preds = %37, %36
%40 = load ptr, ptr %7, align 8
%41 = call i32 @bpf_decode(ptr noundef %40)
store i32 %41, ptr %6, align 4
%42 = load ptr, ptr %7, align 8
%43 = call i32 @fclose(ptr noundef %42)
%44 = load i32, ptr %6, align 4
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %39, %27, %10
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @bpf_decode(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi_eql7bc.c'
source_filename = "/tmp/tmpi_eql7bc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strndup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ugt i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i64, ptr %4, align 8
store i64 %13, ptr %5, align 8
br label %14
14: ; preds = %12, %2
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, 1
%17 = call i64 @malloc(i64 noundef %16)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i64, ptr %5, align 8
%22 = call i32 @memcpy(ptr noundef %19, ptr noundef %20, i64 noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = load i64, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store i8 0, ptr %25, align 1
%26 = load ptr, ptr %6, align 8
ret ptr %26
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi_eql7bc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strndup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ugt i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i64, ptr %4, align 8
store i64 %13, ptr %5, align 8
br label %14
14: ; preds = %12, %2
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, 1
%17 = call i64 @malloc(i64 noundef %16)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i64, ptr %5, align 8
%22 = call i32 @memcpy(ptr noundef %19, ptr noundef %20, i64 noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = load i64, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store i8 0, ptr %25, align 1
%26 = load ptr, ptr %6, align 8
ret ptr %26
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6u81baca.c'
source_filename = "/tmp/tmp6u81baca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @call_dtrsm(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i32 noundef %4, i32 noundef %5, double noundef %6, ptr noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef %10) #0 {
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
store i8 %0, ptr %12, align 1
store i8 %1, ptr %13, align 1
store i8 %2, ptr %14, align 1
store i8 %3, ptr %15, align 1
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store double %6, ptr %18, align 8
store ptr %7, ptr %19, align 8
store i32 %8, ptr %20, align 4
store ptr %9, ptr %21, align 8
store i32 %10, ptr %22, align 4
%23 = load ptr, ptr %19, align 8
%24 = load ptr, ptr %21, align 8
%25 = call i32 @dtrsm_(ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %23, ptr noundef %20, ptr noundef %24, ptr noundef %22)
ret i32 0
}
declare i32 @dtrsm_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6u81baca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @call_dtrsm(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i32 noundef %4, i32 noundef %5, double noundef %6, ptr noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef %10) #0 {
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
store i8 %0, ptr %12, align 1
store i8 %1, ptr %13, align 1
store i8 %2, ptr %14, align 1
store i8 %3, ptr %15, align 1
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store double %6, ptr %18, align 8
store ptr %7, ptr %19, align 8
store i32 %8, ptr %20, align 4
store ptr %9, ptr %21, align 8
store i32 %10, ptr %22, align 4
%23 = load ptr, ptr %19, align 8
%24 = load ptr, ptr %21, align 8
%25 = call i32 @dtrsm_(ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %23, ptr noundef %20, ptr noundef %24, ptr noundef %22)
ret i32 0
}
declare i32 @dtrsm_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8ovmbwzn.c'
source_filename = "/tmp/tmp8ovmbwzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
store i32 %8, ptr %7, align 4
br label %9
9: ; preds = %20, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %23
13: ; preds = %9
%14 = load ptr, ptr %4, 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, 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
br label %9, !llvm.loop !6
23: ; preds = %9
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ovmbwzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %19
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %12
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp sle i32 %22, %23
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %3
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmw0df3f5.c'
source_filename = "/tmp/tmpmw0df3f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"USAGE: ex17 <dbfile> <action> [action params]\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"There's not that many records.\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Need id, name, email to set\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Need id to delete\00", align 1
@.str.4 = private unnamed_addr constant [60 x i8] c"Invalid action, only: c=create, g=get, s=set, d=fel, l=list\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 i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @die(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
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %7, align 1
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %7, align 1
%25 = call ptr @Database_open(ptr noundef %23, i8 noundef signext %24)
store ptr %25, ptr %8, align 8
store i32 0, ptr %9, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 3
br i1 %27, label %28, label %33
28: ; preds = %14
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 3
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %28, %14
%34 = load i32, ptr %9, align 4
%35 = icmp sge i32 %34, 100
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @die(ptr noundef @.str.1)
br label %38
38: ; preds = %36, %33
%39 = load i8, ptr %7, align 1
%40 = sext i8 %39 to i32
switch i32 %40, label %86 [
i32 99, label %41
i32 103, label %46
i32 115, label %55
i32 100, label %72
i32 108, label %83
]
41: ; preds = %38
%42 = load ptr, ptr %8, align 8
%43 = call i32 @Database_create(ptr noundef %42)
%44 = load ptr, ptr %8, align 8
%45 = call i32 @Database_write(ptr noundef %44)
br label %88
46: ; preds = %38
%47 = load i32, ptr %4, align 4
%48 = icmp ne i32 %47, 4
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @die(ptr noundef @.str.2)
br label %51
51: ; preds = %49, %46
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %9, align 4
%54 = call i32 @Database_get(ptr noundef %52, i32 noundef %53)
br label %88
55: ; preds = %38
%56 = load i32, ptr %4, align 4
%57 = icmp ne i32 %56, 6
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @die(ptr noundef @.str.2)
br label %60
60: ; preds = %58, %55
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds ptr, ptr %63, i64 4
%65 = load ptr, ptr %64, align 8
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 5
%68 = load ptr, ptr %67, align 8
%69 = call i32 @Database_set(ptr noundef %61, i32 noundef %62, ptr noundef %65, ptr noundef %68)
%70 = load ptr, ptr %8, align 8
%71 = call i32 @Database_write(ptr noundef %70)
br label %88
72: ; preds = %38
%73 = load i32, ptr %4, align 4
%74 = icmp ne i32 %73, 4
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @die(ptr noundef @.str.3)
br label %77
77: ; preds = %75, %72
%78 = load ptr, ptr %8, align 8
%79 = load i32, ptr %9, align 4
%80 = call i32 @Database_delete(ptr noundef %78, i32 noundef %79)
%81 = load ptr, ptr %8, align 8
%82 = call i32 @Database_write(ptr noundef %81)
br label %88
83: ; preds = %38
%84 = load ptr, ptr %8, align 8
%85 = call i32 @Database_list(ptr noundef %84)
br label %88
86: ; preds = %38
%87 = call i32 @die(ptr noundef @.str.4)
br label %88
88: ; preds = %86, %83, %77, %60, %51, %41
%89 = load ptr, ptr %8, align 8
%90 = call i32 @Database_close(ptr noundef %89)
ret i32 0
}
declare i32 @die(ptr noundef) #1
declare ptr @Database_open(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Database_create(ptr noundef) #1
declare i32 @Database_write(ptr noundef) #1
declare i32 @Database_get(ptr noundef, i32 noundef) #1
declare i32 @Database_set(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @Database_delete(ptr noundef, i32 noundef) #1
declare i32 @Database_list(ptr noundef) #1
declare i32 @Database_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmw0df3f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"USAGE: ex17 <dbfile> <action> [action params]\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"There's not that many records.\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Need id, name, email to set\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Need id to delete\00", align 1
@.str.4 = private unnamed_addr constant [60 x i8] c"Invalid action, only: c=create, g=get, s=set, d=fel, l=list\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 i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @die(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
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %7, align 1
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %7, align 1
%25 = call ptr @Database_open(ptr noundef %23, i8 noundef signext %24)
store ptr %25, ptr %8, align 8
store i32 0, ptr %9, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 3
br i1 %27, label %28, label %33
28: ; preds = %14
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 3
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %28, %14
%34 = load i32, ptr %9, align 4
%35 = icmp sge i32 %34, 100
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @die(ptr noundef @.str.1)
br label %38
38: ; preds = %36, %33
%39 = load i8, ptr %7, align 1
%40 = sext i8 %39 to i32
switch i32 %40, label %86 [
i32 99, label %41
i32 103, label %46
i32 115, label %55
i32 100, label %72
i32 108, label %83
]
41: ; preds = %38
%42 = load ptr, ptr %8, align 8
%43 = call i32 @Database_create(ptr noundef %42)
%44 = load ptr, ptr %8, align 8
%45 = call i32 @Database_write(ptr noundef %44)
br label %88
46: ; preds = %38
%47 = load i32, ptr %4, align 4
%48 = icmp ne i32 %47, 4
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @die(ptr noundef @.str.2)
br label %51
51: ; preds = %49, %46
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %9, align 4
%54 = call i32 @Database_get(ptr noundef %52, i32 noundef %53)
br label %88
55: ; preds = %38
%56 = load i32, ptr %4, align 4
%57 = icmp ne i32 %56, 6
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @die(ptr noundef @.str.2)
br label %60
60: ; preds = %58, %55
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds ptr, ptr %63, i64 4
%65 = load ptr, ptr %64, align 8
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 5
%68 = load ptr, ptr %67, align 8
%69 = call i32 @Database_set(ptr noundef %61, i32 noundef %62, ptr noundef %65, ptr noundef %68)
%70 = load ptr, ptr %8, align 8
%71 = call i32 @Database_write(ptr noundef %70)
br label %88
72: ; preds = %38
%73 = load i32, ptr %4, align 4
%74 = icmp ne i32 %73, 4
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @die(ptr noundef @.str.3)
br label %77
77: ; preds = %75, %72
%78 = load ptr, ptr %8, align 8
%79 = load i32, ptr %9, align 4
%80 = call i32 @Database_delete(ptr noundef %78, i32 noundef %79)
%81 = load ptr, ptr %8, align 8
%82 = call i32 @Database_write(ptr noundef %81)
br label %88
83: ; preds = %38
%84 = load ptr, ptr %8, align 8
%85 = call i32 @Database_list(ptr noundef %84)
br label %88
86: ; preds = %38
%87 = call i32 @die(ptr noundef @.str.4)
br label %88
88: ; preds = %86, %83, %77, %60, %51, %41
%89 = load ptr, ptr %8, align 8
%90 = call i32 @Database_close(ptr noundef %89)
ret i32 0
}
declare i32 @die(ptr noundef) #1
declare ptr @Database_open(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Database_create(ptr noundef) #1
declare i32 @Database_write(ptr noundef) #1
declare i32 @Database_get(ptr noundef, i32 noundef) #1
declare i32 @Database_set(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @Database_delete(ptr noundef, i32 noundef) #1
declare i32 @Database_list(ptr noundef) #1
declare i32 @Database_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmun5h02_.c'
source_filename = "/tmp/tmpmun5h02_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(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 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmun5h02_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(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 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp90bb2g4w.c'
source_filename = "/tmp/tmp90bb2g4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [64 x i32], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 8, ptr %8, align 4
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %23, %3
%16 = load i32, ptr %10, align 4
%17 = icmp slt i32 %16, 64
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %10, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %21
store i32 %19, ptr %22, align 4
br label %23
23: ; preds = %18
%24 = load i32, ptr %10, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %10, align 4
br label %15, !llvm.loop !6
26: ; preds = %15
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %7, align 4
%30 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 0
%31 = call i32 @foo(i32 noundef %27, i32 noundef %28, i32 noundef %29, ptr noundef %8, ptr noundef %30)
%32 = load i32, ptr %5, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %56
34: ; preds = %26
%35 = load i32, ptr %8, align 4
%36 = icmp ne i32 %35, 2056
br i1 %36, label %37, label %38
37: ; preds = %34
store i32 1, ptr %4, align 4
br label %176
38: ; preds = %34
store i32 0, ptr %10, align 4
br label %39
39: ; preds = %52, %38
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %40, 64
br i1 %41, label %42, label %55
42: ; preds = %39
%43 = load i32, ptr %10, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 496
%49 = icmp ne i32 %46, %48
br i1 %49, label %50, label %51
50: ; preds = %42
store i32 1, ptr %4, align 4
br label %176
51: ; preds = %42
br label %52
52: ; preds = %51
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
br label %39, !llvm.loop !8
55: ; preds = %39
br label %175
56: ; preds = %26
%57 = load i32, ptr %5, align 4
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %109
59: ; preds = %56
%60 = call i32 (...) @omp_get_num_teams()
store i32 %60, ptr %11, align 4
%61 = call i32 (...) @omp_get_team_num()
store i32 %61, ptr %12, align 4
%62 = load i32, ptr %12, align 4
store i32 %62, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %10, align 4
br label %63
63: ; preds = %95, %59
%64 = load i32, ptr %10, align 4
%65 = icmp slt i32 %64, 64
br i1 %65, label %66, label %98
66: ; preds = %63
%67 = load i32, ptr %10, align 4
%68 = load i32, ptr %13, align 4
%69 = icmp eq i32 %67, %68
br i1 %69, label %70, label %85
70: ; preds = %66
%71 = load i32, ptr %10, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 496
%77 = icmp ne i32 %74, %76
br i1 %77, label %78, label %79
78: ; preds = %70
store i32 1, ptr %4, align 4
br label %176
79: ; preds = %70
%80 = load i32, ptr %14, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %14, align 4
%82 = load i32, ptr %13, align 4
%83 = load i32, ptr %11, align 4
%84 = add nsw i32 %82, %83
store i32 %84, ptr %13, align 4
br label %94
85: ; preds = %66
%86 = load i32, ptr %10, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load i32, ptr %10, align 4
%91 = icmp ne i32 %89, %90
br i1 %91, label %92, label %93
92: ; preds = %85
store i32 1, ptr %4, align 4
br label %176
93: ; preds = %85
br label %94
94: ; preds = %93, %79
br label %95
95: ; preds = %94
%96 = load i32, ptr %10, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %10, align 4
br label %63, !llvm.loop !9
98: ; preds = %63
%99 = load i32, ptr %8, align 4
%100 = icmp slt i32 %99, 8
br i1 %100, label %107, label %101
101: ; preds = %98
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr %14, align 4
%104 = mul nsw i32 %103, 32
%105 = add nsw i32 8, %104
%106 = icmp sgt i32 %102, %105
br i1 %106, label %107, label %108
107: ; preds = %101, %98
store i32 1, ptr %4, align 4
br label %176
108: ; preds = %101
br label %174
109: ; preds = %56
%110 = load i32, ptr %5, align 4
%111 = icmp eq i32 %110, 2
br i1 %111, label %112, label %139
112: ; preds = %109
%113 = load i32, ptr %8, align 4
%114 = icmp ne i32 %113, 40
br i1 %114, label %115, label %116
115: ; preds = %112
store i32 1, ptr %4, align 4
br label %176
116: ; preds = %112
store i32 0, ptr %10, align 4
br label %117
117: ; preds = %135, %116
%118 = load i32, ptr %10, align 4
%119 = icmp slt i32 %118, 64
br i1 %119, label %120, label %138
120: ; preds = %117
%121 = load i32, ptr %10, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %122
%124 = load i32, ptr %123, align 4
%125 = load i32, ptr %10, align 4
%126 = load i32, ptr %10, align 4
%127 = load i32, ptr %6, align 4
%128 = icmp eq i32 %126, %127
%129 = zext i1 %128 to i64
%130 = select i1 %128, i32 496, i32 0
%131 = add nsw i32 %125, %130
%132 = icmp ne i32 %124, %131
br i1 %132, label %133, label %134
133: ; preds = %120
store i32 1, ptr %4, align 4
br label %176
134: ; preds = %120
br label %135
135: ; preds = %134
%136 = load i32, ptr %10, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %10, align 4
br label %117, !llvm.loop !10
138: ; preds = %117
br label %173
139: ; preds = %109
%140 = load i32, ptr %5, align 4
%141 = icmp eq i32 %140, 3
br i1 %141, label %142, label %172
142: ; preds = %139
%143 = load i32, ptr %8, align 4
%144 = icmp ne i32 %143, 9
br i1 %144, label %145, label %146
145: ; preds = %142
store i32 1, ptr %4, align 4
br label %176
146: ; preds = %142
store i32 0, ptr %10, align 4
br label %147
147: ; preds = %168, %146
%148 = load i32, ptr %10, align 4
%149 = icmp slt i32 %148, 64
br i1 %149, label %150, label %171
150: ; preds = %147
%151 = load i32, ptr %10, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %152
%154 = load i32, ptr %153, align 4
%155 = load i32, ptr %10, align 4
%156 = load i32, ptr %10, align 4
%157 = load i32, ptr %6, align 4
%158 = icmp eq i32 %156, %157
br i1 %158, label %159, label %161
159: ; preds = %150
%160 = load i32, ptr %7, align 4
br label %162
161: ; preds = %150
br label %162
162: ; preds = %161, %159
%163 = phi i32 [ %160, %159 ], [ 0, %161 ]
%164 = add nsw i32 %155, %163
%165 = icmp ne i32 %154, %164
br i1 %165, label %166, label %167
166: ; preds = %162
store i32 1, ptr %4, align 4
br label %176
167: ; preds = %162
br label %168
168: ; preds = %167
%169 = load i32, ptr %10, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %10, align 4
br label %147, !llvm.loop !11
171: ; preds = %147
br label %172
172: ; preds = %171, %139
br label %173
173: ; preds = %172, %138
br label %174
174: ; preds = %173, %108
br label %175
175: ; preds = %174, %55
store i32 0, ptr %4, align 4
br label %176
176: ; preds = %175, %166, %145, %133, %115, %107, %92, %78, %50, %37
%177 = load i32, ptr %4, align 4
ret i32 %177
}
declare i32 @foo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @omp_get_num_teams(...) #1
declare i32 @omp_get_team_num(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp90bb2g4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [64 x i32], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 8, ptr %8, align 4
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = icmp slt i32 %15, 64
br i1 %16, label %.lr.ph, label %27
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %22
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %20
store i32 %18, ptr %21, align 4
br label %22
22: ; preds = %17
%23 = load i32, ptr %10, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %10, align 4
%25 = load i32, ptr %10, align 4
%26 = icmp slt i32 %25, 64
br i1 %26, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %3
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %7, align 4
%31 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 0
%32 = call i32 @foo(i32 noundef %28, i32 noundef %29, i32 noundef %30, ptr noundef %8, ptr noundef %31)
%33 = load i32, ptr %5, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %58
35: ; preds = %27
%36 = load i32, ptr %8, align 4
%37 = icmp ne i32 %36, 2056
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 1, ptr %4, align 4
br label %181
39: ; preds = %35
store i32 0, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %40, 64
br i1 %41, label %.lr.ph11, label %57
.lr.ph11: ; preds = %39
br label %42
42: ; preds = %.lr.ph11, %52
%43 = load i32, ptr %10, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 496
%49 = icmp ne i32 %46, %48
br i1 %49, label %50, label %51
50: ; preds = %42
store i32 1, ptr %4, align 4
br label %181
51: ; preds = %42
br label %52
52: ; preds = %51
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = icmp slt i32 %55, 64
br i1 %56, label %42, label %._crit_edge12, !llvm.loop !8
._crit_edge12: ; preds = %52
br label %57
57: ; preds = %._crit_edge12, %39
br label %180
58: ; preds = %27
%59 = load i32, ptr %5, align 4
%60 = icmp eq i32 %59, 1
br i1 %60, label %61, label %112
61: ; preds = %58
%62 = call i32 (...) @omp_get_num_teams()
store i32 %62, ptr %11, align 4
%63 = call i32 (...) @omp_get_team_num()
store i32 %63, ptr %12, align 4
%64 = load i32, ptr %12, align 4
store i32 %64, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %10, align 4
%65 = load i32, ptr %10, align 4
%66 = icmp slt i32 %65, 64
br i1 %66, label %.lr.ph8, label %101
.lr.ph8: ; preds = %61
br label %67
67: ; preds = %.lr.ph8, %96
%68 = load i32, ptr %10, align 4
%69 = load i32, ptr %13, align 4
%70 = icmp eq i32 %68, %69
br i1 %70, label %71, label %86
71: ; preds = %67
%72 = load i32, ptr %10, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = load i32, ptr %10, align 4
%77 = add nsw i32 %76, 496
%78 = icmp ne i32 %75, %77
br i1 %78, label %79, label %80
79: ; preds = %71
store i32 1, ptr %4, align 4
br label %181
80: ; preds = %71
%81 = load i32, ptr %14, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %14, align 4
%83 = load i32, ptr %13, align 4
%84 = load i32, ptr %11, align 4
%85 = add nsw i32 %83, %84
store i32 %85, ptr %13, align 4
br label %95
86: ; preds = %67
%87 = load i32, ptr %10, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
%91 = load i32, ptr %10, align 4
%92 = icmp ne i32 %90, %91
br i1 %92, label %93, label %94
93: ; preds = %86
store i32 1, ptr %4, align 4
br label %181
94: ; preds = %86
br label %95
95: ; preds = %94, %80
br label %96
96: ; preds = %95
%97 = load i32, ptr %10, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %10, align 4
%99 = load i32, ptr %10, align 4
%100 = icmp slt i32 %99, 64
br i1 %100, label %67, label %._crit_edge9, !llvm.loop !9
._crit_edge9: ; preds = %96
br label %101
101: ; preds = %._crit_edge9, %61
%102 = load i32, ptr %8, align 4
%103 = icmp slt i32 %102, 8
br i1 %103, label %110, label %104
104: ; preds = %101
%105 = load i32, ptr %8, align 4
%106 = load i32, ptr %14, align 4
%107 = mul nsw i32 %106, 32
%108 = add nsw i32 8, %107
%109 = icmp sgt i32 %105, %108
br i1 %109, label %110, label %111
110: ; preds = %104, %101
store i32 1, ptr %4, align 4
br label %181
111: ; preds = %104
br label %179
112: ; preds = %58
%113 = load i32, ptr %5, align 4
%114 = icmp eq i32 %113, 2
br i1 %114, label %115, label %143
115: ; preds = %112
%116 = load i32, ptr %8, align 4
%117 = icmp ne i32 %116, 40
br i1 %117, label %118, label %119
118: ; preds = %115
store i32 1, ptr %4, align 4
br label %181
119: ; preds = %115
store i32 0, ptr %10, align 4
%120 = load i32, ptr %10, align 4
%121 = icmp slt i32 %120, 64
br i1 %121, label %.lr.ph5, label %142
.lr.ph5: ; preds = %119
br label %122
122: ; preds = %.lr.ph5, %137
%123 = load i32, ptr %10, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %124
%126 = load i32, ptr %125, align 4
%127 = load i32, ptr %10, align 4
%128 = load i32, ptr %10, align 4
%129 = load i32, ptr %6, align 4
%130 = icmp eq i32 %128, %129
%131 = zext i1 %130 to i64
%132 = select i1 %130, i32 496, i32 0
%133 = add nsw i32 %127, %132
%134 = icmp ne i32 %126, %133
br i1 %134, label %135, label %136
135: ; preds = %122
store i32 1, ptr %4, align 4
br label %181
136: ; preds = %122
br label %137
137: ; preds = %136
%138 = load i32, ptr %10, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %10, align 4
%140 = load i32, ptr %10, align 4
%141 = icmp slt i32 %140, 64
br i1 %141, label %122, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %137
br label %142
142: ; preds = %._crit_edge6, %119
br label %178
143: ; preds = %112
%144 = load i32, ptr %5, align 4
%145 = icmp eq i32 %144, 3
br i1 %145, label %146, label %177
146: ; preds = %143
%147 = load i32, ptr %8, align 4
%148 = icmp ne i32 %147, 9
br i1 %148, label %149, label %150
149: ; preds = %146
store i32 1, ptr %4, align 4
br label %181
150: ; preds = %146
store i32 0, ptr %10, align 4
%151 = load i32, ptr %10, align 4
%152 = icmp slt i32 %151, 64
br i1 %152, label %.lr.ph2, label %176
.lr.ph2: ; preds = %150
br label %153
153: ; preds = %.lr.ph2, %171
%154 = load i32, ptr %10, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 %155
%157 = load i32, ptr %156, align 4
%158 = load i32, ptr %10, align 4
%159 = load i32, ptr %10, align 4
%160 = load i32, ptr %6, align 4
%161 = icmp eq i32 %159, %160
br i1 %161, label %162, label %164
162: ; preds = %153
%163 = load i32, ptr %7, align 4
br label %165
164: ; preds = %153
br label %165
165: ; preds = %164, %162
%166 = phi i32 [ %163, %162 ], [ 0, %164 ]
%167 = add nsw i32 %158, %166
%168 = icmp ne i32 %157, %167
br i1 %168, label %169, label %170
169: ; preds = %165
store i32 1, ptr %4, align 4
br label %181
170: ; preds = %165
br label %171
171: ; preds = %170
%172 = load i32, ptr %10, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %10, align 4
%174 = load i32, ptr %10, align 4
%175 = icmp slt i32 %174, 64
br i1 %175, label %153, label %._crit_edge3, !llvm.loop !11
._crit_edge3: ; preds = %171
br label %176
176: ; preds = %._crit_edge3, %150
br label %177
177: ; preds = %176, %143
br label %178
178: ; preds = %177, %142
br label %179
179: ; preds = %178, %111
br label %180
180: ; preds = %179, %57
store i32 0, ptr %4, align 4
br label %181
181: ; preds = %180, %169, %149, %135, %118, %110, %93, %79, %50, %38
%182 = load i32, ptr %4, align 4
ret i32 %182
}
declare i32 @foo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @omp_get_num_teams(...) #1
declare i32 @omp_get_team_num(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp7x03czn7.c'
source_filename = "/tmp/tmp7x03czn7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"C#\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"D\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"D#\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"E\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"F\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"F#\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"G\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"G#\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"A\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"A#\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"B\00", align 1
@__const.writeNewTab.sharps = private unnamed_addr constant [12 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11], align 16
@.str.12 = private unnamed_addr constant [3 x i8] c"Db\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"Eb\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"Gb\00", align 1
@.str.15 = private unnamed_addr constant [3 x i8] c"Ab\00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"Bb\00", align 1
@__const.writeNewTab.flats = private unnamed_addr constant [12 x ptr] [ptr @.str, ptr @.str.12, ptr @.str.2, ptr @.str.13, ptr @.str.4, ptr @.str.5, ptr @.str.14, ptr @.str.7, ptr @.str.15, ptr @.str.9, ptr @.str.16, ptr @.str.11], align 16
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @writeNewTab(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 [12 x ptr], align 16
%8 = alloca [12 x ptr], align 16
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%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 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
%25 = alloca i32, align 4
%26 = alloca [2 x i8], align 1
%27 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.writeNewTab.sharps, i64 96, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.writeNewTab.flats, i64 96, i1 false)
store i64 0, ptr %12, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr @SEEK_END, align 4
%31 = call i32 @fseek(ptr noundef %29, i32 noundef 0, i32 noundef %30)
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %32, align 8
%34 = call i64 @ftell(ptr noundef %33)
store i64 %34, ptr %10, align 8
%35 = load ptr, ptr %4, align 8
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr @SEEK_SET, align 4
%38 = call i32 @fseek(ptr noundef %36, i32 noundef 0, i32 noundef %37)
%39 = load i64, ptr %10, align 8
%40 = mul i64 4, %39
%41 = trunc i64 %40 to i32
%42 = call i64 @malloc(i32 noundef %41)
%43 = inttoptr i64 %42 to ptr
store ptr %43, ptr %9, align 8
%44 = load i64, ptr %10, align 8
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %3
br label %261
47: ; preds = %3
br label %48
48: ; preds = %257, %47
%49 = load ptr, ptr %4, align 8
%50 = load ptr, ptr %49, align 8
%51 = call i32 @fgetc(ptr noundef %50)
store i32 %51, ptr %11, align 4
%52 = load i32, ptr @EOF, align 4
%53 = icmp ne i32 %51, %52
br i1 %53, label %54, label %258
54: ; preds = %48
%55 = load i32, ptr %11, align 4
%56 = load ptr, ptr %9, align 8
%57 = load i64, ptr %12, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %12, align 8
%59 = getelementptr inbounds i32, ptr %56, i64 %57
store i32 %55, ptr %59, align 4
switch i32 %55, label %254 [
i32 9, label %60
i32 32, label %60
i32 10, label %63
i32 13, label %63
]
60: ; preds = %54, %54
%61 = load i32, ptr %13, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %13, align 4
br label %257
63: ; preds = %54, %54
%64 = load i32, ptr %13, align 4
%65 = load i32, ptr %14, align 4
%66 = icmp sgt i32 %64, %65
br i1 %66, label %67, label %234
67: ; preds = %63
store i32 0, ptr %15, align 4
br label %68
68: ; preds = %230, %67
%69 = load i32, ptr %15, align 4
%70 = sext i32 %69 to i64
%71 = load i64, ptr %12, align 8
%72 = icmp ult i64 %70, %71
br i1 %72, label %73, label %233
73: ; preds = %68
%74 = load ptr, ptr %9, align 8
%75 = load i32, ptr %15, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
%79 = trunc i32 %78 to i8
%80 = sext i8 %79 to i32
store i32 %80, ptr %16, align 4
store i32 0, ptr %17, align 4
%81 = load ptr, ptr %9, align 8
%82 = load i32, ptr %15, align 4
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %81, i64 %84
%86 = load i32, ptr %85, align 4
%87 = trunc i32 %86 to i8
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 35
br i1 %89, label %90, label %91
90: ; preds = %73
store i32 1, ptr %17, align 4
br label %91
91: ; preds = %90, %73
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr %15, align 4
%94 = add nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %92, i64 %95
%97 = load i32, ptr %96, align 4
%98 = trunc i32 %97 to i8
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 98
br i1 %100, label %101, label %102
101: ; preds = %91
store i32 -1, ptr %17, align 4
br label %102
102: ; preds = %101, %91
%103 = load i32, ptr %16, align 4
%104 = icmp eq i32 %103, 97
br i1 %104, label %108, label %105
105: ; preds = %102
%106 = load i32, ptr %16, align 4
%107 = icmp eq i32 %106, 65
br i1 %107, label %108, label %118
108: ; preds = %105, %102
%109 = load i32, ptr %17, align 4
%110 = add nsw i32 9, %109
%111 = load i32, ptr %6, align 4
%112 = add nsw i32 %110, %111
%113 = srem i32 %112, 12
store i32 %113, ptr %19, align 4
%114 = load i32, ptr %19, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %115
%117 = load ptr, ptr %116, align 8
store ptr %117, ptr %18, align 8
br label %225
118: ; preds = %105
%119 = load i32, ptr %16, align 4
%120 = icmp eq i32 %119, 98
br i1 %120, label %124, label %121
121: ; preds = %118
%122 = load i32, ptr %16, align 4
%123 = icmp eq i32 %122, 66
br i1 %123, label %124, label %134
124: ; preds = %121, %118
%125 = load i32, ptr %17, align 4
%126 = add nsw i32 11, %125
%127 = load i32, ptr %6, align 4
%128 = add nsw i32 %126, %127
%129 = srem i32 %128, 12
store i32 %129, ptr %20, align 4
%130 = load i32, ptr %20, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %131
%133 = load ptr, ptr %132, align 8
store ptr %133, ptr %18, align 8
br label %224
134: ; preds = %121
%135 = load i32, ptr %16, align 4
%136 = icmp eq i32 %135, 99
br i1 %136, label %140, label %137
137: ; preds = %134
%138 = load i32, ptr %16, align 4
%139 = icmp eq i32 %138, 67
br i1 %139, label %140, label %150
140: ; preds = %137, %134
%141 = load i32, ptr %17, align 4
%142 = add nsw i32 0, %141
%143 = load i32, ptr %6, align 4
%144 = add nsw i32 %142, %143
%145 = srem i32 %144, 12
store i32 %145, ptr %21, align 4
%146 = load i32, ptr %21, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %147
%149 = load ptr, ptr %148, align 8
store ptr %149, ptr %18, align 8
br label %223
150: ; preds = %137
%151 = load i32, ptr %16, align 4
%152 = icmp eq i32 %151, 100
br i1 %152, label %156, label %153
153: ; preds = %150
%154 = load i32, ptr %16, align 4
%155 = icmp eq i32 %154, 68
br i1 %155, label %156, label %166
156: ; preds = %153, %150
%157 = load i32, ptr %17, align 4
%158 = add nsw i32 2, %157
%159 = load i32, ptr %6, align 4
%160 = add nsw i32 %158, %159
%161 = srem i32 %160, 12
store i32 %161, ptr %22, align 4
%162 = load i32, ptr %22, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %163
%165 = load ptr, ptr %164, align 8
store ptr %165, ptr %18, align 8
br label %222
166: ; preds = %153
%167 = load i32, ptr %16, align 4
%168 = icmp eq i32 %167, 101
br i1 %168, label %172, label %169
169: ; preds = %166
%170 = load i32, ptr %16, align 4
%171 = icmp eq i32 %170, 69
br i1 %171, label %172, label %182
172: ; preds = %169, %166
%173 = load i32, ptr %17, align 4
%174 = add nsw i32 4, %173
%175 = load i32, ptr %6, align 4
%176 = add nsw i32 %174, %175
%177 = srem i32 %176, 12
store i32 %177, ptr %23, align 4
%178 = load i32, ptr %23, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %179
%181 = load ptr, ptr %180, align 8
store ptr %181, ptr %18, align 8
br label %221
182: ; preds = %169
%183 = load i32, ptr %16, align 4
%184 = icmp eq i32 %183, 102
br i1 %184, label %188, label %185
185: ; preds = %182
%186 = load i32, ptr %16, align 4
%187 = icmp eq i32 %186, 70
br i1 %187, label %188, label %198
188: ; preds = %185, %182
%189 = load i32, ptr %17, align 4
%190 = add nsw i32 5, %189
%191 = load i32, ptr %6, align 4
%192 = add nsw i32 %190, %191
%193 = srem i32 %192, 12
store i32 %193, ptr %24, align 4
%194 = load i32, ptr %24, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %195
%197 = load ptr, ptr %196, align 8
store ptr %197, ptr %18, align 8
br label %220
198: ; preds = %185
%199 = load i32, ptr %16, align 4
%200 = icmp eq i32 %199, 103
br i1 %200, label %204, label %201
201: ; preds = %198
%202 = load i32, ptr %16, align 4
%203 = icmp eq i32 %202, 71
br i1 %203, label %204, label %214
204: ; preds = %201, %198
%205 = load i32, ptr %17, align 4
%206 = add nsw i32 7, %205
%207 = load i32, ptr %6, align 4
%208 = add nsw i32 %206, %207
%209 = srem i32 %208, 12
store i32 %209, ptr %25, align 4
%210 = load i32, ptr %25, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %211
%213 = load ptr, ptr %212, align 8
store ptr %213, ptr %18, align 8
br label %219
214: ; preds = %201
call void @llvm.memset.p0.i64(ptr align 1 %26, i8 0, i64 2, i1 false)
%215 = load i32, ptr %16, align 4
%216 = trunc i32 %215 to i8
%217 = getelementptr inbounds [2 x i8], ptr %26, i64 0, i64 0
store i8 %216, ptr %217, align 1
%218 = getelementptr inbounds [2 x i8], ptr %26, i64 0, i64 0
store ptr %218, ptr %18, align 8
br label %219
219: ; preds = %214, %204
br label %220
220: ; preds = %219, %188
br label %221
221: ; preds = %220, %172
br label %222
222: ; preds = %221, %156
br label %223
223: ; preds = %222, %140
br label %224
224: ; preds = %223, %124
br label %225
225: ; preds = %224, %108
%226 = load ptr, ptr %5, align 8
%227 = load ptr, ptr %226, align 8
%228 = load ptr, ptr %18, align 8
%229 = call i32 @fprintf(ptr noundef %227, ptr noundef @.str.17, ptr noundef %228)
br label %230
230: ; preds = %225
%231 = load i32, ptr %15, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %15, align 4
br label %68, !llvm.loop !6
233: ; preds = %68
br label %253
234: ; preds = %63
store i32 0, ptr %27, align 4
br label %235
235: ; preds = %249, %234
%236 = load i32, ptr %27, align 4
%237 = sext i32 %236 to i64
%238 = load i64, ptr %12, align 8
%239 = icmp ult i64 %237, %238
br i1 %239, label %240, label %252
240: ; preds = %235
%241 = load ptr, ptr %9, align 8
%242 = load i32, ptr %27, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds i32, ptr %241, i64 %243
%245 = load i32, ptr %244, align 4
%246 = load ptr, ptr %5, align 8
%247 = load ptr, ptr %246, align 8
%248 = call i32 @fputc(i32 noundef %245, ptr noundef %247)
br label %249
249: ; preds = %240
%250 = load i32, ptr %27, align 4
%251 = add nsw i32 %250, 1
store i32 %251, ptr %27, align 4
br label %235, !llvm.loop !8
252: ; preds = %235
br label %253
253: ; preds = %252, %233
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i64 0, ptr %12, align 8
br label %257
254: ; preds = %54
%255 = load i32, ptr %14, align 4
%256 = add nsw i32 %255, 1
store i32 %256, ptr %14, align 4
br label %257
257: ; preds = %254, %253, %60
br label %48, !llvm.loop !9
258: ; preds = %48
%259 = load ptr, ptr %9, align 8
%260 = call i32 @free(ptr noundef %259)
br label %261
261: ; preds = %258, %46
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 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @ftell(ptr noundef) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @fgetc(ptr noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fputc(i32 noundef, ptr noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7x03czn7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"C#\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"D\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"D#\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"E\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"F\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"F#\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"G\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"G#\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"A\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"A#\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"B\00", align 1
@__const.writeNewTab.sharps = private unnamed_addr constant [12 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11], align 16
@.str.12 = private unnamed_addr constant [3 x i8] c"Db\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"Eb\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"Gb\00", align 1
@.str.15 = private unnamed_addr constant [3 x i8] c"Ab\00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"Bb\00", align 1
@__const.writeNewTab.flats = private unnamed_addr constant [12 x ptr] [ptr @.str, ptr @.str.12, ptr @.str.2, ptr @.str.13, ptr @.str.4, ptr @.str.5, ptr @.str.14, ptr @.str.7, ptr @.str.15, ptr @.str.9, ptr @.str.16, ptr @.str.11], align 16
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @writeNewTab(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 [12 x ptr], align 16
%8 = alloca [12 x ptr], align 16
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%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 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
%25 = alloca i32, align 4
%26 = alloca [2 x i8], align 1
%27 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.writeNewTab.sharps, i64 96, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.writeNewTab.flats, i64 96, i1 false)
store i64 0, ptr %12, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr @SEEK_END, align 4
%31 = call i32 @fseek(ptr noundef %29, i32 noundef 0, i32 noundef %30)
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %32, align 8
%34 = call i64 @ftell(ptr noundef %33)
store i64 %34, ptr %10, align 8
%35 = load ptr, ptr %4, align 8
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr @SEEK_SET, align 4
%38 = call i32 @fseek(ptr noundef %36, i32 noundef 0, i32 noundef %37)
%39 = load i64, ptr %10, align 8
%40 = mul i64 4, %39
%41 = trunc i64 %40 to i32
%42 = call i64 @malloc(i32 noundef %41)
%43 = inttoptr i64 %42 to ptr
store ptr %43, ptr %9, align 8
%44 = load i64, ptr %10, align 8
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %3
br label %271
47: ; preds = %3
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %48, align 8
%50 = call i32 @fgetc(ptr noundef %49)
store i32 %50, ptr %11, align 4
%51 = load i32, ptr @EOF, align 4
%52 = icmp ne i32 %50, %51
br i1 %52, label %.lr.ph5, label %268
.lr.ph5: ; preds = %47
br label %53
53: ; preds = %.lr.ph5, %262
%54 = load i32, ptr %11, align 4
%55 = load ptr, ptr %9, align 8
%56 = load i64, ptr %12, align 8
%57 = add i64 %56, 1
store i64 %57, ptr %12, align 8
%58 = getelementptr inbounds i32, ptr %55, i64 %56
store i32 %54, ptr %58, align 4
switch i32 %54, label %259 [
i32 9, label %59
i32 32, label %59
i32 10, label %62
i32 13, label %62
]
59: ; preds = %53, %53
%60 = load i32, ptr %13, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %13, align 4
br label %262
62: ; preds = %53, %53
%63 = load i32, ptr %13, align 4
%64 = load i32, ptr %14, align 4
%65 = icmp sgt i32 %63, %64
br i1 %65, label %66, label %236
66: ; preds = %62
store i32 0, ptr %15, align 4
%67 = load i32, ptr %15, align 4
%68 = sext i32 %67 to i64
%69 = load i64, ptr %12, align 8
%70 = icmp ult i64 %68, %69
br i1 %70, label %.lr.ph2, label %235
.lr.ph2: ; preds = %66
br label %71
71: ; preds = %.lr.ph2, %228
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %15, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = trunc i32 %76 to i8
%78 = sext i8 %77 to i32
store i32 %78, ptr %16, align 4
store i32 0, ptr %17, align 4
%79 = load ptr, ptr %9, align 8
%80 = load i32, ptr %15, align 4
%81 = add nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %79, i64 %82
%84 = load i32, ptr %83, align 4
%85 = trunc i32 %84 to i8
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 35
br i1 %87, label %88, label %89
88: ; preds = %71
store i32 1, ptr %17, align 4
br label %89
89: ; preds = %88, %71
%90 = load ptr, ptr %9, align 8
%91 = load i32, ptr %15, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %90, i64 %93
%95 = load i32, ptr %94, align 4
%96 = trunc i32 %95 to i8
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 98
br i1 %98, label %99, label %100
99: ; preds = %89
store i32 -1, ptr %17, align 4
br label %100
100: ; preds = %99, %89
%101 = load i32, ptr %16, align 4
%102 = icmp eq i32 %101, 97
br i1 %102, label %106, label %103
103: ; preds = %100
%104 = load i32, ptr %16, align 4
%105 = icmp eq i32 %104, 65
br i1 %105, label %106, label %116
106: ; preds = %103, %100
%107 = load i32, ptr %17, align 4
%108 = add nsw i32 9, %107
%109 = load i32, ptr %6, align 4
%110 = add nsw i32 %108, %109
%111 = srem i32 %110, 12
store i32 %111, ptr %19, align 4
%112 = load i32, ptr %19, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %113
%115 = load ptr, ptr %114, align 8
store ptr %115, ptr %18, align 8
br label %223
116: ; preds = %103
%117 = load i32, ptr %16, align 4
%118 = icmp eq i32 %117, 98
br i1 %118, label %122, label %119
119: ; preds = %116
%120 = load i32, ptr %16, align 4
%121 = icmp eq i32 %120, 66
br i1 %121, label %122, label %132
122: ; preds = %119, %116
%123 = load i32, ptr %17, align 4
%124 = add nsw i32 11, %123
%125 = load i32, ptr %6, align 4
%126 = add nsw i32 %124, %125
%127 = srem i32 %126, 12
store i32 %127, ptr %20, align 4
%128 = load i32, ptr %20, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %129
%131 = load ptr, ptr %130, align 8
store ptr %131, ptr %18, align 8
br label %222
132: ; preds = %119
%133 = load i32, ptr %16, align 4
%134 = icmp eq i32 %133, 99
br i1 %134, label %138, label %135
135: ; preds = %132
%136 = load i32, ptr %16, align 4
%137 = icmp eq i32 %136, 67
br i1 %137, label %138, label %148
138: ; preds = %135, %132
%139 = load i32, ptr %17, align 4
%140 = add nsw i32 0, %139
%141 = load i32, ptr %6, align 4
%142 = add nsw i32 %140, %141
%143 = srem i32 %142, 12
store i32 %143, ptr %21, align 4
%144 = load i32, ptr %21, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %145
%147 = load ptr, ptr %146, align 8
store ptr %147, ptr %18, align 8
br label %221
148: ; preds = %135
%149 = load i32, ptr %16, align 4
%150 = icmp eq i32 %149, 100
br i1 %150, label %154, label %151
151: ; preds = %148
%152 = load i32, ptr %16, align 4
%153 = icmp eq i32 %152, 68
br i1 %153, label %154, label %164
154: ; preds = %151, %148
%155 = load i32, ptr %17, align 4
%156 = add nsw i32 2, %155
%157 = load i32, ptr %6, align 4
%158 = add nsw i32 %156, %157
%159 = srem i32 %158, 12
store i32 %159, ptr %22, align 4
%160 = load i32, ptr %22, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %161
%163 = load ptr, ptr %162, align 8
store ptr %163, ptr %18, align 8
br label %220
164: ; preds = %151
%165 = load i32, ptr %16, align 4
%166 = icmp eq i32 %165, 101
br i1 %166, label %170, label %167
167: ; preds = %164
%168 = load i32, ptr %16, align 4
%169 = icmp eq i32 %168, 69
br i1 %169, label %170, label %180
170: ; preds = %167, %164
%171 = load i32, ptr %17, align 4
%172 = add nsw i32 4, %171
%173 = load i32, ptr %6, align 4
%174 = add nsw i32 %172, %173
%175 = srem i32 %174, 12
store i32 %175, ptr %23, align 4
%176 = load i32, ptr %23, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %177
%179 = load ptr, ptr %178, align 8
store ptr %179, ptr %18, align 8
br label %219
180: ; preds = %167
%181 = load i32, ptr %16, align 4
%182 = icmp eq i32 %181, 102
br i1 %182, label %186, label %183
183: ; preds = %180
%184 = load i32, ptr %16, align 4
%185 = icmp eq i32 %184, 70
br i1 %185, label %186, label %196
186: ; preds = %183, %180
%187 = load i32, ptr %17, align 4
%188 = add nsw i32 5, %187
%189 = load i32, ptr %6, align 4
%190 = add nsw i32 %188, %189
%191 = srem i32 %190, 12
store i32 %191, ptr %24, align 4
%192 = load i32, ptr %24, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %193
%195 = load ptr, ptr %194, align 8
store ptr %195, ptr %18, align 8
br label %218
196: ; preds = %183
%197 = load i32, ptr %16, align 4
%198 = icmp eq i32 %197, 103
br i1 %198, label %202, label %199
199: ; preds = %196
%200 = load i32, ptr %16, align 4
%201 = icmp eq i32 %200, 71
br i1 %201, label %202, label %212
202: ; preds = %199, %196
%203 = load i32, ptr %17, align 4
%204 = add nsw i32 7, %203
%205 = load i32, ptr %6, align 4
%206 = add nsw i32 %204, %205
%207 = srem i32 %206, 12
store i32 %207, ptr %25, align 4
%208 = load i32, ptr %25, align 4
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds [12 x ptr], ptr %7, i64 0, i64 %209
%211 = load ptr, ptr %210, align 8
store ptr %211, ptr %18, align 8
br label %217
212: ; preds = %199
call void @llvm.memset.p0.i64(ptr align 1 %26, i8 0, i64 2, i1 false)
%213 = load i32, ptr %16, align 4
%214 = trunc i32 %213 to i8
%215 = getelementptr inbounds [2 x i8], ptr %26, i64 0, i64 0
store i8 %214, ptr %215, align 1
%216 = getelementptr inbounds [2 x i8], ptr %26, i64 0, i64 0
store ptr %216, ptr %18, align 8
br label %217
217: ; preds = %212, %202
br label %218
218: ; preds = %217, %186
br label %219
219: ; preds = %218, %170
br label %220
220: ; preds = %219, %154
br label %221
221: ; preds = %220, %138
br label %222
222: ; preds = %221, %122
br label %223
223: ; preds = %222, %106
%224 = load ptr, ptr %5, align 8
%225 = load ptr, ptr %224, align 8
%226 = load ptr, ptr %18, align 8
%227 = call i32 @fprintf(ptr noundef %225, ptr noundef @.str.17, ptr noundef %226)
br label %228
228: ; preds = %223
%229 = load i32, ptr %15, align 4
%230 = add nsw i32 %229, 1
store i32 %230, ptr %15, align 4
%231 = load i32, ptr %15, align 4
%232 = sext i32 %231 to i64
%233 = load i64, ptr %12, align 8
%234 = icmp ult i64 %232, %233
br i1 %234, label %71, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %228
br label %235
235: ; preds = %._crit_edge3, %66
br label %258
236: ; preds = %62
store i32 0, ptr %27, align 4
%237 = load i32, ptr %27, align 4
%238 = sext i32 %237 to i64
%239 = load i64, ptr %12, align 8
%240 = icmp ult i64 %238, %239
br i1 %240, label %.lr.ph, label %257
.lr.ph: ; preds = %236
br label %241
241: ; preds = %.lr.ph, %250
%242 = load ptr, ptr %9, align 8
%243 = load i32, ptr %27, align 4
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds i32, ptr %242, i64 %244
%246 = load i32, ptr %245, align 4
%247 = load ptr, ptr %5, align 8
%248 = load ptr, ptr %247, align 8
%249 = call i32 @fputc(i32 noundef %246, ptr noundef %248)
br label %250
250: ; preds = %241
%251 = load i32, ptr %27, align 4
%252 = add nsw i32 %251, 1
store i32 %252, ptr %27, align 4
%253 = load i32, ptr %27, align 4
%254 = sext i32 %253 to i64
%255 = load i64, ptr %12, align 8
%256 = icmp ult i64 %254, %255
br i1 %256, label %241, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %250
br label %257
257: ; preds = %._crit_edge, %236
br label %258
258: ; preds = %257, %235
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i64 0, ptr %12, align 8
br label %262
259: ; preds = %53
%260 = load i32, ptr %14, align 4
%261 = add nsw i32 %260, 1
store i32 %261, ptr %14, align 4
br label %262
262: ; preds = %259, %258, %59
%263 = load ptr, ptr %4, align 8
%264 = load ptr, ptr %263, align 8
%265 = call i32 @fgetc(ptr noundef %264)
store i32 %265, ptr %11, align 4
%266 = load i32, ptr @EOF, align 4
%267 = icmp ne i32 %265, %266
br i1 %267, label %53, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %262
br label %268
268: ; preds = %._crit_edge6, %47
%269 = load ptr, ptr %9, align 8
%270 = call i32 @free(ptr noundef %269)
br label %271
271: ; preds = %268, %46
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 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @ftell(ptr noundef) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @fgetc(ptr noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fputc(i32 noundef, ptr noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpwqs2z17c.c'
source_filename = "/tmp/tmpwqs2z17c.c"
target datalayout = "e-m:e-p270: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/tmpwqs2z17c.c"
target datalayout = "e-m:e-p270: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/tmpxiclvmov.c'
source_filename = "/tmp/tmpxiclvmov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_cursorpos_void() #0 {
%1 = call i32 @do_cursorpos(i32 noundef 0)
ret i32 %1
}
declare i32 @do_cursorpos(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/tmpxiclvmov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_cursorpos_void() #0 {
%1 = call i32 @do_cursorpos(i32 noundef 0)
ret i32 %1
}
declare i32 @do_cursorpos(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/tmppl8xtvx8.c'
source_filename = "/tmp/tmppl8xtvx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fn1() #0 {
%1 = alloca i32, align 4
%2 = call i32 @foo(i32 noundef 12)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @foo(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/tmppl8xtvx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fn1() #0 {
%1 = alloca i32, align 4
%2 = call i32 @foo(i32 noundef 12)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @foo(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/tmp4ta95gfp.c'
source_filename = "/tmp/tmp4ta95gfp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XDestroyWindow(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4ta95gfp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XDestroyWindow(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0yihdjav.c'
source_filename = "/tmp/tmp0yihdjav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cl_pred_size(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 double @pred_size(ptr noundef %5, ptr noundef %6)
ret double %7
}
declare double @pred_size(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/tmp0yihdjav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cl_pred_size(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 double @pred_size(ptr noundef %5, ptr noundef %6)
ret double %7
}
declare double @pred_size(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/tmpirgl494g.c'
source_filename = "/tmp/tmpirgl494g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_return() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @getchr()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp ne i32 %3, 10
br i1 %4, label %5, label %17
5: ; preds = %0
%6 = load i32, ptr %1, align 4
%7 = icmp ne i32 %6, 13
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, ptr %1, align 4
%10 = icmp ne i32 %9, 32
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, ptr %1, align 4
%13 = icmp ne i32 %12, -2
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, ptr %1, align 4
%16 = call i32 @ungetcc(i32 noundef %15)
br label %17
17: ; preds = %14, %11, %8, %5, %0
ret void
}
declare i32 @getchr(...) #1
declare i32 @ungetcc(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/tmpirgl494g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_return() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @getchr()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp ne i32 %3, 10
br i1 %4, label %5, label %17
5: ; preds = %0
%6 = load i32, ptr %1, align 4
%7 = icmp ne i32 %6, 13
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, ptr %1, align 4
%10 = icmp ne i32 %9, 32
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, ptr %1, align 4
%13 = icmp ne i32 %12, -2
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, ptr %1, align 4
%16 = call i32 @ungetcc(i32 noundef %15)
br label %17
17: ; preds = %14, %11, %8, %5, %0
ret void
}
declare i32 @getchr(...) #1
declare i32 @ungetcc(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/tmp1fokwwxm.c'
source_filename = "/tmp/tmp1fokwwxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isodigit should be 0 for 0xf1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0xf1() #0 {
%1 = call i64 @isodigit(i32 noundef 241)
%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 1210, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmp1fokwwxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isodigit should be 0 for 0xf1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0xf1() #0 {
%1 = call i64 @isodigit(i32 noundef 241)
%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 1210, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmprejr0yvt.c'
source_filename = "/tmp/tmprejr0yvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"\0ANota invalida, tente novamente: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @validar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %1, %14
%4 = load ptr, ptr %2, align 8
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = load float, ptr %6, align 4
%8 = fcmp oge float %7, 0.000000e+00
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = load ptr, ptr %2, align 8
%11 = load float, ptr %10, align 4
%12 = fcmp ole float %11, 1.000000e+01
br i1 %12, label %13, label %14
13: ; preds = %9
ret void
14: ; preds = %9, %3
%15 = call i32 @printf(ptr noundef @.str.1)
br label %3
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprejr0yvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"\0ANota invalida, tente novamente: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @validar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %14, %1
%4 = load ptr, ptr %2, align 8
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = load float, ptr %6, align 4
%8 = fcmp oge float %7, 0.000000e+00
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = load ptr, ptr %2, align 8
%11 = load float, ptr %10, align 4
%12 = fcmp ole float %11, 1.000000e+01
br i1 %12, label %13, label %14
13: ; preds = %9
ret void
14: ; preds = %9, %3
%15 = call i32 @printf(ptr noundef @.str.1)
br label %3
}
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"}
|
; ModuleID = '/tmp/tmpj3ifri2w.c'
source_filename = "/tmp/tmpj3ifri2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sncopy_spc(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call ptr @sncopy_char(ptr noundef %7, ptr noundef %8, i32 noundef %9, i8 noundef signext 32)
ret ptr %10
}
declare ptr @sncopy_char(ptr noundef, ptr noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj3ifri2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sncopy_spc(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call ptr @sncopy_char(ptr noundef %7, ptr noundef %8, i32 noundef %9, i8 noundef signext 32)
ret ptr %10
}
declare ptr @sncopy_char(ptr noundef, ptr noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_0p70dr3.c'
source_filename = "/tmp/tmp_0p70dr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"%3d: node %d starts send msg %d to %d, %d packets\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @logMsgSend(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
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
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %10, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_0p70dr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"%3d: node %d starts send msg %d to %d, %d packets\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @logMsgSend(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
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
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %10, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphjrucjld.c'
source_filename = "/tmp/tmphjrucjld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ieee_p_1242562249_sub_3468090124142304444_1035706684(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [24 x i8], align 16
%12 = alloca [16 x i8], align 16
%13 = alloca [16 x i8], align 16
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i8, align 1
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca i32, align 4
%30 = alloca ptr, align 8
%31 = alloca i32, align 4
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca i32, align 4
%35 = 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 ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
br label %36
36: ; preds = %5
%37 = getelementptr inbounds [24 x i8], ptr %11, i64 0, i64 0
%38 = getelementptr inbounds i8, ptr %37, i64 4
store ptr %38, ptr %15, align 8
%39 = load i32, ptr %8, align 4
%40 = load ptr, ptr %15, align 8
store i32 %39, ptr %40, align 4
%41 = getelementptr inbounds [24 x i8], ptr %11, i64 0, i64 0
%42 = getelementptr inbounds i8, ptr %41, i64 8
store ptr %42, ptr %16, align 8
%43 = load ptr, ptr %9, align 8
%44 = icmp ne ptr %43, null
%45 = zext i1 %44 to i32
%46 = trunc i32 %45 to i8
store i8 %46, ptr %17, align 1
%47 = load i8, ptr %17, align 1
%48 = zext i8 %47 to i32
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %51
50: ; preds = %36
br label %125
51: ; preds = %36
br label %52
52: ; preds = %125, %51
%53 = getelementptr inbounds [24 x i8], ptr %11, i64 0, i64 0
%54 = getelementptr inbounds i8, ptr %53, i64 16
store ptr %54, ptr %18, align 8
%55 = load ptr, ptr %10, align 8
%56 = load ptr, ptr %18, align 8
store ptr %55, ptr %56, align 8
%57 = load ptr, ptr %10, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 12
store ptr %58, ptr %19, align 8
%59 = load ptr, ptr %19, align 8
%60 = load i32, ptr %59, align 4
store i32 %60, ptr %20, align 4
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%63 = load i32, ptr %8, align 4
%64 = load i32, ptr %20, align 4
%65 = call ptr @ieee_p_1242562249_sub_17126692536656888728_1035706684(ptr noundef %61, ptr noundef %62, i32 noundef %63, i32 noundef %64)
store ptr %65, ptr %21, align 8
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%68 = load ptr, ptr %21, align 8
%69 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%70 = load ptr, ptr %9, align 8
%71 = load ptr, ptr %10, align 8
%72 = call ptr @ieee_p_1242562249_sub_3525738511873258197_1035706684(ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71)
store ptr %72, ptr %22, align 8
%73 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%74 = getelementptr inbounds i8, ptr %73, i64 12
store ptr %74, ptr %23, align 8
%75 = load ptr, ptr %23, align 8
%76 = load i32, ptr %75, align 4
store i32 %76, ptr %24, align 4
%77 = load i32, ptr %24, align 4
%78 = mul i32 1, %77
store i32 %78, ptr %25, align 4
%79 = load i32, ptr %25, align 4
%80 = call ptr @xsi_get_transient_memory(i32 noundef %79)
store ptr %80, ptr %14, align 8
%81 = load ptr, ptr %14, align 8
%82 = load ptr, ptr %22, align 8
%83 = load i32, ptr %25, align 4
%84 = call i32 @memcpy(ptr noundef %81, ptr noundef %82, i32 noundef %83)
%85 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%86 = getelementptr inbounds i8, ptr %85, i64 0
store ptr %86, ptr %26, align 8
%87 = load ptr, ptr %26, align 8
%88 = load i32, ptr %87, align 4
store i32 %88, ptr %27, align 4
%89 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%90 = getelementptr inbounds i8, ptr %89, i64 4
store ptr %90, ptr %28, align 8
%91 = load ptr, ptr %28, align 8
%92 = load i32, ptr %91, align 4
store i32 %92, ptr %29, align 4
%93 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%94 = getelementptr inbounds i8, ptr %93, i64 8
store ptr %94, ptr %30, align 8
%95 = load ptr, ptr %30, align 8
%96 = load i32, ptr %95, align 4
store i32 %96, ptr %31, align 4
%97 = load ptr, ptr %7, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 0
store ptr %98, ptr %32, align 8
%99 = load ptr, ptr %32, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 0
store ptr %100, ptr %33, align 8
%101 = load i32, ptr %27, align 4
%102 = load ptr, ptr %33, align 8
store i32 %101, ptr %102, align 4
%103 = load ptr, ptr %32, align 8
%104 = getelementptr inbounds i8, ptr %103, i64 4
store ptr %104, ptr %33, align 8
%105 = load i32, ptr %29, align 4
%106 = load ptr, ptr %33, align 8
store i32 %105, ptr %106, align 4
%107 = load ptr, ptr %32, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 8
store ptr %108, ptr %33, align 8
%109 = load i32, ptr %31, align 4
%110 = load ptr, ptr %33, align 8
store i32 %109, ptr %110, align 4
%111 = load i32, ptr %29, align 4
%112 = load i32, ptr %27, align 4
%113 = sub nsw i32 %111, %112
store i32 %113, ptr %34, align 4
%114 = load i32, ptr %34, align 4
%115 = load i32, ptr %31, align 4
%116 = mul nsw i32 %114, %115
store i32 %116, ptr %35, align 4
%117 = load i32, ptr %35, align 4
%118 = add i32 %117, 1
store i32 %118, ptr %35, align 4
%119 = load ptr, ptr %32, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 12
store ptr %120, ptr %33, align 8
%121 = load i32, ptr %35, align 4
%122 = load ptr, ptr %33, align 8
store i32 %121, ptr %122, align 4
br label %123
123: ; preds = %52
%124 = load ptr, ptr %14, align 8
br label %128
125: ; preds = %50
%126 = load ptr, ptr %9, align 8
%127 = load ptr, ptr %16, align 8
store ptr %126, ptr %127, align 8
br label %52
128: ; preds = %123
ret ptr %124
}
declare ptr @ieee_p_1242562249_sub_17126692536656888728_1035706684(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @ieee_p_1242562249_sub_3525738511873258197_1035706684(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @xsi_get_transient_memory(i32 noundef) #1
declare i32 @memcpy(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/tmphjrucjld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ieee_p_1242562249_sub_3468090124142304444_1035706684(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [24 x i8], align 16
%12 = alloca [16 x i8], align 16
%13 = alloca [16 x i8], align 16
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i8, align 1
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca i32, align 4
%30 = alloca ptr, align 8
%31 = alloca i32, align 4
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca i32, align 4
%35 = 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 ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
br label %36
36: ; preds = %5
%37 = getelementptr inbounds [24 x i8], ptr %11, i64 0, i64 0
%38 = getelementptr inbounds i8, ptr %37, i64 4
store ptr %38, ptr %15, align 8
%39 = load i32, ptr %8, align 4
%40 = load ptr, ptr %15, align 8
store i32 %39, ptr %40, align 4
%41 = getelementptr inbounds [24 x i8], ptr %11, i64 0, i64 0
%42 = getelementptr inbounds i8, ptr %41, i64 8
store ptr %42, ptr %16, align 8
%43 = load ptr, ptr %9, align 8
%44 = icmp ne ptr %43, null
%45 = zext i1 %44 to i32
%46 = trunc i32 %45 to i8
store i8 %46, ptr %17, align 1
%47 = load i8, ptr %17, align 1
%48 = zext i8 %47 to i32
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %51
50: ; preds = %36
br label %125
51: ; preds = %36
br label %52
52: ; preds = %125, %51
%53 = getelementptr inbounds [24 x i8], ptr %11, i64 0, i64 0
%54 = getelementptr inbounds i8, ptr %53, i64 16
store ptr %54, ptr %18, align 8
%55 = load ptr, ptr %10, align 8
%56 = load ptr, ptr %18, align 8
store ptr %55, ptr %56, align 8
%57 = load ptr, ptr %10, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 12
store ptr %58, ptr %19, align 8
%59 = load ptr, ptr %19, align 8
%60 = load i32, ptr %59, align 4
store i32 %60, ptr %20, align 4
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%63 = load i32, ptr %8, align 4
%64 = load i32, ptr %20, align 4
%65 = call ptr @ieee_p_1242562249_sub_17126692536656888728_1035706684(ptr noundef %61, ptr noundef %62, i32 noundef %63, i32 noundef %64)
store ptr %65, ptr %21, align 8
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%68 = load ptr, ptr %21, align 8
%69 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%70 = load ptr, ptr %9, align 8
%71 = load ptr, ptr %10, align 8
%72 = call ptr @ieee_p_1242562249_sub_3525738511873258197_1035706684(ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71)
store ptr %72, ptr %22, align 8
%73 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%74 = getelementptr inbounds i8, ptr %73, i64 12
store ptr %74, ptr %23, align 8
%75 = load ptr, ptr %23, align 8
%76 = load i32, ptr %75, align 4
store i32 %76, ptr %24, align 4
%77 = load i32, ptr %24, align 4
%78 = mul i32 1, %77
store i32 %78, ptr %25, align 4
%79 = load i32, ptr %25, align 4
%80 = call ptr @xsi_get_transient_memory(i32 noundef %79)
store ptr %80, ptr %14, align 8
%81 = load ptr, ptr %14, align 8
%82 = load ptr, ptr %22, align 8
%83 = load i32, ptr %25, align 4
%84 = call i32 @memcpy(ptr noundef %81, ptr noundef %82, i32 noundef %83)
%85 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%86 = getelementptr inbounds i8, ptr %85, i64 0
store ptr %86, ptr %26, align 8
%87 = load ptr, ptr %26, align 8
%88 = load i32, ptr %87, align 4
store i32 %88, ptr %27, align 4
%89 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%90 = getelementptr inbounds i8, ptr %89, i64 4
store ptr %90, ptr %28, align 8
%91 = load ptr, ptr %28, align 8
%92 = load i32, ptr %91, align 4
store i32 %92, ptr %29, align 4
%93 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
%94 = getelementptr inbounds i8, ptr %93, i64 8
store ptr %94, ptr %30, align 8
%95 = load ptr, ptr %30, align 8
%96 = load i32, ptr %95, align 4
store i32 %96, ptr %31, align 4
%97 = load ptr, ptr %7, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 0
store ptr %98, ptr %32, align 8
%99 = load ptr, ptr %32, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 0
store ptr %100, ptr %33, align 8
%101 = load i32, ptr %27, align 4
%102 = load ptr, ptr %33, align 8
store i32 %101, ptr %102, align 4
%103 = load ptr, ptr %32, align 8
%104 = getelementptr inbounds i8, ptr %103, i64 4
store ptr %104, ptr %33, align 8
%105 = load i32, ptr %29, align 4
%106 = load ptr, ptr %33, align 8
store i32 %105, ptr %106, align 4
%107 = load ptr, ptr %32, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 8
store ptr %108, ptr %33, align 8
%109 = load i32, ptr %31, align 4
%110 = load ptr, ptr %33, align 8
store i32 %109, ptr %110, align 4
%111 = load i32, ptr %29, align 4
%112 = load i32, ptr %27, align 4
%113 = sub nsw i32 %111, %112
store i32 %113, ptr %34, align 4
%114 = load i32, ptr %34, align 4
%115 = load i32, ptr %31, align 4
%116 = mul nsw i32 %114, %115
store i32 %116, ptr %35, align 4
%117 = load i32, ptr %35, align 4
%118 = add i32 %117, 1
store i32 %118, ptr %35, align 4
%119 = load ptr, ptr %32, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 12
store ptr %120, ptr %33, align 8
%121 = load i32, ptr %35, align 4
%122 = load ptr, ptr %33, align 8
store i32 %121, ptr %122, align 4
br label %123
123: ; preds = %52
%124 = load ptr, ptr %14, align 8
br label %128
125: ; preds = %50
%126 = load ptr, ptr %9, align 8
%127 = load ptr, ptr %16, align 8
store ptr %126, ptr %127, align 8
br label %52
128: ; preds = %123
ret ptr %124
}
declare ptr @ieee_p_1242562249_sub_17126692536656888728_1035706684(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @ieee_p_1242562249_sub_3525738511873258197_1035706684(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @xsi_get_transient_memory(i32 noundef) #1
declare i32 @memcpy(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/tmpssjaac8c.c'
source_filename = "/tmp/tmpssjaac8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@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/tmpssjaac8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@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/tmpyxab2rze.c'
source_filename = "/tmp/tmpyxab2rze.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"/var/run/spi_pipe\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\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"Received: %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 [80 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %0, %5
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fscanf(ptr noundef %7, ptr noundef @.str.2, ptr noundef %4)
%9 = load i32, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str.3, i32 noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fclose(ptr noundef %11)
br label %5
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyxab2rze.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"/var/run/spi_pipe\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\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"Received: %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 [80 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %5, %0
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fscanf(ptr noundef %7, ptr noundef @.str.2, ptr noundef %4)
%9 = load i32, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str.3, i32 noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fclose(ptr noundef %11)
br label %5
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3wva_hz8.c'
source_filename = "/tmp/tmp3wva_hz8.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i64, i64, ptr }
%struct.sockaddr_in = type { i32 }
%struct.sockaddr_in6 = type { i32 }
@AF_INET = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"IPv4\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"IPv6\00", align 1
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"%2d. %s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_addrinfo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%11 = load ptr, ptr %2, align 8
store ptr %11, ptr %4, align 8
br label %12
12: ; preds = %51, %1
%13 = load ptr, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %55
15: ; preds = %12
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 0
%18 = load i64, ptr %17, align 8
%19 = load i64, ptr @AF_INET, align 8
%20 = icmp eq i64 %18, %19
br i1 %20, label %21, label %28
21: ; preds = %15
store ptr @.str, ptr %5, align 8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds %struct.addrinfo, ptr %22, i32 0, i32 1
%24 = load i64, ptr %23, align 8
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %7, align 8
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %26, i32 0, i32 0
store ptr %27, ptr %6, align 8
br label %35
28: ; preds = %15
store ptr @.str.1, ptr %5, align 8
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds %struct.addrinfo, ptr %29, i32 0, i32 1
%31 = load i64, ptr %30, align 8
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %8, align 8
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds %struct.sockaddr_in6, ptr %33, i32 0, i32 0
store ptr %34, ptr %6, align 8
br label %35
35: ; preds = %28, %21
%36 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%37 = zext i32 %36 to i64
%38 = call ptr @llvm.stacksave()
store ptr %38, ptr %9, align 8
%39 = alloca i8, i64 %37, align 16
store i64 %37, ptr %10, align 8
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds %struct.addrinfo, ptr %40, i32 0, i32 0
%42 = load i64, ptr %41, align 8
%43 = load ptr, ptr %6, align 8
%44 = trunc i64 %37 to i32
%45 = call i32 @inet_ntop(i64 noundef %42, ptr noundef %43, ptr noundef %39, i32 noundef %44)
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %3, align 4
%48 = load ptr, ptr %5, align 8
%49 = call i32 @printf(ptr noundef @.str.2, i32 noundef %47, ptr noundef %48, ptr noundef %39)
%50 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %50)
br label %51
51: ; preds = %35
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds %struct.addrinfo, ptr %52, i32 0, i32 2
%54 = load ptr, ptr %53, align 8
store ptr %54, ptr %4, align 8
br label %12, !llvm.loop !6
55: ; preds = %12
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @inet_ntop(i64 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3wva_hz8.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i64, i64, ptr }
%struct.sockaddr_in = type { i32 }
%struct.sockaddr_in6 = type { i32 }
@AF_INET = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"IPv4\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"IPv6\00", align 1
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"%2d. %s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_addrinfo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%11 = load ptr, ptr %2, align 8
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %.lr.ph, label %56
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %50
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds %struct.addrinfo, ptr %15, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = load i64, ptr @AF_INET, align 8
%19 = icmp eq i64 %17, %18
br i1 %19, label %20, label %27
20: ; preds = %14
store ptr @.str, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds %struct.addrinfo, ptr %21, i32 0, i32 1
%23 = load i64, ptr %22, align 8
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %25, i32 0, i32 0
store ptr %26, ptr %6, align 8
br label %34
27: ; preds = %14
store ptr @.str.1, ptr %5, align 8
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds %struct.addrinfo, ptr %28, i32 0, i32 1
%30 = load i64, ptr %29, align 8
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %8, align 8
%32 = load ptr, ptr %8, align 8
%33 = getelementptr inbounds %struct.sockaddr_in6, ptr %32, i32 0, i32 0
store ptr %33, ptr %6, align 8
br label %34
34: ; preds = %27, %20
%35 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%36 = zext i32 %35 to i64
%37 = call ptr @llvm.stacksave()
store ptr %37, ptr %9, align 8
%38 = alloca i8, i64 %36, align 16
store i64 %36, ptr %10, align 8
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds %struct.addrinfo, ptr %39, i32 0, i32 0
%41 = load i64, ptr %40, align 8
%42 = load ptr, ptr %6, align 8
%43 = trunc i64 %36 to i32
%44 = call i32 @inet_ntop(i64 noundef %41, ptr noundef %42, ptr noundef %38, i32 noundef %43)
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4
%47 = load ptr, ptr %5, align 8
%48 = call i32 @printf(ptr noundef @.str.2, i32 noundef %46, ptr noundef %47, ptr noundef %38)
%49 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %49)
br label %50
50: ; preds = %34
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds %struct.addrinfo, ptr %51, i32 0, i32 2
%53 = load ptr, ptr %52, align 8
store ptr %53, ptr %4, align 8
%54 = load ptr, ptr %4, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %1
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @inet_ntop(i64 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp9h55gjti.c'
source_filename = "/tmp/tmp9h55gjti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @diagnosticTest(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, 5
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = call ptr @malloc(i32 noundef 12)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %8, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %8, align 4
br label %11
11: ; preds = %6, %1
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
ret void
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9h55gjti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @diagnosticTest(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, 5
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = call ptr @malloc(i32 noundef 12)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %8, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %8, align 4
br label %11
11: ; preds = %6, %1
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
ret void
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4wg_3ar4.c'
source_filename = "/tmp/tmp4wg_3ar4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f226(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 @f225(ptr noundef %3)
ret i32 %4
}
declare i32 @f225(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4wg_3ar4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f226(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 @f225(ptr noundef %3)
ret i32 %4
}
declare i32 @f225(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpco8zjdtp.c'
source_filename = "/tmp/tmpco8zjdtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atkinson(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
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
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = call i32 @diff(i32 noundef %12, i32 noundef %13, double noundef 1.250000e-01, i32 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 2
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %10, align 4
%24 = call i32 @diff(i32 noundef %19, i32 noundef %20, double noundef 1.250000e-01, i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = sub nsw i32 %25, 1
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %10, align 4
%32 = call i32 @diff(i32 noundef %26, i32 noundef %28, double noundef 1.250000e-01, i32 noundef %29, i32 noundef %30, i32 noundef %31)
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %10, align 4
%39 = call i32 @diff(i32 noundef %33, i32 noundef %35, double noundef 1.250000e-01, i32 noundef %36, i32 noundef %37, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %10, align 4
%47 = call i32 @diff(i32 noundef %41, i32 noundef %43, double noundef 1.250000e-01, i32 noundef %44, i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %6, align 4
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 2
%51 = load i32, ptr %8, align 4
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %10, align 4
%54 = call i32 @diff(i32 noundef %48, i32 noundef %50, double noundef 1.250000e-01, i32 noundef %51, i32 noundef %52, i32 noundef %53)
ret void
}
declare i32 @diff(i32 noundef, i32 noundef, double 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/tmpco8zjdtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atkinson(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
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
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = call i32 @diff(i32 noundef %12, i32 noundef %13, double noundef 1.250000e-01, i32 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 2
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %10, align 4
%24 = call i32 @diff(i32 noundef %19, i32 noundef %20, double noundef 1.250000e-01, i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = sub nsw i32 %25, 1
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %10, align 4
%32 = call i32 @diff(i32 noundef %26, i32 noundef %28, double noundef 1.250000e-01, i32 noundef %29, i32 noundef %30, i32 noundef %31)
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %10, align 4
%39 = call i32 @diff(i32 noundef %33, i32 noundef %35, double noundef 1.250000e-01, i32 noundef %36, i32 noundef %37, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %10, align 4
%47 = call i32 @diff(i32 noundef %41, i32 noundef %43, double noundef 1.250000e-01, i32 noundef %44, i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %6, align 4
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 2
%51 = load i32, ptr %8, align 4
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %10, align 4
%54 = call i32 @diff(i32 noundef %48, i32 noundef %50, double noundef 1.250000e-01, i32 noundef %51, i32 noundef %52, i32 noundef %53)
ret void
}
declare i32 @diff(i32 noundef, i32 noundef, double 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/tmppjqqrlgs.c'
source_filename = "/tmp/tmppjqqrlgs.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Arguments to function too large.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @not_enough_arg_space(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = call i32 @exit(i32 noundef -50) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppjqqrlgs.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Arguments to function too large.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @not_enough_arg_space(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = call i32 @exit(i32 noundef -50) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9f_u5yjn.c'
source_filename = "/tmp/tmp9f_u5yjn.c"
target datalayout = "e-m:e-p270: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/tmp9f_u5yjn.c"
target datalayout = "e-m:e-p270: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/tmpe4v8uast.c'
source_filename = "/tmp/tmpe4v8uast.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SU_Make_Uppercase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %21, %1
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %5, %8
br i1 %9, label %10, label %24
10: ; preds = %4
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call signext i8 @toupper(i8 noundef signext %15)
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 %16, ptr %20, align 1
br label %21
21: ; preds = %10
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
br label %4, !llvm.loop !6
24: ; preds = %4
ret void
}
declare i64 @strlen(ptr noundef) #1
declare signext i8 @toupper(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/tmpe4v8uast.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SU_Make_Uppercase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %4, %7
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %20
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = call signext i8 @toupper(i8 noundef signext %14)
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 %15, ptr %19, align 1
br label %20
20: ; preds = %9
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = call i64 @strlen(ptr noundef %24)
%26 = trunc i64 %25 to i32
%27 = icmp slt i32 %23, %26
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %28
28: ; preds = %._crit_edge, %1
ret void
}
declare i64 @strlen(ptr noundef) #1
declare signext i8 @toupper(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/tmp5vrxs447.c'
source_filename = "/tmp/tmp5vrxs447.c"
target datalayout = "e-m:e-p270: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/tmp5vrxs447.c"
target datalayout = "e-m:e-p270: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/tmpo82vj1cn.c'
source_filename = "/tmp/tmpo82vj1cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bitScan_fun_int8_t(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = and i32 %6, 128
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 7, ptr %2, align 4
br label %23
11: ; preds = %1
br label %12
12: ; preds = %18, %11
%13 = load i32, ptr %3, align 4
%14 = shl i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = and i32 %14, 128
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
br label %12, !llvm.loop !6
21: ; preds = %12
%22 = load i32, ptr %4, align 4
store i32 %22, ptr %2, align 4
br label %23
23: ; preds = %21, %10
%24 = load i32, ptr %2, align 4
ret i32 %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo82vj1cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bitScan_fun_int8_t(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = and i32 %6, 128
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 7, ptr %2, align 4
br label %27
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = shl i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = and i32 %13, 128
%15 = load i32, ptr %5, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %.lr.ph, label %25
.lr.ph: ; preds = %11
br label %17
17: ; preds = %.lr.ph, %17
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = shl i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = and i32 %21, 128
%23 = load i32, ptr %5, align 4
%24 = icmp eq i32 %22, %23
br i1 %24, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %25
25: ; preds = %._crit_edge, %11
%26 = load i32, ptr %4, align 4
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %25, %10
%28 = load i32, ptr %2, align 4
ret i32 %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6c05bmf9.c'
source_filename = "/tmp/tmp6c05bmf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"/sbin/modprobe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @modprobe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [3 x ptr], align 16
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
store ptr @.str, ptr %5, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 1
%7 = load ptr, ptr %2, align 8
store ptr %7, ptr %6, align 8
%8 = getelementptr inbounds ptr, ptr %6, i64 1
store ptr null, ptr %8, align 8
%9 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
%10 = call i32 @run(ptr noundef %9)
store i32 %10, ptr %4, align 4
%11 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
%12 = load i32, ptr %4, align 4
%13 = call i32 @check_status(ptr noundef %11, i32 noundef %12)
ret void
}
declare i32 @run(ptr noundef) #1
declare i32 @check_status(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/tmp6c05bmf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"/sbin/modprobe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @modprobe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [3 x ptr], align 16
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
store ptr @.str, ptr %5, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 1
%7 = load ptr, ptr %2, align 8
store ptr %7, ptr %6, align 8
%8 = getelementptr inbounds ptr, ptr %6, i64 1
store ptr null, ptr %8, align 8
%9 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
%10 = call i32 @run(ptr noundef %9)
store i32 %10, ptr %4, align 4
%11 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
%12 = load i32, ptr %4, align 4
%13 = call i32 @check_status(ptr noundef %11, i32 noundef %12)
ret void
}
declare i32 @run(ptr noundef) #1
declare i32 @check_status(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/tmps0992zlj.c'
source_filename = "/tmp/tmps0992zlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.ai_data = private unnamed_addr constant [8 x i32] [i32 16, i32 8, i32 12, i32 16, i32 18, i32 14, i32 4, i32 8], align 16
@.str = private unnamed_addr constant [66 x i8] c"-----------------------------------------------------------------\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c" determining test \00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c" one stage \00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c" input: \00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c" output: \00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c" input, again: \00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c" one level \00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c" full level \00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"i_step = %d \00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c" W3: %d \00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c" W2: %d \00", align 1
@.str.13 = private unnamed_addr constant [9 x i8] c" W1: %d \00", align 1
@.str.14 = private unnamed_addr constant [9 x i8] c" W0: %d \00", align 1
@.str.15 = private unnamed_addr constant [14 x i8] c" random test \00", align 1
@.str.16 = private unnamed_addr constant [16 x i8] c" input random: \00", align 1
@.str.17 = private unnamed_addr constant [17 x i8] c" output random: \00", align 1
@.str.18 = private unnamed_addr constant [23 x i8] c" input random, again: \00", align 1
@.str.19 = private unnamed_addr constant [33 x i8] c" Well? Almost (!) The same? ))) \00", align 1
@.str.20 = private unnamed_addr constant [24 x i8] c" random semi-full test \00", align 1
@.str.21 = private unnamed_addr constant [30 x i8] c" Well? Seems to be true? ))) \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 [8 x i32], align 16
%4 = alloca [8 x i32], align 16
%5 = alloca [4 x ptr], align 16
%6 = alloca i32, align 4
%7 = alloca [32 x i32], align 16
%8 = alloca [32 x i32], align 16
%9 = alloca [6 x ptr], align 16
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.ai_data, i64 32, i1 false)
store i32 3, ptr %6, align 4
store i32 5, ptr %10, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %23
23: ; preds = %33, %0
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %24, 8
br i1 %25, label %26, label %36
26: ; preds = %23
%27 = load i32, ptr %2, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %30)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %33
33: ; preds = %26
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4
br label %23, !llvm.loop !6
36: ; preds = %23
%37 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%38 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 4
%39 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%40 = call i32 @fn_dirFHaarWT2p2oneStage_NoaK(ptr noundef %37, ptr noundef %38, ptr noundef %39, i32 noundef 8)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %43
43: ; preds = %53, %36
%44 = load i32, ptr %2, align 4
%45 = icmp slt i32 %44, 8
br i1 %45, label %46, label %56
46: ; preds = %43
%47 = load i32, ptr %2, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %53
53: ; preds = %46
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
br label %43, !llvm.loop !8
56: ; preds = %43
%57 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%58 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%59 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 4
%60 = call i32 @fn_invFHaarWT2p2oneStage_NoaK(ptr noundef %57, ptr noundef %58, ptr noundef %59, i32 noundef 8)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %63
63: ; preds = %73, %56
%64 = load i32, ptr %2, align 4
%65 = icmp slt i32 %64, 8
br i1 %65, label %66, label %76
66: ; preds = %63
%67 = load i32, ptr %2, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %68
%70 = load i32, ptr %69, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %70)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %73
73: ; preds = %66
%74 = load i32, ptr %2, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %2, align 4
br label %63, !llvm.loop !9
76: ; preds = %63
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %85
85: ; preds = %95, %76
%86 = load i32, ptr %2, align 4
%87 = icmp slt i32 %86, 8
br i1 %87, label %88, label %98
88: ; preds = %85
%89 = load i32, ptr %2, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %90
%92 = load i32, ptr %91, align 4
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %92)
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %95
95: ; preds = %88
%96 = load i32, ptr %2, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %2, align 4
br label %85, !llvm.loop !10
98: ; preds = %85
%99 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%100 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%101 = call i32 @ifn_array2wk(ptr noundef %99, i32 noundef 1, i32 noundef 8, ptr noundef %100)
%102 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%103 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%104 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %102, ptr noundef %103, i32 noundef 8, i32 noundef 1)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %107
107: ; preds = %117, %98
%108 = load i32, ptr %2, align 4
%109 = icmp slt i32 %108, 8
br i1 %109, label %110, label %120
110: ; preds = %107
%111 = load i32, ptr %2, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %112
%114 = load i32, ptr %113, align 4
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %114)
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %117
117: ; preds = %110
%118 = load i32, ptr %2, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %2, align 4
br label %107, !llvm.loop !11
120: ; preds = %107
%121 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%122 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%123 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %121, ptr noundef %122, i32 noundef 8, i32 noundef 1)
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %126
126: ; preds = %136, %120
%127 = load i32, ptr %2, align 4
%128 = icmp slt i32 %127, 8
br i1 %128, label %129, label %139
129: ; preds = %126
%130 = load i32, ptr %2, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %131
%133 = load i32, ptr %132, align 4
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %133)
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %136
136: ; preds = %129
%137 = load i32, ptr %2, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %2, align 4
br label %126, !llvm.loop !12
139: ; preds = %126
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%145 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %148
148: ; preds = %158, %139
%149 = load i32, ptr %2, align 4
%150 = icmp slt i32 %149, 8
br i1 %150, label %151, label %161
151: ; preds = %148
%152 = load i32, ptr %2, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %153
%155 = load i32, ptr %154, align 4
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %155)
%157 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %158
158: ; preds = %151
%159 = load i32, ptr %2, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %2, align 4
br label %148, !llvm.loop !13
161: ; preds = %148
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%163 = load i32, ptr %6, align 4
%164 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %163)
%165 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%166 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%167 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%168 = load i32, ptr %6, align 4
%169 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%170 = call i32 @ifn_array2wk(ptr noundef %167, i32 noundef %168, i32 noundef 8, ptr noundef %169)
%171 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%172 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%173 = load i32, ptr %6, align 4
%174 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %171, ptr noundef %172, i32 noundef 8, i32 noundef %173)
store i32 0, ptr %2, align 4
br label %175
175: ; preds = %185, %161
%176 = load i32, ptr %2, align 4
%177 = icmp slt i32 %176, 4
br i1 %177, label %178, label %188
178: ; preds = %175
%179 = load i32, ptr %2, align 4
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %180
%182 = load i32, ptr %181, align 4
%183 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %182)
%184 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %185
185: ; preds = %178
%186 = load i32, ptr %2, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %2, align 4
br label %175, !llvm.loop !14
188: ; preds = %175
store i32 4, ptr %2, align 4
br label %189
189: ; preds = %199, %188
%190 = load i32, ptr %2, align 4
%191 = icmp slt i32 %190, 6
br i1 %191, label %192, label %202
192: ; preds = %189
%193 = load i32, ptr %2, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %194
%196 = load i32, ptr %195, align 4
%197 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %196)
%198 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %199
199: ; preds = %192
%200 = load i32, ptr %2, align 4
%201 = add nsw i32 %200, 1
store i32 %201, ptr %2, align 4
br label %189, !llvm.loop !15
202: ; preds = %189
%203 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 6
%204 = load i32, ptr %203, align 8
%205 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %204)
%206 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%207 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 7
%208 = load i32, ptr %207, align 4
%209 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %208)
%210 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%211 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%212 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%213 = load i32, ptr %6, align 4
%214 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %211, ptr noundef %212, i32 noundef 8, i32 noundef %213)
%215 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%216 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %217
217: ; preds = %227, %202
%218 = load i32, ptr %2, align 4
%219 = icmp slt i32 %218, 8
br i1 %219, label %220, label %230
220: ; preds = %217
%221 = load i32, ptr %2, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %222
%224 = load i32, ptr %223, align 4
%225 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %224)
%226 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %227
227: ; preds = %220
%228 = load i32, ptr %2, align 4
%229 = add nsw i32 %228, 1
store i32 %229, ptr %2, align 4
br label %217, !llvm.loop !16
230: ; preds = %217
%231 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%232 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%233 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%234 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%235 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%236 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%237 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%238 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %239
239: ; preds = %255, %230
%240 = load i32, ptr %2, align 4
%241 = icmp slt i32 %240, 32
br i1 %241, label %242, label %258
242: ; preds = %239
%243 = call i32 (...) @rand()
%244 = srem i32 %243, 32
%245 = add nsw i32 %244, 1
%246 = load i32, ptr %2, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %247
store i32 %245, ptr %248, align 4
%249 = load i32, ptr %2, align 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %250
%252 = load i32, ptr %251, align 4
%253 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %252)
%254 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %255
255: ; preds = %242
%256 = load i32, ptr %2, align 4
%257 = add nsw i32 %256, 1
store i32 %257, ptr %2, align 4
br label %239, !llvm.loop !17
258: ; preds = %239
%259 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 0
%260 = load i32, ptr %10, align 4
%261 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%262 = call i32 @ifn_array2wk(ptr noundef %259, i32 noundef %260, i32 noundef 32, ptr noundef %261)
%263 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%264 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%265 = load i32, ptr %10, align 4
%266 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %263, ptr noundef %264, i32 noundef 32, i32 noundef %265)
%267 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%268 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %269
269: ; preds = %279, %258
%270 = load i32, ptr %2, align 4
%271 = icmp slt i32 %270, 32
br i1 %271, label %272, label %282
272: ; preds = %269
%273 = load i32, ptr %2, align 4
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 %274
%276 = load i32, ptr %275, align 4
%277 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %276)
%278 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %279
279: ; preds = %272
%280 = load i32, ptr %2, align 4
%281 = add nsw i32 %280, 1
store i32 %281, ptr %2, align 4
br label %269, !llvm.loop !18
282: ; preds = %269
%283 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%284 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%285 = load i32, ptr %10, align 4
%286 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %283, ptr noundef %284, i32 noundef 32, i32 noundef %285)
%287 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%288 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %289
289: ; preds = %299, %282
%290 = load i32, ptr %2, align 4
%291 = icmp slt i32 %290, 32
br i1 %291, label %292, label %302
292: ; preds = %289
%293 = load i32, ptr %2, align 4
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %294
%296 = load i32, ptr %295, align 4
%297 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %296)
%298 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %299
299: ; preds = %292
%300 = load i32, ptr %2, align 4
%301 = add nsw i32 %300, 1
store i32 %301, ptr %2, align 4
br label %289, !llvm.loop !19
302: ; preds = %289
%303 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%304 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%305 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%306 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%307 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%308 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%309 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%310 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%311 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%312 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %313
313: ; preds = %329, %302
%314 = load i32, ptr %2, align 4
%315 = icmp slt i32 %314, 32
br i1 %315, label %316, label %332
316: ; preds = %313
%317 = call i32 (...) @rand()
%318 = srem i32 %317, 32
%319 = add nsw i32 %318, 1
%320 = load i32, ptr %2, align 4
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %321
store i32 %319, ptr %322, align 4
%323 = load i32, ptr %2, align 4
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %324
%326 = load i32, ptr %325, align 4
%327 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %326)
%328 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %329
329: ; preds = %316
%330 = load i32, ptr %2, align 4
%331 = add nsw i32 %330, 1
store i32 %331, ptr %2, align 4
br label %313, !llvm.loop !20
332: ; preds = %313
%333 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 0
%334 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%335 = call i32 @ifn_array2wk(ptr noundef %333, i32 noundef 3, i32 noundef 32, ptr noundef %334)
%336 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%337 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%338 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %336, ptr noundef %337, i32 noundef 32, i32 noundef 3)
%339 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%340 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %341
341: ; preds = %351, %332
%342 = load i32, ptr %2, align 4
%343 = icmp slt i32 %342, 32
br i1 %343, label %344, label %354
344: ; preds = %341
%345 = load i32, ptr %2, align 4
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 %346
%348 = load i32, ptr %347, align 4
%349 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %348)
%350 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %351
351: ; preds = %344
%352 = load i32, ptr %2, align 4
%353 = add nsw i32 %352, 1
store i32 %353, ptr %2, align 4
br label %341, !llvm.loop !21
354: ; preds = %341
%355 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%356 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%357 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %355, ptr noundef %356, i32 noundef 32, i32 noundef 3)
%358 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%359 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %360
360: ; preds = %370, %354
%361 = load i32, ptr %2, align 4
%362 = icmp slt i32 %361, 32
br i1 %362, label %363, label %373
363: ; preds = %360
%364 = load i32, ptr %2, align 4
%365 = sext i32 %364 to i64
%366 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %365
%367 = load i32, ptr %366, align 4
%368 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %367)
%369 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %370
370: ; preds = %363
%371 = load i32, ptr %2, align 4
%372 = add nsw i32 %371, 1
store i32 %372, ptr %2, align 4
br label %360, !llvm.loop !22
373: ; preds = %360
%374 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%375 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @fn_dirFHaarWT2p2oneStage_NoaK(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @fn_invFHaarWT2p2oneStage_NoaK(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @ifn_array2wk(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fn_invFHaarWT2p2_NoaK(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @rand(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
!22 = distinct !{!22, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps0992zlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.ai_data = private unnamed_addr constant [8 x i32] [i32 16, i32 8, i32 12, i32 16, i32 18, i32 14, i32 4, i32 8], align 16
@.str = private unnamed_addr constant [66 x i8] c"-----------------------------------------------------------------\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c" determining test \00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c" one stage \00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c" input: \00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c" output: \00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c" input, again: \00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c" one level \00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c" full level \00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"i_step = %d \00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c" W3: %d \00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c" W2: %d \00", align 1
@.str.13 = private unnamed_addr constant [9 x i8] c" W1: %d \00", align 1
@.str.14 = private unnamed_addr constant [9 x i8] c" W0: %d \00", align 1
@.str.15 = private unnamed_addr constant [14 x i8] c" random test \00", align 1
@.str.16 = private unnamed_addr constant [16 x i8] c" input random: \00", align 1
@.str.17 = private unnamed_addr constant [17 x i8] c" output random: \00", align 1
@.str.18 = private unnamed_addr constant [23 x i8] c" input random, again: \00", align 1
@.str.19 = private unnamed_addr constant [33 x i8] c" Well? Almost (!) The same? ))) \00", align 1
@.str.20 = private unnamed_addr constant [24 x i8] c" random semi-full test \00", align 1
@.str.21 = private unnamed_addr constant [30 x i8] c" Well? Seems to be true? ))) \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 [8 x i32], align 16
%4 = alloca [8 x i32], align 16
%5 = alloca [4 x ptr], align 16
%6 = alloca i32, align 4
%7 = alloca [32 x i32], align 16
%8 = alloca [32 x i32], align 16
%9 = alloca [6 x ptr], align 16
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.ai_data, i64 32, i1 false)
store i32 3, ptr %6, align 4
store i32 5, ptr %10, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %23, 8
br i1 %24, label %.lr.ph, label %37
.lr.ph: ; preds = %0
br label %25
25: ; preds = %.lr.ph, %32
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %29)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %32
32: ; preds = %25
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp slt i32 %35, 8
br i1 %36, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %0
%38 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%39 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 4
%40 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%41 = call i32 @fn_dirFHaarWT2p2oneStage_NoaK(ptr noundef %38, ptr noundef %39, ptr noundef %40, i32 noundef 8)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%44 = load i32, ptr %2, align 4
%45 = icmp slt i32 %44, 8
br i1 %45, label %.lr.ph2, label %58
.lr.ph2: ; preds = %37
br label %46
46: ; preds = %.lr.ph2, %53
%47 = load i32, ptr %2, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %53
53: ; preds = %46
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
%56 = load i32, ptr %2, align 4
%57 = icmp slt i32 %56, 8
br i1 %57, label %46, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %58
58: ; preds = %._crit_edge3, %37
%59 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%60 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%61 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 4
%62 = call i32 @fn_invFHaarWT2p2oneStage_NoaK(ptr noundef %59, ptr noundef %60, ptr noundef %61, i32 noundef 8)
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%65 = load i32, ptr %2, align 4
%66 = icmp slt i32 %65, 8
br i1 %66, label %.lr.ph5, label %79
.lr.ph5: ; preds = %58
br label %67
67: ; preds = %.lr.ph5, %74
%68 = load i32, ptr %2, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %71)
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %74
74: ; preds = %67
%75 = load i32, ptr %2, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %2, align 4
%77 = load i32, ptr %2, align 4
%78 = icmp slt i32 %77, 8
br i1 %78, label %67, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %74
br label %79
79: ; preds = %._crit_edge6, %58
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%88 = load i32, ptr %2, align 4
%89 = icmp slt i32 %88, 8
br i1 %89, label %.lr.ph8, label %102
.lr.ph8: ; preds = %79
br label %90
90: ; preds = %.lr.ph8, %97
%91 = load i32, ptr %2, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %92
%94 = load i32, ptr %93, align 4
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %94)
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %97
97: ; preds = %90
%98 = load i32, ptr %2, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %2, align 4
%100 = load i32, ptr %2, align 4
%101 = icmp slt i32 %100, 8
br i1 %101, label %90, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %97
br label %102
102: ; preds = %._crit_edge9, %79
%103 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%104 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%105 = call i32 @ifn_array2wk(ptr noundef %103, i32 noundef 1, i32 noundef 8, ptr noundef %104)
%106 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%107 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%108 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %106, ptr noundef %107, i32 noundef 8, i32 noundef 1)
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%111 = load i32, ptr %2, align 4
%112 = icmp slt i32 %111, 8
br i1 %112, label %.lr.ph11, label %125
.lr.ph11: ; preds = %102
br label %113
113: ; preds = %.lr.ph11, %120
%114 = load i32, ptr %2, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %115
%117 = load i32, ptr %116, align 4
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %117)
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %120
120: ; preds = %113
%121 = load i32, ptr %2, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %2, align 4
%123 = load i32, ptr %2, align 4
%124 = icmp slt i32 %123, 8
br i1 %124, label %113, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %120
br label %125
125: ; preds = %._crit_edge12, %102
%126 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%127 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%128 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %126, ptr noundef %127, i32 noundef 8, i32 noundef 1)
%129 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%131 = load i32, ptr %2, align 4
%132 = icmp slt i32 %131, 8
br i1 %132, label %.lr.ph14, label %145
.lr.ph14: ; preds = %125
br label %133
133: ; preds = %.lr.ph14, %140
%134 = load i32, ptr %2, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %135
%137 = load i32, ptr %136, align 4
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %137)
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %140
140: ; preds = %133
%141 = load i32, ptr %2, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %2, align 4
%143 = load i32, ptr %2, align 4
%144 = icmp slt i32 %143, 8
br i1 %144, label %133, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %140
br label %145
145: ; preds = %._crit_edge15, %125
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%151 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%153 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%154 = load i32, ptr %2, align 4
%155 = icmp slt i32 %154, 8
br i1 %155, label %.lr.ph17, label %168
.lr.ph17: ; preds = %145
br label %156
156: ; preds = %.lr.ph17, %163
%157 = load i32, ptr %2, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %158
%160 = load i32, ptr %159, align 4
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %160)
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %163
163: ; preds = %156
%164 = load i32, ptr %2, align 4
%165 = add nsw i32 %164, 1
store i32 %165, ptr %2, align 4
%166 = load i32, ptr %2, align 4
%167 = icmp slt i32 %166, 8
br i1 %167, label %156, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %163
br label %168
168: ; preds = %._crit_edge18, %145
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%170 = load i32, ptr %6, align 4
%171 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %170)
%172 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%173 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%174 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%175 = load i32, ptr %6, align 4
%176 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%177 = call i32 @ifn_array2wk(ptr noundef %174, i32 noundef %175, i32 noundef 8, ptr noundef %176)
%178 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%179 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%180 = load i32, ptr %6, align 4
%181 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %178, ptr noundef %179, i32 noundef 8, i32 noundef %180)
store i32 0, ptr %2, align 4
%182 = load i32, ptr %2, align 4
%183 = icmp slt i32 %182, 4
br i1 %183, label %.lr.ph20, label %196
.lr.ph20: ; preds = %168
br label %184
184: ; preds = %.lr.ph20, %191
%185 = load i32, ptr %2, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %186
%188 = load i32, ptr %187, align 4
%189 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %188)
%190 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %191
191: ; preds = %184
%192 = load i32, ptr %2, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %2, align 4
%194 = load i32, ptr %2, align 4
%195 = icmp slt i32 %194, 4
br i1 %195, label %184, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %191
br label %196
196: ; preds = %._crit_edge21, %168
store i32 4, ptr %2, align 4
%197 = load i32, ptr %2, align 4
%198 = icmp slt i32 %197, 6
br i1 %198, label %.lr.ph23, label %211
.lr.ph23: ; preds = %196
br label %199
199: ; preds = %.lr.ph23, %206
%200 = load i32, ptr %2, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %201
%203 = load i32, ptr %202, align 4
%204 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %203)
%205 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %206
206: ; preds = %199
%207 = load i32, ptr %2, align 4
%208 = add nsw i32 %207, 1
store i32 %208, ptr %2, align 4
%209 = load i32, ptr %2, align 4
%210 = icmp slt i32 %209, 6
br i1 %210, label %199, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %206
br label %211
211: ; preds = %._crit_edge24, %196
%212 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 6
%213 = load i32, ptr %212, align 8
%214 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %213)
%215 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%216 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 7
%217 = load i32, ptr %216, align 4
%218 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %217)
%219 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%220 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%221 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 0
%222 = load i32, ptr %6, align 4
%223 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %220, ptr noundef %221, i32 noundef 8, i32 noundef %222)
%224 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%225 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%226 = load i32, ptr %2, align 4
%227 = icmp slt i32 %226, 8
br i1 %227, label %.lr.ph26, label %240
.lr.ph26: ; preds = %211
br label %228
228: ; preds = %.lr.ph26, %235
%229 = load i32, ptr %2, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %230
%232 = load i32, ptr %231, align 4
%233 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %232)
%234 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %235
235: ; preds = %228
%236 = load i32, ptr %2, align 4
%237 = add nsw i32 %236, 1
store i32 %237, ptr %2, align 4
%238 = load i32, ptr %2, align 4
%239 = icmp slt i32 %238, 8
br i1 %239, label %228, label %._crit_edge27, !llvm.loop !16
._crit_edge27: ; preds = %235
br label %240
240: ; preds = %._crit_edge27, %211
%241 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%242 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%243 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%244 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%245 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%246 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%247 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%248 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%249 = load i32, ptr %2, align 4
%250 = icmp slt i32 %249, 32
br i1 %250, label %.lr.ph29, label %269
.lr.ph29: ; preds = %240
br label %251
251: ; preds = %.lr.ph29, %264
%252 = call i32 (...) @rand()
%253 = srem i32 %252, 32
%254 = add nsw i32 %253, 1
%255 = load i32, ptr %2, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %256
store i32 %254, ptr %257, align 4
%258 = load i32, ptr %2, align 4
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %259
%261 = load i32, ptr %260, align 4
%262 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %261)
%263 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %264
264: ; preds = %251
%265 = load i32, ptr %2, align 4
%266 = add nsw i32 %265, 1
store i32 %266, ptr %2, align 4
%267 = load i32, ptr %2, align 4
%268 = icmp slt i32 %267, 32
br i1 %268, label %251, label %._crit_edge30, !llvm.loop !17
._crit_edge30: ; preds = %264
br label %269
269: ; preds = %._crit_edge30, %240
%270 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 0
%271 = load i32, ptr %10, align 4
%272 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%273 = call i32 @ifn_array2wk(ptr noundef %270, i32 noundef %271, i32 noundef 32, ptr noundef %272)
%274 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%275 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%276 = load i32, ptr %10, align 4
%277 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %274, ptr noundef %275, i32 noundef 32, i32 noundef %276)
%278 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%279 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%280 = load i32, ptr %2, align 4
%281 = icmp slt i32 %280, 32
br i1 %281, label %.lr.ph32, label %294
.lr.ph32: ; preds = %269
br label %282
282: ; preds = %.lr.ph32, %289
%283 = load i32, ptr %2, align 4
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 %284
%286 = load i32, ptr %285, align 4
%287 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %286)
%288 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %289
289: ; preds = %282
%290 = load i32, ptr %2, align 4
%291 = add nsw i32 %290, 1
store i32 %291, ptr %2, align 4
%292 = load i32, ptr %2, align 4
%293 = icmp slt i32 %292, 32
br i1 %293, label %282, label %._crit_edge33, !llvm.loop !18
._crit_edge33: ; preds = %289
br label %294
294: ; preds = %._crit_edge33, %269
%295 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%296 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%297 = load i32, ptr %10, align 4
%298 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %295, ptr noundef %296, i32 noundef 32, i32 noundef %297)
%299 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%300 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%301 = load i32, ptr %2, align 4
%302 = icmp slt i32 %301, 32
br i1 %302, label %.lr.ph35, label %315
.lr.ph35: ; preds = %294
br label %303
303: ; preds = %.lr.ph35, %310
%304 = load i32, ptr %2, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %305
%307 = load i32, ptr %306, align 4
%308 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %307)
%309 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %310
310: ; preds = %303
%311 = load i32, ptr %2, align 4
%312 = add nsw i32 %311, 1
store i32 %312, ptr %2, align 4
%313 = load i32, ptr %2, align 4
%314 = icmp slt i32 %313, 32
br i1 %314, label %303, label %._crit_edge36, !llvm.loop !19
._crit_edge36: ; preds = %310
br label %315
315: ; preds = %._crit_edge36, %294
%316 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%317 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%318 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%319 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%320 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%321 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%322 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%323 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%324 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%325 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%326 = load i32, ptr %2, align 4
%327 = icmp slt i32 %326, 32
br i1 %327, label %.lr.ph38, label %346
.lr.ph38: ; preds = %315
br label %328
328: ; preds = %.lr.ph38, %341
%329 = call i32 (...) @rand()
%330 = srem i32 %329, 32
%331 = add nsw i32 %330, 1
%332 = load i32, ptr %2, align 4
%333 = sext i32 %332 to i64
%334 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %333
store i32 %331, ptr %334, align 4
%335 = load i32, ptr %2, align 4
%336 = sext i32 %335 to i64
%337 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %336
%338 = load i32, ptr %337, align 4
%339 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %338)
%340 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %341
341: ; preds = %328
%342 = load i32, ptr %2, align 4
%343 = add nsw i32 %342, 1
store i32 %343, ptr %2, align 4
%344 = load i32, ptr %2, align 4
%345 = icmp slt i32 %344, 32
br i1 %345, label %328, label %._crit_edge39, !llvm.loop !20
._crit_edge39: ; preds = %341
br label %346
346: ; preds = %._crit_edge39, %315
%347 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 0
%348 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%349 = call i32 @ifn_array2wk(ptr noundef %347, i32 noundef 3, i32 noundef 32, ptr noundef %348)
%350 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%351 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%352 = call i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef %350, ptr noundef %351, i32 noundef 32, i32 noundef 3)
%353 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%354 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%355 = load i32, ptr %2, align 4
%356 = icmp slt i32 %355, 32
br i1 %356, label %.lr.ph41, label %369
.lr.ph41: ; preds = %346
br label %357
357: ; preds = %.lr.ph41, %364
%358 = load i32, ptr %2, align 4
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds [32 x i32], ptr %8, i64 0, i64 %359
%361 = load i32, ptr %360, align 4
%362 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %361)
%363 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %364
364: ; preds = %357
%365 = load i32, ptr %2, align 4
%366 = add nsw i32 %365, 1
store i32 %366, ptr %2, align 4
%367 = load i32, ptr %2, align 4
%368 = icmp slt i32 %367, 32
br i1 %368, label %357, label %._crit_edge42, !llvm.loop !21
._crit_edge42: ; preds = %364
br label %369
369: ; preds = %._crit_edge42, %346
%370 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 0
%371 = getelementptr inbounds [6 x ptr], ptr %9, i64 0, i64 0
%372 = call i32 @fn_invFHaarWT2p2_NoaK(ptr noundef %370, ptr noundef %371, i32 noundef 32, i32 noundef 3)
%373 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%374 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%375 = load i32, ptr %2, align 4
%376 = icmp slt i32 %375, 32
br i1 %376, label %.lr.ph44, label %389
.lr.ph44: ; preds = %369
br label %377
377: ; preds = %.lr.ph44, %384
%378 = load i32, ptr %2, align 4
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds [32 x i32], ptr %7, i64 0, i64 %379
%381 = load i32, ptr %380, align 4
%382 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %381)
%383 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %384
384: ; preds = %377
%385 = load i32, ptr %2, align 4
%386 = add nsw i32 %385, 1
store i32 %386, ptr %2, align 4
%387 = load i32, ptr %2, align 4
%388 = icmp slt i32 %387, 32
br i1 %388, label %377, label %._crit_edge45, !llvm.loop !22
._crit_edge45: ; preds = %384
br label %389
389: ; preds = %._crit_edge45, %369
%390 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%391 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @fn_dirFHaarWT2p2oneStage_NoaK(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @fn_invFHaarWT2p2oneStage_NoaK(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @ifn_array2wk(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fn_dirFHaarWT2p2_NoaK(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fn_invFHaarWT2p2_NoaK(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @rand(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
!22 = distinct !{!22, !7}
|
; ModuleID = '/tmp/tmp6zvx01y7.c'
source_filename = "/tmp/tmp6zvx01y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertString(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = 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
store ptr %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store ptr %19, ptr %10, align 8
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %13, align 4
%23 = load ptr, ptr %6, align 8
%24 = call i32 @strlen(ptr noundef %23)
store i32 %24, ptr %12, align 4
%25 = load i32, ptr %13, align 4
%26 = load i32, ptr %12, align 4
%27 = add nsw i32 %25, %26
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 1
%31 = trunc i64 %30 to i32
%32 = call i64 @xmalloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %11, align 8
%34 = load ptr, ptr %5, align 8
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %9, align 8
br label %36
36: ; preds = %41, %4
%37 = load ptr, ptr %9, align 8
%38 = load ptr, ptr %10, align 8
%39 = icmp ult ptr %37, %38
br i1 %39, label %40, label %44
40: ; preds = %36
br label %41
41: ; preds = %40
%42 = load ptr, ptr %9, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %9, align 8
br label %36, !llvm.loop !6
44: ; preds = %36
%45 = load ptr, ptr %11, align 8
%46 = load ptr, ptr %5, align 8
%47 = load ptr, ptr %46, align 8
%48 = load ptr, ptr %9, align 8
%49 = load ptr, ptr %5, align 8
%50 = load ptr, ptr %49, align 8
%51 = ptrtoint ptr %48 to i64
%52 = ptrtoint ptr %50 to i64
%53 = sub i64 %51, %52
%54 = trunc i64 %53 to i32
%55 = call i32 @strncpy(ptr noundef %45, ptr noundef %47, i32 noundef %54)
%56 = load ptr, ptr %11, align 8
%57 = load ptr, ptr %9, align 8
%58 = load ptr, ptr %5, align 8
%59 = load ptr, ptr %58, align 8
%60 = ptrtoint ptr %57 to i64
%61 = ptrtoint ptr %59 to i64
%62 = sub i64 %60, %61
%63 = getelementptr inbounds i8, ptr %56, i64 %62
store i8 0, ptr %63, align 1
%64 = load ptr, ptr %11, align 8
%65 = load ptr, ptr %6, align 8
%66 = call i32 @strcat(ptr noundef %64, ptr noundef %65)
%67 = load ptr, ptr %11, align 8
%68 = load ptr, ptr %9, align 8
%69 = call i32 @strcat(ptr noundef %67, ptr noundef %68)
%70 = load ptr, ptr %11, align 8
%71 = call i32 @strlen(ptr noundef %70)
store i32 %71, ptr %14, align 4
%72 = load i32, ptr %14, align 4
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %73, align 4
%75 = icmp sge i32 %72, %74
br i1 %75, label %76, label %90
76: ; preds = %44
%77 = load i32, ptr %14, align 4
%78 = mul nsw i32 %77, 2
%79 = load ptr, ptr %8, align 8
store i32 %78, ptr %79, align 4
%80 = load ptr, ptr %5, align 8
%81 = load ptr, ptr %80, align 8
%82 = load ptr, ptr %8, align 8
%83 = load i32, ptr %82, align 4
%84 = sext i32 %83 to i64
%85 = mul i64 %84, 1
%86 = trunc i64 %85 to i32
%87 = call i64 @xrealloc(ptr noundef %81, i32 noundef %86)
%88 = inttoptr i64 %87 to ptr
%89 = load ptr, ptr %5, align 8
store ptr %88, ptr %89, align 8
br label %90
90: ; preds = %76, %44
%91 = load ptr, ptr %5, align 8
%92 = load ptr, ptr %91, align 8
%93 = load ptr, ptr %11, align 8
%94 = call i32 @strcpy(ptr noundef %92, ptr noundef %93)
br label %95
95: ; preds = %90
%96 = load ptr, ptr %11, align 8
%97 = icmp ne ptr %96, null
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = load ptr, ptr %11, align 8
%100 = call i32 @free(ptr noundef %99)
store ptr null, ptr %11, align 8
br label %101
101: ; preds = %98, %95
br label %102
102: ; preds = %101
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @xmalloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @xrealloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6zvx01y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertString(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = 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
store ptr %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store ptr %19, ptr %10, align 8
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %13, align 4
%23 = load ptr, ptr %6, align 8
%24 = call i32 @strlen(ptr noundef %23)
store i32 %24, ptr %12, align 4
%25 = load i32, ptr %13, align 4
%26 = load i32, ptr %12, align 4
%27 = add nsw i32 %25, %26
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 1
%31 = trunc i64 %30 to i32
%32 = call i64 @xmalloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %11, align 8
%34 = load ptr, ptr %5, align 8
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = load ptr, ptr %10, align 8
%38 = icmp ult ptr %36, %37
br i1 %38, label %.lr.ph, label %46
.lr.ph: ; preds = %4
br label %39
39: ; preds = %.lr.ph, %40
br label %40
40: ; preds = %39
%41 = load ptr, ptr %9, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %9, align 8
%43 = load ptr, ptr %9, align 8
%44 = load ptr, ptr %10, align 8
%45 = icmp ult ptr %43, %44
br i1 %45, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %4
%47 = load ptr, ptr %11, align 8
%48 = load ptr, ptr %5, align 8
%49 = load ptr, ptr %48, align 8
%50 = load ptr, ptr %9, align 8
%51 = load ptr, ptr %5, align 8
%52 = load ptr, ptr %51, align 8
%53 = ptrtoint ptr %50 to i64
%54 = ptrtoint ptr %52 to i64
%55 = sub i64 %53, %54
%56 = trunc i64 %55 to i32
%57 = call i32 @strncpy(ptr noundef %47, ptr noundef %49, i32 noundef %56)
%58 = load ptr, ptr %11, align 8
%59 = load ptr, ptr %9, align 8
%60 = load ptr, ptr %5, align 8
%61 = load ptr, ptr %60, align 8
%62 = ptrtoint ptr %59 to i64
%63 = ptrtoint ptr %61 to i64
%64 = sub i64 %62, %63
%65 = getelementptr inbounds i8, ptr %58, i64 %64
store i8 0, ptr %65, align 1
%66 = load ptr, ptr %11, align 8
%67 = load ptr, ptr %6, align 8
%68 = call i32 @strcat(ptr noundef %66, ptr noundef %67)
%69 = load ptr, ptr %11, align 8
%70 = load ptr, ptr %9, align 8
%71 = call i32 @strcat(ptr noundef %69, ptr noundef %70)
%72 = load ptr, ptr %11, align 8
%73 = call i32 @strlen(ptr noundef %72)
store i32 %73, ptr %14, align 4
%74 = load i32, ptr %14, align 4
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr %75, align 4
%77 = icmp sge i32 %74, %76
br i1 %77, label %78, label %92
78: ; preds = %46
%79 = load i32, ptr %14, align 4
%80 = mul nsw i32 %79, 2
%81 = load ptr, ptr %8, align 8
store i32 %80, ptr %81, align 4
%82 = load ptr, ptr %5, align 8
%83 = load ptr, ptr %82, align 8
%84 = load ptr, ptr %8, align 8
%85 = load i32, ptr %84, align 4
%86 = sext i32 %85 to i64
%87 = mul i64 %86, 1
%88 = trunc i64 %87 to i32
%89 = call i64 @xrealloc(ptr noundef %83, i32 noundef %88)
%90 = inttoptr i64 %89 to ptr
%91 = load ptr, ptr %5, align 8
store ptr %90, ptr %91, align 8
br label %92
92: ; preds = %78, %46
%93 = load ptr, ptr %5, align 8
%94 = load ptr, ptr %93, align 8
%95 = load ptr, ptr %11, align 8
%96 = call i32 @strcpy(ptr noundef %94, ptr noundef %95)
br label %97
97: ; preds = %92
%98 = load ptr, ptr %11, align 8
%99 = icmp ne ptr %98, null
br i1 %99, label %100, label %103
100: ; preds = %97
%101 = load ptr, ptr %11, align 8
%102 = call i32 @free(ptr noundef %101)
store ptr null, ptr %11, align 8
br label %103
103: ; preds = %100, %97
br label %104
104: ; preds = %103
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @xmalloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @xrealloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp62dfc9mc.c'
source_filename = "/tmp/tmp62dfc9mc.c"
target datalayout = "e-m:e-p270: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._fail.s = private unnamed_addr constant [10 x i8] c"\0Afailed: \00", align 1
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_fail(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [10 x i8], align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const._fail.s, i64 10, i1 false)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @mystrlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @write(i32 noundef 1, ptr noundef %7, i32 noundef 9)
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @write(i32 noundef 1, ptr noundef %9, i32 noundef %10)
%12 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef 1)
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 @mystrlen(ptr noundef) #2
declare i32 @write(i32 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/tmp62dfc9mc.c"
target datalayout = "e-m:e-p270: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._fail.s = private unnamed_addr constant [10 x i8] c"\0Afailed: \00", align 1
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_fail(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [10 x i8], align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const._fail.s, i64 10, i1 false)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @mystrlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @write(i32 noundef 1, ptr noundef %7, i32 noundef 9)
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @write(i32 noundef 1, ptr noundef %9, i32 noundef %10)
%12 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef 1)
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 @mystrlen(ptr noundef) #2
declare i32 @write(i32 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/tmpb4xzucdq.c'
source_filename = "/tmp/tmpb4xzucdq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"usage: %s [options] file\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"%s -o outputfile\09: specify output file\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%s -d\09\09: disassemble input file\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"%s -h\09\09: show help\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"%s -v\09\09: show version\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str.1, ptr noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.2, ptr noundef %10)
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.3, ptr noundef %13)
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.4, ptr noundef %16)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb4xzucdq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"usage: %s [options] file\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"%s -o outputfile\09: specify output file\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%s -d\09\09: disassemble input file\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"%s -h\09\09: show help\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"%s -v\09\09: show version\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str.1, ptr noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.2, ptr noundef %10)
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.3, ptr noundef %13)
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.4, ptr noundef %16)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbwhpsue5.c'
source_filename = "/tmp/tmpbwhpsue5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @allocstr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 1
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
store i8 0, ptr %10, align 1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbwhpsue5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @allocstr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 1
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
store i8 0, ptr %10, align 1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp00x00luv.c'
source_filename = "/tmp/tmp00x00luv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load i32, ptr @errno, align 4
store i32 %5, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strtol(ptr noundef %6, ptr noundef null, i32 noundef 10)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %4, align 4
store i32 %9, ptr @errno, align 4
%10 = load i32, ptr %3, align 4
ret i32 %10
}
declare i64 @strtol(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/tmp00x00luv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load i32, ptr @errno, align 4
store i32 %5, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strtol(ptr noundef %6, ptr noundef null, i32 noundef 10)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %4, align 4
store i32 %9, ptr @errno, align 4
%10 = load i32, ptr %3, align 4
ret i32 %10
}
declare i64 @strtol(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/tmptewf5ti5.c'
source_filename = "/tmp/tmptewf5ti5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"\09myfrexp: %f * 2^%d\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"\09union_frexp: %f * 2^%d\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\09REAL frexp: %f * 2^%d\0A\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 double, align 8
%8 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call double @atof(ptr noundef %17)
store double %18, ptr %7, align 8
%19 = load double, ptr %7, align 8
%20 = call double @my_frexp(double noundef %19, ptr noundef %6)
store double %20, ptr %8, align 8
%21 = load double, ptr %8, align 8
%22 = load i32, ptr %6, align 4
%23 = call i32 @printf(ptr noundef @.str, double noundef %21, i32 noundef %22)
%24 = load double, ptr %7, align 8
%25 = call double @union_frexp(double noundef %24, ptr noundef %6)
store double %25, ptr %8, align 8
%26 = load double, ptr %8, align 8
%27 = load i32, ptr %6, align 4
%28 = call i32 @printf(ptr noundef @.str.1, double noundef %26, i32 noundef %27)
%29 = load double, ptr %7, align 8
%30 = call double @frexp(double noundef %29, ptr noundef %6)
store double %30, ptr %8, align 8
%31 = load double, ptr %8, align 8
%32 = load i32, ptr %6, align 4
%33 = call i32 @printf(ptr noundef @.str.2, double noundef %31, i32 noundef %32)
ret i32 0
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare double @atof(ptr noundef) #2
declare double @my_frexp(double noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, double noundef, i32 noundef) #2
declare double @union_frexp(double noundef, ptr noundef) #2
declare double @frexp(double noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptewf5ti5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"\09myfrexp: %f * 2^%d\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"\09union_frexp: %f * 2^%d\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\09REAL frexp: %f * 2^%d\0A\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 double, align 8
%8 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call double @atof(ptr noundef %17)
store double %18, ptr %7, align 8
%19 = load double, ptr %7, align 8
%20 = call double @my_frexp(double noundef %19, ptr noundef %6)
store double %20, ptr %8, align 8
%21 = load double, ptr %8, align 8
%22 = load i32, ptr %6, align 4
%23 = call i32 @printf(ptr noundef @.str, double noundef %21, i32 noundef %22)
%24 = load double, ptr %7, align 8
%25 = call double @union_frexp(double noundef %24, ptr noundef %6)
store double %25, ptr %8, align 8
%26 = load double, ptr %8, align 8
%27 = load i32, ptr %6, align 4
%28 = call i32 @printf(ptr noundef @.str.1, double noundef %26, i32 noundef %27)
%29 = load double, ptr %7, align 8
%30 = call double @frexp(double noundef %29, ptr noundef %6)
store double %30, ptr %8, align 8
%31 = load double, ptr %8, align 8
%32 = load i32, ptr %6, align 4
%33 = call i32 @printf(ptr noundef @.str.2, double noundef %31, i32 noundef %32)
ret i32 0
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare double @atof(ptr noundef) #2
declare double @my_frexp(double noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, double noundef, i32 noundef) #2
declare double @union_frexp(double noundef, ptr noundef) #2
declare double @frexp(double noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpimrgshgn.c'
source_filename = "/tmp/tmpimrgshgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @edisrnd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca double, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load double, ptr %4, align 8
%6 = call double @doublemod(double noundef %5, double noundef 6.553600e+04)
%7 = load ptr, ptr %2, align 8
store double %6, ptr %7, align 8
%8 = load ptr, ptr %2, align 8
%9 = load double, ptr %8, align 8
%10 = call double @llvm.fmuladd.f64(double %9, double 2.053000e+03, double 1.384900e+04)
%11 = call double @doublemod(double noundef %10, double noundef 6.553600e+04)
%12 = load ptr, ptr %2, align 8
store double %11, ptr %12, align 8
%13 = load ptr, ptr %2, align 8
%14 = load double, ptr %13, align 8
%15 = fdiv double %14, 6.553600e+04
store double %15, ptr %3, align 8
%16 = load double, ptr %3, align 8
ret double %16
}
declare double @doublemod(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpimrgshgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @edisrnd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca double, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load double, ptr %4, align 8
%6 = call double @doublemod(double noundef %5, double noundef 6.553600e+04)
%7 = load ptr, ptr %2, align 8
store double %6, ptr %7, align 8
%8 = load ptr, ptr %2, align 8
%9 = load double, ptr %8, align 8
%10 = call double @llvm.fmuladd.f64(double %9, double 2.053000e+03, double 1.384900e+04)
%11 = call double @doublemod(double noundef %10, double noundef 6.553600e+04)
%12 = load ptr, ptr %2, align 8
store double %11, ptr %12, align 8
%13 = load ptr, ptr %2, align 8
%14 = load double, ptr %13, align 8
%15 = fdiv double %14, 6.553600e+04
store double %15, ptr %3, align 8
%16 = load double, ptr %3, align 8
ret double %16
}
declare double @doublemod(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdmd1g0rr.c'
source_filename = "/tmp/tmpdmd1g0rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_trailing_spaces(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %3, align 4
br label %9
9: ; preds = %22, %1
%10 = load i32, ptr %3, align 4
%11 = icmp sgt i32 %10, -1
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 32
br i1 %19, label %20, label %21
20: ; preds = %12
br label %25
21: ; preds = %12
br label %22
22: ; preds = %21
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %3, align 4
br label %9, !llvm.loop !6
25: ; preds = %20, %9
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
store i8 0, ptr %30, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdmd1g0rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_trailing_spaces(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sgt i32 %9, -1
br i1 %10, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %21
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 32
br i1 %18, label %19, label %20
19: ; preds = %11
br label %26
20: ; preds = %11
br label %21
21: ; preds = %20
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp sgt i32 %24, -1
br i1 %25, label %11, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %21
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %26
26: ; preds = %.loopexit, %19
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %27, i64 %30
store i8 0, ptr %31, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9kfczy2i.c'
source_filename = "/tmp/tmp9kfczy2i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @copy_to_heap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = call ptr @my_alloc(i32 noundef 1, i32 noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @memcpy(ptr noundef %8, ptr noundef %9, i32 noundef %10)
%12 = load ptr, ptr %5, align 8
ret ptr %12
}
declare ptr @my_alloc(i32 noundef, i32 noundef) #1
declare i32 @memcpy(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/tmp9kfczy2i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @copy_to_heap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = call ptr @my_alloc(i32 noundef 1, i32 noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @memcpy(ptr noundef %8, ptr noundef %9, i32 noundef %10)
%12 = load ptr, ptr %5, align 8
ret ptr %12
}
declare ptr @my_alloc(i32 noundef, i32 noundef) #1
declare i32 @memcpy(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/tmp2m8vv1c1.c'
source_filename = "/tmp/tmp2m8vv1c1.c"
target datalayout = "e-m:e-p270: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/tmp2m8vv1c1.c"
target datalayout = "e-m:e-p270: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/tmp4yt0m7_6.c'
source_filename = "/tmp/tmp4yt0m7_6.c"
target datalayout = "e-m:e-p270: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/tmp4yt0m7_6.c"
target datalayout = "e-m:e-p270: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/tmpupn_zvlt.c'
source_filename = "/tmp/tmpupn_zvlt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @triangleMake(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %3, align 4
br label %4
4: ; preds = %13, %1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = add nsw i32 %6, 1
%8 = icmp sle i32 %5, %7
br i1 %8, label %9, label %16
9: ; preds = %4
%10 = load i32, ptr %3, align 4
%11 = call i32 @printLine(i32 noundef %10)
%12 = call i32 @printf(ptr noundef @.str)
br label %13
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
br label %4, !llvm.loop !6
16: ; preds = %4
ret void
}
declare i32 @printLine(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpupn_zvlt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @triangleMake(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 1
%7 = icmp sle i32 %4, %6
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %12
%9 = load i32, ptr %3, align 4
%10 = call i32 @printLine(i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str)
br label %12
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
%18 = icmp sle i32 %15, %17
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %19
19: ; preds = %._crit_edge, %1
ret void
}
declare i32 @printLine(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphuup60iu.c'
source_filename = "/tmp/tmphuup60iu.c"
target datalayout = "e-m:e-p270: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/tmphuup60iu.c"
target datalayout = "e-m:e-p270: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/tmprona0zc1.c'
source_filename = "/tmp/tmprona0zc1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %15, %0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %13)
br label %15
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %4, align 4
br label %21
21: ; preds = %24, %18
%22 = load i32, ptr %4, align 4
%23 = icmp sge i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %21
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %26
%28 = load i32, ptr %27, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %4, align 4
br label %21, !llvm.loop !8
32: ; preds = %21
ret i32 0
}
declare i32 @scanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprona0zc1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %14
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %9
%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 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %0
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %.lr.ph2, label %35
.lr.ph2: ; preds = %20
br label %25
25: ; preds = %.lr.ph2, %25
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = call i32 @printf(ptr noundef @.str.1, i32 noundef %29)
%31 = load i32, ptr %4, align 4
%32 = add 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 %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %25
br label %35
35: ; preds = %._crit_edge3, %20
ret i32 0
}
declare i32 @scanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpyphsuify.c'
source_filename = "/tmp/tmpyphsuify.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@EIO = dso_local global i64 0, align 8
@STDIN_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@stdout = 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/tmpyphsuify.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@EIO = dso_local global i64 0, align 8
@STDIN_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@stdout = 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/tmp06gzoji4.c'
source_filename = "/tmp/tmp06gzoji4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 1 for 0x0e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x0e() #0 {
%1 = call i32 @isascii(i32 noundef 14)
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 75, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isascii(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/tmp06gzoji4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 1 for 0x0e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x0e() #0 {
%1 = call i32 @isascii(i32 noundef 14)
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 75, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isascii(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/tmpkae79f_s.c'
source_filename = "/tmp/tmpkae79f_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memswap64(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
br label %10
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
br label %13
13: ; preds = %26, %10
%14 = load i64, ptr %6, align 8
%15 = icmp uge i64 %14, 8
br i1 %15, label %16, label %29
16: ; preds = %13
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %19, align 8
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds ptr, ptr %21, i32 1
store ptr %22, ptr %7, align 8
store ptr %20, ptr %21, align 8
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %8, align 8
%25 = getelementptr inbounds ptr, ptr %24, i32 1
store ptr %25, ptr %8, align 8
store ptr %23, ptr %24, align 8
br label %26
26: ; preds = %16
%27 = load i64, ptr %6, align 8
%28 = sub i64 %27, 8
store i64 %28, ptr %6, align 8
br label %13, !llvm.loop !6
29: ; preds = %13
br label %30
30: ; preds = %29
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkae79f_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memswap64(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
br label %10
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp uge i64 %13, 8
br i1 %14, label %.lr.ph, label %30
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %25
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %9, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds ptr, ptr %20, i32 1
store ptr %21, ptr %7, align 8
store ptr %19, ptr %20, align 8
%22 = load ptr, ptr %9, align 8
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds ptr, ptr %23, i32 1
store ptr %24, ptr %8, align 8
store ptr %22, ptr %23, align 8
br label %25
25: ; preds = %15
%26 = load i64, ptr %6, align 8
%27 = sub i64 %26, 8
store i64 %27, ptr %6, align 8
%28 = load i64, ptr %6, align 8
%29 = icmp uge i64 %28, 8
br i1 %29, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %10
br label %31
31: ; preds = %30
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpc9gtfs4p.c'
source_filename = "/tmp/tmpc9gtfs4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tree_range_size(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = load ptr, ptr %11, align 8
%17 = call ptr @tree_find(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
store ptr %17, ptr %12, align 8
%18 = load ptr, ptr %12, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %33
20: ; preds = %5
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %9, align 8
%23 = load ptr, ptr %10, align 8
%24 = load ptr, ptr %11, align 8
%25 = call i32 @tree_rank(ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
%26 = load ptr, ptr %7, align 8
%27 = load ptr, ptr %8, align 8
%28 = load ptr, ptr %10, align 8
%29 = load ptr, ptr %11, align 8
%30 = call i32 @tree_rank(ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29)
%31 = sub nsw i32 %25, %30
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %45
33: ; preds = %5
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %9, align 8
%36 = load ptr, ptr %10, align 8
%37 = load ptr, ptr %11, align 8
%38 = call i32 @tree_rank(ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37)
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %8, align 8
%41 = load ptr, ptr %10, align 8
%42 = load ptr, ptr %11, align 8
%43 = call i32 @tree_rank(ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42)
%44 = sub nsw i32 %38, %43
store i32 %44, ptr %6, align 4
br label %45
45: ; preds = %33, %20
%46 = load i32, ptr %6, align 4
ret i32 %46
}
declare ptr @tree_find(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @tree_rank(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc9gtfs4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tree_range_size(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = load ptr, ptr %11, align 8
%17 = call ptr @tree_find(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
store ptr %17, ptr %12, align 8
%18 = load ptr, ptr %12, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %33
20: ; preds = %5
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %9, align 8
%23 = load ptr, ptr %10, align 8
%24 = load ptr, ptr %11, align 8
%25 = call i32 @tree_rank(ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
%26 = load ptr, ptr %7, align 8
%27 = load ptr, ptr %8, align 8
%28 = load ptr, ptr %10, align 8
%29 = load ptr, ptr %11, align 8
%30 = call i32 @tree_rank(ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29)
%31 = sub nsw i32 %25, %30
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %45
33: ; preds = %5
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %9, align 8
%36 = load ptr, ptr %10, align 8
%37 = load ptr, ptr %11, align 8
%38 = call i32 @tree_rank(ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37)
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %8, align 8
%41 = load ptr, ptr %10, align 8
%42 = load ptr, ptr %11, align 8
%43 = call i32 @tree_rank(ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42)
%44 = sub nsw i32 %38, %43
store i32 %44, ptr %6, align 4
br label %45
45: ; preds = %33, %20
%46 = load i32, ptr %6, align 4
ret i32 %46
}
declare ptr @tree_find(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @tree_rank(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpexgum8vg.c'
source_filename = "/tmp/tmpexgum8vg.c"
target datalayout = "e-m:e-p270: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/tmpexgum8vg.c"
target datalayout = "e-m:e-p270: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/tmpv9bfp9bg.c'
source_filename = "/tmp/tmpv9bfp9bg.c"
target datalayout = "e-m:e-p270: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/tmpv9bfp9bg.c"
target datalayout = "e-m:e-p270: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/tmp74il34lb.c'
source_filename = "/tmp/tmp74il34lb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rstrip(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %5, align 4
br label %9
9: ; preds = %19, %2
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr %4, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %15, %17
br i1 %18, label %19, label %22
19: ; preds = %9
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %5, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %23, i64 %26
store i8 0, ptr %27, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74il34lb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rstrip(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %5, align 4
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = load i8, ptr %4, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %14, %16
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %18
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %5, align 4
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load i8, ptr %4, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %26, %28
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %30
30: ; preds = %._crit_edge, %2
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %31, i64 %34
store i8 0, ptr %35, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo953l6s1.c'
source_filename = "/tmp/tmpo953l6s1.c"
target datalayout = "e-m:e-p270: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/tmpo953l6s1.c"
target datalayout = "e-m:e-p270: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/tmpbcrx0lsx.c'
source_filename = "/tmp/tmpbcrx0lsx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbcrx0lsx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpflujtvxx.c'
source_filename = "/tmp/tmpflujtvxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"hypotf\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%12 = call double (...) @benchmark()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @print_results(double noundef %13)
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpflujtvxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"hypotf\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%11 = call double (...) @benchmark()
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call i32 @print_results(double noundef %12)
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4993y11y.c'
source_filename = "/tmp/tmp4993y11y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getTIssue(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 30, ptr %5, align 4
%6 = call i64 (...) @klock_getT2()
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %4, align 8
br label %8
8: ; preds = %11, %1
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 20
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = call i64 (...) @klock_getT2()
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %16, align 4
%18 = sub nsw i32 %15, %17
store i32 %18, ptr %5, align 4
%19 = load ptr, ptr %3, align 8
store ptr %19, ptr %4, align 8
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = load i32, ptr %5, align 4
ret i32 %21
}
declare i64 @klock_getT2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4993y11y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getTIssue(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 30, ptr %5, align 4
%6 = call i64 (...) @klock_getT2()
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = icmp sgt i32 %8, 20
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %10
%11 = call i64 (...) @klock_getT2()
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %15, align 4
%17 = sub nsw i32 %14, %16
store i32 %17, ptr %5, align 4
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 20
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %21
21: ; preds = %._crit_edge, %1
%22 = load i32, ptr %5, align 4
ret i32 %22
}
declare i64 @klock_getT2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqrv0fvu8.c'
source_filename = "/tmp/tmpqrv0fvu8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dollars(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %19, %2
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %10
br label %19
19: ; preds = %18
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %10, !llvm.loop !6
22: ; preds = %10
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
%25 = sdiv i32 %24, 3
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
%28 = srem i32 %27, 3
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i32
%31 = add nsw i32 %25, %30
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %32, %33
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp sgt i32 %35, 2
br i1 %36, label %37, label %118
37: ; preds = %22
%38 = load i32, ptr %7, align 4
store i32 %38, ptr %6, align 4
br label %39
39: ; preds = %90, %37
%40 = load i32, ptr %6, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %42, label %93
42: ; preds = %39
%43 = load i32, ptr %6, align 4
%44 = load i32, ptr %7, align 4
%45 = sub nsw i32 %44, 3
%46 = icmp eq i32 %43, %45
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 3
store i8 46, ptr %49, align 1
br label %90
50: ; preds = %42
%51 = load i32, ptr %9, align 4
%52 = icmp eq i32 %51, 3
br i1 %52, label %53, label %68
53: ; preds = %50
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %7, align 4
%56 = sub nsw i32 %55, 3
%57 = icmp slt i32 %54, %56
br i1 %57, label %58, label %68
58: ; preds = %53
%59 = load i32, ptr %6, align 4
%60 = icmp sgt i32 %59, 1
br i1 %60, label %61, label %68
61: ; preds = %58
%62 = load ptr, ptr %3, align 8
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %6, align 4
%65 = sub nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %62, i64 %66
store i8 44, ptr %67, align 1
store i32 0, ptr %9, align 4
br label %90
68: ; preds = %58, %53, %50
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %5, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %69, i64 %71
%73 = load i8, ptr %72, align 1
%74 = load ptr, ptr %3, align 8
%75 = load i32, ptr %7, align 4
%76 = load i32, ptr %6, align 4
%77 = sub nsw i32 %75, %76
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %74, i64 %78
store i8 %73, ptr %79, align 1
%80 = load i32, ptr %6, align 4
%81 = load i32, ptr %7, align 4
%82 = sub nsw i32 %81, 3
%83 = icmp slt i32 %80, %82
br i1 %83, label %84, label %87
84: ; preds = %68
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %9, align 4
br label %87
87: ; preds = %84, %68
%88 = load i32, ptr %5, align 4
%89 = add nsw i32 %88, -1
store i32 %89, ptr %5, align 4
br label %90
90: ; preds = %87, %61, %47
%91 = load i32, ptr %6, align 4
%92 = add nsw i32 %91, -1
store i32 %92, ptr %6, align 4
br label %39, !llvm.loop !8
93: ; preds = %39
%94 = load ptr, ptr %3, align 8
%95 = load i32, ptr %7, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %94, i64 %96
store i8 36, ptr %97, align 1
%98 = load i32, ptr %7, align 4
store i32 %98, ptr %6, align 4
br label %99
99: ; preds = %114, %93
%100 = load ptr, ptr %3, align 8
%101 = load i32, ptr %6, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %117
107: ; preds = %99
%108 = load ptr, ptr %3, align 8
%109 = load i32, ptr %6, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = call i32 @putchar(i8 noundef signext %112)
br label %114
114: ; preds = %107
%115 = load i32, ptr %6, align 4
%116 = add nsw i32 %115, -1
store i32 %116, ptr %6, align 4
br label %99, !llvm.loop !9
117: ; preds = %99
br label %151
118: ; preds = %22
%119 = load ptr, ptr %3, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 5
store i8 36, ptr %120, align 1
%121 = load ptr, ptr %3, align 8
%122 = getelementptr inbounds i8, ptr %121, i64 4
store i8 48, ptr %122, align 1
%123 = load ptr, ptr %3, align 8
%124 = getelementptr inbounds i8, ptr %123, i64 3
store i8 46, ptr %124, align 1
%125 = load ptr, ptr %4, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 0
%127 = load i8, ptr %126, align 1
%128 = load ptr, ptr %3, align 8
%129 = getelementptr inbounds i8, ptr %128, i64 2
store i8 %127, ptr %129, align 1
%130 = load ptr, ptr %4, align 8
%131 = getelementptr inbounds i8, ptr %130, i64 1
%132 = load i8, ptr %131, align 1
%133 = load ptr, ptr %3, align 8
%134 = getelementptr inbounds i8, ptr %133, i64 1
store i8 %132, ptr %134, align 1
%135 = load ptr, ptr %3, align 8
%136 = getelementptr inbounds i8, ptr %135, i64 0
store i8 0, ptr %136, align 1
store i32 5, ptr %6, align 4
br label %137
137: ; preds = %147, %118
%138 = load i32, ptr %6, align 4
%139 = icmp sge i32 %138, 0
br i1 %139, label %140, label %150
140: ; preds = %137
%141 = load ptr, ptr %3, align 8
%142 = load i32, ptr %6, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8, ptr %141, i64 %143
%145 = load i8, ptr %144, align 1
%146 = call i32 @putchar(i8 noundef signext %145)
br label %147
147: ; preds = %140
%148 = load i32, ptr %6, align 4
%149 = add nsw i32 %148, -1
store i32 %149, ptr %6, align 4
br label %137, !llvm.loop !10
150: ; preds = %137
br label %151
151: ; preds = %150, %117
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqrv0fvu8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dollars(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %18
br label %18
18: ; preds = %17
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %28
28: ; preds = %._crit_edge, %2
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
%31 = sdiv i32 %30, 3
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
%34 = srem i32 %33, 3
%35 = icmp ne i32 %34, 0
%36 = zext i1 %35 to i32
%37 = add nsw i32 %31, %36
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %38, %39
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp sgt i32 %41, 2
br i1 %42, label %43, label %131
43: ; preds = %28
%44 = load i32, ptr %7, align 4
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp sgt i32 %45, 0
br i1 %46, label %.lr.ph5, label %100
.lr.ph5: ; preds = %43
br label %47
47: ; preds = %.lr.ph5, %95
%48 = load i32, ptr %6, align 4
%49 = load i32, ptr %7, align 4
%50 = sub nsw i32 %49, 3
%51 = icmp eq i32 %48, %50
br i1 %51, label %52, label %55
52: ; preds = %47
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 3
store i8 46, ptr %54, align 1
br label %95
55: ; preds = %47
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %56, 3
br i1 %57, label %58, label %73
58: ; preds = %55
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = sub nsw i32 %60, 3
%62 = icmp slt i32 %59, %61
br i1 %62, label %63, label %73
63: ; preds = %58
%64 = load i32, ptr %6, align 4
%65 = icmp sgt i32 %64, 1
br i1 %65, label %66, label %73
66: ; preds = %63
%67 = load ptr, ptr %3, align 8
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %6, align 4
%70 = sub nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %67, i64 %71
store i8 44, ptr %72, align 1
store i32 0, ptr %9, align 4
br label %95
73: ; preds = %63, %58, %55
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %5, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %6, align 4
%82 = sub nsw i32 %80, %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %79, i64 %83
store i8 %78, ptr %84, align 1
%85 = load i32, ptr %6, align 4
%86 = load i32, ptr %7, align 4
%87 = sub nsw i32 %86, 3
%88 = icmp slt i32 %85, %87
br i1 %88, label %89, label %92
89: ; preds = %73
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %9, align 4
br label %92
92: ; preds = %89, %73
%93 = load i32, ptr %5, align 4
%94 = add nsw i32 %93, -1
store i32 %94, ptr %5, align 4
br label %95
95: ; preds = %92, %66, %52
%96 = load i32, ptr %6, align 4
%97 = add nsw i32 %96, -1
store i32 %97, ptr %6, align 4
%98 = load i32, ptr %6, align 4
%99 = icmp sgt i32 %98, 0
br i1 %99, label %47, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %95
br label %100
100: ; preds = %._crit_edge6, %43
%101 = load ptr, ptr %3, align 8
%102 = load i32, ptr %7, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
store i8 36, ptr %104, align 1
%105 = load i32, ptr %7, align 4
store i32 %105, ptr %6, align 4
%106 = load ptr, ptr %3, align 8
%107 = load i32, ptr %6, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, ptr %106, i64 %108
%110 = load i8, ptr %109, align 1
%111 = sext i8 %110 to i32
%112 = icmp ne i32 %111, 0
br i1 %112, label %.lr.ph8, label %130
.lr.ph8: ; preds = %100
br label %113
113: ; preds = %.lr.ph8, %120
%114 = load ptr, ptr %3, align 8
%115 = load i32, ptr %6, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, ptr %114, i64 %116
%118 = load i8, ptr %117, align 1
%119 = call i32 @putchar(i8 noundef signext %118)
br label %120
120: ; preds = %113
%121 = load i32, ptr %6, align 4
%122 = add nsw i32 %121, -1
store i32 %122, ptr %6, align 4
%123 = load ptr, ptr %3, align 8
%124 = load i32, ptr %6, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, ptr %123, i64 %125
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = icmp ne i32 %128, 0
br i1 %129, label %113, label %._crit_edge9, !llvm.loop !9
._crit_edge9: ; preds = %120
br label %130
130: ; preds = %._crit_edge9, %100
br label %165
131: ; preds = %28
%132 = load ptr, ptr %3, align 8
%133 = getelementptr inbounds i8, ptr %132, i64 5
store i8 36, ptr %133, align 1
%134 = load ptr, ptr %3, align 8
%135 = getelementptr inbounds i8, ptr %134, i64 4
store i8 48, ptr %135, align 1
%136 = load ptr, ptr %3, align 8
%137 = getelementptr inbounds i8, ptr %136, i64 3
store i8 46, ptr %137, align 1
%138 = load ptr, ptr %4, align 8
%139 = getelementptr inbounds i8, ptr %138, i64 0
%140 = load i8, ptr %139, align 1
%141 = load ptr, ptr %3, align 8
%142 = getelementptr inbounds i8, ptr %141, i64 2
store i8 %140, ptr %142, align 1
%143 = load ptr, ptr %4, align 8
%144 = getelementptr inbounds i8, ptr %143, i64 1
%145 = load i8, ptr %144, align 1
%146 = load ptr, ptr %3, align 8
%147 = getelementptr inbounds i8, ptr %146, i64 1
store i8 %145, ptr %147, align 1
%148 = load ptr, ptr %3, align 8
%149 = getelementptr inbounds i8, ptr %148, i64 0
store i8 0, ptr %149, align 1
store i32 5, ptr %6, align 4
%150 = load i32, ptr %6, align 4
%151 = icmp sge i32 %150, 0
br i1 %151, label %.lr.ph2, label %164
.lr.ph2: ; preds = %131
br label %152
152: ; preds = %.lr.ph2, %159
%153 = load ptr, ptr %3, align 8
%154 = load i32, ptr %6, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i8, ptr %153, i64 %155
%157 = load i8, ptr %156, align 1
%158 = call i32 @putchar(i8 noundef signext %157)
br label %159
159: ; preds = %152
%160 = load i32, ptr %6, align 4
%161 = add nsw i32 %160, -1
store i32 %161, ptr %6, align 4
%162 = load i32, ptr %6, align 4
%163 = icmp sge i32 %162, 0
br i1 %163, label %152, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %159
br label %164
164: ; preds = %._crit_edge3, %131
br label %165
165: ; preds = %164, %130
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpmsy1gi5p.c'
source_filename = "/tmp/tmpmsy1gi5p.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"raru critical failure: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @failQuit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @_exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmsy1gi5p.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"raru critical failure: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @failQuit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @_exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp017g_5l.c'
source_filename = "/tmp/tmpp017g_5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @foobar(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/tmpp017g_5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @foobar(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/tmp43_6zaar.c'
source_filename = "/tmp/tmp43_6zaar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %02X\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Handle: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dm_LogHandle(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [256 x i8], align 16
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 256)
store i32 0, ptr %5, align 4
%10 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
store ptr %10, ptr %7, align 8
br label %11
11: ; preds = %23, %2
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %28
15: ; preds = %11
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str, i8 noundef signext %21)
br label %23
23: ; preds = %15
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 3
store ptr %27, ptr %7, align 8
br label %11, !llvm.loop !6
28: ; preds = %11
%29 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%30 = call i32 @dm_LogPrintf(i32 noundef 3, ptr noundef @.str.1, ptr noundef %29)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i32 @dm_LogPrintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp43_6zaar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %02X\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Handle: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dm_LogHandle(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [256 x i8], align 16
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 256)
store i32 0, ptr %5, align 4
%10 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
store ptr %10, ptr %7, align 8
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %22
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = call i32 @sprintf(ptr noundef %15, ptr noundef @.str, i8 noundef signext %20)
br label %22
22: ; preds = %14
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load ptr, ptr %7, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 3
store ptr %26, ptr %7, align 8
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %30
30: ; preds = %._crit_edge, %2
%31 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%32 = call i32 @dm_LogPrintf(i32 noundef 3, ptr noundef @.str.1, ptr noundef %31)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i32 @dm_LogPrintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp18sm3eel.c'
source_filename = "/tmp/tmp18sm3eel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @date_get_min() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = call i32 @time(ptr noundef null)
store i32 %3, ptr %1, align 4
%4 = call ptr @localtime(ptr noundef %1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%7 = load i32, ptr %6, align 4
ret i32 %7
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp18sm3eel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @date_get_min() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = call i32 @time(ptr noundef null)
store i32 %3, ptr %1, align 4
%4 = call ptr @localtime(ptr noundef %1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%7 = load i32, ptr %6, align 4
ret i32 %7
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqjhyymib.c'
source_filename = "/tmp/tmpqjhyymib.c"
target datalayout = "e-m:e-p270: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/tmpqjhyymib.c"
target datalayout = "e-m:e-p270: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/tmplezgsra_.c'
source_filename = "/tmp/tmplezgsra_.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @idrnet_sockaddr_ipv4_port(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%7 = load i32, ptr %6, align 4
%8 = call i64 @ntohs(i32 noundef %7)
%9 = trunc i64 %8 to i32
ret i32 %9
}
declare i64 @ntohs(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/tmplezgsra_.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @idrnet_sockaddr_ipv4_port(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%7 = load i32, ptr %6, align 4
%8 = call i64 @ntohs(i32 noundef %7)
%9 = trunc i64 %8 to i32
ret i32 %9
}
declare i64 @ntohs(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_ytk9kx5.c'
source_filename = "/tmp/tmp_ytk9kx5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"clear\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"o\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 10, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 20, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 20, ptr %11, align 4
store i32 1, ptr %12, align 4
store i32 1, ptr %13, align 4
br label %14
14: ; preds = %2, %46
%15 = load i32, ptr %12, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %13, align 4
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, %18
store i32 %20, ptr %7, align 4
%21 = call i32 @system(ptr noundef @.str)
%22 = load i32, ptr %6, align 4
%23 = call i32 @draw_x(i32 noundef %22)
%24 = load i32, ptr %7, align 4
%25 = call i32 @draw_y(i32 noundef %24)
%26 = call i32 @printf(ptr noundef @.str.1)
%27 = call i32 @printf(ptr noundef @.str.2)
%28 = call i32 @sleep(i32 noundef 1)
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %9, align 4
%32 = call i64 @change_velocity(i32 noundef %29, i32 noundef %30, i32 noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %14
%35 = load i32, ptr %12, align 4
%36 = sub nsw i32 0, %35
store i32 %36, ptr %12, align 4
br label %37
37: ; preds = %34, %14
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %11, align 4
%41 = call i64 @change_velocity(i32 noundef %38, i32 noundef %39, i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %37
%44 = load i32, ptr %13, align 4
%45 = sub nsw i32 0, %44
store i32 %45, ptr %13, align 4
br label %46
46: ; preds = %43, %37
br label %14
}
declare i32 @system(ptr noundef) #1
declare i32 @draw_x(i32 noundef) #1
declare i32 @draw_y(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i64 @change_velocity(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/tmp_ytk9kx5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"clear\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"o\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 10, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 20, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 20, ptr %11, align 4
store i32 1, ptr %12, align 4
store i32 1, ptr %13, align 4
br label %14
14: ; preds = %46, %2
%15 = load i32, ptr %12, align 4
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %13, align 4
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, %18
store i32 %20, ptr %7, align 4
%21 = call i32 @system(ptr noundef @.str)
%22 = load i32, ptr %6, align 4
%23 = call i32 @draw_x(i32 noundef %22)
%24 = load i32, ptr %7, align 4
%25 = call i32 @draw_y(i32 noundef %24)
%26 = call i32 @printf(ptr noundef @.str.1)
%27 = call i32 @printf(ptr noundef @.str.2)
%28 = call i32 @sleep(i32 noundef 1)
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %9, align 4
%32 = call i64 @change_velocity(i32 noundef %29, i32 noundef %30, i32 noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %14
%35 = load i32, ptr %12, align 4
%36 = sub nsw i32 0, %35
store i32 %36, ptr %12, align 4
br label %37
37: ; preds = %34, %14
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %11, align 4
%41 = call i64 @change_velocity(i32 noundef %38, i32 noundef %39, i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %37
%44 = load i32, ptr %13, align 4
%45 = sub nsw i32 0, %44
store i32 %45, ptr %13, align 4
br label %46
46: ; preds = %43, %37
br label %14
}
declare i32 @system(ptr noundef) #1
declare i32 @draw_x(i32 noundef) #1
declare i32 @draw_y(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i64 @change_velocity(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/tmp4ovamzeq.c'
source_filename = "/tmp/tmp4ovamzeq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = call i32 @power(i32 noundef 2, i32 noundef 30)
%10 = add nsw i32 %9, 1
%11 = sext i32 %10 to i64
store i64 %11, ptr %8, align 8
store i64 1, ptr %7, align 8
br label %12
12: ; preds = %30, %2
%13 = load i64, ptr %7, align 8
%14 = load i64, ptr %8, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %33
16: ; preds = %12
%17 = load i64, ptr %7, align 8
%18 = load i64, ptr %7, align 8
%19 = mul i64 2, %18
%20 = trunc i64 %19 to i32
%21 = load i64, ptr %7, align 8
%22 = mul i64 3, %21
%23 = trunc i64 %22 to i32
%24 = call i64 @X(i64 noundef %17, i32 noundef %20, i32 noundef %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %16
%27 = load i64, ptr %6, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %6, align 8
br label %29
29: ; preds = %26, %16
br label %30
30: ; preds = %29
%31 = load i64, ptr %7, align 8
%32 = add i64 %31, 1
store i64 %32, ptr %7, align 8
br label %12, !llvm.loop !6
33: ; preds = %12
%34 = load i64, ptr %6, align 8
%35 = call i32 @printf(ptr noundef @.str, i64 noundef %34)
ret i32 0
}
declare i32 @power(i32 noundef, i32 noundef) #1
declare i64 @X(i64 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4ovamzeq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = call i32 @power(i32 noundef 2, i32 noundef 30)
%10 = add nsw i32 %9, 1
%11 = sext i32 %10 to i64
store i64 %11, ptr %8, align 8
store i64 1, ptr %7, align 8
%12 = load i64, ptr %7, align 8
%13 = load i64, ptr %8, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %29
%16 = load i64, ptr %7, align 8
%17 = load i64, ptr %7, align 8
%18 = mul i64 2, %17
%19 = trunc i64 %18 to i32
%20 = load i64, ptr %7, align 8
%21 = mul i64 3, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @X(i64 noundef %16, i32 noundef %19, i32 noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %15
%26 = load i64, ptr %6, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %6, align 8
br label %28
28: ; preds = %25, %15
br label %29
29: ; preds = %28
%30 = load i64, ptr %7, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %7, align 8
%32 = load i64, ptr %7, align 8
%33 = load i64, ptr %8, align 8
%34 = icmp ult i64 %32, %33
br i1 %34, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %2
%36 = load i64, ptr %6, align 8
%37 = call i32 @printf(ptr noundef @.str, i64 noundef %36)
ret i32 0
}
declare i32 @power(i32 noundef, i32 noundef) #1
declare i64 @X(i64 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnjcg5khx.c'
source_filename = "/tmp/tmpnjcg5khx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_XUnmapEvent() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 4)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
%9 = load ptr, ptr %1, align 8
ret ptr %9
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmpnjcg5khx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_XUnmapEvent() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 4)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
%9 = load ptr, ptr %1, align 8
ret ptr %9
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmp8q7sl8w3.c'
source_filename = "/tmp/tmp8q7sl8w3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.in = private unnamed_addr constant [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10], align 16
; 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 [10 x i32], align 16
%7 = alloca [10 x i32], align 16
%8 = alloca [10 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.in, i64 40, i1 false)
%9 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%11 = call i32 @i_scan_plus(i32 noundef 10, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%13 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
%14 = call i32 @e_scan_plus(i32 noundef 10, ptr noundef %12, ptr noundef %13)
%15 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%16 = call i32 @printResult(i32 noundef 10, ptr noundef %15)
%17 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
%18 = call i32 @printResult(i32 noundef 10, ptr noundef %17)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @i_scan_plus(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @e_scan_plus(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @printResult(i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmp8q7sl8w3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.in = private unnamed_addr constant [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10], align 16
; 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 [10 x i32], align 16
%7 = alloca [10 x i32], align 16
%8 = alloca [10 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.in, i64 40, i1 false)
%9 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%11 = call i32 @i_scan_plus(i32 noundef 10, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%13 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
%14 = call i32 @e_scan_plus(i32 noundef 10, ptr noundef %12, ptr noundef %13)
%15 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%16 = call i32 @printResult(i32 noundef 10, ptr noundef %15)
%17 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
%18 = call i32 @printResult(i32 noundef 10, ptr noundef %17)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @i_scan_plus(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @e_scan_plus(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @printResult(i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmphelqwezm.c'
source_filename = "/tmp/tmphelqwezm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sright(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call ptr @sreverse(ptr noundef %5)
%7 = load i32, ptr %4, align 4
%8 = call ptr @sleft(ptr noundef %6, i32 noundef %7)
%9 = call ptr @sreverse(ptr noundef %8)
ret ptr %9
}
declare ptr @sreverse(ptr noundef) #1
declare ptr @sleft(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/tmphelqwezm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sright(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call ptr @sreverse(ptr noundef %5)
%7 = load i32, ptr %4, align 4
%8 = call ptr @sleft(ptr noundef %6, i32 noundef %7)
%9 = call ptr @sreverse(ptr noundef %8)
ret ptr %9
}
declare ptr @sreverse(ptr noundef) #1
declare ptr @sleft(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/tmppnafo2mv.c'
source_filename = "/tmp/tmppnafo2mv.c"
target datalayout = "e-m:e-p270: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/tmppnafo2mv.c"
target datalayout = "e-m:e-p270: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/tmp6b6ms90a.c'
source_filename = "/tmp/tmp6b6ms90a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"getLines() recieved a null message\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Len is null\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getLines(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @puts(ptr noundef @.str)
store ptr null, ptr %3, align 8
br label %156
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = call i32 @puts(ptr noundef @.str.1)
%26 = call i64 @malloc(i32 noundef 4)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
store i32 0, ptr %28, align 4
br label %29
29: ; preds = %24, %21
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%30 = call i64 @malloc(i32 noundef 8)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %10, align 8
br label %32
32: ; preds = %95, %29
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %98
40: ; preds = %32
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 10
br i1 %47, label %48, label %95
48: ; preds = %40
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %6, align 4
%52 = call ptr @substring(ptr noundef %49, i32 noundef %50, i32 noundef %51)
store ptr %52, ptr %11, align 8
%53 = load i32, ptr %9, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %85
56: ; preds = %48
%57 = load i32, ptr %7, align 4
%58 = mul nsw i32 %57, 2
%59 = sext i32 %58 to i64
%60 = mul i64 8, %59
%61 = trunc i64 %60 to i32
%62 = call i64 @malloc(i32 noundef %61)
%63 = inttoptr i64 %62 to ptr
store ptr %63, ptr %12, align 8
store i32 0, ptr %13, align 4
br label %64
64: ; preds = %78, %56
%65 = load i32, ptr %13, align 4
%66 = load i32, ptr %7, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %81
68: ; preds = %64
%69 = load ptr, ptr %10, align 8
%70 = load i32, ptr %13, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds ptr, ptr %69, i64 %71
%73 = load ptr, ptr %72, align 8
%74 = load ptr, ptr %12, align 8
%75 = load i32, ptr %13, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %74, i64 %76
store ptr %73, ptr %77, align 8
br label %78
78: ; preds = %68
%79 = load i32, ptr %13, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %13, align 4
br label %64, !llvm.loop !6
81: ; preds = %64
%82 = load i32, ptr %7, align 4
%83 = mul nsw i32 %82, 2
store i32 %83, ptr %7, align 4
%84 = load ptr, ptr %12, align 8
store ptr %84, ptr %10, align 8
br label %85
85: ; preds = %81, %48
%86 = load ptr, ptr %11, align 8
%87 = load ptr, ptr %10, align 8
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %87, i64 %89
store ptr %86, ptr %90, align 8
%91 = load i32, ptr %9, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %9, align 4
%93 = load i32, ptr %6, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %8, align 4
br label %95
95: ; preds = %85, %40
%96 = load i32, ptr %6, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %6, align 4
br label %32, !llvm.loop !8
98: ; preds = %32
%99 = load ptr, ptr %4, align 8
%100 = load i32, ptr %6, align 4
%101 = sub nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %99, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 10
br i1 %106, label %107, label %152
107: ; preds = %98
%108 = load ptr, ptr %4, align 8
%109 = load i32, ptr %8, align 4
%110 = load i32, ptr %6, align 4
%111 = call ptr @substring(ptr noundef %108, i32 noundef %109, i32 noundef %110)
store ptr %111, ptr %14, align 8
%112 = load i32, ptr %9, align 4
%113 = load i32, ptr %7, align 4
%114 = icmp eq i32 %112, %113
br i1 %114, label %115, label %144
115: ; preds = %107
%116 = load i32, ptr %7, align 4
%117 = mul nsw i32 %116, 2
%118 = sext i32 %117 to i64
%119 = mul i64 8, %118
%120 = trunc i64 %119 to i32
%121 = call i64 @malloc(i32 noundef %120)
%122 = inttoptr i64 %121 to ptr
store ptr %122, ptr %15, align 8
store i32 0, ptr %16, align 4
br label %123
123: ; preds = %137, %115
%124 = load i32, ptr %16, align 4
%125 = load i32, ptr %7, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %140
127: ; preds = %123
%128 = load ptr, ptr %10, align 8
%129 = load i32, ptr %16, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds ptr, ptr %128, i64 %130
%132 = load ptr, ptr %131, align 8
%133 = load ptr, ptr %15, align 8
%134 = load i32, ptr %16, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds ptr, ptr %133, i64 %135
store ptr %132, ptr %136, align 8
br label %137
137: ; preds = %127
%138 = load i32, ptr %16, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %16, align 4
br label %123, !llvm.loop !9
140: ; preds = %123
%141 = load i32, ptr %7, align 4
%142 = mul nsw i32 %141, 2
store i32 %142, ptr %7, align 4
%143 = load ptr, ptr %15, align 8
store ptr %143, ptr %10, align 8
br label %144
144: ; preds = %140, %107
%145 = load ptr, ptr %14, align 8
%146 = load ptr, ptr %10, align 8
%147 = load i32, ptr %9, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds ptr, ptr %146, i64 %148
store ptr %145, ptr %149, align 8
%150 = load i32, ptr %9, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %9, align 4
br label %152
152: ; preds = %144, %98
%153 = load i32, ptr %9, align 4
%154 = load ptr, ptr %5, align 8
store i32 %153, ptr %154, align 4
%155 = load ptr, ptr %10, align 8
store ptr %155, ptr %3, align 8
br label %156
156: ; preds = %152, %19
%157 = load ptr, ptr %3, align 8
ret ptr %157
}
declare i32 @puts(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare ptr @substring(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6b6ms90a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"getLines() recieved a null message\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Len is null\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getLines(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @puts(ptr noundef @.str)
store ptr null, ptr %3, align 8
br label %166
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = call i32 @puts(ptr noundef @.str.1)
%26 = call i64 @malloc(i32 noundef 4)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
store i32 0, ptr %28, align 4
br label %29
29: ; preds = %24, %21
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%30 = call i64 @malloc(i32 noundef 8)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %10, align 8
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %.lr.ph2, label %106
.lr.ph2: ; preds = %29
br label %39
39: ; preds = %.lr.ph2, %96
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 10
br i1 %46, label %47, label %96
47: ; preds = %39
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %6, align 4
%51 = call ptr @substring(ptr noundef %48, i32 noundef %49, i32 noundef %50)
store ptr %51, ptr %11, align 8
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp eq i32 %52, %53
br i1 %54, label %55, label %86
55: ; preds = %47
%56 = load i32, ptr %7, align 4
%57 = mul nsw i32 %56, 2
%58 = sext i32 %57 to i64
%59 = mul i64 8, %58
%60 = trunc i64 %59 to i32
%61 = call i64 @malloc(i32 noundef %60)
%62 = inttoptr i64 %61 to ptr
store ptr %62, ptr %12, align 8
store i32 0, ptr %13, align 4
%63 = load i32, ptr %13, align 4
%64 = load i32, ptr %7, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %.lr.ph, label %82
.lr.ph: ; preds = %55
br label %66
66: ; preds = %.lr.ph, %76
%67 = load ptr, ptr %10, align 8
%68 = load i32, ptr %13, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = load ptr, ptr %12, align 8
%73 = load i32, ptr %13, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds ptr, ptr %72, i64 %74
store ptr %71, ptr %75, align 8
br label %76
76: ; preds = %66
%77 = load i32, ptr %13, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %13, align 4
%79 = load i32, ptr %13, align 4
%80 = load i32, ptr %7, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %66, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %76
br label %82
82: ; preds = %._crit_edge, %55
%83 = load i32, ptr %7, align 4
%84 = mul nsw i32 %83, 2
store i32 %84, ptr %7, align 4
%85 = load ptr, ptr %12, align 8
store ptr %85, ptr %10, align 8
br label %86
86: ; preds = %82, %47
%87 = load ptr, ptr %11, align 8
%88 = load ptr, ptr %10, align 8
%89 = load i32, ptr %9, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds ptr, ptr %88, i64 %90
store ptr %87, ptr %91, align 8
%92 = load i32, ptr %9, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %9, align 4
%94 = load i32, ptr %6, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %8, align 4
br label %96
96: ; preds = %86, %39
%97 = load i32, ptr %6, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %6, align 4
%99 = load ptr, ptr %4, align 8
%100 = load i32, ptr %6, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %99, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp ne i32 %104, 0
br i1 %105, label %39, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %96
br label %106
106: ; preds = %._crit_edge3, %29
%107 = load ptr, ptr %4, align 8
%108 = load i32, ptr %6, align 4
%109 = sub nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %107, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp ne i32 %113, 10
br i1 %114, label %115, label %162
115: ; preds = %106
%116 = load ptr, ptr %4, align 8
%117 = load i32, ptr %8, align 4
%118 = load i32, ptr %6, align 4
%119 = call ptr @substring(ptr noundef %116, i32 noundef %117, i32 noundef %118)
store ptr %119, ptr %14, align 8
%120 = load i32, ptr %9, align 4
%121 = load i32, ptr %7, align 4
%122 = icmp eq i32 %120, %121
br i1 %122, label %123, label %154
123: ; preds = %115
%124 = load i32, ptr %7, align 4
%125 = mul nsw i32 %124, 2
%126 = sext i32 %125 to i64
%127 = mul i64 8, %126
%128 = trunc i64 %127 to i32
%129 = call i64 @malloc(i32 noundef %128)
%130 = inttoptr i64 %129 to ptr
store ptr %130, ptr %15, align 8
store i32 0, ptr %16, align 4
%131 = load i32, ptr %16, align 4
%132 = load i32, ptr %7, align 4
%133 = icmp slt i32 %131, %132
br i1 %133, label %.lr.ph5, label %150
.lr.ph5: ; preds = %123
br label %134
134: ; preds = %.lr.ph5, %144
%135 = load ptr, ptr %10, align 8
%136 = load i32, ptr %16, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds ptr, ptr %135, i64 %137
%139 = load ptr, ptr %138, align 8
%140 = load ptr, ptr %15, align 8
%141 = load i32, ptr %16, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds ptr, ptr %140, i64 %142
store ptr %139, ptr %143, align 8
br label %144
144: ; preds = %134
%145 = load i32, ptr %16, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %16, align 4
%147 = load i32, ptr %16, align 4
%148 = load i32, ptr %7, align 4
%149 = icmp slt i32 %147, %148
br i1 %149, label %134, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %144
br label %150
150: ; preds = %._crit_edge6, %123
%151 = load i32, ptr %7, align 4
%152 = mul nsw i32 %151, 2
store i32 %152, ptr %7, align 4
%153 = load ptr, ptr %15, align 8
store ptr %153, ptr %10, align 8
br label %154
154: ; preds = %150, %115
%155 = load ptr, ptr %14, align 8
%156 = load ptr, ptr %10, align 8
%157 = load i32, ptr %9, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds ptr, ptr %156, i64 %158
store ptr %155, ptr %159, align 8
%160 = load i32, ptr %9, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %9, align 4
br label %162
162: ; preds = %154, %106
%163 = load i32, ptr %9, align 4
%164 = load ptr, ptr %5, align 8
store i32 %163, ptr %164, align 4
%165 = load ptr, ptr %10, align 8
store ptr %165, ptr %3, align 8
br label %166
166: ; preds = %162, %19
%167 = load ptr, ptr %3, align 8
ret ptr %167
}
declare i32 @puts(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare ptr @substring(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpui_j90ha.c'
source_filename = "/tmp/tmpui_j90ha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ct_callback_entering_then(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 @ct_update_current_snapshot(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @ct_update_current_snapshot(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/tmpui_j90ha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ct_callback_entering_then(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 @ct_update_current_snapshot(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @ct_update_current_snapshot(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/tmpd0505j_f.c'
source_filename = "/tmp/tmpd0505j_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd0505j_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf3re2kqk.c'
source_filename = "/tmp/tmpf3re2kqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [1000 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%12 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @gets(ptr noundef %12)
br label %14
14: ; preds = %79, %0
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %4, align 4
%17 = icmp ne i32 %15, 0
br i1 %17, label %18, label %80
18: ; preds = %14
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%19 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%20 = call i32 @gets(ptr noundef %19)
%21 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%22 = load i8, ptr %21, align 16
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 104
br i1 %24, label %30, label %25
25: ; preds = %18
%26 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%27 = load i8, ptr %26, align 16
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 72
br i1 %29, label %30, label %31
30: ; preds = %25, %18
store i32 1, ptr %7, align 4
br label %31
31: ; preds = %30, %25
%32 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 1
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 105
br i1 %35, label %41, label %36
36: ; preds = %31
%37 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 1
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 73
br i1 %40, label %41, label %42
41: ; preds = %36, %31
store i32 1, ptr %8, align 4
br label %42
42: ; preds = %41, %36
%43 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 2
%44 = load i8, ptr %43, align 2
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 32
br i1 %46, label %52, label %47
47: ; preds = %42
%48 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 2
%49 = load i8, ptr %48, align 2
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 32
br i1 %51, label %52, label %53
52: ; preds = %47, %42
store i32 1, ptr %9, align 4
br label %53
53: ; preds = %52, %47
%54 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 3
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 100
br i1 %57, label %63, label %58
58: ; preds = %53
%59 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 3
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 68
br i1 %62, label %63, label %64
63: ; preds = %58, %53
store i32 1, ptr %10, align 4
br label %64
64: ; preds = %63, %58
%65 = load i32, ptr %7, align 4
%66 = icmp eq i32 %65, 1
br i1 %66, label %67, label %79
67: ; preds = %64
%68 = load i32, ptr %8, align 4
%69 = icmp eq i32 %68, 1
br i1 %69, label %70, label %79
70: ; preds = %67
%71 = load i32, ptr %9, align 4
%72 = icmp eq i32 %71, 1
br i1 %72, label %73, label %79
73: ; preds = %70
%74 = load i32, ptr %10, align 4
%75 = icmp eq i32 %74, 1
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%78 = call i32 @puts(ptr noundef %77)
br label %79
79: ; preds = %76, %73, %70, %67, %64
br label %14, !llvm.loop !6
80: ; preds = %14
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @gets(ptr noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf3re2kqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [1000 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%12 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @gets(ptr noundef %12)
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %4, align 4
%16 = icmp ne i32 %14, 0
br i1 %16, label %.lr.ph, label %82
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %78
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%18 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%19 = call i32 @gets(ptr noundef %18)
%20 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%21 = load i8, ptr %20, align 16
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 104
br i1 %23, label %29, label %24
24: ; preds = %17
%25 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%26 = load i8, ptr %25, align 16
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 72
br i1 %28, label %29, label %30
29: ; preds = %24, %17
store i32 1, ptr %7, align 4
br label %30
30: ; preds = %29, %24
%31 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 105
br i1 %34, label %40, label %35
35: ; preds = %30
%36 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 1
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 73
br i1 %39, label %40, label %41
40: ; preds = %35, %30
store i32 1, ptr %8, align 4
br label %41
41: ; preds = %40, %35
%42 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 2
%43 = load i8, ptr %42, align 2
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 32
br i1 %45, label %51, label %46
46: ; preds = %41
%47 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 2
%48 = load i8, ptr %47, align 2
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 32
br i1 %50, label %51, label %52
51: ; preds = %46, %41
store i32 1, ptr %9, align 4
br label %52
52: ; preds = %51, %46
%53 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 3
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %55, 100
br i1 %56, label %62, label %57
57: ; preds = %52
%58 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 3
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 68
br i1 %61, label %62, label %63
62: ; preds = %57, %52
store i32 1, ptr %10, align 4
br label %63
63: ; preds = %62, %57
%64 = load i32, ptr %7, align 4
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %78
66: ; preds = %63
%67 = load i32, ptr %8, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %78
69: ; preds = %66
%70 = load i32, ptr %9, align 4
%71 = icmp eq i32 %70, 1
br i1 %71, label %72, label %78
72: ; preds = %69
%73 = load i32, ptr %10, align 4
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
%77 = call i32 @puts(ptr noundef %76)
br label %78
78: ; preds = %75, %72, %69, %66, %63
%79 = load i32, ptr %4, align 4
%80 = add nsw i32 %79, -1
store i32 %80, ptr %4, align 4
%81 = icmp ne i32 %79, 0
br i1 %81, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %78
br label %82
82: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @gets(ptr noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjy2dxue2.c'
source_filename = "/tmp/tmpjy2dxue2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@utoa.buf = internal global [13 x i8] zeroinitializer, align 1
@.str = private unnamed_addr constant [3 x i8] c"%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @utoa(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 @sprintf(ptr noundef @utoa.buf, ptr noundef @.str, i32 noundef %3)
ret ptr @utoa.buf
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjy2dxue2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@utoa.buf = internal global [13 x i8] zeroinitializer, align 1
@.str = private unnamed_addr constant [3 x i8] c"%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @utoa(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 @sprintf(ptr noundef @utoa.buf, ptr noundef @.str, i32 noundef %3)
ret ptr @utoa.buf
}
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"}
|
; ModuleID = '/tmp/tmphqdp5jev.c'
source_filename = "/tmp/tmphqdp5jev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PyThread_get_key_value(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @pthread_getspecific(i32 noundef %3)
ret ptr %4
}
declare ptr @pthread_getspecific(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/tmphqdp5jev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PyThread_get_key_value(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @pthread_getspecific(i32 noundef %3)
ret ptr %4
}
declare ptr @pthread_getspecific(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/tmpl5nmi4h5.c'
source_filename = "/tmp/tmpl5nmi4h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ReadPhysMem(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i64 @open_file(ptr noundef @.str, i32 noundef %9, ptr noundef %7)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = call i64 @read_buf(i32 noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 1, ptr %8, align 4
br label %20
20: ; preds = %19, %12
%21 = load i32, ptr %7, align 4
%22 = call i32 @close(i32 noundef %21)
br label %23
23: ; preds = %20, %3
%24 = load i32, ptr %8, align 4
ret i32 %24
}
declare i64 @open_file(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @read_buf(i32 noundef, i32 noundef, i32 noundef, 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl5nmi4h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ReadPhysMem(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i64 @open_file(ptr noundef @.str, i32 noundef %9, ptr noundef %7)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = call i64 @read_buf(i32 noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 1, ptr %8, align 4
br label %20
20: ; preds = %19, %12
%21 = load i32, ptr %7, align 4
%22 = call i32 @close(i32 noundef %21)
br label %23
23: ; preds = %20, %3
%24 = load i32, ptr %8, align 4
ret i32 %24
}
declare i64 @open_file(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @read_buf(i32 noundef, i32 noundef, i32 noundef, 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpks76qgmm.c'
source_filename = "/tmp/tmpks76qgmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"THIS IS A TEST TEXT\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"TEST\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\0AError: lsp array not allocated \00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"lsp[%d]:=%d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"\0ASUCCESS: Found pattern at %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr @.str, ptr %1, align 8
store ptr @.str.1, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load ptr, ptr %1, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load ptr, ptr %2, align 8
%14 = call ptr @_computeLPS(ptr noundef %13)
store ptr %14, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 @exit(i32 noundef 0) #3
unreachable
20: ; preds = %0
store i32 0, ptr %8, align 4
br label %21
21: ; preds = %34, %20
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %2, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %37
26: ; preds = %21
%27 = load i32, ptr %8, align 4
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %32)
br label %34
34: ; preds = %26
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %21, !llvm.loop !6
37: ; preds = %21
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %39
39: ; preds = %110, %37
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %111
43: ; preds = %39
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = load ptr, ptr %1, align 8
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %49, %55
br i1 %56, label %57, label %62
57: ; preds = %43
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
%60 = load i32, ptr %4, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %4, align 4
br label %62
62: ; preds = %57, %43
%63 = load i32, ptr %5, align 4
%64 = load i32, ptr %7, align 4
%65 = icmp eq i32 %63, %64
br i1 %65, label %66, label %77
66: ; preds = %62
%67 = load i32, ptr %4, align 4
%68 = load i32, ptr %5, align 4
%69 = sub nsw i32 %67, %68
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %69)
%71 = load ptr, ptr %3, align 8
%72 = load i32, ptr %5, align 4
%73 = sub nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %71, i64 %74
%76 = load i32, ptr %75, align 4
store i32 %76, ptr %5, align 4
br label %110
77: ; preds = %62
%78 = load i32, ptr %4, align 4
%79 = load i32, ptr %6, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %109
81: ; preds = %77
%82 = load ptr, ptr %2, align 8
%83 = load i32, ptr %5, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = load ptr, ptr %1, align 8
%89 = load i32, ptr %4, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %88, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp ne i32 %87, %93
br i1 %94, label %95, label %109
95: ; preds = %81
%96 = load i32, ptr %5, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %105
98: ; preds = %95
%99 = load ptr, ptr %3, align 8
%100 = load i32, ptr %5, align 4
%101 = sub nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %99, i64 %102
%104 = load i32, ptr %103, align 4
store i32 %104, ptr %5, align 4
br label %108
105: ; preds = %95
%106 = load i32, ptr %4, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %4, align 4
br label %108
108: ; preds = %105, %98
br label %109
109: ; preds = %108, %81, %77
br label %110
110: ; preds = %109, %66
br label %39, !llvm.loop !8
111: ; preds = %39
%112 = load ptr, ptr %3, align 8
%113 = call i32 @free(ptr noundef %112)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare ptr @_computeLPS(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmpks76qgmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"THIS IS A TEST TEXT\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"TEST\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\0AError: lsp array not allocated \00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"lsp[%d]:=%d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"\0ASUCCESS: Found pattern at %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr @.str, ptr %1, align 8
store ptr @.str.1, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load ptr, ptr %1, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load ptr, ptr %2, align 8
%14 = call ptr @_computeLPS(ptr noundef %13)
store ptr %14, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 @exit(i32 noundef 0) #3
unreachable
20: ; preds = %0
store i32 0, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = load ptr, ptr %2, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp slt i32 %21, %23
br i1 %24, label %.lr.ph, label %40
.lr.ph: ; preds = %20
br label %25
25: ; preds = %.lr.ph, %33
%26 = load i32, ptr %8, align 4
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26, i32 noundef %31)
br label %33
33: ; preds = %25
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = load ptr, ptr %2, align 8
%38 = call i32 @strlen(ptr noundef %37)
%39 = icmp slt i32 %36, %38
br i1 %39, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %40
40: ; preds = %._crit_edge, %20
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph2, label %116
.lr.ph2: ; preds = %40
br label %45
45: ; preds = %.lr.ph2, %112
%46 = load ptr, ptr %2, align 8
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = load ptr, ptr %1, align 8
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %51, %57
br i1 %58, label %59, label %64
59: ; preds = %45
%60 = load i32, ptr %5, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %5, align 4
%62 = load i32, ptr %4, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %4, align 4
br label %64
64: ; preds = %59, %45
%65 = load i32, ptr %5, align 4
%66 = load i32, ptr %7, align 4
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %79
68: ; preds = %64
%69 = load i32, ptr %4, align 4
%70 = load i32, ptr %5, align 4
%71 = sub nsw i32 %69, %70
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %71)
%73 = load ptr, ptr %3, align 8
%74 = load i32, ptr %5, align 4
%75 = sub nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %73, i64 %76
%78 = load i32, ptr %77, align 4
store i32 %78, ptr %5, align 4
br label %112
79: ; preds = %64
%80 = load i32, ptr %4, align 4
%81 = load i32, ptr %6, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %111
83: ; preds = %79
%84 = load ptr, ptr %2, align 8
%85 = load i32, ptr %5, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = load ptr, ptr %1, align 8
%91 = load i32, ptr %4, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = icmp ne i32 %89, %95
br i1 %96, label %97, label %111
97: ; preds = %83
%98 = load i32, ptr %5, align 4
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %107
100: ; preds = %97
%101 = load ptr, ptr %3, align 8
%102 = load i32, ptr %5, align 4
%103 = sub nsw i32 %102, 1
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %101, i64 %104
%106 = load i32, ptr %105, align 4
store i32 %106, ptr %5, align 4
br label %110
107: ; preds = %97
%108 = load i32, ptr %4, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %4, align 4
br label %110
110: ; preds = %107, %100
br label %111
111: ; preds = %110, %83, %79
br label %112
112: ; preds = %111, %68
%113 = load i32, ptr %4, align 4
%114 = load i32, ptr %6, align 4
%115 = icmp slt i32 %113, %114
br i1 %115, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %112
br label %116
116: ; preds = %._crit_edge3, %40
%117 = load ptr, ptr %3, align 8
%118 = call i32 @free(ptr noundef %117)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare ptr @_computeLPS(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmpkdx18k9m.c'
source_filename = "/tmp/tmpkdx18k9m.c"
target datalayout = "e-m:e-p270: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/tmpkdx18k9m.c"
target datalayout = "e-m:e-p270: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/tmpkyhvedmx.c'
source_filename = "/tmp/tmpkyhvedmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store float 0x3EB0C6F7A0000000, ptr %6, align 4
%9 = load float, ptr %1, align 4
%10 = call i32 @getid(float noundef %9)
%11 = load float, ptr %2, align 4
%12 = call i32 @getid(float noundef %11)
store i32 10, ptr %8, align 4
store float 0.000000e+00, ptr %3, align 4
store float 0.000000e+00, ptr %4, align 4
%13 = load float, ptr %1, align 4
%14 = call i32 @printid(float noundef %13)
%15 = load float, ptr %2, align 4
%16 = call i32 @printid(float noundef %15)
br label %17
17: ; preds = %63, %0
%18 = load float, ptr %2, align 4
%19 = load float, ptr %1, align 4
%20 = fsub float %18, %19
%21 = load i32, ptr %8, align 4
%22 = sitofp i32 %21 to float
%23 = fdiv float %20, %22
store float %23, ptr %5, align 4
store i32 0, ptr %7, align 4
br label %24
24: ; preds = %48, %17
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %51
28: ; preds = %24
%29 = load float, ptr %1, align 4
%30 = load i32, ptr %7, align 4
%31 = sitofp i32 %30 to float
%32 = load float, ptr %5, align 4
%33 = call float @llvm.fmuladd.f32(float %31, float %32, float %29)
%34 = call i32 @f(float noundef %33)
%35 = load float, ptr %1, align 4
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
%38 = sitofp i32 %37 to float
%39 = load float, ptr %5, align 4
%40 = call float @llvm.fmuladd.f32(float %38, float %39, float %35)
%41 = call i32 @f(float noundef %40)
%42 = add nsw i32 %34, %41
%43 = sdiv i32 %42, 2
%44 = sitofp i32 %43 to float
%45 = load float, ptr %5, align 4
%46 = load float, ptr %3, align 4
%47 = call float @llvm.fmuladd.f32(float %44, float %45, float %46)
store float %47, ptr %3, align 4
br label %48
48: ; preds = %28
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %24, !llvm.loop !6
51: ; preds = %24
%52 = load float, ptr %3, align 4
%53 = load float, ptr %4, align 4
%54 = fsub float %52, %53
%55 = call float @abs(float noundef %54)
%56 = load float, ptr %5, align 4
%57 = fcmp ogt float %55, %56
br i1 %57, label %58, label %62
58: ; preds = %51
%59 = load float, ptr %3, align 4
store float %59, ptr %4, align 4
store float 0.000000e+00, ptr %3, align 4
%60 = load i32, ptr %8, align 4
%61 = mul nsw i32 %60, 2
store i32 %61, ptr %8, align 4
br label %62
62: ; preds = %58, %51
br label %63
63: ; preds = %62
%64 = load float, ptr %3, align 4
%65 = load float, ptr %4, align 4
%66 = fsub float %64, %65
%67 = call float @abs(float noundef %66)
%68 = load float, ptr %5, align 4
%69 = fcmp ogt float %67, %68
br i1 %69, label %17, label %70, !llvm.loop !8
70: ; preds = %63
%71 = load float, ptr %3, align 4
%72 = call i32 @printid(float noundef %71)
ret void
}
declare i32 @getid(float noundef) #1
declare i32 @printid(float noundef) #1
declare i32 @f(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @abs(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkyhvedmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store float 0x3EB0C6F7A0000000, ptr %6, align 4
%9 = load float, ptr %1, align 4
%10 = call i32 @getid(float noundef %9)
%11 = load float, ptr %2, align 4
%12 = call i32 @getid(float noundef %11)
store i32 10, ptr %8, align 4
store float 0.000000e+00, ptr %3, align 4
store float 0.000000e+00, ptr %4, align 4
%13 = load float, ptr %1, align 4
%14 = call i32 @printid(float noundef %13)
%15 = load float, ptr %2, align 4
%16 = call i32 @printid(float noundef %15)
br label %17
17: ; preds = %65, %0
%18 = load float, ptr %2, align 4
%19 = load float, ptr %1, align 4
%20 = fsub float %18, %19
%21 = load i32, ptr %8, align 4
%22 = sitofp i32 %21 to float
%23 = fdiv float %20, %22
store float %23, ptr %5, align 4
store i32 0, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %53
.lr.ph: ; preds = %17
br label %27
27: ; preds = %.lr.ph, %47
%28 = load float, ptr %1, align 4
%29 = load i32, ptr %7, align 4
%30 = sitofp i32 %29 to float
%31 = load float, ptr %5, align 4
%32 = call float @llvm.fmuladd.f32(float %30, float %31, float %28)
%33 = call i32 @f(float noundef %32)
%34 = load float, ptr %1, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
%37 = sitofp i32 %36 to float
%38 = load float, ptr %5, align 4
%39 = call float @llvm.fmuladd.f32(float %37, float %38, float %34)
%40 = call i32 @f(float noundef %39)
%41 = add nsw i32 %33, %40
%42 = sdiv i32 %41, 2
%43 = sitofp i32 %42 to float
%44 = load float, ptr %5, align 4
%45 = load float, ptr %3, align 4
%46 = call float @llvm.fmuladd.f32(float %43, float %44, float %45)
store float %46, ptr %3, align 4
br label %47
47: ; preds = %27
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %8, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %17
%54 = load float, ptr %3, align 4
%55 = load float, ptr %4, align 4
%56 = fsub float %54, %55
%57 = call float @abs(float noundef %56)
%58 = load float, ptr %5, align 4
%59 = fcmp ogt float %57, %58
br i1 %59, label %60, label %64
60: ; preds = %53
%61 = load float, ptr %3, align 4
store float %61, ptr %4, align 4
store float 0.000000e+00, ptr %3, align 4
%62 = load i32, ptr %8, align 4
%63 = mul nsw i32 %62, 2
store i32 %63, ptr %8, align 4
br label %64
64: ; preds = %60, %53
br label %65
65: ; preds = %64
%66 = load float, ptr %3, align 4
%67 = load float, ptr %4, align 4
%68 = fsub float %66, %67
%69 = call float @abs(float noundef %68)
%70 = load float, ptr %5, align 4
%71 = fcmp ogt float %69, %70
br i1 %71, label %17, label %72, !llvm.loop !8
72: ; preds = %65
%73 = load float, ptr %3, align 4
%74 = call i32 @printid(float noundef %73)
ret void
}
declare i32 @getid(float noundef) #1
declare i32 @printid(float noundef) #1
declare i32 @f(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @abs(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9b88bf67.c'
source_filename = "/tmp/tmp9b88bf67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__bin2hex.hex = internal constant [16 x i8] c"0123456789abcdef", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__bin2hex(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %38, %3
%9 = load i32, ptr %7, align 4
%10 = load i64, ptr %6, align 8
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %41
13: ; preds = %8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = ashr i32 %19, 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [16 x i8], ptr @__bin2hex.hex, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
store i8 %23, ptr %24, align 1
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = and i32 %31, 15
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [16 x i8], ptr @__bin2hex.hex, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %4, align 8
store i8 %35, ptr %36, align 1
br label %38
38: ; preds = %13
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
br label %8, !llvm.loop !6
41: ; preds = %8
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %4, align 8
store i8 0, ptr %42, align 1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9b88bf67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__bin2hex.hex = internal constant [16 x i8] c"0123456789abcdef", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__bin2hex(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i64, ptr %6, align 8
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %8, %10
br i1 %11, label %.lr.ph, label %44
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %37
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = ashr i32 %18, 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [16 x i8], ptr @__bin2hex.hex, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
store i8 %22, ptr %23, align 1
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = and i32 %30, 15
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [16 x i8], ptr @__bin2hex.hex, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %4, align 8
store i8 %34, ptr %35, align 1
br label %37
37: ; preds = %12
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = load i64, ptr %6, align 8
%42 = trunc i64 %41 to i32
%43 = icmp slt i32 %40, %42
br i1 %43, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %44
44: ; preds = %._crit_edge, %3
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %4, align 8
store i8 0, ptr %45, align 1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvvzg8vit.c'
source_filename = "/tmp/tmpvvzg8vit.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_Screen_mwidth(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvvzg8vit.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_Screen_mwidth(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8bzmzc8l.c'
source_filename = "/tmp/tmp8bzmzc8l.c"
target datalayout = "e-m:e-p270: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/tmp8bzmzc8l.c"
target datalayout = "e-m:e-p270: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/tmplsftzemm.c'
source_filename = "/tmp/tmplsftzemm.c"
target datalayout = "e-m:e-p270: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/tmplsftzemm.c"
target datalayout = "e-m:e-p270: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/tmpyqza38ox.c'
source_filename = "/tmp/tmpyqza38ox.c"
target datalayout = "e-m:e-p270: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/tmpyqza38ox.c"
target datalayout = "e-m:e-p270: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/tmp0109am5_.c'
source_filename = "/tmp/tmp0109am5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"squares grains total \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fraction of \0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c" added grains \00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"world total\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"%4d %13.2e %12.2e %12.2e\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"That is all.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 2.000000e+16, ptr %2, align 8
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 1.000000e+00, ptr %3, align 8
store double 1.000000e+00, ptr %4, align 8
br label %10
10: ; preds = %13, %0
%11 = load i32, ptr %5, align 4
%12 = icmp sle i32 %11, 64
br i1 %12, label %13, label %27
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = load double, ptr %3, align 8
%16 = load double, ptr %4, align 8
%17 = load double, ptr %4, align 8
%18 = fdiv double %17, 2.000000e+16
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %14, double noundef %15, double noundef %16, double noundef %18)
%20 = load double, ptr %3, align 8
%21 = fmul double 2.000000e+00, %20
store double %21, ptr %3, align 8
%22 = load double, ptr %4, align 8
%23 = load double, ptr %3, align 8
%24 = fadd double %22, %23
store double %24, ptr %4, align 8
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %10, !llvm.loop !6
27: ; preds = %10
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0109am5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"squares grains total \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fraction of \0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c" added grains \00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"world total\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"%4d %13.2e %12.2e %12.2e\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"That is all.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 2.000000e+16, ptr %2, align 8
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 1.000000e+00, ptr %3, align 8
store double 1.000000e+00, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = icmp sle i32 %10, 64
br i1 %11, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %12
%13 = load i32, ptr %5, align 4
%14 = load double, ptr %3, align 8
%15 = load double, ptr %4, align 8
%16 = load double, ptr %4, align 8
%17 = fdiv double %16, 2.000000e+16
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %13, double noundef %14, double noundef %15, double noundef %17)
%19 = load double, ptr %3, align 8
%20 = fmul double 2.000000e+00, %19
store double %20, ptr %3, align 8
%21 = load double, ptr %4, align 8
%22 = load double, ptr %3, align 8
%23 = fadd double %21, %22
store double %23, ptr %4, align 8
%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 sle i32 %26, 64
br i1 %27, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %28
28: ; preds = %._crit_edge, %0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1u2y43fs.c'
source_filename = "/tmp/tmp1u2y43fs.c"
target datalayout = "e-m:e-p270: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/tmp1u2y43fs.c"
target datalayout = "e-m:e-p270: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/tmpdgkw7_sa.c'
source_filename = "/tmp/tmpdgkw7_sa.c"
target datalayout = "e-m:e-p270: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/tmpdgkw7_sa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.