llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmppcxoh7lo.c'
source_filename = "/tmp/tmppcxoh7lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sv_unescape_c.low2hex = internal global <{ [103 x i8], [153 x i8] }> <{ [103 x i8] c"\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\01\02\03\04\05\06\07\08\09\00\00\00\00\00\00\00\0A\0B\0C\0D\0E\0F\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0A\0B\0C\0D\0E\0F", [153 x i8] zeroinitializer }>, align 16
@.str = private unnamed_addr constant [38 x i8] c"sv_unescape_c: empty escape sequence\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"sv_unescape_c: \\x with no following hex digits\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"sv_unescape_c: hex escape sequence out of range\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"abtnvfr?\22'\\\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"sv_unescape_c: unknown escape sequence \\%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @sv_unescape_c(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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %12
12: ; preds = %291, %51, %3
%13 = load i64, ptr %7, align 8
%14 = load i64, ptr %6, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %292
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 92
br i1 %22, label %23, label %281
23: ; preds = %16
%24 = load i64, ptr %7, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %7, align 8
%26 = load i64, ptr %7, align 8
%27 = load i64, ptr %6, align 8
%28 = icmp uge i64 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str)
br label %280
31: ; preds = %23
%32 = load ptr, ptr %5, align 8
%33 = load i64, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %32, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 120
br i1 %37, label %38, label %99
38: ; preds = %31
store i8 0, ptr %9, align 1
store i8 1, ptr %10, align 1
%39 = load i64, ptr %7, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %7, align 8
%41 = load i64, ptr %7, align 8
%42 = load i64, ptr %6, align 8
%43 = icmp uge i64 %41, %42
br i1 %43, label %51, label %44
44: ; preds = %38
%45 = load ptr, ptr %5, align 8
%46 = load i64, ptr %7, align 8
%47 = getelementptr inbounds i8, ptr %45, i64 %46
%48 = load i8, ptr %47, align 1
%49 = call i64 @isxdigit(i8 noundef zeroext %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %44, %38
%52 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str.1)
br label %12, !llvm.loop !6
53: ; preds = %44
br label %54
54: ; preds = %91, %53
%55 = load i8, ptr %9, align 1
%56 = zext i8 %55 to i32
%57 = icmp sgt i32 %56, 15
br i1 %57, label %58, label %64
58: ; preds = %54
%59 = load i8, ptr %10, align 1
%60 = zext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str.2)
store i8 0, ptr %10, align 1
br label %64
64: ; preds = %62, %58, %54
%65 = load i8, ptr %9, align 1
%66 = zext i8 %65 to i32
%67 = shl i32 %66, 4
%68 = load ptr, ptr %5, align 8
%69 = load i64, ptr %7, align 8
%70 = getelementptr inbounds i8, ptr %68, i64 %69
%71 = load i8, ptr %70, align 1
%72 = zext i8 %71 to i64
%73 = getelementptr inbounds [256 x i8], ptr @sv_unescape_c.low2hex, i64 0, i64 %72
%74 = load i8, ptr %73, align 1
%75 = zext i8 %74 to i32
%76 = or i32 %67, %75
%77 = trunc i32 %76 to i8
store i8 %77, ptr %9, align 1
%78 = load i64, ptr %7, align 8
%79 = add i64 %78, 1
store i64 %79, ptr %7, align 8
br label %80
80: ; preds = %64
%81 = load i64, ptr %7, align 8
%82 = load i64, ptr %6, align 8
%83 = icmp ult i64 %81, %82
br i1 %83, label %84, label %91
84: ; preds = %80
%85 = load ptr, ptr %5, align 8
%86 = load i64, ptr %7, align 8
%87 = getelementptr inbounds i8, ptr %85, i64 %86
%88 = load i8, ptr %87, align 1
%89 = call i64 @isxdigit(i8 noundef zeroext %88)
%90 = icmp ne i64 %89, 0
br label %91
91: ; preds = %84, %80
%92 = phi i1 [ false, %80 ], [ %90, %84 ]
br i1 %92, label %54, label %93, !llvm.loop !8
93: ; preds = %91
%94 = load i8, ptr %9, align 1
%95 = load ptr, ptr %4, align 8
%96 = load i64, ptr %8, align 8
%97 = add i64 %96, 1
store i64 %97, ptr %8, align 8
%98 = getelementptr inbounds i8, ptr %95, i64 %96
store i8 %94, ptr %98, align 1
br label %279
99: ; preds = %31
%100 = load ptr, ptr %5, align 8
%101 = load i64, ptr %7, align 8
%102 = getelementptr inbounds i8, ptr %100, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 48
br i1 %105, label %127, label %106
106: ; preds = %99
%107 = load ptr, ptr %5, align 8
%108 = load i64, ptr %7, align 8
%109 = getelementptr inbounds i8, ptr %107, i64 %108
%110 = load i8, ptr %109, align 1
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 49
br i1 %112, label %127, label %113
113: ; preds = %106
%114 = load ptr, ptr %5, align 8
%115 = load i64, ptr %7, align 8
%116 = getelementptr inbounds i8, ptr %114, i64 %115
%117 = load i8, ptr %116, align 1
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 50
br i1 %119, label %127, label %120
120: ; preds = %113
%121 = load ptr, ptr %5, align 8
%122 = load i64, ptr %7, align 8
%123 = getelementptr inbounds i8, ptr %121, i64 %122
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %125, 51
br i1 %126, label %127, label %206
127: ; preds = %120, %113, %106, %99
%128 = load ptr, ptr %5, align 8
%129 = load i64, ptr %7, align 8
%130 = getelementptr inbounds i8, ptr %128, i64 %129
%131 = load i8, ptr %130, align 1
%132 = sext i8 %131 to i32
%133 = sub nsw i32 %132, 48
%134 = trunc i32 %133 to i8
store i8 %134, ptr %11, align 1
%135 = load i64, ptr %7, align 8
%136 = add i64 %135, 1
store i64 %136, ptr %7, align 8
%137 = load i64, ptr %7, align 8
%138 = load i64, ptr %6, align 8
%139 = icmp ult i64 %137, %138
br i1 %139, label %140, label %168
140: ; preds = %127
%141 = load ptr, ptr %5, align 8
%142 = load i64, ptr %7, align 8
%143 = getelementptr inbounds i8, ptr %141, i64 %142
%144 = load i8, ptr %143, align 1
%145 = sext i8 %144 to i32
%146 = icmp sge i32 %145, 48
br i1 %146, label %147, label %168
147: ; preds = %140
%148 = load ptr, ptr %5, align 8
%149 = load i64, ptr %7, align 8
%150 = getelementptr inbounds i8, ptr %148, i64 %149
%151 = load i8, ptr %150, align 1
%152 = sext i8 %151 to i32
%153 = icmp sle i32 %152, 55
br i1 %153, label %154, label %168
154: ; preds = %147
%155 = load i8, ptr %11, align 1
%156 = zext i8 %155 to i32
%157 = shl i32 %156, 3
%158 = load ptr, ptr %5, align 8
%159 = load i64, ptr %7, align 8
%160 = getelementptr inbounds i8, ptr %158, i64 %159
%161 = load i8, ptr %160, align 1
%162 = sext i8 %161 to i32
%163 = sub nsw i32 %162, 48
%164 = or i32 %157, %163
%165 = trunc i32 %164 to i8
store i8 %165, ptr %11, align 1
%166 = load i64, ptr %7, align 8
%167 = add i64 %166, 1
store i64 %167, ptr %7, align 8
br label %168
168: ; preds = %154, %147, %140, %127
%169 = load i64, ptr %7, align 8
%170 = load i64, ptr %6, align 8
%171 = icmp ult i64 %169, %170
br i1 %171, label %172, label %200
172: ; preds = %168
%173 = load ptr, ptr %5, align 8
%174 = load i64, ptr %7, align 8
%175 = getelementptr inbounds i8, ptr %173, i64 %174
%176 = load i8, ptr %175, align 1
%177 = sext i8 %176 to i32
%178 = icmp sge i32 %177, 48
br i1 %178, label %179, label %200
179: ; preds = %172
%180 = load ptr, ptr %5, align 8
%181 = load i64, ptr %7, align 8
%182 = getelementptr inbounds i8, ptr %180, i64 %181
%183 = load i8, ptr %182, align 1
%184 = sext i8 %183 to i32
%185 = icmp sle i32 %184, 55
br i1 %185, label %186, label %200
186: ; preds = %179
%187 = load i8, ptr %11, align 1
%188 = zext i8 %187 to i32
%189 = shl i32 %188, 3
%190 = load ptr, ptr %5, align 8
%191 = load i64, ptr %7, align 8
%192 = getelementptr inbounds i8, ptr %190, i64 %191
%193 = load i8, ptr %192, align 1
%194 = sext i8 %193 to i32
%195 = sub nsw i32 %194, 48
%196 = or i32 %189, %195
%197 = trunc i32 %196 to i8
store i8 %197, ptr %11, align 1
%198 = load i64, ptr %7, align 8
%199 = add i64 %198, 1
store i64 %199, ptr %7, align 8
br label %200
200: ; preds = %186, %179, %172, %168
%201 = load i8, ptr %11, align 1
%202 = load ptr, ptr %4, align 8
%203 = load i64, ptr %8, align 8
%204 = add i64 %203, 1
store i64 %204, ptr %8, align 8
%205 = getelementptr inbounds i8, ptr %202, i64 %203
store i8 %201, ptr %205, align 1
br label %278
206: ; preds = %120
%207 = load ptr, ptr %5, align 8
%208 = load i64, ptr %7, align 8
%209 = getelementptr inbounds i8, ptr %207, i64 %208
%210 = load i8, ptr %209, align 1
%211 = call ptr @strchr(ptr noundef @.str.3, i8 noundef signext %210)
%212 = icmp eq ptr %211, null
br i1 %212, label %213, label %220
213: ; preds = %206
%214 = load ptr, ptr %5, align 8
%215 = load i64, ptr %7, align 8
%216 = getelementptr inbounds i8, ptr %214, i64 %215
%217 = load i8, ptr %216, align 1
%218 = sext i8 %217 to i32
%219 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str.4, i32 noundef %218)
br label %220
220: ; preds = %213, %206
%221 = load ptr, ptr %5, align 8
%222 = load i64, ptr %7, align 8
%223 = getelementptr inbounds i8, ptr %221, i64 %222
%224 = load i8, ptr %223, align 1
%225 = sext i8 %224 to i32
switch i32 %225, label %266 [
i32 97, label %226
i32 98, label %231
i32 116, label %236
i32 110, label %241
i32 118, label %246
i32 102, label %251
i32 114, label %256
i32 63, label %261
]
226: ; preds = %220
%227 = load ptr, ptr %4, align 8
%228 = load i64, ptr %8, align 8
%229 = add i64 %228, 1
store i64 %229, ptr %8, align 8
%230 = getelementptr inbounds i8, ptr %227, i64 %228
store i8 7, ptr %230, align 1
br label %275
231: ; preds = %220
%232 = load ptr, ptr %4, align 8
%233 = load i64, ptr %8, align 8
%234 = add i64 %233, 1
store i64 %234, ptr %8, align 8
%235 = getelementptr inbounds i8, ptr %232, i64 %233
store i8 8, ptr %235, align 1
br label %275
236: ; preds = %220
%237 = load ptr, ptr %4, align 8
%238 = load i64, ptr %8, align 8
%239 = add i64 %238, 1
store i64 %239, ptr %8, align 8
%240 = getelementptr inbounds i8, ptr %237, i64 %238
store i8 9, ptr %240, align 1
br label %275
241: ; preds = %220
%242 = load ptr, ptr %4, align 8
%243 = load i64, ptr %8, align 8
%244 = add i64 %243, 1
store i64 %244, ptr %8, align 8
%245 = getelementptr inbounds i8, ptr %242, i64 %243
store i8 10, ptr %245, align 1
br label %275
246: ; preds = %220
%247 = load ptr, ptr %4, align 8
%248 = load i64, ptr %8, align 8
%249 = add i64 %248, 1
store i64 %249, ptr %8, align 8
%250 = getelementptr inbounds i8, ptr %247, i64 %248
store i8 11, ptr %250, align 1
br label %275
251: ; preds = %220
%252 = load ptr, ptr %4, align 8
%253 = load i64, ptr %8, align 8
%254 = add i64 %253, 1
store i64 %254, ptr %8, align 8
%255 = getelementptr inbounds i8, ptr %252, i64 %253
store i8 12, ptr %255, align 1
br label %275
256: ; preds = %220
%257 = load ptr, ptr %4, align 8
%258 = load i64, ptr %8, align 8
%259 = add i64 %258, 1
store i64 %259, ptr %8, align 8
%260 = getelementptr inbounds i8, ptr %257, i64 %258
store i8 13, ptr %260, align 1
br label %275
261: ; preds = %220
%262 = load ptr, ptr %4, align 8
%263 = load i64, ptr %8, align 8
%264 = add i64 %263, 1
store i64 %264, ptr %8, align 8
%265 = getelementptr inbounds i8, ptr %262, i64 %263
store i8 63, ptr %265, align 1
br label %275
266: ; preds = %220
%267 = load ptr, ptr %5, align 8
%268 = load i64, ptr %7, align 8
%269 = getelementptr inbounds i8, ptr %267, i64 %268
%270 = load i8, ptr %269, align 1
%271 = load ptr, ptr %4, align 8
%272 = load i64, ptr %8, align 8
%273 = add i64 %272, 1
store i64 %273, ptr %8, align 8
%274 = getelementptr inbounds i8, ptr %271, i64 %272
store i8 %270, ptr %274, align 1
br label %275
275: ; preds = %266, %261, %256, %251, %246, %241, %236, %231, %226
%276 = load i64, ptr %7, align 8
%277 = add i64 %276, 1
store i64 %277, ptr %7, align 8
br label %278
278: ; preds = %275, %200
br label %279
279: ; preds = %278, %93
br label %280
280: ; preds = %279, %29
br label %291
281: ; preds = %16
%282 = load ptr, ptr %5, align 8
%283 = load i64, ptr %7, align 8
%284 = add i64 %283, 1
store i64 %284, ptr %7, align 8
%285 = getelementptr inbounds i8, ptr %282, i64 %283
%286 = load i8, ptr %285, align 1
%287 = load ptr, ptr %4, align 8
%288 = load i64, ptr %8, align 8
%289 = add i64 %288, 1
store i64 %289, ptr %8, align 8
%290 = getelementptr inbounds i8, ptr %287, i64 %288
store i8 %286, ptr %290, align 1
br label %291
291: ; preds = %281, %280
br label %12, !llvm.loop !6
292: ; preds = %12
%293 = load ptr, ptr %4, align 8
%294 = load i64, ptr %8, align 8
%295 = getelementptr inbounds i8, ptr %293, i64 %294
store i8 0, ptr %295, align 1
%296 = load i64, ptr %8, align 8
ret i64 %296
}
declare i32 @ShowWarning(ptr noundef, ...) #1
declare i64 @isxdigit(i8 noundef zeroext) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppcxoh7lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sv_unescape_c.low2hex = internal global <{ [103 x i8], [153 x i8] }> <{ [103 x i8] c"\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\01\02\03\04\05\06\07\08\09\00\00\00\00\00\00\00\0A\0B\0C\0D\0E\0F\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0A\0B\0C\0D\0E\0F", [153 x i8] zeroinitializer }>, align 16
@.str = private unnamed_addr constant [38 x i8] c"sv_unescape_c: empty escape sequence\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"sv_unescape_c: \\x with no following hex digits\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"sv_unescape_c: hex escape sequence out of range\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"abtnvfr?\22'\\\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"sv_unescape_c: unknown escape sequence \\%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @sv_unescape_c(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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
%12 = load i64, ptr %7, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %294
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %.backedge
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 92
br i1 %21, label %22, label %283
22: ; preds = %15
%23 = load i64, ptr %7, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %7, align 8
%25 = load i64, ptr %7, align 8
%26 = load i64, ptr %6, align 8
%27 = icmp uge i64 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str)
br label %282
30: ; preds = %22
%31 = load ptr, ptr %5, align 8
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 120
br i1 %36, label %37, label %101
37: ; preds = %30
store i8 0, ptr %9, align 1
store i8 1, ptr %10, align 1
%38 = load i64, ptr %7, align 8
%39 = add i64 %38, 1
store i64 %39, ptr %7, align 8
%40 = load i64, ptr %7, align 8
%41 = load i64, ptr %6, align 8
%42 = icmp uge i64 %40, %41
br i1 %42, label %50, label %43
43: ; preds = %37
%44 = load ptr, ptr %5, align 8
%45 = load i64, ptr %7, align 8
%46 = getelementptr inbounds i8, ptr %44, i64 %45
%47 = load i8, ptr %46, align 1
%48 = call i64 @isxdigit(i8 noundef zeroext %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %55, label %50
50: ; preds = %43, %37
%51 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str.1)
br label %.backedge
.backedge: ; preds = %50, %293
%52 = load i64, ptr %7, align 8
%53 = load i64, ptr %6, align 8
%54 = icmp ult i64 %52, %53
br i1 %54, label %15, label %._crit_edge, !llvm.loop !6
55: ; preds = %43
br label %56
56: ; preds = %93, %55
%57 = load i8, ptr %9, align 1
%58 = zext i8 %57 to i32
%59 = icmp sgt i32 %58, 15
br i1 %59, label %60, label %66
60: ; preds = %56
%61 = load i8, ptr %10, align 1
%62 = zext i8 %61 to i32
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str.2)
store i8 0, ptr %10, align 1
br label %66
66: ; preds = %64, %60, %56
%67 = load i8, ptr %9, align 1
%68 = zext i8 %67 to i32
%69 = shl i32 %68, 4
%70 = load ptr, ptr %5, align 8
%71 = load i64, ptr %7, align 8
%72 = getelementptr inbounds i8, ptr %70, i64 %71
%73 = load i8, ptr %72, align 1
%74 = zext i8 %73 to i64
%75 = getelementptr inbounds [256 x i8], ptr @sv_unescape_c.low2hex, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = zext i8 %76 to i32
%78 = or i32 %69, %77
%79 = trunc i32 %78 to i8
store i8 %79, ptr %9, align 1
%80 = load i64, ptr %7, align 8
%81 = add i64 %80, 1
store i64 %81, ptr %7, align 8
br label %82
82: ; preds = %66
%83 = load i64, ptr %7, align 8
%84 = load i64, ptr %6, align 8
%85 = icmp ult i64 %83, %84
br i1 %85, label %86, label %93
86: ; preds = %82
%87 = load ptr, ptr %5, align 8
%88 = load i64, ptr %7, align 8
%89 = getelementptr inbounds i8, ptr %87, i64 %88
%90 = load i8, ptr %89, align 1
%91 = call i64 @isxdigit(i8 noundef zeroext %90)
%92 = icmp ne i64 %91, 0
br label %93
93: ; preds = %86, %82
%94 = phi i1 [ false, %82 ], [ %92, %86 ]
br i1 %94, label %56, label %95, !llvm.loop !8
95: ; preds = %93
%96 = load i8, ptr %9, align 1
%97 = load ptr, ptr %4, align 8
%98 = load i64, ptr %8, align 8
%99 = add i64 %98, 1
store i64 %99, ptr %8, align 8
%100 = getelementptr inbounds i8, ptr %97, i64 %98
store i8 %96, ptr %100, align 1
br label %281
101: ; preds = %30
%102 = load ptr, ptr %5, align 8
%103 = load i64, ptr %7, align 8
%104 = getelementptr inbounds i8, ptr %102, i64 %103
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 48
br i1 %107, label %129, label %108
108: ; preds = %101
%109 = load ptr, ptr %5, align 8
%110 = load i64, ptr %7, align 8
%111 = getelementptr inbounds i8, ptr %109, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 49
br i1 %114, label %129, label %115
115: ; preds = %108
%116 = load ptr, ptr %5, align 8
%117 = load i64, ptr %7, align 8
%118 = getelementptr inbounds i8, ptr %116, i64 %117
%119 = load i8, ptr %118, align 1
%120 = sext i8 %119 to i32
%121 = icmp eq i32 %120, 50
br i1 %121, label %129, label %122
122: ; preds = %115
%123 = load ptr, ptr %5, align 8
%124 = load i64, ptr %7, align 8
%125 = getelementptr inbounds i8, ptr %123, i64 %124
%126 = load i8, ptr %125, align 1
%127 = sext i8 %126 to i32
%128 = icmp eq i32 %127, 51
br i1 %128, label %129, label %208
129: ; preds = %122, %115, %108, %101
%130 = load ptr, ptr %5, align 8
%131 = load i64, ptr %7, align 8
%132 = getelementptr inbounds i8, ptr %130, i64 %131
%133 = load i8, ptr %132, align 1
%134 = sext i8 %133 to i32
%135 = sub nsw i32 %134, 48
%136 = trunc i32 %135 to i8
store i8 %136, ptr %11, align 1
%137 = load i64, ptr %7, align 8
%138 = add i64 %137, 1
store i64 %138, ptr %7, align 8
%139 = load i64, ptr %7, align 8
%140 = load i64, ptr %6, align 8
%141 = icmp ult i64 %139, %140
br i1 %141, label %142, label %170
142: ; preds = %129
%143 = load ptr, ptr %5, align 8
%144 = load i64, ptr %7, align 8
%145 = getelementptr inbounds i8, ptr %143, i64 %144
%146 = load i8, ptr %145, align 1
%147 = sext i8 %146 to i32
%148 = icmp sge i32 %147, 48
br i1 %148, label %149, label %170
149: ; preds = %142
%150 = load ptr, ptr %5, align 8
%151 = load i64, ptr %7, align 8
%152 = getelementptr inbounds i8, ptr %150, i64 %151
%153 = load i8, ptr %152, align 1
%154 = sext i8 %153 to i32
%155 = icmp sle i32 %154, 55
br i1 %155, label %156, label %170
156: ; preds = %149
%157 = load i8, ptr %11, align 1
%158 = zext i8 %157 to i32
%159 = shl i32 %158, 3
%160 = load ptr, ptr %5, align 8
%161 = load i64, ptr %7, align 8
%162 = getelementptr inbounds i8, ptr %160, i64 %161
%163 = load i8, ptr %162, align 1
%164 = sext i8 %163 to i32
%165 = sub nsw i32 %164, 48
%166 = or i32 %159, %165
%167 = trunc i32 %166 to i8
store i8 %167, ptr %11, align 1
%168 = load i64, ptr %7, align 8
%169 = add i64 %168, 1
store i64 %169, ptr %7, align 8
br label %170
170: ; preds = %156, %149, %142, %129
%171 = load i64, ptr %7, align 8
%172 = load i64, ptr %6, align 8
%173 = icmp ult i64 %171, %172
br i1 %173, label %174, label %202
174: ; preds = %170
%175 = load ptr, ptr %5, align 8
%176 = load i64, ptr %7, align 8
%177 = getelementptr inbounds i8, ptr %175, i64 %176
%178 = load i8, ptr %177, align 1
%179 = sext i8 %178 to i32
%180 = icmp sge i32 %179, 48
br i1 %180, label %181, label %202
181: ; preds = %174
%182 = load ptr, ptr %5, align 8
%183 = load i64, ptr %7, align 8
%184 = getelementptr inbounds i8, ptr %182, i64 %183
%185 = load i8, ptr %184, align 1
%186 = sext i8 %185 to i32
%187 = icmp sle i32 %186, 55
br i1 %187, label %188, label %202
188: ; preds = %181
%189 = load i8, ptr %11, align 1
%190 = zext i8 %189 to i32
%191 = shl i32 %190, 3
%192 = load ptr, ptr %5, align 8
%193 = load i64, ptr %7, align 8
%194 = getelementptr inbounds i8, ptr %192, i64 %193
%195 = load i8, ptr %194, align 1
%196 = sext i8 %195 to i32
%197 = sub nsw i32 %196, 48
%198 = or i32 %191, %197
%199 = trunc i32 %198 to i8
store i8 %199, ptr %11, align 1
%200 = load i64, ptr %7, align 8
%201 = add i64 %200, 1
store i64 %201, ptr %7, align 8
br label %202
202: ; preds = %188, %181, %174, %170
%203 = load i8, ptr %11, align 1
%204 = load ptr, ptr %4, align 8
%205 = load i64, ptr %8, align 8
%206 = add i64 %205, 1
store i64 %206, ptr %8, align 8
%207 = getelementptr inbounds i8, ptr %204, i64 %205
store i8 %203, ptr %207, align 1
br label %280
208: ; preds = %122
%209 = load ptr, ptr %5, align 8
%210 = load i64, ptr %7, align 8
%211 = getelementptr inbounds i8, ptr %209, i64 %210
%212 = load i8, ptr %211, align 1
%213 = call ptr @strchr(ptr noundef @.str.3, i8 noundef signext %212)
%214 = icmp eq ptr %213, null
br i1 %214, label %215, label %222
215: ; preds = %208
%216 = load ptr, ptr %5, align 8
%217 = load i64, ptr %7, align 8
%218 = getelementptr inbounds i8, ptr %216, i64 %217
%219 = load i8, ptr %218, align 1
%220 = sext i8 %219 to i32
%221 = call i32 (ptr, ...) @ShowWarning(ptr noundef @.str.4, i32 noundef %220)
br label %222
222: ; preds = %215, %208
%223 = load ptr, ptr %5, align 8
%224 = load i64, ptr %7, align 8
%225 = getelementptr inbounds i8, ptr %223, i64 %224
%226 = load i8, ptr %225, align 1
%227 = sext i8 %226 to i32
switch i32 %227, label %268 [
i32 97, label %228
i32 98, label %233
i32 116, label %238
i32 110, label %243
i32 118, label %248
i32 102, label %253
i32 114, label %258
i32 63, label %263
]
228: ; preds = %222
%229 = load ptr, ptr %4, align 8
%230 = load i64, ptr %8, align 8
%231 = add i64 %230, 1
store i64 %231, ptr %8, align 8
%232 = getelementptr inbounds i8, ptr %229, i64 %230
store i8 7, ptr %232, align 1
br label %277
233: ; preds = %222
%234 = load ptr, ptr %4, align 8
%235 = load i64, ptr %8, align 8
%236 = add i64 %235, 1
store i64 %236, ptr %8, align 8
%237 = getelementptr inbounds i8, ptr %234, i64 %235
store i8 8, ptr %237, align 1
br label %277
238: ; preds = %222
%239 = load ptr, ptr %4, align 8
%240 = load i64, ptr %8, align 8
%241 = add i64 %240, 1
store i64 %241, ptr %8, align 8
%242 = getelementptr inbounds i8, ptr %239, i64 %240
store i8 9, ptr %242, align 1
br label %277
243: ; preds = %222
%244 = load ptr, ptr %4, align 8
%245 = load i64, ptr %8, align 8
%246 = add i64 %245, 1
store i64 %246, ptr %8, align 8
%247 = getelementptr inbounds i8, ptr %244, i64 %245
store i8 10, ptr %247, align 1
br label %277
248: ; preds = %222
%249 = load ptr, ptr %4, align 8
%250 = load i64, ptr %8, align 8
%251 = add i64 %250, 1
store i64 %251, ptr %8, align 8
%252 = getelementptr inbounds i8, ptr %249, i64 %250
store i8 11, ptr %252, align 1
br label %277
253: ; preds = %222
%254 = load ptr, ptr %4, align 8
%255 = load i64, ptr %8, align 8
%256 = add i64 %255, 1
store i64 %256, ptr %8, align 8
%257 = getelementptr inbounds i8, ptr %254, i64 %255
store i8 12, ptr %257, align 1
br label %277
258: ; preds = %222
%259 = load ptr, ptr %4, align 8
%260 = load i64, ptr %8, align 8
%261 = add i64 %260, 1
store i64 %261, ptr %8, align 8
%262 = getelementptr inbounds i8, ptr %259, i64 %260
store i8 13, ptr %262, align 1
br label %277
263: ; preds = %222
%264 = load ptr, ptr %4, align 8
%265 = load i64, ptr %8, align 8
%266 = add i64 %265, 1
store i64 %266, ptr %8, align 8
%267 = getelementptr inbounds i8, ptr %264, i64 %265
store i8 63, ptr %267, align 1
br label %277
268: ; preds = %222
%269 = load ptr, ptr %5, align 8
%270 = load i64, ptr %7, align 8
%271 = getelementptr inbounds i8, ptr %269, i64 %270
%272 = load i8, ptr %271, align 1
%273 = load ptr, ptr %4, align 8
%274 = load i64, ptr %8, align 8
%275 = add i64 %274, 1
store i64 %275, ptr %8, align 8
%276 = getelementptr inbounds i8, ptr %273, i64 %274
store i8 %272, ptr %276, align 1
br label %277
277: ; preds = %268, %263, %258, %253, %248, %243, %238, %233, %228
%278 = load i64, ptr %7, align 8
%279 = add i64 %278, 1
store i64 %279, ptr %7, align 8
br label %280
280: ; preds = %277, %202
br label %281
281: ; preds = %280, %95
br label %282
282: ; preds = %281, %28
br label %293
283: ; preds = %15
%284 = load ptr, ptr %5, align 8
%285 = load i64, ptr %7, align 8
%286 = add i64 %285, 1
store i64 %286, ptr %7, align 8
%287 = getelementptr inbounds i8, ptr %284, i64 %285
%288 = load i8, ptr %287, align 1
%289 = load ptr, ptr %4, align 8
%290 = load i64, ptr %8, align 8
%291 = add i64 %290, 1
store i64 %291, ptr %8, align 8
%292 = getelementptr inbounds i8, ptr %289, i64 %290
store i8 %288, ptr %292, align 1
br label %293
293: ; preds = %283, %282
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %294
294: ; preds = %._crit_edge, %3
%295 = load ptr, ptr %4, align 8
%296 = load i64, ptr %8, align 8
%297 = getelementptr inbounds i8, ptr %295, i64 %296
store i8 0, ptr %297, align 1
%298 = load i64, ptr %8, align 8
ret i64 %298
}
declare i32 @ShowWarning(ptr noundef, ...) #1
declare i64 @isxdigit(i8 noundef zeroext) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3g7qk6_0.c'
source_filename = "/tmp/tmp3g7qk6_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter N:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Please enter valid N:\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%9 = load i32, ptr %5, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
br label %14
14: ; preds = %11, %0
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
br label %15
15: ; preds = %19, %14
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %29
19: ; preds = %15
%20 = load i32, ptr %2, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %22, %23
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %2, align 4
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %4, align 4
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %15, !llvm.loop !6
29: ; preds = %15
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3g7qk6_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter N:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Please enter valid N:\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%9 = load i32, ptr %5, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
br label %14
14: ; preds = %11, %0
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %31
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %18
%19 = load i32, ptr %2, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %19)
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %21, %22
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %2, align 4
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %4, align 4
store i32 %25, ptr %2, align 4
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %31
31: ; preds = %._crit_edge, %14
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbw_9tgdh.c'
source_filename = "/tmp/tmpbw_9tgdh.c"
target datalayout = "e-m:e-p270: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.obfuscate.nl = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@__const.obfuscate.tb = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@__const.obfuscate.cr = private unnamed_addr constant [2 x i8] c"\0D\00", align 1
@.str = private unnamed_addr constant [3 x i8] c"\\n\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\\t\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\\r\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"String too long\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @obfuscate(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca [2 x i8], align 1
%11 = alloca [2 x i8], align 1
%12 = alloca [2 x i8], align 1
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.obfuscate.nl, i64 2, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.obfuscate.tb, i64 2, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 @__const.obfuscate.cr, i64 2, i1 false)
%16 = call i32 @time(i32 noundef 0)
%17 = call i32 @srandom(i32 noundef %16)
%18 = call i32 (...) @random()
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = and i32 %19, 255
%21 = trunc i32 %20 to i8
store i8 %21, ptr %7, align 1
%22 = load i32, ptr %6, align 4
%23 = and i32 %22, 65280
%24 = lshr i32 %23, 8
%25 = trunc i32 %24 to i8
store i8 %25, ptr %8, align 1
%26 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
%27 = load ptr, ptr %4, align 8
%28 = call ptr @str_replace(ptr noundef @.str, ptr noundef %26, ptr noundef %27)
store ptr %28, ptr %9, align 8
%29 = getelementptr inbounds [2 x i8], ptr %11, i64 0, i64 0
%30 = load ptr, ptr %9, align 8
%31 = call ptr @str_replace(ptr noundef @.str.1, ptr noundef %29, ptr noundef %30)
store ptr %31, ptr %9, align 8
%32 = getelementptr inbounds [2 x i8], ptr %12, i64 0, i64 0
%33 = load ptr, ptr %9, align 8
%34 = call ptr @str_replace(ptr noundef @.str.2, ptr noundef %32, ptr noundef %33)
store ptr %34, ptr %9, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @strlen(ptr noundef %35)
store i32 %36, ptr %15, align 4
%37 = load i32, ptr %15, align 4
%38 = icmp sgt i32 %37, 255
br i1 %38, label %39, label %41
39: ; preds = %2
%40 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %106
41: ; preds = %2
%42 = load i8, ptr %7, align 1
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 0
store i8 %42, ptr %44, align 1
%45 = load i8, ptr %8, align 1
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 1
store i8 %45, ptr %47, align 1
%48 = load i32, ptr %15, align 4
%49 = trunc i32 %48 to i8
%50 = zext i8 %49 to i32
%51 = load i8, ptr %7, align 1
%52 = zext i8 %51 to i32
%53 = xor i32 %50, %52
%54 = load i8, ptr %8, align 1
%55 = zext i8 %54 to i32
%56 = xor i32 %53, %55
%57 = trunc i32 %56 to i8
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 2
store i8 %57, ptr %59, align 1
store i32 0, ptr %13, align 4
store i32 3, ptr %14, align 4
br label %60
60: ; preds = %99, %41
%61 = load i32, ptr %13, align 4
%62 = load i32, ptr %15, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %104
64: ; preds = %60
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %13, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = load i8, ptr %7, align 1
%72 = zext i8 %71 to i32
%73 = xor i32 %70, %72
%74 = trunc i32 %73 to i8
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %14, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
store i8 %74, ptr %78, align 1
%79 = load i8, ptr %8, align 1
%80 = zext i8 %79 to i32
%81 = load ptr, ptr %5, align 8
%82 = load i32, ptr %14, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
%85 = load i8, ptr %84, align 1
%86 = zext i8 %85 to i32
%87 = add nsw i32 %86, %80
%88 = trunc i32 %87 to i8
store i8 %88, ptr %84, align 1
%89 = load i8, ptr %8, align 1
%90 = zext i8 %89 to i32
%91 = load ptr, ptr %5, align 8
%92 = load i32, ptr %14, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
%95 = load i8, ptr %94, align 1
%96 = zext i8 %95 to i32
%97 = xor i32 %96, %90
%98 = trunc i32 %97 to i8
store i8 %98, ptr %94, align 1
br label %99
99: ; preds = %64
%100 = load i32, ptr %13, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %13, align 4
%102 = load i32, ptr %14, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %14, align 4
br label %60, !llvm.loop !6
104: ; preds = %60
%105 = load i32, ptr %15, align 4
store i32 %105, ptr %3, align 4
br label %106
106: ; preds = %104, %39
%107 = load i32, ptr %3, align 4
ret i32 %107
}
; 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 @srandom(i32 noundef) #2
declare i32 @time(i32 noundef) #2
declare i32 @random(...) #2
declare ptr @str_replace(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbw_9tgdh.c"
target datalayout = "e-m:e-p270: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.obfuscate.nl = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@__const.obfuscate.tb = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@__const.obfuscate.cr = private unnamed_addr constant [2 x i8] c"\0D\00", align 1
@.str = private unnamed_addr constant [3 x i8] c"\\n\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\\t\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\\r\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"String too long\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @obfuscate(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca [2 x i8], align 1
%11 = alloca [2 x i8], align 1
%12 = alloca [2 x i8], align 1
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.obfuscate.nl, i64 2, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.obfuscate.tb, i64 2, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 @__const.obfuscate.cr, i64 2, i1 false)
%16 = call i32 @time(i32 noundef 0)
%17 = call i32 @srandom(i32 noundef %16)
%18 = call i32 (...) @random()
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = and i32 %19, 255
%21 = trunc i32 %20 to i8
store i8 %21, ptr %7, align 1
%22 = load i32, ptr %6, align 4
%23 = and i32 %22, 65280
%24 = lshr i32 %23, 8
%25 = trunc i32 %24 to i8
store i8 %25, ptr %8, align 1
%26 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
%27 = load ptr, ptr %4, align 8
%28 = call ptr @str_replace(ptr noundef @.str, ptr noundef %26, ptr noundef %27)
store ptr %28, ptr %9, align 8
%29 = getelementptr inbounds [2 x i8], ptr %11, i64 0, i64 0
%30 = load ptr, ptr %9, align 8
%31 = call ptr @str_replace(ptr noundef @.str.1, ptr noundef %29, ptr noundef %30)
store ptr %31, ptr %9, align 8
%32 = getelementptr inbounds [2 x i8], ptr %12, i64 0, i64 0
%33 = load ptr, ptr %9, align 8
%34 = call ptr @str_replace(ptr noundef @.str.2, ptr noundef %32, ptr noundef %33)
store ptr %34, ptr %9, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @strlen(ptr noundef %35)
store i32 %36, ptr %15, align 4
%37 = load i32, ptr %15, align 4
%38 = icmp sgt i32 %37, 255
br i1 %38, label %39, label %41
39: ; preds = %2
%40 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %108
41: ; preds = %2
%42 = load i8, ptr %7, align 1
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 0
store i8 %42, ptr %44, align 1
%45 = load i8, ptr %8, align 1
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 1
store i8 %45, ptr %47, align 1
%48 = load i32, ptr %15, align 4
%49 = trunc i32 %48 to i8
%50 = zext i8 %49 to i32
%51 = load i8, ptr %7, align 1
%52 = zext i8 %51 to i32
%53 = xor i32 %50, %52
%54 = load i8, ptr %8, align 1
%55 = zext i8 %54 to i32
%56 = xor i32 %53, %55
%57 = trunc i32 %56 to i8
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 2
store i8 %57, ptr %59, align 1
store i32 0, ptr %13, align 4
store i32 3, ptr %14, align 4
%60 = load i32, ptr %13, align 4
%61 = load i32, ptr %15, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %.lr.ph, label %106
.lr.ph: ; preds = %41
br label %63
63: ; preds = %.lr.ph, %98
%64 = load ptr, ptr %9, align 8
%65 = load i32, ptr %13, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = load i8, ptr %67, align 1
%69 = zext i8 %68 to i32
%70 = load i8, ptr %7, align 1
%71 = zext i8 %70 to i32
%72 = xor i32 %69, %71
%73 = trunc i32 %72 to i8
%74 = load ptr, ptr %5, align 8
%75 = load i32, ptr %14, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
store i8 %73, ptr %77, align 1
%78 = load i8, ptr %8, align 1
%79 = zext i8 %78 to i32
%80 = load ptr, ptr %5, align 8
%81 = load i32, ptr %14, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i8, ptr %83, align 1
%85 = zext i8 %84 to i32
%86 = add nsw i32 %85, %79
%87 = trunc i32 %86 to i8
store i8 %87, ptr %83, align 1
%88 = load i8, ptr %8, align 1
%89 = zext i8 %88 to i32
%90 = load ptr, ptr %5, align 8
%91 = load i32, ptr %14, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
%94 = load i8, ptr %93, align 1
%95 = zext i8 %94 to i32
%96 = xor i32 %95, %89
%97 = trunc i32 %96 to i8
store i8 %97, ptr %93, align 1
br label %98
98: ; preds = %63
%99 = load i32, ptr %13, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %13, align 4
%101 = load i32, ptr %14, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %14, align 4
%103 = load i32, ptr %13, align 4
%104 = load i32, ptr %15, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %63, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %106
106: ; preds = %._crit_edge, %41
%107 = load i32, ptr %15, align 4
store i32 %107, ptr %3, align 4
br label %108
108: ; preds = %106, %39
%109 = load i32, ptr %3, align 4
ret i32 %109
}
; 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 @srandom(i32 noundef) #2
declare i32 @time(i32 noundef) #2
declare i32 @random(...) #2
declare ptr @str_replace(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprgk9oe9t.c'
source_filename = "/tmp/tmprgk9oe9t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroyIPC(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
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/tmprgk9oe9t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroyIPC(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
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/tmp8m96atnq.c'
source_filename = "/tmp/tmp8m96atnq.c"
target datalayout = "e-m:e-p270: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/tmp8m96atnq.c"
target datalayout = "e-m:e-p270: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/tmpoqsiektx.c'
source_filename = "/tmp/tmpoqsiektx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"Numerator coefficient of Pade approximant %d :\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c" %d : %.14e %.14e\0A\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c"Denominator coefficient of Pade approximant %d :\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_quaddobl_pade_coefficients(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store i32 %0, ptr %2, align 4
%11 = call i32 @padcon_get_homotopy_continuation_parameter(i32 noundef 2, ptr noundef %8)
store i32 %11, ptr %3, align 4
%12 = load double, ptr %8, align 8
%13 = fptosi double %12 to i32
store i32 %13, ptr %6, align 4
%14 = call i32 @padcon_get_homotopy_continuation_parameter(i32 noundef 3, ptr noundef %8)
store i32 %14, ptr %3, align 4
%15 = load double, ptr %8, align 8
%16 = fptosi double %15 to i32
store i32 %16, ptr %7, align 4
store i32 1, ptr %4, align 4
br label %17
17: ; preds = %40, %1
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %43
21: ; preds = %17
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %22)
store i32 0, ptr %5, align 4
br label %24
24: ; preds = %36, %21
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %28, label %39
28: ; preds = %24
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call i32 @padcon_get_quaddobl_numerator_coefficient(i32 noundef %29, i32 noundef %30, i32 noundef 0, ptr noundef %9, ptr noundef %10)
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %5, align 4
%33 = load double, ptr %9, align 8
%34 = load double, ptr %10, align 8
%35 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %32, double noundef %33, double noundef %34)
br label %36
36: ; preds = %28
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
br label %24, !llvm.loop !6
39: ; preds = %24
br label %40
40: ; preds = %39
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %17, !llvm.loop !8
43: ; preds = %17
store i32 1, ptr %4, align 4
br label %44
44: ; preds = %67, %43
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp sle i32 %45, %46
br i1 %47, label %48, label %70
48: ; preds = %44
%49 = load i32, ptr %4, align 4
%50 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %49)
store i32 0, ptr %5, align 4
br label %51
51: ; preds = %63, %48
%52 = load i32, ptr %5, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp sle i32 %52, %53
br i1 %54, label %55, label %66
55: ; preds = %51
%56 = load i32, ptr %4, align 4
%57 = load i32, ptr %5, align 4
%58 = call i32 @padcon_get_quaddobl_denominator_coefficient(i32 noundef %56, i32 noundef %57, i32 noundef 0, ptr noundef %9, ptr noundef %10)
store i32 %58, ptr %3, align 4
%59 = load i32, ptr %5, align 4
%60 = load double, ptr %9, align 8
%61 = load double, ptr %10, align 8
%62 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %59, double noundef %60, double noundef %61)
br label %63
63: ; preds = %55
%64 = load i32, ptr %5, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %5, align 4
br label %51, !llvm.loop !9
66: ; preds = %51
br label %67
67: ; preds = %66
%68 = load i32, ptr %4, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %4, align 4
br label %44, !llvm.loop !10
70: ; preds = %44
ret void
}
declare i32 @padcon_get_homotopy_continuation_parameter(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @padcon_get_quaddobl_numerator_coefficient(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @padcon_get_quaddobl_denominator_coefficient(i32 noundef, i32 noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoqsiektx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"Numerator coefficient of Pade approximant %d :\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c" %d : %.14e %.14e\0A\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c"Denominator coefficient of Pade approximant %d :\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_quaddobl_pade_coefficients(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store i32 %0, ptr %2, align 4
%11 = call i32 @padcon_get_homotopy_continuation_parameter(i32 noundef 2, ptr noundef %8)
store i32 %11, ptr %3, align 4
%12 = load double, ptr %8, align 8
%13 = fptosi double %12 to i32
store i32 %13, ptr %6, align 4
%14 = call i32 @padcon_get_homotopy_continuation_parameter(i32 noundef 3, ptr noundef %8)
store i32 %14, ptr %3, align 4
%15 = load double, ptr %8, align 8
%16 = fptosi double %15 to i32
store i32 %16, ptr %7, align 4
store i32 1, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %.lr.ph2, label %47
.lr.ph2: ; preds = %1
br label %20
20: ; preds = %.lr.ph2, %41
%21 = load i32, ptr %4, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %21)
store i32 0, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sle i32 %23, %24
br i1 %25, label %.lr.ph, label %40
.lr.ph: ; preds = %20
br label %26
26: ; preds = %.lr.ph, %34
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call i32 @padcon_get_quaddobl_numerator_coefficient(i32 noundef %27, i32 noundef %28, i32 noundef 0, ptr noundef %9, ptr noundef %10)
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %5, align 4
%31 = load double, ptr %9, align 8
%32 = load double, ptr %10, align 8
%33 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %30, double noundef %31, double noundef %32)
br label %34
34: ; preds = %26
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp sle i32 %37, %38
br i1 %39, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %20
br label %41
41: ; preds = %40
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
%44 = load i32, ptr %4, align 4
%45 = load i32, ptr %2, align 4
%46 = icmp sle i32 %44, %45
br i1 %46, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %47
47: ; preds = %._crit_edge3, %1
store i32 1, ptr %4, align 4
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %2, align 4
%50 = icmp sle i32 %48, %49
br i1 %50, label %.lr.ph8, label %78
.lr.ph8: ; preds = %47
br label %51
51: ; preds = %.lr.ph8, %72
%52 = load i32, ptr %4, align 4
%53 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %52)
store i32 0, ptr %5, align 4
%54 = load i32, ptr %5, align 4
%55 = load i32, ptr %7, align 4
%56 = icmp sle i32 %54, %55
br i1 %56, label %.lr.ph5, label %71
.lr.ph5: ; preds = %51
br label %57
57: ; preds = %.lr.ph5, %65
%58 = load i32, ptr %4, align 4
%59 = load i32, ptr %5, align 4
%60 = call i32 @padcon_get_quaddobl_denominator_coefficient(i32 noundef %58, i32 noundef %59, i32 noundef 0, ptr noundef %9, ptr noundef %10)
store i32 %60, ptr %3, align 4
%61 = load i32, ptr %5, align 4
%62 = load double, ptr %9, align 8
%63 = load double, ptr %10, align 8
%64 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %61, double noundef %62, double noundef %63)
br label %65
65: ; preds = %57
%66 = load i32, ptr %5, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4
%68 = load i32, ptr %5, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp sle i32 %68, %69
br i1 %70, label %57, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %65
br label %71
71: ; preds = %._crit_edge6, %51
br label %72
72: ; preds = %71
%73 = load i32, ptr %4, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %4, align 4
%75 = load i32, ptr %4, align 4
%76 = load i32, ptr %2, align 4
%77 = icmp sle i32 %75, %76
br i1 %77, label %51, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %72
br label %78
78: ; preds = %._crit_edge9, %47
ret void
}
declare i32 @padcon_get_homotopy_continuation_parameter(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @padcon_get_quaddobl_numerator_coefficient(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @padcon_get_quaddobl_denominator_coefficient(i32 noundef, i32 noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpoetnpu77.c'
source_filename = "/tmp/tmpoetnpu77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_in_wch(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoetnpu77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_in_wch(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkbcjhicp.c'
source_filename = "/tmp/tmpkbcjhicp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Enter a small floating point number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Result is: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 1.000000e+00, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %8
8: ; preds = %18, %0
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %5, align 4
%11 = mul nsw i32 %10, %9
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = sitofp i32 %12 to float
%14 = fdiv float 1.000000e+00, %13
%15 = load float, ptr %2, align 4
%16 = fcmp olt float %14, %15
br i1 %16, label %17, label %18
17: ; preds = %8
br label %26
18: ; preds = %8
%19 = load i32, ptr %5, align 4
%20 = sitofp i32 %19 to float
%21 = fdiv float 1.000000e+00, %20
%22 = load float, ptr %3, align 4
%23 = fadd float %22, %21
store float %23, ptr %3, align 4
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %8
26: ; preds = %17
%27 = load float, ptr %3, align 4
%28 = fpext float %27 to double
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %28)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkbcjhicp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Enter a small floating point number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Result is: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 1.000000e+00, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = mul nsw i32 %9, %8
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = sitofp i32 %11 to float
%13 = fdiv float 1.000000e+00, %12
%14 = load float, ptr %2, align 4
%15 = fcmp olt float %13, %14
br i1 %15, label %16, label %.lr.ph
.lr.ph: ; preds = %0
br label %17
._crit_edge: ; preds = %17
br label %16
16: ; preds = %._crit_edge, %0
br label %33
17: ; preds = %.lr.ph, %17
%18 = load i32, ptr %5, align 4
%19 = sitofp i32 %18 to float
%20 = fdiv float 1.000000e+00, %19
%21 = load float, ptr %3, align 4
%22 = fadd float %21, %20
store float %22, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %5, align 4
%27 = mul nsw i32 %26, %25
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = sitofp i32 %28 to float
%30 = fdiv float 1.000000e+00, %29
%31 = load float, ptr %2, align 4
%32 = fcmp olt float %30, %31
br i1 %32, label %._crit_edge, label %17
33: ; preds = %16
%34 = load float, ptr %3, align 4
%35 = fpext float %34 to double
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %35)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp271qd3vd.c'
source_filename = "/tmp/tmp271qd3vd.c"
target datalayout = "e-m:e-p270: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/tmp271qd3vd.c"
target datalayout = "e-m:e-p270: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/tmpnpz5srp5.c'
source_filename = "/tmp/tmpnpz5srp5.c"
target datalayout = "e-m:e-p270: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/tmpnpz5srp5.c"
target datalayout = "e-m:e-p270: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/tmp_nk4ai60.c'
source_filename = "/tmp/tmp_nk4ai60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sub1(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %8, 2
%10 = zext i32 %9 to i64
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%15 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%16 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i32 noundef 40)
%17 = mul nuw i64 4, %10
%18 = trunc i64 %17 to i32
store i32 %18, ptr %3, align 4
br label %23
19: ; preds = %2
%20 = mul nuw i64 4, %10
%21 = mul i64 %20, 3
%22 = trunc i64 %21 to i32
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %19, %13
%24 = load i32, ptr %3, align 4
ret i32 %24
}
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/tmp_nk4ai60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sub1(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %8, 2
%10 = zext i32 %9 to i64
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%15 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%16 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i32 noundef 40)
%17 = mul nuw i64 4, %10
%18 = trunc i64 %17 to i32
store i32 %18, ptr %3, align 4
br label %23
19: ; preds = %2
%20 = mul nuw i64 4, %10
%21 = mul i64 %20, 3
%22 = trunc i64 %21 to i32
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %19, %13
%24 = load i32, ptr %3, align 4
ret i32 %24
}
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/tmp49hhrk3j.c'
source_filename = "/tmp/tmp49hhrk3j.c"
target datalayout = "e-m:e-p270: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/tmp49hhrk3j.c"
target datalayout = "e-m:e-p270: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/tmpany3rbk9.c'
source_filename = "/tmp/tmpany3rbk9.c"
target datalayout = "e-m:e-p270: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/tmpany3rbk9.c"
target datalayout = "e-m:e-p270: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/tmptnpxqtf7.c'
source_filename = "/tmp/tmptnpxqtf7.c"
target datalayout = "e-m:e-p270: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.pchar = private unnamed_addr constant [9 x i8] c"password\00", align 1
@MD5_DIGEST_LENGTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\0ASize of MD5 strng = %i\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 [9 x i8], align 1
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.pchar, i64 9, i1 false)
%11 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %7, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %8, align 8
%15 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
store ptr null, ptr %9, align 8
%17 = getelementptr inbounds [9 x i8], ptr %6, i64 0, i64 0
%18 = call ptr @MD5(ptr noundef %17, i32 noundef 9, ptr noundef %14)
store ptr %18, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %19
19: ; preds = %26, %2
%20 = load ptr, ptr %9, align 8
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = icmp ne i8 %24, 0
br i1 %25, label %26, label %35
26: ; preds = %19
%27 = load ptr, ptr %9, align 8
%28 = load i32, ptr %10, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %10, align 4
%30 = sext i32 %28 to i64
%31 = getelementptr inbounds i8, ptr %27, i64 %30
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = call i32 @printf(ptr noundef @.str.1, i32 noundef %33)
br label %19, !llvm.loop !6
35: ; preds = %19
%36 = load i32, ptr %10, align 4
%37 = call i32 @printf(ptr noundef @.str.2, i32 noundef %36)
store i32 0, ptr %3, align 4
%38 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %38)
%39 = load i32, ptr %3, align 4
ret i32 %39
}
; 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
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #3
declare ptr @MD5(ptr noundef, i32 noundef, ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptnpxqtf7.c"
target datalayout = "e-m:e-p270: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.pchar = private unnamed_addr constant [9 x i8] c"password\00", align 1
@MD5_DIGEST_LENGTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\0ASize of MD5 strng = %i\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 [9 x i8], align 1
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.pchar, i64 9, i1 false)
%11 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %7, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %8, align 8
%15 = load i32, ptr @MD5_DIGEST_LENGTH, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
store ptr null, ptr %9, align 8
%17 = getelementptr inbounds [9 x i8], ptr %6, i64 0, i64 0
%18 = call ptr @MD5(ptr noundef %17, i32 noundef 9, ptr noundef %14)
store ptr %18, ptr %9, align 8
store i32 0, ptr %10, align 4
%19 = load ptr, ptr %9, align 8
%20 = load i32, ptr %10, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = icmp ne i8 %23, 0
br i1 %24, label %.lr.ph, label %40
.lr.ph: ; preds = %2
br label %25
25: ; preds = %.lr.ph, %25
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %10, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %10, align 4
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %32)
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = icmp ne i8 %38, 0
br i1 %39, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %40
40: ; preds = %._crit_edge, %2
%41 = load i32, ptr %10, align 4
%42 = call i32 @printf(ptr noundef @.str.2, i32 noundef %41)
store i32 0, ptr %3, align 4
%43 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %43)
%44 = load i32, ptr %3, align 4
ret i32 %44
}
; 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
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #3
declare ptr @MD5(ptr noundef, i32 noundef, ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk8x1knma.c'
source_filename = "/tmp/tmpk8x1knma.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_ERROR = 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/tmpk8x1knma.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_ERROR = 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/tmpp69dmjh_.c'
source_filename = "/tmp/tmpp69dmjh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(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 @g(i32 noundef %3, i32 noundef 0)
ret i32 %4
}
declare i32 @g(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/tmpp69dmjh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(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 @g(i32 noundef %3, i32 noundef 0)
ret i32 %4
}
declare i32 @g(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/tmpg9e6u8fs.c'
source_filename = "/tmp/tmpg9e6u8fs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %21, %1
%8 = load i32, ptr %3, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %7
%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 i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %10, %7
%19 = phi i1 [ false, %7 ], [ %17, %10 ]
br i1 %19, label %20, label %24
20: ; preds = %18
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
br label %7, !llvm.loop !6
24: ; preds = %18
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 0, ptr %29, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(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/tmpg9e6u8fs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %21, %1
%8 = load i32, ptr %3, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %7
%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 i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %10, %7
%19 = phi i1 [ false, %7 ], [ %17, %10 ]
br i1 %19, label %20, label %24
20: ; preds = %18
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
br label %7, !llvm.loop !6
24: ; preds = %18
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 0, ptr %29, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(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/tmp3ztjmbaw.c'
source_filename = "/tmp/tmp3ztjmbaw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"BOOM!!!\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BSP_boom() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = load i32, ptr @stdout, align 4
%3 = call i32 @fflush(i32 noundef %2)
%4 = call i32 @_exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ztjmbaw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"BOOM!!!\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BSP_boom() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = load i32, ptr @stdout, align 4
%3 = call i32 @fflush(i32 noundef %2)
%4 = call i32 @_exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4aaqnp2j.c'
source_filename = "/tmp/tmp4aaqnp2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for #\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x23() #0 {
%1 = call i64 @iscntrl(i32 noundef 35)
%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 180, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmp4aaqnp2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for #\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x23() #0 {
%1 = call i64 @iscntrl(i32 noundef 35)
%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 180, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmpdyt2m_c2.c'
source_filename = "/tmp/tmpdyt2m_c2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rotate(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
store i32 %11, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %28, %1
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = sub nsw i32 %14, 1
%16 = icmp slt i32 %13, %15
br i1 %16, label %17, label %31
17: ; preds = %12
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %18, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
br label %28
28: ; preds = %17
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %12, !llvm.loop !6
31: ; preds = %12
%32 = load i32, ptr %5, align 4
%33 = trunc i32 %32 to i8
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %3, align 4
%36 = sub nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
store i8 %33, ptr %38, 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/tmpdyt2m_c2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rotate(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
store i32 %11, ptr %5, align 4
store i32 0, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %.lr.ph, label %34
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %27
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %17, i64 %20
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
br label %27
27: ; preds = %16
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %3, align 4
%32 = sub nsw i32 %31, 1
%33 = icmp slt i32 %30, %32
br i1 %33, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %34
34: ; preds = %._crit_edge, %1
%35 = load i32, ptr %5, align 4
%36 = trunc i32 %35 to i8
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %3, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
store i8 %36, ptr %41, 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/tmpybb8er8x.c'
source_filename = "/tmp/tmpybb8er8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 (...) @test1()
%4 = load i32, ptr %2, align 4
%5 = or i32 %4, %3
store i32 %5, ptr %2, align 4
%6 = call i32 (...) @test2()
%7 = load i32, ptr %2, align 4
%8 = or i32 %7, %6
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
ret i32 %9
}
declare i32 @test1(...) #1
declare i32 @test2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybb8er8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 (...) @test1()
%4 = load i32, ptr %2, align 4
%5 = or i32 %4, %3
store i32 %5, ptr %2, align 4
%6 = call i32 (...) @test2()
%7 = load i32, ptr %2, align 4
%8 = or i32 %7, %6
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
ret i32 %9
}
declare i32 @test1(...) #1
declare i32 @test2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpycgox5jt.c'
source_filename = "/tmp/tmpycgox5jt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [98 x i8] c"ohdp [ -h ] [ -I ] [ -T ] [ -O int ] [ -t int ] [ -d char ] [ -o outfilename ] [ -i infilename ]\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"-h this help\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"-I interactive mode\0A\00", align 1
@.str.3 = private unnamed_addr constant [87 x i8] c"-T transpose all output to vertical tables (ie. for spreadsheet programs)\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"-D Debug mode (extra details)\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"-S identifier Define symbol 'identifier'\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"-t int test level (1, 2)\0A\00", align 1
@.str.7 = private unnamed_addr constant [34 x i8] c" 1 API test mode\0A\00", align 1
@.str.8 = private unnamed_addr constant [41 x i8] c" 2 Input file test mode\0A\00", align 1
@.str.9 = private unnamed_addr constant [64 x i8] c"-d char set output delimiter to single character 'char'\0A\00", align 1
@.str.10 = private unnamed_addr constant [46 x i8] c"-o outputfile new file to put output of run\0A\00", align 1
@.str.11 = private unnamed_addr constant [36 x i8] c"-i inputfile existing input file\0A\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"Example to create spreadsheet readable output:\0A\00", align 1
@.str.13 = private unnamed_addr constant [47 x i8] c"ohdp -T -d , -o basictest.csv -i basictest.dp\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @commandline_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
%14 = call i32 @printf(ptr noundef @.str.13)
%15 = call i32 @exit(i32 noundef 0) #3
unreachable
}
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/tmpycgox5jt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [98 x i8] c"ohdp [ -h ] [ -I ] [ -T ] [ -O int ] [ -t int ] [ -d char ] [ -o outfilename ] [ -i infilename ]\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"-h this help\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"-I interactive mode\0A\00", align 1
@.str.3 = private unnamed_addr constant [87 x i8] c"-T transpose all output to vertical tables (ie. for spreadsheet programs)\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"-D Debug mode (extra details)\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"-S identifier Define symbol 'identifier'\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"-t int test level (1, 2)\0A\00", align 1
@.str.7 = private unnamed_addr constant [34 x i8] c" 1 API test mode\0A\00", align 1
@.str.8 = private unnamed_addr constant [41 x i8] c" 2 Input file test mode\0A\00", align 1
@.str.9 = private unnamed_addr constant [64 x i8] c"-d char set output delimiter to single character 'char'\0A\00", align 1
@.str.10 = private unnamed_addr constant [46 x i8] c"-o outputfile new file to put output of run\0A\00", align 1
@.str.11 = private unnamed_addr constant [36 x i8] c"-i inputfile existing input file\0A\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"Example to create spreadsheet readable output:\0A\00", align 1
@.str.13 = private unnamed_addr constant [47 x i8] c"ohdp -T -d , -o basictest.csv -i basictest.dp\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @commandline_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
%14 = call i32 @printf(ptr noundef @.str.13)
%15 = call i32 @exit(i32 noundef 0) #3
unreachable
}
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/tmpvr363gpd.c'
source_filename = "/tmp/tmpvr363gpd.c"
target datalayout = "e-m:e-p270: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/tmpvr363gpd.c"
target datalayout = "e-m:e-p270: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/tmplprr_tkw.c'
source_filename = "/tmp/tmplprr_tkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"ERROR on write - flash is busy even after 0x%x checks\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"Vpp voltage droop error during write, aborted, status=0x%02x\0A\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c"Command sequence error during write, aborted, status=0x%02x\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"Block locked during write process, aborted, status=0x%02x\0A\00", align 1
@.str.4 = private unnamed_addr constant [46 x i8] c"write failed at offset 0x%08x, status=0x%02x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @single_write(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @unlock_block_for_writes(i32 noundef %7)
%9 = load i32, ptr %3, align 4
%10 = call i32 @flash_write(i32 noundef %9, i32 noundef 64)
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @flash_write(i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %3, align 4
%15 = call i32 @flash_read_status(i32 noundef %14)
store i32 %15, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %28, %2
%17 = load i32, ptr %6, align 4
%18 = and i32 %17, 128
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 4095
br label %23
23: ; preds = %20, %16
%24 = phi i1 [ false, %16 ], [ %22, %20 ]
br i1 %24, label %25, label %31
25: ; preds = %23
%26 = load i32, ptr %3, align 4
%27 = call i32 @flash_read_status(i32 noundef %26)
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %25
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %16, !llvm.loop !6
31: ; preds = %23
%32 = load i32, ptr %6, align 4
%33 = and i32 %32, 128
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr %5, align 4
%37 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str, i32 noundef %36)
br label %38
38: ; preds = %35, %31
%39 = load i32, ptr %3, align 4
%40 = call i32 @flash_read_status(i32 noundef %39)
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = and i32 %41, 8
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.1, i32 noundef %45)
br label %47
47: ; preds = %44, %38
%48 = load i32, ptr %6, align 4
%49 = and i32 %48, 48
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load i32, ptr %6, align 4
%53 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.2, i32 noundef %52)
br label %54
54: ; preds = %51, %47
%55 = load i32, ptr %6, align 4
%56 = and i32 %55, 2
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.3, i32 noundef %59)
br label %61
61: ; preds = %58, %54
%62 = load i32, ptr %6, align 4
%63 = and i32 %62, 32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %61
%66 = load i32, ptr %3, align 4
%67 = shl i32 %66, 1
%68 = load i32, ptr %6, align 4
%69 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.4, i32 noundef %67, i32 noundef %68)
br label %70
70: ; preds = %65, %61
%71 = load i32, ptr %3, align 4
%72 = call i32 @lock_block_to_prevent_writes(i32 noundef %71)
%73 = load i32, ptr %3, align 4
%74 = call i32 @flash_read_mode(i32 noundef %73)
ret void
}
declare i32 @unlock_block_for_writes(i32 noundef) #1
declare i32 @flash_write(i32 noundef, i32 noundef) #1
declare i32 @flash_read_status(i32 noundef) #1
declare i32 @warnx(ptr noundef, i32 noundef, ...) #1
declare i32 @lock_block_to_prevent_writes(i32 noundef) #1
declare i32 @flash_read_mode(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/tmplprr_tkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"ERROR on write - flash is busy even after 0x%x checks\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"Vpp voltage droop error during write, aborted, status=0x%02x\0A\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c"Command sequence error during write, aborted, status=0x%02x\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"Block locked during write process, aborted, status=0x%02x\0A\00", align 1
@.str.4 = private unnamed_addr constant [46 x i8] c"write failed at offset 0x%08x, status=0x%02x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @single_write(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @unlock_block_for_writes(i32 noundef %7)
%9 = load i32, ptr %3, align 4
%10 = call i32 @flash_write(i32 noundef %9, i32 noundef 64)
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @flash_write(i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %3, align 4
%15 = call i32 @flash_read_status(i32 noundef %14)
store i32 %15, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %28, %2
%17 = load i32, ptr %6, align 4
%18 = and i32 %17, 128
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 4095
br label %23
23: ; preds = %20, %16
%24 = phi i1 [ false, %16 ], [ %22, %20 ]
br i1 %24, label %25, label %31
25: ; preds = %23
%26 = load i32, ptr %3, align 4
%27 = call i32 @flash_read_status(i32 noundef %26)
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %25
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %16, !llvm.loop !6
31: ; preds = %23
%32 = load i32, ptr %6, align 4
%33 = and i32 %32, 128
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr %5, align 4
%37 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str, i32 noundef %36)
br label %38
38: ; preds = %35, %31
%39 = load i32, ptr %3, align 4
%40 = call i32 @flash_read_status(i32 noundef %39)
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = and i32 %41, 8
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.1, i32 noundef %45)
br label %47
47: ; preds = %44, %38
%48 = load i32, ptr %6, align 4
%49 = and i32 %48, 48
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load i32, ptr %6, align 4
%53 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.2, i32 noundef %52)
br label %54
54: ; preds = %51, %47
%55 = load i32, ptr %6, align 4
%56 = and i32 %55, 2
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.3, i32 noundef %59)
br label %61
61: ; preds = %58, %54
%62 = load i32, ptr %6, align 4
%63 = and i32 %62, 32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %61
%66 = load i32, ptr %3, align 4
%67 = shl i32 %66, 1
%68 = load i32, ptr %6, align 4
%69 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.4, i32 noundef %67, i32 noundef %68)
br label %70
70: ; preds = %65, %61
%71 = load i32, ptr %3, align 4
%72 = call i32 @lock_block_to_prevent_writes(i32 noundef %71)
%73 = load i32, ptr %3, align 4
%74 = call i32 @flash_read_mode(i32 noundef %73)
ret void
}
declare i32 @unlock_block_for_writes(i32 noundef) #1
declare i32 @flash_write(i32 noundef, i32 noundef) #1
declare i32 @flash_read_status(i32 noundef) #1
declare i32 @warnx(ptr noundef, i32 noundef, ...) #1
declare i32 @lock_block_to_prevent_writes(i32 noundef) #1
declare i32 @flash_read_mode(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/tmphw8hjfq1.c'
source_filename = "/tmp/tmphw8hjfq1.c"
target datalayout = "e-m:e-p270: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 { double, double, double }
%struct.utmp = type { i64, i32 }
@.str = private unnamed_addr constant [17 x i8] c" %02d:%02d:%02d \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"up \00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"%d day%s, \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"s\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"%2d:%2d, \00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"%d min, \00", align 1
@USER_PROCESS = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [14 x i8] c"%2d user%s, \00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"load average: %0.2f, %0.2f, %0.2f\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [128 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%20 = call i32 @time(ptr noundef %6)
%21 = call ptr @localtime(ptr noundef %6)
store ptr %21, ptr %7, align 8
%22 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds %struct.tm, ptr %23, i32 0, i32 0
%25 = load double, ptr %24, align 8
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.tm, ptr %26, i32 0, i32 1
%28 = load double, ptr %27, align 8
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.tm, ptr %29, i32 0, i32 2
%31 = load double, ptr %30, align 8
%32 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %22, ptr noundef @.str, double noundef %25, double noundef %28, double noundef %31)
store i32 %32, ptr %9, align 4
%33 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @strcat(ptr noundef %33, ptr noundef @.str.1)
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 3
store i32 %36, ptr %9, align 4
%37 = call i32 @uptime(ptr noundef %14, ptr noundef %15)
%38 = load double, ptr %14, align 8
%39 = fptosi double %38 to i32
%40 = sdiv i32 %39, 86400
store i32 %40, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %57
43: ; preds = %2
%44 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i32, ptr %10, align 4
%49 = sitofp i32 %48 to double
%50 = load i32, ptr %10, align 4
%51 = icmp ne i32 %50, 1
%52 = zext i1 %51 to i64
%53 = select i1 %51, ptr @.str.3, ptr @.str.4
%54 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %47, ptr noundef @.str.2, double noundef %49, ptr noundef %53)
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %9, align 4
br label %57
57: ; preds = %43, %2
%58 = load double, ptr %14, align 8
%59 = fptosi double %58 to i32
%60 = sdiv i32 %59, 60
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = sdiv i32 %61, 60
store i32 %62, ptr %11, align 4
%63 = load i32, ptr %11, align 4
%64 = srem i32 %63, 24
store i32 %64, ptr %11, align 4
%65 = load i32, ptr %12, align 4
%66 = srem i32 %65, 60
store i32 %66, ptr %12, align 4
%67 = load i32, ptr %11, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %80
69: ; preds = %57
%70 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i32, ptr %11, align 4
%75 = sitofp i32 %74 to double
%76 = load i32, ptr %12, align 4
%77 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %73, ptr noundef @.str.5, double noundef %75, i32 noundef %76)
%78 = load i32, ptr %9, align 4
%79 = add nsw i32 %78, %77
store i32 %79, ptr %9, align 4
br label %90
80: ; preds = %57
%81 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
%85 = load i32, ptr %12, align 4
%86 = sitofp i32 %85 to double
%87 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %84, ptr noundef @.str.6, double noundef %86)
%88 = load i32, ptr %9, align 4
%89 = add nsw i32 %88, %87
store i32 %89, ptr %9, align 4
br label %90
90: ; preds = %80, %69
%91 = call i32 (...) @setutent()
br label %92
92: ; preds = %110, %90
%93 = call ptr (...) @getutent()
store ptr %93, ptr %19, align 8
%94 = icmp ne ptr %93, null
br i1 %94, label %95, label %111
95: ; preds = %92
%96 = load ptr, ptr %19, align 8
%97 = getelementptr inbounds %struct.utmp, ptr %96, i32 0, i32 0
%98 = load i64, ptr %97, align 8
%99 = load i64, ptr @USER_PROCESS, align 8
%100 = icmp eq i64 %98, %99
br i1 %100, label %101, label %110
101: ; preds = %95
%102 = load ptr, ptr %19, align 8
%103 = getelementptr inbounds %struct.utmp, ptr %102, i32 0, i32 1
%104 = load i32, ptr %103, align 8
%105 = call i64 @strlen(i32 noundef %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %101
%108 = load i32, ptr %13, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %13, align 4
br label %110
110: ; preds = %107, %101, %95
br label %92, !llvm.loop !6
111: ; preds = %92
%112 = call i32 (...) @endutent()
%113 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%114 = load i32, ptr %9, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, ptr %113, i64 %115
%117 = load i32, ptr %13, align 4
%118 = sitofp i32 %117 to double
%119 = load i32, ptr %13, align 4
%120 = icmp ne i32 %119, 1
%121 = zext i1 %120 to i64
%122 = select i1 %120, ptr @.str.3, ptr @.str.4
%123 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %116, ptr noundef @.str.7, double noundef %118, ptr noundef %122)
%124 = load i32, ptr %9, align 4
%125 = add nsw i32 %124, %123
store i32 %125, ptr %9, align 4
%126 = call i32 @loadavg(ptr noundef %16, ptr noundef %17, ptr noundef %18)
%127 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%128 = load i32, ptr %9, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8, ptr %127, i64 %129
%131 = load double, ptr %16, align 8
%132 = load double, ptr %17, align 8
%133 = load double, ptr %18, align 8
%134 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %130, ptr noundef @.str.8, double noundef %131, double noundef %132, double noundef %133)
%135 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%136 = call i32 @printf(ptr noundef @.str.9, ptr noundef %135)
%137 = load i32, ptr @EXIT_SUCCESS, align 4
%138 = call i32 @exit(i32 noundef %137) #3
unreachable
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef, ...) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @uptime(ptr noundef, ptr noundef) #1
declare i32 @setutent(...) #1
declare ptr @getutent(...) #1
declare i64 @strlen(i32 noundef) #1
declare i32 @endutent(...) #1
declare i32 @loadavg(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphw8hjfq1.c"
target datalayout = "e-m:e-p270: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 { double, double, double }
%struct.utmp = type { i64, i32 }
@.str = private unnamed_addr constant [17 x i8] c" %02d:%02d:%02d \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"up \00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"%d day%s, \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"s\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"%2d:%2d, \00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"%d min, \00", align 1
@USER_PROCESS = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [14 x i8] c"%2d user%s, \00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"load average: %0.2f, %0.2f, %0.2f\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [128 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%20 = call i32 @time(ptr noundef %6)
%21 = call ptr @localtime(ptr noundef %6)
store ptr %21, ptr %7, align 8
%22 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds %struct.tm, ptr %23, i32 0, i32 0
%25 = load double, ptr %24, align 8
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.tm, ptr %26, i32 0, i32 1
%28 = load double, ptr %27, align 8
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.tm, ptr %29, i32 0, i32 2
%31 = load double, ptr %30, align 8
%32 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %22, ptr noundef @.str, double noundef %25, double noundef %28, double noundef %31)
store i32 %32, ptr %9, align 4
%33 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @strcat(ptr noundef %33, ptr noundef @.str.1)
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 3
store i32 %36, ptr %9, align 4
%37 = call i32 @uptime(ptr noundef %14, ptr noundef %15)
%38 = load double, ptr %14, align 8
%39 = fptosi double %38 to i32
%40 = sdiv i32 %39, 86400
store i32 %40, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %57
43: ; preds = %2
%44 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i32, ptr %10, align 4
%49 = sitofp i32 %48 to double
%50 = load i32, ptr %10, align 4
%51 = icmp ne i32 %50, 1
%52 = zext i1 %51 to i64
%53 = select i1 %51, ptr @.str.3, ptr @.str.4
%54 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %47, ptr noundef @.str.2, double noundef %49, ptr noundef %53)
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %9, align 4
br label %57
57: ; preds = %43, %2
%58 = load double, ptr %14, align 8
%59 = fptosi double %58 to i32
%60 = sdiv i32 %59, 60
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = sdiv i32 %61, 60
store i32 %62, ptr %11, align 4
%63 = load i32, ptr %11, align 4
%64 = srem i32 %63, 24
store i32 %64, ptr %11, align 4
%65 = load i32, ptr %12, align 4
%66 = srem i32 %65, 60
store i32 %66, ptr %12, align 4
%67 = load i32, ptr %11, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %80
69: ; preds = %57
%70 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i32, ptr %11, align 4
%75 = sitofp i32 %74 to double
%76 = load i32, ptr %12, align 4
%77 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %73, ptr noundef @.str.5, double noundef %75, i32 noundef %76)
%78 = load i32, ptr %9, align 4
%79 = add nsw i32 %78, %77
store i32 %79, ptr %9, align 4
br label %90
80: ; preds = %57
%81 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
%85 = load i32, ptr %12, align 4
%86 = sitofp i32 %85 to double
%87 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %84, ptr noundef @.str.6, double noundef %86)
%88 = load i32, ptr %9, align 4
%89 = add nsw i32 %88, %87
store i32 %89, ptr %9, align 4
br label %90
90: ; preds = %80, %69
%91 = call i32 (...) @setutent()
%92 = call ptr (...) @getutent()
store ptr %92, ptr %19, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %.lr.ph, label %112
.lr.ph: ; preds = %90
br label %94
94: ; preds = %.lr.ph, %109
%95 = load ptr, ptr %19, align 8
%96 = getelementptr inbounds %struct.utmp, ptr %95, i32 0, i32 0
%97 = load i64, ptr %96, align 8
%98 = load i64, ptr @USER_PROCESS, align 8
%99 = icmp eq i64 %97, %98
br i1 %99, label %100, label %109
100: ; preds = %94
%101 = load ptr, ptr %19, align 8
%102 = getelementptr inbounds %struct.utmp, ptr %101, i32 0, i32 1
%103 = load i32, ptr %102, align 8
%104 = call i64 @strlen(i32 noundef %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %100
%107 = load i32, ptr %13, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %13, align 4
br label %109
109: ; preds = %106, %100, %94
%110 = call ptr (...) @getutent()
store ptr %110, ptr %19, align 8
%111 = icmp ne ptr %110, null
br i1 %111, label %94, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %109
br label %112
112: ; preds = %._crit_edge, %90
%113 = call i32 (...) @endutent()
%114 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%115 = load i32, ptr %9, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, ptr %114, i64 %116
%118 = load i32, ptr %13, align 4
%119 = sitofp i32 %118 to double
%120 = load i32, ptr %13, align 4
%121 = icmp ne i32 %120, 1
%122 = zext i1 %121 to i64
%123 = select i1 %121, ptr @.str.3, ptr @.str.4
%124 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %117, ptr noundef @.str.7, double noundef %119, ptr noundef %123)
%125 = load i32, ptr %9, align 4
%126 = add nsw i32 %125, %124
store i32 %126, ptr %9, align 4
%127 = call i32 @loadavg(ptr noundef %16, ptr noundef %17, ptr noundef %18)
%128 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%129 = load i32, ptr %9, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, ptr %128, i64 %130
%132 = load double, ptr %16, align 8
%133 = load double, ptr %17, align 8
%134 = load double, ptr %18, align 8
%135 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %131, ptr noundef @.str.8, double noundef %132, double noundef %133, double noundef %134)
%136 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
%137 = call i32 @printf(ptr noundef @.str.9, ptr noundef %136)
%138 = load i32, ptr @EXIT_SUCCESS, align 4
%139 = call i32 @exit(i32 noundef %138) #3
unreachable
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef, ...) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @uptime(ptr noundef, ptr noundef) #1
declare i32 @setutent(...) #1
declare ptr @getutent(...) #1
declare i64 @strlen(i32 noundef) #1
declare i32 @endutent(...) #1
declare i32 @loadavg(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptnfdn_2b.c'
source_filename = "/tmp/tmptnfdn_2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printDiamond(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 1
br i1 %5, label %6, label %7
6: ; preds = %1
br label %32
7: ; preds = %1
store i32 1, ptr %3, align 4
br label %8
8: ; preds = %16, %7
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @printRow(i32 noundef %13, i32 noundef %14)
br label %16
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 2
store i32 %18, ptr %3, align 4
br label %8, !llvm.loop !6
19: ; preds = %8
%20 = load i32, ptr %2, align 4
%21 = sub nsw i32 %20, 2
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %29, %19
%23 = load i32, ptr %3, align 4
%24 = icmp sge i32 %23, 1
br i1 %24, label %25, label %32
25: ; preds = %22
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = call i32 @printRow(i32 noundef %26, i32 noundef %27)
br label %29
29: ; preds = %25
%30 = load i32, ptr %3, align 4
%31 = sub nsw i32 %30, 2
store i32 %31, ptr %3, align 4
br label %22, !llvm.loop !8
32: ; preds = %6, %22
ret void
}
declare i32 @printRow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptnfdn_2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printDiamond(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 1
br i1 %5, label %6, label %7
6: ; preds = %1
br label %35
7: ; preds = %1
store i32 1, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %15
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = call i32 @printRow(i32 noundef %12, i32 noundef %13)
br label %15
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 2
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %7
%22 = load i32, ptr %2, align 4
%23 = sub nsw i32 %22, 2
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp sge i32 %24, 1
br i1 %25, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %21
br label %26
26: ; preds = %.lr.ph2, %30
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %2, align 4
%29 = call i32 @printRow(i32 noundef %27, i32 noundef %28)
br label %30
30: ; preds = %26
%31 = load i32, ptr %3, align 4
%32 = sub nsw i32 %31, 2
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp sge i32 %33, 1
br i1 %34, label %26, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %30
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %21
br label %35
35: ; preds = %.loopexit, %6
ret void
}
declare i32 @printRow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp73zg4x_3.c'
source_filename = "/tmp/tmp73zg4x_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_flag_table_3_3(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = call ptr @flag_table_3_3_location(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %16
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %6, align 8
store i8 %14, ptr %15, align 1
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %12, %11
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare ptr @flag_table_3_3_location(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp73zg4x_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_flag_table_3_3(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = call ptr @flag_table_3_3_location(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %16
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %6, align 8
store i8 %14, ptr %15, align 1
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %12, %11
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare ptr @flag_table_3_3_location(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0qkdf6t7.c'
source_filename = "/tmp/tmp0qkdf6t7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Select Username From Database Order by Username;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @listUsers(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 @executeSQLCommand(ptr noundef %3, ptr noundef @.str)
ret void
}
declare i32 @executeSQLCommand(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/tmp0qkdf6t7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Select Username From Database Order by Username;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @listUsers(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 @executeSQLCommand(ptr noundef %3, ptr noundef @.str)
ret void
}
declare i32 @executeSQLCommand(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/tmphh_ohglp.c'
source_filename = "/tmp/tmphh_ohglp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/headius/jato/refs/heads/master/test/unit/vm/parse-test.c\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"64k\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_parse_kilobytes() #0 {
%1 = call i32 @parse_long(ptr noundef @.str.1)
%2 = call i32 @__assert_int_equals(ptr noundef @.str, i32 noundef 18, i32 noundef 65536, i32 noundef %1)
ret void
}
declare i32 @__assert_int_equals(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_long(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphh_ohglp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/headius/jato/refs/heads/master/test/unit/vm/parse-test.c\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"64k\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_parse_kilobytes() #0 {
%1 = call i32 @parse_long(ptr noundef @.str.1)
%2 = call i32 @__assert_int_equals(ptr noundef @.str, i32 noundef 18, i32 noundef 65536, i32 noundef %1)
ret void
}
declare i32 @__assert_int_equals(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_long(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8ohv_cxx.c'
source_filename = "/tmp/tmp8ohv_cxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fastpow(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double 1.000000e+00, ptr %6, align 8
%9 = load double, ptr %5, align 8
%10 = fadd double %9, 0x40590001A36E2EB2
%11 = fsub double %10, 1.000000e+02
%12 = fptosi double %11 to i32
store i32 %12, ptr %8, align 4
%13 = load double, ptr %5, align 8
%14 = load i32, ptr %8, align 4
%15 = sitofp i32 %14 to double
%16 = fsub double %13, %15
%17 = fcmp olt double %16, 1.000000e-04
br i1 %17, label %18, label %54
18: ; preds = %2
%19 = load double, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = sitofp i32 %20 to double
%22 = fsub double %19, %21
%23 = fcmp ogt double %22, -1.000000e-04
br i1 %23, label %24, label %54
24: ; preds = %18
%25 = load double, ptr %5, align 8
%26 = fcmp olt double %25, 0.000000e+00
br i1 %26, label %27, label %40
27: ; preds = %24
%28 = load double, ptr %4, align 8
%29 = fdiv double 1.000000e+00, %28
store double %29, ptr %7, align 8
br label %30
30: ; preds = %33, %27
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load double, ptr %7, align 8
%37 = load double, ptr %6, align 8
%38 = fmul double %37, %36
store double %38, ptr %6, align 8
br label %30, !llvm.loop !6
39: ; preds = %30
br label %52
40: ; preds = %24
br label %41
41: ; preds = %45, %40
%42 = load i32, ptr %8, align 4
%43 = sitofp i32 %42 to double
%44 = fcmp oge double %43, 0x3FEFF7CED916872B
br i1 %44, label %45, label %51
45: ; preds = %41
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %8, align 4
%48 = load double, ptr %4, align 8
%49 = load double, ptr %6, align 8
%50 = fmul double %49, %48
store double %50, ptr %6, align 8
br label %41, !llvm.loop !8
51: ; preds = %41
br label %52
52: ; preds = %51, %39
%53 = load double, ptr %6, align 8
store double %53, ptr %3, align 8
br label %58
54: ; preds = %18, %2
%55 = load double, ptr %4, align 8
%56 = load double, ptr %5, align 8
%57 = call double @pow(double noundef %55, double noundef %56) #2
store double %57, ptr %3, align 8
br label %58
58: ; preds = %54, %52
%59 = load double, ptr %3, align 8
ret double %59
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ohv_cxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fastpow(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double 1.000000e+00, ptr %6, align 8
%9 = load double, ptr %5, align 8
%10 = fadd double %9, 0x40590001A36E2EB2
%11 = fsub double %10, 1.000000e+02
%12 = fptosi double %11 to i32
store i32 %12, ptr %8, align 4
%13 = load double, ptr %5, align 8
%14 = load i32, ptr %8, align 4
%15 = sitofp i32 %14 to double
%16 = fsub double %13, %15
%17 = fcmp olt double %16, 1.000000e-04
br i1 %17, label %18, label %57
18: ; preds = %2
%19 = load double, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = sitofp i32 %20 to double
%22 = fsub double %19, %21
%23 = fcmp ogt double %22, -1.000000e-04
br i1 %23, label %24, label %57
24: ; preds = %18
%25 = load double, ptr %5, align 8
%26 = fcmp olt double %25, 0.000000e+00
br i1 %26, label %27, label %41
27: ; preds = %24
%28 = load double, ptr %4, align 8
%29 = fdiv double 1.000000e+00, %28
store double %29, ptr %7, align 8
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %.lr.ph2, label %40
.lr.ph2: ; preds = %27
br label %32
32: ; preds = %.lr.ph2, %32
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load double, ptr %7, align 8
%36 = load double, ptr %6, align 8
%37 = fmul double %36, %35
store double %37, ptr %6, align 8
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %32, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %32
br label %40
40: ; preds = %._crit_edge3, %27
br label %55
41: ; preds = %24
%42 = load i32, ptr %8, align 4
%43 = sitofp i32 %42 to double
%44 = fcmp oge double %43, 0x3FEFF7CED916872B
br i1 %44, label %.lr.ph, label %54
.lr.ph: ; preds = %41
br label %45
45: ; preds = %.lr.ph, %45
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %8, align 4
%48 = load double, ptr %4, align 8
%49 = load double, ptr %6, align 8
%50 = fmul double %49, %48
store double %50, ptr %6, align 8
%51 = load i32, ptr %8, align 4
%52 = sitofp i32 %51 to double
%53 = fcmp oge double %52, 0x3FEFF7CED916872B
br i1 %53, label %45, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %45
br label %54
54: ; preds = %._crit_edge, %41
br label %55
55: ; preds = %54, %40
%56 = load double, ptr %6, align 8
store double %56, ptr %3, align 8
br label %61
57: ; preds = %18, %2
%58 = load double, ptr %4, align 8
%59 = load double, ptr %5, align 8
%60 = call double @pow(double noundef %58, double noundef %59) #2
store double %60, ptr %3, align 8
br label %61
61: ; preds = %57, %55
%62 = load double, ptr %3, align 8
ret double %62
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpw5ft0786.c'
source_filename = "/tmp/tmpw5ft0786.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [6 x i32] [i32 1, i32 2, i32 3, i32 4, i32 0, i32 0], align 16
@__const.main.b = private unnamed_addr constant [2 x i32] [i32 5, i32 6], align 4
@.str = private unnamed_addr constant [10 x i8] c"array A: \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"array B: \00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"array A after merging: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca [2 x i32], align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.b, i64 8, i1 false)
store i32 6, ptr %4, align 4
store i32 2, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %8, %9
%11 = call i32 @arrayPrint(ptr noundef %7, i32 noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1)
%13 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%14 = load i32, ptr %5, align 4
%15 = call i32 @arrayPrint(ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%17 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = sub nsw i32 %18, %19
%21 = load i32, ptr %5, align 4
%22 = call i32 @merge(ptr noundef %16, ptr noundef %17, i32 noundef %20, i32 noundef %21)
%23 = call i32 @printf(ptr noundef @.str.2)
%24 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%25 = load i32, ptr %4, align 4
%26 = call i32 @arrayPrint(ptr noundef %24, i32 noundef %25)
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 @arrayPrint(ptr noundef, i32 noundef) #2
declare i32 @merge(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw5ft0786.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [6 x i32] [i32 1, i32 2, i32 3, i32 4, i32 0, i32 0], align 16
@__const.main.b = private unnamed_addr constant [2 x i32] [i32 5, i32 6], align 4
@.str = private unnamed_addr constant [10 x i8] c"array A: \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"array B: \00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"array A after merging: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca [2 x i32], align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.b, i64 8, i1 false)
store i32 6, ptr %4, align 4
store i32 2, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %8, %9
%11 = call i32 @arrayPrint(ptr noundef %7, i32 noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1)
%13 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%14 = load i32, ptr %5, align 4
%15 = call i32 @arrayPrint(ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%17 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = sub nsw i32 %18, %19
%21 = load i32, ptr %5, align 4
%22 = call i32 @merge(ptr noundef %16, ptr noundef %17, i32 noundef %20, i32 noundef %21)
%23 = call i32 @printf(ptr noundef @.str.2)
%24 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%25 = load i32, ptr %4, align 4
%26 = call i32 @arrayPrint(ptr noundef %24, i32 noundef %25)
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 @arrayPrint(ptr noundef, i32 noundef) #2
declare i32 @merge(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpin_qvnhw.c'
source_filename = "/tmp/tmpin_qvnhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getfloat(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %8
8: ; preds = %12, %1
%9 = call i32 (...) @getch()
store i32 %9, ptr %4, align 4
%10 = call i64 @isspace(i32 noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
br label %8, !llvm.loop !6
13: ; preds = %8
%14 = load i32, ptr %4, align 4
%15 = call i64 @isdigit(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %30, label %17
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr @EOF, align 4
%20 = icmp ne i32 %18, %19
br i1 %20, label %21, label %30
21: ; preds = %17
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 43
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load i32, ptr %4, align 4
%26 = icmp ne i32 %25, 45
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr %4, align 4
%29 = call i32 @ungetch(i32 noundef %28)
store i32 0, ptr %2, align 4
br label %109
30: ; preds = %24, %21, %17, %13
%31 = load i32, ptr %4, align 4
%32 = icmp eq i32 %31, 45
%33 = zext i1 %32 to i64
%34 = select i1 %32, i32 -1, i32 1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 43
br i1 %36, label %40, label %37
37: ; preds = %30
%38 = load i32, ptr %4, align 4
%39 = icmp eq i32 %38, 45
br i1 %39, label %40, label %49
40: ; preds = %37, %30
%41 = load i32, ptr %4, align 4
store i32 %41, ptr %7, align 4
%42 = call i32 (...) @getch()
store i32 %42, ptr %4, align 4
%43 = call i64 @isdigit(i32 noundef %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %48, label %45
45: ; preds = %40
%46 = load i32, ptr %7, align 4
%47 = call i32 @ungetch(i32 noundef %46)
br label %48
48: ; preds = %45, %40
br label %49
49: ; preds = %48, %37
%50 = load ptr, ptr %3, align 8
store float 0.000000e+00, ptr %50, align 4
br label %51
51: ; preds = %63, %49
%52 = load i32, ptr %4, align 4
%53 = call i64 @isdigit(i32 noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %51
%56 = load ptr, ptr %3, align 8
%57 = load float, ptr %56, align 4
%58 = load i32, ptr %4, align 4
%59 = sub nsw i32 %58, 48
%60 = sitofp i32 %59 to float
%61 = call float @llvm.fmuladd.f32(float 1.000000e+01, float %57, float %60)
%62 = load ptr, ptr %3, align 8
store float %61, ptr %62, align 4
br label %63
63: ; preds = %55
%64 = call i32 (...) @getch()
store i32 %64, ptr %4, align 4
br label %51, !llvm.loop !8
65: ; preds = %51
%66 = load i32, ptr %4, align 4
%67 = icmp eq i32 %66, 46
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 (...) @getch()
store i32 %69, ptr %4, align 4
br label %70
70: ; preds = %68, %65
store float 1.000000e+00, ptr %6, align 4
br label %71
71: ; preds = %89, %70
%72 = load i32, ptr %4, align 4
%73 = call i64 @isdigit(i32 noundef %72)
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %91
75: ; preds = %71
%76 = load ptr, ptr %3, align 8
%77 = load float, ptr %76, align 4
%78 = fpext float %77 to double
%79 = load i32, ptr %4, align 4
%80 = sub nsw i32 %79, 48
%81 = sitofp i32 %80 to double
%82 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %78, double %81)
%83 = fptrunc double %82 to float
%84 = load ptr, ptr %3, align 8
store float %83, ptr %84, align 4
%85 = load float, ptr %6, align 4
%86 = fpext float %85 to double
%87 = fmul double %86, 1.000000e+01
%88 = fptrunc double %87 to float
store float %88, ptr %6, align 4
br label %89
89: ; preds = %75
%90 = call i32 (...) @getch()
store i32 %90, ptr %4, align 4
br label %71, !llvm.loop !9
91: ; preds = %71
%92 = load i32, ptr %5, align 4
%93 = sitofp i32 %92 to float
%94 = load ptr, ptr %3, align 8
%95 = load float, ptr %94, align 4
%96 = fmul float %95, %93
store float %96, ptr %94, align 4
%97 = load float, ptr %6, align 4
%98 = load ptr, ptr %3, align 8
%99 = load float, ptr %98, align 4
%100 = fdiv float %99, %97
store float %100, ptr %98, align 4
%101 = load i32, ptr %4, align 4
%102 = load i32, ptr @EOF, align 4
%103 = icmp ne i32 %101, %102
br i1 %103, label %104, label %107
104: ; preds = %91
%105 = load i32, ptr %4, align 4
%106 = call i32 @ungetch(i32 noundef %105)
br label %107
107: ; preds = %104, %91
%108 = load i32, ptr %4, align 4
store i32 %108, ptr %2, align 4
br label %109
109: ; preds = %107, %27
%110 = load i32, ptr %2, align 4
ret i32 %110
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpin_qvnhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getfloat(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %8
8: ; preds = %8, %1
%9 = call i32 (...) @getch()
store i32 %9, ptr %4, align 4
%10 = call i64 @isspace(i32 noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %8, label %12, !llvm.loop !6
12: ; preds = %8
%13 = load i32, ptr %4, align 4
%14 = call i64 @isdigit(i32 noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %29, label %16
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr @EOF, align 4
%19 = icmp ne i32 %17, %18
br i1 %19, label %20, label %29
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %21, 43
br i1 %22, label %23, label %29
23: ; preds = %20
%24 = load i32, ptr %4, align 4
%25 = icmp ne i32 %24, 45
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, ptr %4, align 4
%28 = call i32 @ungetch(i32 noundef %27)
store i32 0, ptr %2, align 4
br label %112
29: ; preds = %23, %20, %16, %12
%30 = load i32, ptr %4, align 4
%31 = icmp eq i32 %30, 45
%32 = zext i1 %31 to i64
%33 = select i1 %31, i32 -1, i32 1
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 43
br i1 %35, label %39, label %36
36: ; preds = %29
%37 = load i32, ptr %4, align 4
%38 = icmp eq i32 %37, 45
br i1 %38, label %39, label %48
39: ; preds = %36, %29
%40 = load i32, ptr %4, align 4
store i32 %40, ptr %7, align 4
%41 = call i32 (...) @getch()
store i32 %41, ptr %4, align 4
%42 = call i64 @isdigit(i32 noundef %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %39
%45 = load i32, ptr %7, align 4
%46 = call i32 @ungetch(i32 noundef %45)
br label %47
47: ; preds = %44, %39
br label %48
48: ; preds = %47, %36
%49 = load ptr, ptr %3, align 8
store float 0.000000e+00, ptr %49, align 4
%50 = load i32, ptr %4, align 4
%51 = call i64 @isdigit(i32 noundef %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %.lr.ph, label %66
.lr.ph: ; preds = %48
br label %53
53: ; preds = %.lr.ph, %61
%54 = load ptr, ptr %3, align 8
%55 = load float, ptr %54, align 4
%56 = load i32, ptr %4, align 4
%57 = sub nsw i32 %56, 48
%58 = sitofp i32 %57 to float
%59 = call float @llvm.fmuladd.f32(float 1.000000e+01, float %55, float %58)
%60 = load ptr, ptr %3, align 8
store float %59, ptr %60, align 4
br label %61
61: ; preds = %53
%62 = call i32 (...) @getch()
store i32 %62, ptr %4, align 4
%63 = load i32, ptr %4, align 4
%64 = call i64 @isdigit(i32 noundef %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %53, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %61
br label %66
66: ; preds = %._crit_edge, %48
%67 = load i32, ptr %4, align 4
%68 = icmp eq i32 %67, 46
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = call i32 (...) @getch()
store i32 %70, ptr %4, align 4
br label %71
71: ; preds = %69, %66
store float 1.000000e+00, ptr %6, align 4
%72 = load i32, ptr %4, align 4
%73 = call i64 @isdigit(i32 noundef %72)
%74 = icmp ne i64 %73, 0
br i1 %74, label %.lr.ph2, label %94
.lr.ph2: ; preds = %71
br label %75
75: ; preds = %.lr.ph2, %89
%76 = load ptr, ptr %3, align 8
%77 = load float, ptr %76, align 4
%78 = fpext float %77 to double
%79 = load i32, ptr %4, align 4
%80 = sub nsw i32 %79, 48
%81 = sitofp i32 %80 to double
%82 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %78, double %81)
%83 = fptrunc double %82 to float
%84 = load ptr, ptr %3, align 8
store float %83, ptr %84, align 4
%85 = load float, ptr %6, align 4
%86 = fpext float %85 to double
%87 = fmul double %86, 1.000000e+01
%88 = fptrunc double %87 to float
store float %88, ptr %6, align 4
br label %89
89: ; preds = %75
%90 = call i32 (...) @getch()
store i32 %90, ptr %4, align 4
%91 = load i32, ptr %4, align 4
%92 = call i64 @isdigit(i32 noundef %91)
%93 = icmp ne i64 %92, 0
br i1 %93, label %75, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %89
br label %94
94: ; preds = %._crit_edge3, %71
%95 = load i32, ptr %5, align 4
%96 = sitofp i32 %95 to float
%97 = load ptr, ptr %3, align 8
%98 = load float, ptr %97, align 4
%99 = fmul float %98, %96
store float %99, ptr %97, align 4
%100 = load float, ptr %6, align 4
%101 = load ptr, ptr %3, align 8
%102 = load float, ptr %101, align 4
%103 = fdiv float %102, %100
store float %103, ptr %101, align 4
%104 = load i32, ptr %4, align 4
%105 = load i32, ptr @EOF, align 4
%106 = icmp ne i32 %104, %105
br i1 %106, label %107, label %110
107: ; preds = %94
%108 = load i32, ptr %4, align 4
%109 = call i32 @ungetch(i32 noundef %108)
br label %110
110: ; preds = %107, %94
%111 = load i32, ptr %4, align 4
store i32 %111, ptr %2, align 4
br label %112
112: ; preds = %110, %26
%113 = load i32, ptr %2, align 4
ret i32 %113
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpmyue9o3n.c'
source_filename = "/tmp/tmpmyue9o3n.c"
target datalayout = "e-m:e-p270: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_un = type { i32, i32 }
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"cannot create socket: %m\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"cannot bind %s: %m\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"listen: %m\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @opensocket(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_un, align 4
store ptr %0, ptr %2, align 8
%5 = load i32, ptr @AF_UNIX, align 4
%6 = load i32, ptr @SOCK_STREAM, align 4
%7 = call i32 @socket(i32 noundef %5, i32 noundef %6, i32 noundef 0)
store i32 %7, ptr %3, align 4
%8 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 1
%10 = load i32, ptr @AF_UNIX, align 4
store i32 %10, ptr %9, align 4
%11 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%12 = load i32, ptr %11, align 4
%13 = call i32 @memset(i32 noundef %12, i32 noundef 0, i32 noundef 108)
%14 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %2, align 8
%17 = call i32 @strncpy(i32 noundef %15, ptr noundef %16, i32 noundef 107)
%18 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = call i32 @unlink(i32 noundef %19)
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %1
%24 = call i32 (ptr, ...) @die(ptr noundef @.str)
br label %25
25: ; preds = %23, %1
%26 = load i32, ptr %3, align 4
%27 = call i64 @bind(i32 noundef %26, ptr noundef %4, i32 noundef 8)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @die(ptr noundef @.str.1, i32 noundef %31)
br label %33
33: ; preds = %29, %25
%34 = load i32, ptr %3, align 4
%35 = call i64 @listen(i32 noundef %34, i32 noundef 0)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 (ptr, ...) @die(ptr noundef @.str.2)
br label %39
39: ; preds = %37, %33
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @unlink(i32 noundef) #1
declare i32 @die(ptr noundef, ...) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmyue9o3n.c"
target datalayout = "e-m:e-p270: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_un = type { i32, i32 }
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"cannot create socket: %m\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"cannot bind %s: %m\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"listen: %m\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @opensocket(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_un, align 4
store ptr %0, ptr %2, align 8
%5 = load i32, ptr @AF_UNIX, align 4
%6 = load i32, ptr @SOCK_STREAM, align 4
%7 = call i32 @socket(i32 noundef %5, i32 noundef %6, i32 noundef 0)
store i32 %7, ptr %3, align 4
%8 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 1
%10 = load i32, ptr @AF_UNIX, align 4
store i32 %10, ptr %9, align 4
%11 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%12 = load i32, ptr %11, align 4
%13 = call i32 @memset(i32 noundef %12, i32 noundef 0, i32 noundef 108)
%14 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %2, align 8
%17 = call i32 @strncpy(i32 noundef %15, ptr noundef %16, i32 noundef 107)
%18 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = call i32 @unlink(i32 noundef %19)
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %1
%24 = call i32 (ptr, ...) @die(ptr noundef @.str)
br label %25
25: ; preds = %23, %1
%26 = load i32, ptr %3, align 4
%27 = call i64 @bind(i32 noundef %26, ptr noundef %4, i32 noundef 8)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = getelementptr inbounds %struct.sockaddr_un, ptr %4, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @die(ptr noundef @.str.1, i32 noundef %31)
br label %33
33: ; preds = %29, %25
%34 = load i32, ptr %3, align 4
%35 = call i64 @listen(i32 noundef %34, i32 noundef 0)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 (ptr, ...) @die(ptr noundef @.str.2)
br label %39
39: ; preds = %37, %33
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @unlink(i32 noundef) #1
declare i32 @die(ptr noundef, ...) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp969i_hua.c'
source_filename = "/tmp/tmp969i_hua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unsigned_add3(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
store i32 1, ptr %8, align 4
br label %9
9: ; preds = %25, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp ult i32 %10, %11
br i1 %12, label %13, label %28
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %8, align 4
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = call i32 @_mm_add_si64(i32 noundef %18, i32 noundef %23)
store i32 %24, ptr %7, align 4
br label %25
25: ; preds = %13
%26 = load i32, ptr %8, align 4
%27 = add i32 %26, 1
store i32 %27, ptr %8, align 4
br label %9, !llvm.loop !6
28: ; preds = %9
%29 = load i32, ptr %7, align 4
ret i32 %29
}
declare i32 @_mm_add_si64(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/tmp969i_hua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unsigned_add3(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
store i32 1, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp ult i32 %9, %10
br i1 %11, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %24
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %8, align 4
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %8, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = call i32 @_mm_add_si64(i32 noundef %17, i32 noundef %22)
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %12
%25 = load i32, ptr %8, align 4
%26 = add i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp ult i32 %27, %28
br i1 %29, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %3
%31 = load i32, ptr %7, align 4
ret i32 %31
}
declare i32 @_mm_add_si64(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/tmpqb23xlx2.c'
source_filename = "/tmp/tmpqb23xlx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i64 @chroot(ptr noundef @.str)
%3 = icmp slt i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 -1, ptr %1, align 4
br label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %5, %4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i64 @chroot(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqb23xlx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i64 @chroot(ptr noundef @.str)
%3 = icmp slt i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 -1, ptr %1, align 4
br label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %5, %4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i64 @chroot(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvdhd14rr.c'
source_filename = "/tmp/tmpvdhd14rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvdhd14rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3eqi8zvc.c'
source_filename = "/tmp/tmp3eqi8zvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"USER\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s@\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"~%s > \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_prompt() #0 {
%1 = alloca [1024 x i8], align 16
%2 = alloca [1024 x i8], align 16
%3 = alloca [1024 x i8], align 16
%4 = alloca [1024 x i8], align 16
%5 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 1023
store i8 0, ptr %5, align 1
%6 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%7 = call i64 @getenv(ptr noundef @.str)
%8 = call i32 @strncpy(ptr noundef %6, i64 noundef %7, i32 noundef 1023)
%9 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 1023
store i8 0, ptr %9, align 1
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @gethostname(ptr noundef %10, i32 noundef 1023)
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 1023
store i8 0, ptr %12, align 1
%13 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @getcwd(ptr noundef %13, i32 noundef 1023)
%15 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 1023
store i8 0, ptr %15, align 1
%16 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%17 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%18 = call i64 @strrchr(ptr noundef %17, i8 noundef signext 47)
%19 = add nsw i64 %18, 1
%20 = call i32 @strncpy(ptr noundef %16, i64 noundef %19, i32 noundef 1023)
%21 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%22 = call i32 @printf(ptr noundef @.str.1, ptr noundef %21)
%23 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str.2, ptr noundef %23)
%25 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @printf(ptr noundef @.str.3, ptr noundef %25)
ret void
}
declare i32 @strncpy(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @getenv(ptr noundef) #1
declare i32 @gethostname(ptr noundef, i32 noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i64 @strrchr(ptr noundef, i8 noundef signext) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3eqi8zvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"USER\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s@\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"~%s > \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_prompt() #0 {
%1 = alloca [1024 x i8], align 16
%2 = alloca [1024 x i8], align 16
%3 = alloca [1024 x i8], align 16
%4 = alloca [1024 x i8], align 16
%5 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 1023
store i8 0, ptr %5, align 1
%6 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%7 = call i64 @getenv(ptr noundef @.str)
%8 = call i32 @strncpy(ptr noundef %6, i64 noundef %7, i32 noundef 1023)
%9 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 1023
store i8 0, ptr %9, align 1
%10 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @gethostname(ptr noundef %10, i32 noundef 1023)
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 1023
store i8 0, ptr %12, align 1
%13 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @getcwd(ptr noundef %13, i32 noundef 1023)
%15 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 1023
store i8 0, ptr %15, align 1
%16 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%17 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%18 = call i64 @strrchr(ptr noundef %17, i8 noundef signext 47)
%19 = add nsw i64 %18, 1
%20 = call i32 @strncpy(ptr noundef %16, i64 noundef %19, i32 noundef 1023)
%21 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%22 = call i32 @printf(ptr noundef @.str.1, ptr noundef %21)
%23 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str.2, ptr noundef %23)
%25 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @printf(ptr noundef @.str.3, ptr noundef %25)
ret void
}
declare i32 @strncpy(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @getenv(ptr noundef) #1
declare i32 @gethostname(ptr noundef, i32 noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i64 @strrchr(ptr noundef, i8 noundef signext) #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"}
|
; ModuleID = '/tmp/tmp4b1blxgz.c'
source_filename = "/tmp/tmp4b1blxgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getCopy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %3, align 8
ret ptr %12
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4b1blxgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getCopy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %3, align 8
ret ptr %12
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8l_n4npw.c'
source_filename = "/tmp/tmp8l_n4npw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @direct_read8(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load volatile i32, ptr %3, align 4
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8l_n4npw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @direct_read8(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load volatile i32, ptr %3, align 4
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfwuho7uv.c'
source_filename = "/tmp/tmpfwuho7uv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 8)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds float, ptr %4, i64 0
store float 1.000000e+00, ptr %5, align 4
%6 = load ptr, ptr %1, align 8
%7 = getelementptr inbounds float, ptr %6, i64 1
store float 0x3FF19999A0000000, ptr %7, align 4
%8 = load ptr, ptr %1, align 8
ret ptr %8
}
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/tmpfwuho7uv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 8)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds float, ptr %4, i64 0
store float 1.000000e+00, ptr %5, align 4
%6 = load ptr, ptr %1, align 8
%7 = getelementptr inbounds float, ptr %6, i64 1
store float 0x3FF19999A0000000, ptr %7, align 4
%8 = load ptr, ptr %1, align 8
ret ptr %8
}
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/tmp5zt1x50f.c'
source_filename = "/tmp/tmp5zt1x50f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mult(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
%20 = load i32, ptr %11, align 4
%21 = load i32, ptr %14, align 4
%22 = mul nsw i32 %20, %21
%23 = call ptr @calloc(i32 noundef %22, i32 noundef 8)
%24 = load ptr, ptr %15, align 8
store ptr %23, ptr %24, align 8
%25 = load i32, ptr %14, align 4
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %28
27: ; preds = %7
store i32 0, ptr %8, align 4
br label %86
28: ; preds = %7
store i32 0, ptr %16, align 4
br label %29
29: ; preds = %82, %28
%30 = load i32, ptr %16, align 4
%31 = load i32, ptr %11, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %85
33: ; preds = %29
store i32 0, ptr %17, align 4
br label %34
34: ; preds = %78, %33
%35 = load i32, ptr %17, align 4
%36 = load i32, ptr %14, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %81
38: ; preds = %34
store double 0.000000e+00, ptr %18, align 8
store i32 0, ptr %19, align 4
br label %39
39: ; preds = %64, %38
%40 = load i32, ptr %19, align 4
%41 = load i32, ptr %12, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %67
43: ; preds = %39
%44 = load ptr, ptr %9, align 8
%45 = load i32, ptr %16, align 4
%46 = load i32, ptr %12, align 4
%47 = mul nsw i32 %45, %46
%48 = load i32, ptr %19, align 4
%49 = add nsw i32 %47, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %44, i64 %50
%52 = load double, ptr %51, align 8
%53 = load ptr, ptr %10, align 8
%54 = load i32, ptr %19, align 4
%55 = load i32, ptr %14, align 4
%56 = mul nsw i32 %54, %55
%57 = load i32, ptr %17, align 4
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %53, i64 %59
%61 = load double, ptr %60, align 8
%62 = load double, ptr %18, align 8
%63 = call double @llvm.fmuladd.f64(double %52, double %61, double %62)
store double %63, ptr %18, align 8
br label %64
64: ; preds = %43
%65 = load i32, ptr %19, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %19, align 4
br label %39, !llvm.loop !6
67: ; preds = %39
%68 = load double, ptr %18, align 8
%69 = load ptr, ptr %15, align 8
%70 = load ptr, ptr %69, align 8
%71 = load i32, ptr %16, align 4
%72 = load i32, ptr %14, align 4
%73 = mul nsw i32 %71, %72
%74 = load i32, ptr %17, align 4
%75 = add nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, ptr %70, i64 %76
store double %68, ptr %77, align 8
br label %78
78: ; preds = %67
%79 = load i32, ptr %17, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %17, align 4
br label %34, !llvm.loop !8
81: ; preds = %34
br label %82
82: ; preds = %81
%83 = load i32, ptr %16, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %16, align 4
br label %29, !llvm.loop !9
85: ; preds = %29
store i32 0, ptr %8, align 4
br label %86
86: ; preds = %85, %27
%87 = load i32, ptr %8, align 4
ret i32 %87
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5zt1x50f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mult(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
%20 = load i32, ptr %11, align 4
%21 = load i32, ptr %14, align 4
%22 = mul nsw i32 %20, %21
%23 = call ptr @calloc(i32 noundef %22, i32 noundef 8)
%24 = load ptr, ptr %15, align 8
store ptr %23, ptr %24, align 8
%25 = load i32, ptr %14, align 4
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %28
27: ; preds = %7
store i32 0, ptr %8, align 4
br label %92
28: ; preds = %7
store i32 0, ptr %16, align 4
%29 = load i32, ptr %16, align 4
%30 = load i32, ptr %11, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph5, label %91
.lr.ph5: ; preds = %28
br label %32
32: ; preds = %.lr.ph5, %85
store i32 0, ptr %17, align 4
%33 = load i32, ptr %17, align 4
%34 = load i32, ptr %14, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph2, label %84
.lr.ph2: ; preds = %32
br label %36
36: ; preds = %.lr.ph2, %78
store double 0.000000e+00, ptr %18, align 8
store i32 0, ptr %19, align 4
%37 = load i32, ptr %19, align 4
%38 = load i32, ptr %12, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph, label %67
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %61
%41 = load ptr, ptr %9, align 8
%42 = load i32, ptr %16, align 4
%43 = load i32, ptr %12, align 4
%44 = mul nsw i32 %42, %43
%45 = load i32, ptr %19, align 4
%46 = add nsw i32 %44, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %41, i64 %47
%49 = load double, ptr %48, align 8
%50 = load ptr, ptr %10, align 8
%51 = load i32, ptr %19, align 4
%52 = load i32, ptr %14, align 4
%53 = mul nsw i32 %51, %52
%54 = load i32, ptr %17, align 4
%55 = add nsw i32 %53, %54
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %50, i64 %56
%58 = load double, ptr %57, align 8
%59 = load double, ptr %18, align 8
%60 = call double @llvm.fmuladd.f64(double %49, double %58, double %59)
store double %60, ptr %18, align 8
br label %61
61: ; preds = %40
%62 = load i32, ptr %19, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %19, align 4
%64 = load i32, ptr %19, align 4
%65 = load i32, ptr %12, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %67
67: ; preds = %._crit_edge, %36
%68 = load double, ptr %18, align 8
%69 = load ptr, ptr %15, align 8
%70 = load ptr, ptr %69, align 8
%71 = load i32, ptr %16, align 4
%72 = load i32, ptr %14, align 4
%73 = mul nsw i32 %71, %72
%74 = load i32, ptr %17, align 4
%75 = add nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, ptr %70, i64 %76
store double %68, ptr %77, align 8
br label %78
78: ; preds = %67
%79 = load i32, ptr %17, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %17, align 4
%81 = load i32, ptr %17, align 4
%82 = load i32, ptr %14, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %78
br label %84
84: ; preds = %._crit_edge3, %32
br label %85
85: ; preds = %84
%86 = load i32, ptr %16, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %16, align 4
%88 = load i32, ptr %16, align 4
%89 = load i32, ptr %11, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %32, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %85
br label %91
91: ; preds = %._crit_edge6, %28
store i32 0, ptr %8, align 4
br label %92
92: ; preds = %91, %27
%93 = load i32, ptr %8, align 4
ret i32 %93
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp5d1qgoak.c'
source_filename = "/tmp/tmp5d1qgoak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Fallo al crear el hijo\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"Soy hijo con PID=%d con PPID=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Yo soy su padre mi hijo ha devuelto: %d \0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Yo soy su padre y mi hijo a muerto\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%10 = call i32 (...) @fork()
store i32 %10, ptr %9, align 4
switch i32 %10, label %19 [
i32 -1, label %11
i32 0, label %14
]
11: ; preds = %3
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef -1) #3
unreachable
14: ; preds = %3
%15 = call i32 (...) @getpid()
%16 = call i32 (...) @getppid()
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %16)
%18 = call i32 @exit(i32 noundef 5) #3
unreachable
19: ; preds = %3
%20 = load i32, ptr %9, align 4
%21 = call i32 @waitpid(i32 noundef %20, ptr noundef %8, i32 noundef 0)
%22 = load i32, ptr %8, align 4
%23 = call i32 @WIFEXITED(i32 noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load i32, ptr %8, align 4
%27 = call i32 @WEXITSTATUS(i32 noundef %26)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %27)
br label %31
29: ; preds = %19
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %31
31: ; preds = %29, %25
br label %32
32: ; preds = %31
%33 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5d1qgoak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Fallo al crear el hijo\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"Soy hijo con PID=%d con PPID=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Yo soy su padre mi hijo ha devuelto: %d \0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Yo soy su padre y mi hijo a muerto\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%10 = call i32 (...) @fork()
store i32 %10, ptr %9, align 4
switch i32 %10, label %19 [
i32 -1, label %11
i32 0, label %14
]
11: ; preds = %3
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef -1) #3
unreachable
14: ; preds = %3
%15 = call i32 (...) @getpid()
%16 = call i32 (...) @getppid()
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %16)
%18 = call i32 @exit(i32 noundef 5) #3
unreachable
19: ; preds = %3
%20 = load i32, ptr %9, align 4
%21 = call i32 @waitpid(i32 noundef %20, ptr noundef %8, i32 noundef 0)
%22 = load i32, ptr %8, align 4
%23 = call i32 @WIFEXITED(i32 noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load i32, ptr %8, align 4
%27 = call i32 @WEXITSTATUS(i32 noundef %26)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %27)
br label %31
29: ; preds = %19
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %31
31: ; preds = %29, %25
br label %32
32: ; preds = %31
%33 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbht6vsng.c'
source_filename = "/tmp/tmpbht6vsng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute_hash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
store i32 0, ptr %5, align 4
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %46, %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = getelementptr inbounds i8, ptr %15, i64 -4
%17 = icmp ule ptr %11, %16
br i1 %17, label %18, label %49
18: ; preds = %10
%19 = load ptr, ptr %3, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = shl i32 %21, 24
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = shl i32 %26, 16
%28 = add nsw i32 %22, %27
%29 = load ptr, ptr %3, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 2
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = shl i32 %32, 8
%34 = add nsw i32 %28, %33
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 3
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = add nsw i32 %34, %38
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = lshr i32 %41, 3
%43 = xor i32 %40, %42
%44 = load i32, ptr %5, align 4
%45 = add i32 %44, %43
store i32 %45, ptr %5, align 4
br label %46
46: ; preds = %18
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 4
store ptr %48, ptr %3, align 8
br label %10, !llvm.loop !6
49: ; preds = %10
store i32 0, ptr %4, align 4
br label %50
50: ; preds = %65, %49
%51 = load ptr, ptr %3, align 8
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = icmp ult ptr %51, %55
br i1 %56, label %57, label %68
57: ; preds = %50
%58 = load i32, ptr %4, align 4
%59 = shl i32 %58, 8
store i32 %59, ptr %4, align 4
%60 = load ptr, ptr %3, align 8
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = load i32, ptr %4, align 4
%64 = add i32 %63, %62
store i32 %64, ptr %4, align 4
br label %65
65: ; preds = %57
%66 = load ptr, ptr %3, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %3, align 8
br label %50, !llvm.loop !8
68: ; preds = %50
%69 = load i32, ptr %4, align 4
%70 = load i32, ptr %4, align 4
%71 = lshr i32 %70, 3
%72 = xor i32 %69, %71
%73 = load i32, ptr %5, align 4
%74 = add i32 %73, %72
store i32 %74, ptr %5, align 4
%75 = load i32, ptr %5, align 4
ret i32 %75
}
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbht6vsng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute_hash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
store i32 0, ptr %5, align 4
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = getelementptr inbounds i8, ptr %14, i64 -4
%16 = icmp ule ptr %10, %15
br i1 %16, label %.lr.ph, label %55
.lr.ph: ; preds = %1
br label %17
17: ; preds = %.lr.ph, %45
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = shl i32 %20, 24
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 1
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = shl i32 %25, 16
%27 = add nsw i32 %21, %26
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 2
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = shl i32 %31, 8
%33 = add nsw i32 %27, %32
%34 = load ptr, ptr %3, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 3
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = add nsw i32 %33, %37
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = lshr i32 %40, 3
%42 = xor i32 %39, %41
%43 = load i32, ptr %5, align 4
%44 = add i32 %43, %42
store i32 %44, ptr %5, align 4
br label %45
45: ; preds = %17
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 4
store ptr %47, ptr %3, align 8
%48 = load ptr, ptr %3, align 8
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
%53 = getelementptr inbounds i8, ptr %52, i64 -4
%54 = icmp ule ptr %48, %53
br i1 %54, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %55
55: ; preds = %._crit_edge, %1
store i32 0, ptr %4, align 4
%56 = load ptr, ptr %3, align 8
%57 = load ptr, ptr %2, align 8
%58 = load i32, ptr %6, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = icmp ult ptr %56, %60
br i1 %61, label %.lr.ph2, label %79
.lr.ph2: ; preds = %55
br label %62
62: ; preds = %.lr.ph2, %70
%63 = load i32, ptr %4, align 4
%64 = shl i32 %63, 8
store i32 %64, ptr %4, align 4
%65 = load ptr, ptr %3, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = load i32, ptr %4, align 4
%69 = add i32 %68, %67
store i32 %69, ptr %4, align 4
br label %70
70: ; preds = %62
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %3, align 8
%73 = load ptr, ptr %3, align 8
%74 = load ptr, ptr %2, align 8
%75 = load i32, ptr %6, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = icmp ult ptr %73, %77
br i1 %78, label %62, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %70
br label %79
79: ; preds = %._crit_edge3, %55
%80 = load i32, ptr %4, align 4
%81 = load i32, ptr %4, align 4
%82 = lshr i32 %81, 3
%83 = xor i32 %80, %82
%84 = load i32, ptr %5, align 4
%85 = add i32 %84, %83
store i32 %85, ptr %5, align 4
%86 = load i32, ptr %5, align 4
ret i32 %86
}
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_v1wtkgl.c'
source_filename = "/tmp/tmp_v1wtkgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca float, i64 %12, align 16
store i64 %12, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = zext i32 %15 to i64
%17 = alloca float, i64 %16, align 16
store i64 %16, ptr %8, align 8
store i32 0, ptr %10, align 4
br label %18
18: ; preds = %30, %2
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %33
22: ; preds = %18
%23 = call float @rand_uniformf(float noundef -1.000000e+01, float noundef 1.000000e+01)
%24 = load i32, ptr %10, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, ptr %14, i64 %25
store float %23, ptr %26, align 4
%27 = load i32, ptr %10, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float, ptr %17, i64 %28
store float 0.000000e+00, ptr %29, align 4
br label %30
30: ; preds = %22
%31 = load i32, ptr %10, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %10, align 4
br label %18, !llvm.loop !6
33: ; preds = %18
%34 = call double (...) @tic()
store double %34, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %35
35: ; preds = %50, %33
%36 = load i32, ptr %10, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %53
39: ; preds = %35
%40 = load i32, ptr %4, align 4
%41 = call i32 @stdlib_strided_sramp(i32 noundef %40, ptr noundef %14, i32 noundef 1, ptr noundef %17, i32 noundef 1)
%42 = getelementptr inbounds float, ptr %17, i64 0
%43 = load float, ptr %42, align 16
%44 = getelementptr inbounds float, ptr %17, i64 0
%45 = load float, ptr %44, align 16
%46 = fcmp une float %43, %45
br i1 %46, label %47, label %49
47: ; preds = %39
%48 = call i32 @printf(ptr noundef @.str)
br label %53
49: ; preds = %39
br label %50
50: ; preds = %49
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %10, align 4
br label %35, !llvm.loop !8
53: ; preds = %47, %35
%54 = call double (...) @tic()
%55 = load double, ptr %9, align 8
%56 = fsub double %54, %55
store double %56, ptr %5, align 8
%57 = getelementptr inbounds float, ptr %17, i64 0
%58 = load float, ptr %57, align 16
%59 = getelementptr inbounds float, ptr %17, i64 0
%60 = load float, ptr %59, align 16
%61 = fcmp une float %58, %60
br i1 %61, label %62, label %64
62: ; preds = %53
%63 = call i32 @printf(ptr noundef @.str)
br label %64
64: ; preds = %62, %53
%65 = load double, ptr %5, align 8
%66 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %66)
ret double %65
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare float @rand_uniformf(float noundef, float noundef) #2
declare double @tic(...) #2
declare i32 @stdlib_strided_sramp(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_v1wtkgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca float, i64 %12, align 16
store i64 %12, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = zext i32 %15 to i64
%17 = alloca float, i64 %16, align 16
store i64 %16, ptr %8, align 8
store i32 0, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %29
%22 = call float @rand_uniformf(float noundef -1.000000e+01, float noundef 1.000000e+01)
%23 = load i32, ptr %10, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, ptr %14, i64 %24
store float %22, ptr %25, align 4
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds float, ptr %17, i64 %27
store float 0.000000e+00, ptr %28, align 4
br label %29
29: ; preds = %21
%30 = load i32, ptr %10, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %10, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %2
%36 = call double (...) @tic()
store double %36, ptr %9, align 8
store i32 0, ptr %10, align 4
%37 = load i32, ptr %10, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %35
br label %40
40: ; preds = %.lr.ph2, %51
%41 = load i32, ptr %4, align 4
%42 = call i32 @stdlib_strided_sramp(i32 noundef %41, ptr noundef %14, i32 noundef 1, ptr noundef %17, i32 noundef 1)
%43 = getelementptr inbounds float, ptr %17, i64 0
%44 = load float, ptr %43, align 16
%45 = getelementptr inbounds float, ptr %17, i64 0
%46 = load float, ptr %45, align 16
%47 = fcmp une float %44, %46
br i1 %47, label %48, label %50
48: ; preds = %40
%49 = call i32 @printf(ptr noundef @.str)
br label %57
50: ; preds = %40
br label %51
51: ; preds = %50
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %3, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %40, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %51
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %35
br label %57
57: ; preds = %.loopexit, %48
%58 = call double (...) @tic()
%59 = load double, ptr %9, align 8
%60 = fsub double %58, %59
store double %60, ptr %5, align 8
%61 = getelementptr inbounds float, ptr %17, i64 0
%62 = load float, ptr %61, align 16
%63 = getelementptr inbounds float, ptr %17, i64 0
%64 = load float, ptr %63, align 16
%65 = fcmp une float %62, %64
br i1 %65, label %66, label %68
66: ; preds = %57
%67 = call i32 @printf(ptr noundef @.str)
br label %68
68: ; preds = %66, %57
%69 = load double, ptr %5, align 8
%70 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %70)
ret double %69
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare float @rand_uniformf(float noundef, float noundef) #2
declare double @tic(...) #2
declare i32 @stdlib_strided_sramp(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpm93grcb9.c'
source_filename = "/tmp/tmpm93grcb9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [419 x i8] c"clitent $path-to-file-will-be-translated $path-storename-in-serverside $server-ip $server-port \0A$path-to-file-will-be-translated : absolute path of file that will be transed \0A$path-storename-in-serverside : if the server receive the content, where and by which name it will be stored \0A$server-ip : internet address of the server listen on given port that will receiving the data \0A$server-port : internet address port \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @transferusage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm93grcb9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [419 x i8] c"clitent $path-to-file-will-be-translated $path-storename-in-serverside $server-ip $server-port \0A$path-to-file-will-be-translated : absolute path of file that will be transed \0A$path-storename-in-serverside : if the server receive the content, where and by which name it will be stored \0A$server-ip : internet address of the server listen on given port that will receiving the data \0A$server-port : internet address port \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @transferusage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbzjgpcd6.c'
source_filename = "/tmp/tmpbzjgpcd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Enter No.%d element: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\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 ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 8, ptr %2, align 4
%5 = call ptr @llvm.stacksave()
store ptr %5, ptr %3, align 8
%6 = alloca double, i64 8, align 16
%7 = alloca double, i64 8, align 16
store i32 0, ptr %4, align 4
%8 = getelementptr inbounds double, ptr %7, i64 0
store double 0.000000e+00, ptr %8, align 16
br label %9
9: ; preds = %55, %0
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 8
br i1 %11, label %12, label %56
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, ptr %6, i64 %17
%19 = call i64 @scanf(ptr noundef @.str.1, ptr noundef %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %49
21: ; preds = %12
%22 = load i32, ptr %4, align 4
%23 = icmp eq 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 double, ptr %6, i64 %26
%28 = load double, ptr %27, align 8
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %7, i64 %30
store double %28, ptr %31, align 8
br label %46
32: ; preds = %21
%33 = load i32, ptr %4, align 4
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %7, i64 %35
%37 = load double, ptr %36, align 8
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %6, i64 %39
%41 = load double, ptr %40, align 8
%42 = fadd double %37, %41
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, ptr %7, i64 %44
store double %42, ptr %45, align 8
br label %46
46: ; preds = %32, %24
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %4, align 4
br label %49
49: ; preds = %46, %12
br label %50
50: ; preds = %54, %49
%51 = call signext i8 (...) @getchar()
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 10
br i1 %53, label %54, label %55
54: ; preds = %50
br label %50, !llvm.loop !6
55: ; preds = %50
br label %9, !llvm.loop !8
56: ; preds = %9
%57 = call i32 @printArray(ptr noundef %6, i32 noundef 8)
%58 = call i32 @printArray(ptr noundef %7, i32 noundef 8)
store i32 0, ptr %1, align 4
%59 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %59)
%60 = load i32, ptr %1, align 4
ret i32 %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i64 @scanf(ptr noundef, ptr noundef) #2
declare signext i8 @getchar(...) #2
declare i32 @printArray(ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbzjgpcd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Enter No.%d element: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\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 ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 8, ptr %2, align 4
%5 = call ptr @llvm.stacksave()
store ptr %5, ptr %3, align 8
%6 = alloca double, i64 8, align 16
%7 = alloca double, i64 8, align 16
store i32 0, ptr %4, align 4
%8 = getelementptr inbounds double, ptr %7, i64 0
store double 0.000000e+00, ptr %8, align 16
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 8
br i1 %10, label %.lr.ph, label %56
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %53
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 1
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, ptr %6, i64 %16
%18 = call i64 @scanf(ptr noundef @.str.1, ptr noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %48
20: ; preds = %11
%21 = load i32, ptr %4, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %6, i64 %25
%27 = load double, ptr %26, align 8
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %7, i64 %29
store double %27, ptr %30, align 8
br label %45
31: ; preds = %20
%32 = load i32, ptr %4, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, ptr %7, i64 %34
%36 = load double, ptr %35, align 8
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %6, i64 %38
%40 = load double, ptr %39, align 8
%41 = fadd double %36, %40
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %7, i64 %43
store double %41, ptr %44, align 8
br label %45
45: ; preds = %31, %23
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %4, align 4
br label %48
48: ; preds = %45, %11
br label %49
49: ; preds = %49, %48
%50 = call signext i8 (...) @getchar()
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 10
br i1 %52, label %49, label %53, !llvm.loop !6
53: ; preds = %49
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %54, 8
br i1 %55, label %11, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %53
br label %56
56: ; preds = %._crit_edge, %0
%57 = call i32 @printArray(ptr noundef %6, i32 noundef 8)
%58 = call i32 @printArray(ptr noundef %7, i32 noundef 8)
store i32 0, ptr %1, align 4
%59 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %59)
%60 = load i32, ptr %1, align 4
ret i32 %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i64 @scanf(ptr noundef, ptr noundef) #2
declare signext i8 @getchar(...) #2
declare i32 @printArray(ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpfpoteed1.c'
source_filename = "/tmp/tmpfpoteed1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pg_finfo_textcopyfunc() #0 {
%1 = call ptr (...) @GppcFinfoV1()
ret ptr %1
}
declare ptr @GppcFinfoV1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfpoteed1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pg_finfo_textcopyfunc() #0 {
%1 = call ptr (...) @GppcFinfoV1()
ret ptr %1
}
declare ptr @GppcFinfoV1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnwla9yiu.c'
source_filename = "/tmp/tmpnwla9yiu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [50 x i32], align 16
%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 i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %122, %0
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %125
14: ; preds = %10
%15 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %15)
store i32 1000, ptr %6, align 4
store i32 0, ptr %4, align 4
br label %17
17: ; preds = %42, %14
%18 = load i32, ptr %4, align 4
%19 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%20 = load i32, ptr %19, align 16
%21 = icmp slt i32 %18, %20
br i1 %21, label %22, label %45
22: ; preds = %17
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %25
%27 = call i32 @scanf(ptr noundef @.str, ptr noundef %26)
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %41
35: ; preds = %22
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %38
%40 = load i32, ptr %39, align 4
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %35, %22
br label %42
42: ; preds = %41
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
br label %17, !llvm.loop !6
45: ; preds = %17
%46 = load i32, ptr %6, align 4
store i32 %46, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %47
47: ; preds = %79, %45
%48 = load i32, ptr %8, align 4
%49 = icmp sgt i32 %48, 1
br i1 %49, label %50, label %80
50: ; preds = %47
store i32 1, ptr %4, align 4
br label %51
51: ; preds = %68, %50
%52 = load i32, ptr %4, align 4
%53 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%54 = load i32, ptr %53, align 16
%55 = icmp sle i32 %52, %54
br i1 %55, label %56, label %71
56: ; preds = %51
%57 = load i32, ptr %4, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load i32, ptr %8, align 4
%62 = srem i32 %60, %61
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %56
%65 = load i32, ptr %8, align 4
%66 = add nsw i32 %65, -1
store i32 %66, ptr %8, align 4
br label %71
67: ; preds = %56
br label %68
68: ; preds = %67
%69 = load i32, ptr %4, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %4, align 4
br label %51, !llvm.loop !8
71: ; preds = %64, %51
%72 = load i32, ptr %4, align 4
%73 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%74 = load i32, ptr %73, align 16
%75 = add nsw i32 %74, 1
%76 = icmp eq i32 %72, %75
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = load i32, ptr %8, align 4
store i32 %78, ptr %6, align 4
store i32 1, ptr %7, align 4
br label %80
79: ; preds = %71
br label %47, !llvm.loop !9
80: ; preds = %77, %47
%81 = load i32, ptr %7, align 4
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %103
83: ; preds = %80
store i32 0, ptr %4, align 4
br label %84
84: ; preds = %98, %83
%85 = load i32, ptr %4, align 4
%86 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%87 = load i32, ptr %86, align 16
%88 = icmp slt i32 %85, %87
br i1 %88, label %89, label %101
89: ; preds = %84
%90 = load i32, ptr %4, align 4
%91 = add nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %92
%94 = load i32, ptr %93, align 4
%95 = load i32, ptr %6, align 4
%96 = sdiv i32 %94, %95
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %96)
br label %98
98: ; preds = %89
%99 = load i32, ptr %4, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %4, align 4
br label %84, !llvm.loop !10
101: ; preds = %84
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %121
103: ; preds = %80
store i32 0, ptr %4, align 4
br label %104
104: ; preds = %116, %103
%105 = load i32, ptr %4, align 4
%106 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%107 = load i32, ptr %106, align 16
%108 = icmp slt i32 %105, %107
br i1 %108, label %109, label %119
109: ; preds = %104
%110 = load i32, ptr %4, align 4
%111 = add nsw i32 %110, 1
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %112
%114 = load i32, ptr %113, align 4
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %114)
br label %116
116: ; preds = %109
%117 = load i32, ptr %4, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %4, align 4
br label %104, !llvm.loop !11
119: ; preds = %104
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %121
121: ; preds = %119, %101
br label %122
122: ; preds = %121
%123 = load i32, ptr %5, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %5, align 4
br label %10, !llvm.loop !12
125: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnwla9yiu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [50 x i32], align 16
%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 i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph13, label %136
.lr.ph13: ; preds = %0
br label %13
13: ; preds = %.lr.ph13, %130
%14 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14)
store i32 1000, ptr %6, align 4
store i32 0, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%18 = load i32, ptr %17, align 16
%19 = icmp slt i32 %16, %18
br i1 %19, label %.lr.ph, label %46
.lr.ph: ; preds = %13
br label %20
20: ; preds = %.lr.ph, %40
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %23
%25 = call i32 @scanf(ptr noundef @.str, ptr noundef %24)
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %39
33: ; preds = %20
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
store i32 %38, ptr %6, align 4
br label %39
39: ; preds = %33, %20
br label %40
40: ; preds = %39
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
%43 = load i32, ptr %4, align 4
%44 = load i32, ptr %17, align 16
%45 = icmp slt i32 %43, %44
br i1 %45, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %13
%47 = load i32, ptr %6, align 4
store i32 %47, ptr %8, align 4
store i32 0, ptr %7, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp sgt i32 %48, 1
br i1 %49, label %.lr.ph5, label %.loopexit1
.lr.ph5: ; preds = %46
br label %53
50: ; preds = %76
%51 = load i32, ptr %8, align 4
%52 = icmp sgt i32 %51, 1
br i1 %52, label %53, label %..loopexit1_crit_edge, !llvm.loop !8
53: ; preds = %.lr.ph5, %50
store i32 1, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%56 = load i32, ptr %55, align 16
%57 = icmp sle i32 %54, %56
br i1 %57, label %.lr.ph3, label %.loopexit
.lr.ph3: ; preds = %53
br label %58
58: ; preds = %.lr.ph3, %70
%59 = load i32, ptr %4, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load i32, ptr %8, align 4
%64 = srem i32 %62, %63
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %58
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, -1
store i32 %68, ptr %8, align 4
br label %76
69: ; preds = %58
br label %70
70: ; preds = %69
%71 = load i32, ptr %4, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %4, align 4
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr %55, align 16
%75 = icmp sle i32 %73, %74
br i1 %75, label %58, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %70
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %53
br label %76
76: ; preds = %.loopexit, %66
%77 = load i32, ptr %4, align 4
%78 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%79 = load i32, ptr %78, align 16
%80 = add nsw i32 %79, 1
%81 = icmp eq i32 %77, %80
br i1 %81, label %82, label %50
82: ; preds = %76
%83 = load i32, ptr %8, align 4
store i32 %83, ptr %6, align 4
store i32 1, ptr %7, align 4
br label %84
..loopexit1_crit_edge: ; preds = %50
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %46
br label %84
84: ; preds = %.loopexit1, %82
%85 = load i32, ptr %7, align 4
%86 = icmp eq i32 %85, 1
br i1 %86, label %87, label %109
87: ; preds = %84
store i32 0, ptr %4, align 4
%88 = load i32, ptr %4, align 4
%89 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%90 = load i32, ptr %89, align 16
%91 = icmp slt i32 %88, %90
br i1 %91, label %.lr.ph10, label %107
.lr.ph10: ; preds = %87
br label %92
92: ; preds = %.lr.ph10, %101
%93 = load i32, ptr %4, align 4
%94 = add nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %95
%97 = load i32, ptr %96, align 4
%98 = load i32, ptr %6, align 4
%99 = sdiv i32 %97, %98
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %99)
br label %101
101: ; preds = %92
%102 = load i32, ptr %4, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %4, align 4
%104 = load i32, ptr %4, align 4
%105 = load i32, ptr %89, align 16
%106 = icmp slt i32 %104, %105
br i1 %106, label %92, label %._crit_edge11, !llvm.loop !10
._crit_edge11: ; preds = %101
br label %107
107: ; preds = %._crit_edge11, %87
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %129
109: ; preds = %84
store i32 0, ptr %4, align 4
%110 = load i32, ptr %4, align 4
%111 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 0
%112 = load i32, ptr %111, align 16
%113 = icmp slt i32 %110, %112
br i1 %113, label %.lr.ph7, label %127
.lr.ph7: ; preds = %109
br label %114
114: ; preds = %.lr.ph7, %121
%115 = load i32, ptr %4, align 4
%116 = add nsw i32 %115, 1
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %117
%119 = load i32, ptr %118, align 4
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %119)
br label %121
121: ; preds = %114
%122 = load i32, ptr %4, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %4, align 4
%124 = load i32, ptr %4, align 4
%125 = load i32, ptr %111, align 16
%126 = icmp slt i32 %124, %125
br i1 %126, label %114, label %._crit_edge8, !llvm.loop !11
._crit_edge8: ; preds = %121
br label %127
127: ; preds = %._crit_edge8, %109
%128 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %129
129: ; preds = %127, %107
br label %130
130: ; preds = %129
%131 = load i32, ptr %5, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %5, align 4
%133 = load i32, ptr %5, align 4
%134 = load i32, ptr %2, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %13, label %._crit_edge14, !llvm.loop !12
._crit_edge14: ; preds = %130
br label %136
136: ; preds = %._crit_edge14, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpe1o2mgfl.c'
source_filename = "/tmp/tmpe1o2mgfl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CONSOL_SendString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load i8, ptr %8, align 1
%11 = sext i8 %10 to i32
%12 = call i32 @CONSOL_SendCh(i32 noundef %11)
br label %3, !llvm.loop !6
13: ; preds = %3
ret void
}
declare i32 @CONSOL_SendCh(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/tmpe1o2mgfl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CONSOL_SendString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = call i32 @CONSOL_SendCh(i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %15
15: ; preds = %._crit_edge, %1
ret void
}
declare i32 @CONSOL_SendCh(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/tmp73z9_krx.c'
source_filename = "/tmp/tmp73z9_krx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @par2lpc(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds double, ptr %9, i64 0
%11 = load double, ptr %10, align 8
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
store double %11, ptr %13, align 8
store i32 1, ptr %8, align 4
br label %14
14: ; preds = %57, %3
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %60
18: ; preds = %14
store i32 1, ptr %7, align 4
br label %19
19: ; preds = %46, %18
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %49
23: ; preds = %19
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = load double, ptr %32, align 8
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %7, align 4
%37 = sub nsw i32 %35, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %34, i64 %38
%40 = load double, ptr %39, align 8
%41 = call double @llvm.fmuladd.f64(double %33, double %40, double %28)
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, ptr %42, i64 %44
store double %41, ptr %45, align 8
br label %46
46: ; preds = %23
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
br label %19, !llvm.loop !6
49: ; preds = %19
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds double, ptr %50, i64 1
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds double, ptr %52, i64 1
%54 = load i32, ptr %8, align 4
%55 = sub nsw i32 %54, 1
%56 = call i32 @movem(ptr noundef %51, ptr noundef %53, i32 noundef 8, i32 noundef %55)
br label %57
57: ; preds = %49
%58 = load i32, ptr %8, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %8, align 4
br label %14, !llvm.loop !8
60: ; preds = %14
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %6, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
%65 = load double, ptr %64, align 8
%66 = load ptr, ptr %5, align 8
%67 = load i32, ptr %6, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, ptr %66, i64 %68
store double %65, ptr %69, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @movem(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp73z9_krx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @par2lpc(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds double, ptr %9, i64 0
%11 = load double, ptr %10, align 8
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
store double %11, ptr %13, align 8
store i32 1, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %.lr.ph2, label %64
.lr.ph2: ; preds = %3
br label %17
17: ; preds = %.lr.ph2, %58
store i32 1, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %50
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %44
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %22, i64 %24
%26 = load double, ptr %25, align 8
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %27, i64 %29
%31 = load double, ptr %30, align 8
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %7, align 4
%35 = sub nsw i32 %33, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %32, i64 %36
%38 = load double, ptr %37, align 8
%39 = call double @llvm.fmuladd.f64(double %31, double %38, double %26)
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %40, i64 %42
store double %39, ptr %43, align 8
br label %44
44: ; preds = %21
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %17
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds double, ptr %51, i64 1
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds double, ptr %53, i64 1
%55 = load i32, ptr %8, align 4
%56 = sub nsw i32 %55, 1
%57 = call i32 @movem(ptr noundef %52, ptr noundef %54, i32 noundef 8, i32 noundef %56)
br label %58
58: ; preds = %50
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr %6, align 4
%63 = icmp sle i32 %61, %62
br i1 %63, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %64
64: ; preds = %._crit_edge3, %3
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
%69 = load double, ptr %68, align 8
%70 = load ptr, ptr %5, align 8
%71 = load i32, ptr %6, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, ptr %70, i64 %72
store double %69, ptr %73, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @movem(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_pdtdlzp.c'
source_filename = "/tmp/tmp_pdtdlzp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"n = %d, n squared = %d, n cubed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = mul nsw i32 %5, %6
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 %8, %9
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %12, i32 noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_pdtdlzp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"n = %d, n squared = %d, n cubed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = mul nsw i32 %5, %6
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 %8, %9
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %12, i32 noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn001vsbg.c'
source_filename = "/tmp/tmpn001vsbg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pkg_getopt(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @getopt_internal(i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef null, ptr noundef null, i32 noundef 0)
ret i32 %10
}
declare i32 @getopt_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn001vsbg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pkg_getopt(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @getopt_internal(i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef null, ptr noundef null, i32 noundef 0)
ret i32 %10
}
declare i32 @getopt_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1vvag46b.c'
source_filename = "/tmp/tmp1vvag46b.c"
target datalayout = "e-m:e-p270: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/tmp1vvag46b.c"
target datalayout = "e-m:e-p270: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/tmpq9oxy0xn.c'
source_filename = "/tmp/tmpq9oxy0xn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rul__emit_stack_tmp_end() #0 {
%1 = call i32 (...) @rul___emit_decr_indent()
%2 = call i32 (...) @rul___emit_decr_indent()
%3 = call i32 (...) @rul___emit_eos_and_newline()
ret void
}
declare i32 @rul___emit_decr_indent(...) #1
declare i32 @rul___emit_eos_and_newline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq9oxy0xn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rul__emit_stack_tmp_end() #0 {
%1 = call i32 (...) @rul___emit_decr_indent()
%2 = call i32 (...) @rul___emit_decr_indent()
%3 = call i32 (...) @rul___emit_eos_and_newline()
ret void
}
declare i32 @rul___emit_decr_indent(...) #1
declare i32 @rul___emit_eos_and_newline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf6veet0j.c'
source_filename = "/tmp/tmpf6veet0j.c"
target datalayout = "e-m:e-p270: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/tmpf6veet0j.c"
target datalayout = "e-m:e-p270: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/tmp83tu9llt.c'
source_filename = "/tmp/tmp83tu9llt.c"
target datalayout = "e-m:e-p270: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/tmp83tu9llt.c"
target datalayout = "e-m:e-p270: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/tmpmy438i0u.c'
source_filename = "/tmp/tmpmy438i0u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"m = %d, n = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @valarr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = mul nsw i32 2, %9
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %5, align 8
%13 = alloca double, i64 %11, align 16
store i64 %11, ptr %6, align 8
%14 = mul nuw i64 8, %11
%15 = udiv i64 %14, 8
%16 = trunc i64 %15 to i32
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %4, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18)
store i32 0, ptr %8, align 4
br label %20
20: ; preds = %44, %2
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %47
24: ; preds = %20
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %25, i64 %27
%29 = load double, ptr %28, align 8
%30 = load i32, ptr %8, align 4
%31 = mul nsw i32 2, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %13, i64 %32
store double %29, ptr %33, align 8
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
%38 = load double, ptr %37, align 8
%39 = load i32, ptr %8, align 4
%40 = mul nsw i32 2, %39
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %13, i64 %42
store double %38, ptr %43, align 8
br label %44
44: ; preds = %24
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %8, align 4
br label %20, !llvm.loop !6
47: ; preds = %20
%48 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %48)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmy438i0u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"m = %d, n = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @valarr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = mul nsw i32 2, %9
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %5, align 8
%13 = alloca double, i64 %11, align 16
store i64 %11, ptr %6, align 8
%14 = mul nuw i64 8, %11
%15 = udiv i64 %14, 8
%16 = trunc i64 %15 to i32
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %4, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18)
store i32 0, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %49
.lr.ph: ; preds = %2
br label %23
23: ; preds = %.lr.ph, %43
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
%29 = load i32, ptr %8, align 4
%30 = mul nsw i32 2, %29
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %13, i64 %31
store double %28, ptr %32, align 8
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %33, i64 %35
%37 = load double, ptr %36, align 8
%38 = load i32, ptr %8, align 4
%39 = mul nsw i32 2, %38
%40 = add nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %13, i64 %41
store double %37, ptr %42, align 8
br label %43
43: ; preds = %23
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %4, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %2
%50 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %50)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqamzxl6e.c'
source_filename = "/tmp/tmpqamzxl6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"I'M THE BOSS\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"something something\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"whatever whatever\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_functions() #0 {
%1 = alloca [100 x i8], align 16
%2 = alloca ptr, align 8
store ptr @.str, ptr %2, align 8
%3 = call i32 @puts(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @gets(ptr noundef %5)
%7 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @puts(ptr noundef %7)
%9 = call i32 @_exit(i32 noundef 0) #3
unreachable
}
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @gets(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/tmpqamzxl6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"I'M THE BOSS\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"something something\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"whatever whatever\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_functions() #0 {
%1 = alloca [100 x i8], align 16
%2 = alloca ptr, align 8
store ptr @.str, ptr %2, align 8
%3 = call i32 @puts(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @gets(ptr noundef %5)
%7 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @puts(ptr noundef %7)
%9 = call i32 @_exit(i32 noundef 0) #3
unreachable
}
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @gets(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/tmpymltgo7l.c'
source_filename = "/tmp/tmpymltgo7l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"u8\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 @outPCM(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load ptr, ptr %11, align 8
%16 = load ptr, ptr %12, align 8
%17 = load ptr, ptr %13, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = call i32 @declArray(ptr noundef %15, ptr noundef %16, ptr noundef @.str, ptr noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef 1)
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %9, align 4
%23 = load ptr, ptr %11, align 8
%24 = call i32 @outS(ptr noundef %21, i32 noundef 0, i32 noundef %22, ptr noundef %23, i32 noundef 1)
%25 = load ptr, ptr %11, align 8
%26 = call i32 @fprintf(ptr noundef %25, ptr noundef @.str.1)
ret void
}
declare i32 @declArray(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @outS(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(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/tmpymltgo7l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"u8\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 @outPCM(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load ptr, ptr %11, align 8
%16 = load ptr, ptr %12, align 8
%17 = load ptr, ptr %13, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = call i32 @declArray(ptr noundef %15, ptr noundef %16, ptr noundef @.str, ptr noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef 1)
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %9, align 4
%23 = load ptr, ptr %11, align 8
%24 = call i32 @outS(ptr noundef %21, i32 noundef 0, i32 noundef %22, ptr noundef %23, i32 noundef 1)
%25 = load ptr, ptr %11, align 8
%26 = call i32 @fprintf(ptr noundef %25, ptr noundef @.str.1)
ret void
}
declare i32 @declArray(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @outS(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(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/tmpjaq0yr2f.c'
source_filename = "/tmp/tmpjaq0yr2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Sweeping (text) alpha...\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" done\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Sweeping colors...\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Getting size...\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c" done. Size is %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Sweeping size...\00", align 1
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @TextTest(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 255, ptr %7, align 4
br label %14
14: ; preds = %25, %3
%15 = load i32, ptr %7, align 4
%16 = icmp sge i32 %15, -255
br i1 %16, label %17, label %28
17: ; preds = %14
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %7, align 4
%22 = call i32 @abs(i32 noundef %21) #3
%23 = call i32 @SetTextAlpha(ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %22)
%24 = call i32 @usleep(i32 noundef 20000)
br label %25
25: ; preds = %17
%26 = load i32, ptr %7, align 4
%27 = sub nsw i32 %26, 8
store i32 %27, ptr %7, align 4
br label %14, !llvm.loop !6
28: ; preds = %14
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %6, align 4
%32 = call i32 @SetTextAlpha(ptr noundef %29, ptr noundef %30, i32 noundef %31, i32 noundef 255)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 255, ptr %8, align 4
br label %35
35: ; preds = %45, %28
%36 = load i32, ptr %8, align 4
%37 = icmp sge i32 %36, 0
br i1 %37, label %38, label %48
38: ; preds = %35
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %8, align 4
%43 = call i32 @SetTextColor(ptr noundef %39, ptr noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef 255, i32 noundef 255)
%44 = call i32 @usleep(i32 noundef 20000)
br label %45
45: ; preds = %38
%46 = load i32, ptr %8, align 4
%47 = sub nsw i32 %46, 8
store i32 %47, ptr %8, align 4
br label %35, !llvm.loop !8
48: ; preds = %35
store i32 255, ptr %9, align 4
br label %49
49: ; preds = %59, %48
%50 = load i32, ptr %9, align 4
%51 = icmp sge i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %49
%53 = load ptr, ptr %4, align 8
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr %9, align 4
%57 = call i32 @SetTextColor(ptr noundef %53, ptr noundef %54, i32 noundef %55, i32 noundef 0, i32 noundef %56, i32 noundef 255)
%58 = call i32 @usleep(i32 noundef 20000)
br label %59
59: ; preds = %52
%60 = load i32, ptr %9, align 4
%61 = sub nsw i32 %60, 8
store i32 %61, ptr %9, align 4
br label %49, !llvm.loop !9
62: ; preds = %49
store i32 255, ptr %10, align 4
br label %63
63: ; preds = %73, %62
%64 = load i32, ptr %10, align 4
%65 = icmp sge i32 %64, 0
br i1 %65, label %66, label %76
66: ; preds = %63
%67 = load ptr, ptr %4, align 8
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %6, align 4
%70 = load i32, ptr %10, align 4
%71 = call i32 @SetTextColor(ptr noundef %67, ptr noundef %68, i32 noundef %69, i32 noundef 0, i32 noundef 0, i32 noundef %70)
%72 = call i32 @usleep(i32 noundef 20000)
br label %73
73: ; preds = %66
%74 = load i32, ptr %10, align 4
%75 = sub nsw i32 %74, 8
store i32 %75, ptr %10, align 4
br label %63, !llvm.loop !10
76: ; preds = %63
%77 = load ptr, ptr %4, align 8
%78 = load ptr, ptr %5, align 8
%79 = load i32, ptr %6, align 4
%80 = call i32 @SetTextColor(ptr noundef %77, ptr noundef %78, i32 noundef %79, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%83 = load ptr, ptr %4, align 8
%84 = load ptr, ptr %5, align 8
%85 = load i32, ptr %6, align 4
%86 = call i32 @GetTextSize(ptr noundef %83, ptr noundef %84, i32 noundef %85)
store i32 %86, ptr %11, align 4
%87 = load i32, ptr %11, align 4
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %87)
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store float 0.000000e+00, ptr %12, align 4
br label %90
90: ; preds = %106, %76
%91 = load float, ptr %12, align 4
%92 = load float, ptr @M_PI, align 4
%93 = fcmp ole float %91, %92
br i1 %93, label %94, label %114
94: ; preds = %90
%95 = load ptr, ptr %4, align 8
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %6, align 4
%98 = load i32, ptr %11, align 4
%99 = load float, ptr %12, align 4
%100 = call i32 @sin(float noundef %99)
%101 = mul nsw i32 3, %100
%102 = add nsw i32 1, %101
%103 = mul nsw i32 %98, %102
%104 = call i32 @SetTextSize(ptr noundef %95, ptr noundef %96, i32 noundef %97, i32 noundef %103)
%105 = call i32 @usleep(i32 noundef 20000)
br label %106
106: ; preds = %94
%107 = load float, ptr @M_PI, align 4
%108 = fpext float %107 to double
%109 = fdiv double %108, 1.280000e+02
%110 = load float, ptr %12, align 4
%111 = fpext float %110 to double
%112 = fadd double %111, %109
%113 = fptrunc double %112 to float
store float %113, ptr %12, align 4
br label %90, !llvm.loop !11
114: ; preds = %90
%115 = load ptr, ptr %4, align 8
%116 = load ptr, ptr %5, align 8
%117 = load i32, ptr %6, align 4
%118 = load i32, ptr %11, align 4
%119 = call i32 @SetTextSize(ptr noundef %115, ptr noundef %116, i32 noundef %117, i32 noundef %118)
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%121 = call i32 @sleep(i32 noundef 5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @SetTextAlpha(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
declare i32 @usleep(i32 noundef) #1
declare i32 @SetTextColor(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @GetTextSize(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @SetTextSize(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sin(float noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjaq0yr2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Sweeping (text) alpha...\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" done\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Sweeping colors...\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Getting size...\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c" done. Size is %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Sweeping size...\00", align 1
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @TextTest(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 255, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp sge i32 %14, -255
br i1 %15, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %24
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = call i32 @abs(i32 noundef %20) #3
%22 = call i32 @SetTextAlpha(ptr noundef %17, ptr noundef %18, i32 noundef %19, i32 noundef %21)
%23 = call i32 @usleep(i32 noundef 20000)
br label %24
24: ; preds = %16
%25 = load i32, ptr %7, align 4
%26 = sub nsw i32 %25, 8
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp sge i32 %27, -255
br i1 %28, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %3
%30 = load ptr, ptr %4, align 8
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %6, align 4
%33 = call i32 @SetTextAlpha(ptr noundef %30, ptr noundef %31, i32 noundef %32, i32 noundef 255)
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 255, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp sge i32 %36, 0
br i1 %37, label %.lr.ph2, label %50
.lr.ph2: ; preds = %29
br label %38
38: ; preds = %.lr.ph2, %45
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %8, align 4
%43 = call i32 @SetTextColor(ptr noundef %39, ptr noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef 255, i32 noundef 255)
%44 = call i32 @usleep(i32 noundef 20000)
br label %45
45: ; preds = %38
%46 = load i32, ptr %8, align 4
%47 = sub nsw i32 %46, 8
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp sge i32 %48, 0
br i1 %49, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %50
50: ; preds = %._crit_edge3, %29
store i32 255, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = icmp sge i32 %51, 0
br i1 %52, label %.lr.ph5, label %65
.lr.ph5: ; preds = %50
br label %53
53: ; preds = %.lr.ph5, %60
%54 = load ptr, ptr %4, align 8
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %9, align 4
%58 = call i32 @SetTextColor(ptr noundef %54, ptr noundef %55, i32 noundef %56, i32 noundef 0, i32 noundef %57, i32 noundef 255)
%59 = call i32 @usleep(i32 noundef 20000)
br label %60
60: ; preds = %53
%61 = load i32, ptr %9, align 4
%62 = sub nsw i32 %61, 8
store i32 %62, ptr %9, align 4
%63 = load i32, ptr %9, align 4
%64 = icmp sge i32 %63, 0
br i1 %64, label %53, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %65
65: ; preds = %._crit_edge6, %50
store i32 255, ptr %10, align 4
%66 = load i32, ptr %10, align 4
%67 = icmp sge i32 %66, 0
br i1 %67, label %.lr.ph8, label %80
.lr.ph8: ; preds = %65
br label %68
68: ; preds = %.lr.ph8, %75
%69 = load ptr, ptr %4, align 8
%70 = load ptr, ptr %5, align 8
%71 = load i32, ptr %6, align 4
%72 = load i32, ptr %10, align 4
%73 = call i32 @SetTextColor(ptr noundef %69, ptr noundef %70, i32 noundef %71, i32 noundef 0, i32 noundef 0, i32 noundef %72)
%74 = call i32 @usleep(i32 noundef 20000)
br label %75
75: ; preds = %68
%76 = load i32, ptr %10, align 4
%77 = sub nsw i32 %76, 8
store i32 %77, ptr %10, align 4
%78 = load i32, ptr %10, align 4
%79 = icmp sge i32 %78, 0
br i1 %79, label %68, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %75
br label %80
80: ; preds = %._crit_edge9, %65
%81 = load ptr, ptr %4, align 8
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %6, align 4
%84 = call i32 @SetTextColor(ptr noundef %81, ptr noundef %82, i32 noundef %83, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%87 = load ptr, ptr %4, align 8
%88 = load ptr, ptr %5, align 8
%89 = load i32, ptr %6, align 4
%90 = call i32 @GetTextSize(ptr noundef %87, ptr noundef %88, i32 noundef %89)
store i32 %90, ptr %11, align 4
%91 = load i32, ptr %11, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %91)
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store float 0.000000e+00, ptr %12, align 4
%94 = load float, ptr %12, align 4
%95 = load float, ptr @M_PI, align 4
%96 = fcmp ole float %94, %95
br i1 %96, label %.lr.ph11, label %120
.lr.ph11: ; preds = %80
br label %97
97: ; preds = %.lr.ph11, %109
%98 = load ptr, ptr %4, align 8
%99 = load ptr, ptr %5, align 8
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %11, align 4
%102 = load float, ptr %12, align 4
%103 = call i32 @sin(float noundef %102)
%104 = mul nsw i32 3, %103
%105 = add nsw i32 1, %104
%106 = mul nsw i32 %101, %105
%107 = call i32 @SetTextSize(ptr noundef %98, ptr noundef %99, i32 noundef %100, i32 noundef %106)
%108 = call i32 @usleep(i32 noundef 20000)
br label %109
109: ; preds = %97
%110 = load float, ptr @M_PI, align 4
%111 = fpext float %110 to double
%112 = fdiv double %111, 1.280000e+02
%113 = load float, ptr %12, align 4
%114 = fpext float %113 to double
%115 = fadd double %114, %112
%116 = fptrunc double %115 to float
store float %116, ptr %12, align 4
%117 = load float, ptr %12, align 4
%118 = load float, ptr @M_PI, align 4
%119 = fcmp ole float %117, %118
br i1 %119, label %97, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %109
br label %120
120: ; preds = %._crit_edge12, %80
%121 = load ptr, ptr %4, align 8
%122 = load ptr, ptr %5, align 8
%123 = load i32, ptr %6, align 4
%124 = load i32, ptr %11, align 4
%125 = call i32 @SetTextSize(ptr noundef %121, ptr noundef %122, i32 noundef %123, i32 noundef %124)
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%127 = call i32 @sleep(i32 noundef 5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @SetTextAlpha(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
declare i32 @usleep(i32 noundef) #1
declare i32 @SetTextColor(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @GetTextSize(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @SetTextSize(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sin(float noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp90q7yk23.c'
source_filename = "/tmp/tmp90q7yk23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local double @ceil(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @llvm.floor.f64(double %3)
%5 = fadd double %4, 1.000000e+00
ret double %5
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp90q7yk23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local double @ceil(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @llvm.floor.f64(double %3)
%5 = fadd double %4, 1.000000e+00
ret double %5
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8wuyjm9e.c'
source_filename = "/tmp/tmp8wuyjm9e.c"
target datalayout = "e-m:e-p270: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/tmp8wuyjm9e.c"
target datalayout = "e-m:e-p270: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/tmpl0v0p_8x.c'
source_filename = "/tmp/tmpl0v0p_8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MS_SYNC = dso_local global i32 0, align 4
@MS_INVALIDATE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sync_shm(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = load i32, ptr @MS_SYNC, align 4
%8 = load i32, ptr @MS_INVALIDATE, align 4
%9 = or i32 %7, %8
%10 = call i32 @msync(ptr noundef %5, i64 noundef %6, i32 noundef %9)
ret i32 %10
}
declare i32 @msync(ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl0v0p_8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MS_SYNC = dso_local global i32 0, align 4
@MS_INVALIDATE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sync_shm(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = load i32, ptr @MS_SYNC, align 4
%8 = load i32, ptr @MS_INVALIDATE, align 4
%9 = or i32 %7, %8
%10 = call i32 @msync(ptr noundef %5, i64 noundef %6, i32 noundef %9)
ret i32 %10
}
declare i32 @msync(ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpns5h07hi.c'
source_filename = "/tmp/tmpns5h07hi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @primeFactorization(float noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store float %0, ptr %3, align 4
store i32 1, ptr %5, align 4
store i32 1, ptr %6, align 4
%9 = load float, ptr %3, align 4
%10 = fcmp olt float %9, 1.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %75
12: ; preds = %1
%13 = load float, ptr %3, align 4
%14 = fmul float %13, 4.000000e+00
%15 = call ptr @malloc(float noundef %14)
store ptr %15, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %73
18: ; preds = %12
%19 = load float, ptr %3, align 4
%20 = call ptr @primes(float noundef %19)
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %4, align 4
br label %24
24: ; preds = %60, %18
%25 = load float, ptr %3, align 4
%26 = fcmp une float %25, 1.000000e+00
br i1 %26, label %27, label %61
27: ; preds = %24
%28 = load float, ptr %3, align 4
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = uitofp i32 %33 to float
%35 = fdiv float %28, %34
%36 = call i64 @naturalNumber(float noundef %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %57
38: ; preds = %27
%39 = load ptr, ptr %8, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
%44 = uitofp i32 %43 to float
%45 = load float, ptr %3, align 4
%46 = fdiv float %45, %44
store float %46, ptr %3, align 4
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
%55 = sext i32 %53 to i64
%56 = getelementptr inbounds i32, ptr %52, i64 %55
store i32 %51, ptr %56, align 4
br label %60
57: ; preds = %27
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
br label %60
60: ; preds = %57, %38
br label %24, !llvm.loop !6
61: ; preds = %24
%62 = load ptr, ptr %8, align 8
%63 = call i32 @free(ptr noundef %62)
%64 = load i32, ptr %5, align 4
%65 = load ptr, ptr %7, align 8
%66 = getelementptr inbounds i32, ptr %65, i64 0
store i32 %64, ptr %66, align 4
%67 = load ptr, ptr %7, align 8
%68 = load i32, ptr %5, align 4
%69 = sext i32 %68 to i64
%70 = mul i64 %69, 4
%71 = trunc i64 %70 to i32
%72 = call ptr @realloc(ptr noundef %67, i32 noundef %71)
store ptr %72, ptr %7, align 8
br label %73
73: ; preds = %61, %12
%74 = load ptr, ptr %7, align 8
store ptr %74, ptr %2, align 8
br label %75
75: ; preds = %73, %11
%76 = load ptr, ptr %2, align 8
ret ptr %76
}
declare ptr @malloc(float noundef) #1
declare ptr @primes(float noundef) #1
declare i64 @naturalNumber(float noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpns5h07hi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @primeFactorization(float noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store float %0, ptr %3, align 4
store i32 1, ptr %5, align 4
store i32 1, ptr %6, align 4
%9 = load float, ptr %3, align 4
%10 = fcmp olt float %9, 1.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %76
12: ; preds = %1
%13 = load float, ptr %3, align 4
%14 = fmul float %13, 4.000000e+00
%15 = call ptr @malloc(float noundef %14)
store ptr %15, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %74
18: ; preds = %12
%19 = load float, ptr %3, align 4
%20 = call ptr @primes(float noundef %19)
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %4, align 4
%24 = load float, ptr %3, align 4
%25 = fcmp une float %24, 1.000000e+00
br i1 %25, label %.lr.ph, label %62
.lr.ph: ; preds = %18
br label %26
26: ; preds = %.lr.ph, %59
%27 = load float, ptr %3, align 4
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = uitofp i32 %32 to float
%34 = fdiv float %27, %33
%35 = call i64 @naturalNumber(float noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %56
37: ; preds = %26
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = uitofp i32 %42 to float
%44 = load float, ptr %3, align 4
%45 = fdiv float %44, %43
store float %45, ptr %3, align 4
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
%54 = sext i32 %52 to i64
%55 = getelementptr inbounds i32, ptr %51, i64 %54
store i32 %50, ptr %55, align 4
br label %59
56: ; preds = %26
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %6, align 4
br label %59
59: ; preds = %56, %37
%60 = load float, ptr %3, align 4
%61 = fcmp une float %60, 1.000000e+00
br i1 %61, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %62
62: ; preds = %._crit_edge, %18
%63 = load ptr, ptr %8, align 8
%64 = call i32 @free(ptr noundef %63)
%65 = load i32, ptr %5, align 4
%66 = load ptr, ptr %7, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 0
store i32 %65, ptr %67, align 4
%68 = load ptr, ptr %7, align 8
%69 = load i32, ptr %5, align 4
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 4
%72 = trunc i64 %71 to i32
%73 = call ptr @realloc(ptr noundef %68, i32 noundef %72)
store ptr %73, ptr %7, align 8
br label %74
74: ; preds = %62, %12
%75 = load ptr, ptr %7, align 8
store ptr %75, ptr %2, align 8
br label %76
76: ; preds = %74, %11
%77 = load ptr, ptr %2, align 8
ret ptr %77
}
declare ptr @malloc(float noundef) #1
declare ptr @primes(float noundef) #1
declare i64 @naturalNumber(float noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmply2cggcb.c'
source_filename = "/tmp/tmply2cggcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @_exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @_exit(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 = { 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 = { 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/tmply2cggcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @_exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @_exit(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 = { 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 = { 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/tmpsegapoil.c'
source_filename = "/tmp/tmpsegapoil.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @squares()
ret i32 0
}
declare i32 @squares(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsegapoil.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @squares()
ret i32 0
}
declare i32 @squares(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr_gbmmcd.c'
source_filename = "/tmp/tmpr_gbmmcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @sum(i32 noundef 2000000)
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
ret i32 0
}
declare i64 @sum(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr_gbmmcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @sum(i32 noundef 2000000)
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
ret i32 0
}
declare i64 @sum(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"}
|
; ModuleID = '/tmp/tmpyxg2ay9h.c'
source_filename = "/tmp/tmpyxg2ay9h.c"
target datalayout = "e-m:e-p270: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/tmpyxg2ay9h.c"
target datalayout = "e-m:e-p270: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/tmpa_hfz1y6.c'
source_filename = "/tmp/tmpa_hfz1y6.c"
target datalayout = "e-m:e-p270: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.winsize = type { i32 }
@TIOCGWINSZ = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @resize_pty(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.winsize, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr @TIOCGWINSZ, align 4
%5 = call i64 @ioctl(i32 noundef 0, i32 noundef %4, ptr noundef %3)
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
br label %8
8: ; preds = %7, %1
ret void
}
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa_hfz1y6.c"
target datalayout = "e-m:e-p270: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.winsize = type { i32 }
@TIOCGWINSZ = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @resize_pty(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.winsize, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr @TIOCGWINSZ, align 4
%5 = call i64 @ioctl(i32 noundef 0, i32 noundef %4, ptr noundef %3)
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
br label %8
8: ; preds = %7, %1
ret void
}
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfy7zlt3o.c'
source_filename = "/tmp/tmpfy7zlt3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @wcslcat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %10, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
%19 = load ptr, ptr %6, align 8
%20 = icmp ne ptr %19, null
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
br label %23
23: ; preds = %34, %3
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = load i64, ptr %10, align 8
%30 = add i64 %29, -1
store i64 %30, ptr %10, align 8
%31 = icmp ne i64 %29, 0
br label %32
32: ; preds = %28, %23
%33 = phi i1 [ false, %23 ], [ %31, %28 ]
br i1 %33, label %34, label %37
34: ; preds = %32
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %8, align 8
br label %23, !llvm.loop !6
37: ; preds = %32
%38 = load ptr, ptr %8, align 8
%39 = load ptr, ptr %5, align 8
%40 = ptrtoint ptr %38 to i64
%41 = ptrtoint ptr %39 to i64
%42 = sub i64 %40, %41
store i64 %42, ptr %11, align 8
%43 = load i64, ptr %7, align 8
%44 = load i64, ptr %11, align 8
%45 = sub i64 %43, %44
store i64 %45, ptr %10, align 8
%46 = load i64, ptr %10, align 8
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %37
%49 = load i64, ptr %11, align 8
%50 = load ptr, ptr %9, align 8
%51 = call i64 @wcslen(ptr noundef %50)
%52 = add i64 %49, %51
store i64 %52, ptr %4, align 8
br label %81
53: ; preds = %37
br label %54
54: ; preds = %69, %53
%55 = load ptr, ptr %9, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %72
59: ; preds = %54
%60 = load i64, ptr %10, align 8
%61 = icmp ne i64 %60, 1
br i1 %61, label %62, label %69
62: ; preds = %59
%63 = load ptr, ptr %9, align 8
%64 = load i8, ptr %63, align 1
%65 = load ptr, ptr %8, align 8
%66 = getelementptr inbounds i8, ptr %65, i32 1
store ptr %66, ptr %8, align 8
store i8 %64, ptr %65, align 1
%67 = load i64, ptr %10, align 8
%68 = add i64 %67, -1
store i64 %68, ptr %10, align 8
br label %69
69: ; preds = %62, %59
%70 = load ptr, ptr %9, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 1
store ptr %71, ptr %9, align 8
br label %54, !llvm.loop !8
72: ; preds = %54
%73 = load ptr, ptr %8, align 8
store i8 0, ptr %73, align 1
%74 = load i64, ptr %11, align 8
%75 = load ptr, ptr %9, align 8
%76 = load ptr, ptr %6, align 8
%77 = ptrtoint ptr %75 to i64
%78 = ptrtoint ptr %76 to i64
%79 = sub i64 %77, %78
%80 = add i64 %74, %79
store i64 %80, ptr %4, align 8
br label %81
81: ; preds = %72, %48
%82 = load i64, ptr %4, align 8
ret i64 %82
}
declare i32 @assert(i32 noundef) #1
declare i64 @wcslen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfy7zlt3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @wcslcat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %10, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
%19 = load ptr, ptr %6, align 8
%20 = icmp ne ptr %19, null
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
br label %23
23: ; preds = %34, %3
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = load i64, ptr %10, align 8
%30 = add i64 %29, -1
store i64 %30, ptr %10, align 8
%31 = icmp ne i64 %29, 0
br label %32
32: ; preds = %28, %23
%33 = phi i1 [ false, %23 ], [ %31, %28 ]
br i1 %33, label %34, label %37
34: ; preds = %32
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %8, align 8
br label %23, !llvm.loop !6
37: ; preds = %32
%38 = load ptr, ptr %8, align 8
%39 = load ptr, ptr %5, align 8
%40 = ptrtoint ptr %38 to i64
%41 = ptrtoint ptr %39 to i64
%42 = sub i64 %40, %41
store i64 %42, ptr %11, align 8
%43 = load i64, ptr %7, align 8
%44 = load i64, ptr %11, align 8
%45 = sub i64 %43, %44
store i64 %45, ptr %10, align 8
%46 = load i64, ptr %10, align 8
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %37
%49 = load i64, ptr %11, align 8
%50 = load ptr, ptr %9, align 8
%51 = call i64 @wcslen(ptr noundef %50)
%52 = add i64 %49, %51
store i64 %52, ptr %4, align 8
br label %84
53: ; preds = %37
%54 = load ptr, ptr %9, align 8
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 0
br i1 %57, label %.lr.ph, label %75
.lr.ph: ; preds = %53
br label %58
58: ; preds = %.lr.ph, %68
%59 = load i64, ptr %10, align 8
%60 = icmp ne i64 %59, 1
br i1 %60, label %61, label %68
61: ; preds = %58
%62 = load ptr, ptr %9, align 8
%63 = load i8, ptr %62, align 1
%64 = load ptr, ptr %8, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %8, align 8
store i8 %63, ptr %64, align 1
%66 = load i64, ptr %10, align 8
%67 = add i64 %66, -1
store i64 %67, ptr %10, align 8
br label %68
68: ; preds = %61, %58
%69 = load ptr, ptr %9, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %9, align 8
%71 = load ptr, ptr %9, align 8
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 0
br i1 %74, label %58, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %68
br label %75
75: ; preds = %._crit_edge, %53
%76 = load ptr, ptr %8, align 8
store i8 0, ptr %76, align 1
%77 = load i64, ptr %11, align 8
%78 = load ptr, ptr %9, align 8
%79 = load ptr, ptr %6, align 8
%80 = ptrtoint ptr %78 to i64
%81 = ptrtoint ptr %79 to i64
%82 = sub i64 %80, %81
%83 = add i64 %77, %82
store i64 %83, ptr %4, align 8
br label %84
84: ; preds = %75, %48
%85 = load i64, ptr %4, align 8
ret i64 %85
}
declare i32 @assert(i32 noundef) #1
declare i64 @wcslen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpn8d5o5aq.c'
source_filename = "/tmp/tmpn8d5o5aq.c"
target datalayout = "e-m:e-p270: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/tmpn8d5o5aq.c"
target datalayout = "e-m:e-p270: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/tmp9lfyqy30.c'
source_filename = "/tmp/tmp9lfyqy30.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Invalid command : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @invalid(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @printf(ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr %2, align 4
ret i32 %6
}
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/tmp9lfyqy30.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Invalid command : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @invalid(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @printf(ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr %2, align 4
ret i32 %6
}
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/tmp7li_j55a.c'
source_filename = "/tmp/tmp7li_j55a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tiniparser_getint(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call ptr @tiniparser_getstring(ptr noundef %9, ptr noundef %10, ptr noundef null)
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %8, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load i32, ptr %7, align 4
store i32 %15, ptr %4, align 4
br label %20
16: ; preds = %3
%17 = load ptr, ptr %8, align 8
%18 = call i64 @strtol(ptr noundef %17, ptr noundef null, i32 noundef 0)
%19 = trunc i64 %18 to i32
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %16, %14
%21 = load i32, ptr %4, align 4
ret i32 %21
}
declare ptr @tiniparser_getstring(ptr noundef, ptr noundef, ptr noundef) #1
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/tmp7li_j55a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tiniparser_getint(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call ptr @tiniparser_getstring(ptr noundef %9, ptr noundef %10, ptr noundef null)
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %8, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load i32, ptr %7, align 4
store i32 %15, ptr %4, align 4
br label %20
16: ; preds = %3
%17 = load ptr, ptr %8, align 8
%18 = call i64 @strtol(ptr noundef %17, ptr noundef null, i32 noundef 0)
%19 = trunc i64 %18 to i32
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %16, %14
%21 = load i32, ptr %4, align 4
ret i32 %21
}
declare ptr @tiniparser_getstring(ptr noundef, ptr noundef, ptr noundef) #1
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/tmpxwnmfrkd.c'
source_filename = "/tmp/tmpxwnmfrkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binRev(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %4, align 4
store i32 %7, ptr %6, align 4
br label %8
8: ; preds = %11, %2
%9 = load i32, ptr %3, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %22
11: ; preds = %8
%12 = load i32, ptr %5, align 4
%13 = shl i32 %12, 1
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = and i32 %14, 1
%16 = load i32, ptr %5, align 4
%17 = or i32 %16, %15
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %3, align 4
%19 = ashr i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %6, align 4
br label %8, !llvm.loop !6
22: ; preds = %8
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = shl i32 %23, %24
ret i32 %25
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxwnmfrkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binRev(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %4, align 4
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %5, align 4
%12 = shl i32 %11, 1
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = and i32 %13, 1
%15 = load i32, ptr %5, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %3, align 4
%18 = ashr i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %23
23: ; preds = %._crit_edge, %2
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = shl i32 %24, %25
ret i32 %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp9ao291ph.c'
source_filename = "/tmp/tmp9ao291ph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c"Finished timing measurement for function ' %s ' in platform ' %s '...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTimingEnd(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 %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @printf(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/tmp9ao291ph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c"Finished timing measurement for function ' %s ' in platform ' %s '...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printTimingEnd(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 %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @printf(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/tmpl_6s9mzm.c'
source_filename = "/tmp/tmpl_6s9mzm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sched_get_priority_min(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 @syscall(i32 noundef 160, i32 noundef %3)
ret i32 %4
}
declare i32 @syscall(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/tmpl_6s9mzm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sched_get_priority_min(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 @syscall(i32 noundef 160, i32 noundef %3)
ret i32 %4
}
declare i32 @syscall(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/tmppbodv1vi.c'
source_filename = "/tmp/tmppbodv1vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @find_neighbors(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, double noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca ptr, align 8
%21 = alloca i64, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i64, align 8
%31 = alloca double, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store i64 %4, ptr %15, align 8
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store i32 %7, ptr %18, align 4
store double %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
store i64 0, ptr %21, align 8
%32 = load i32, ptr %16, align 4
%33 = sub i32 %32, 1
store i32 %33, ptr %29, align 4
%34 = load i32, ptr %17, align 4
%35 = sub i32 %34, 1
%36 = load i32, ptr %18, align 4
%37 = mul i32 %35, %36
store i32 %37, ptr %27, align 4
%38 = load ptr, ptr %14, align 8
%39 = load i32, ptr %27, align 4
%40 = sub nsw i32 0, %39
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %38, i64 %41
%43 = load double, ptr %42, align 8
%44 = load double, ptr %19, align 8
%45 = fdiv double %43, %44
%46 = fptosi double %45 to i32
%47 = load i32, ptr %29, align 4
%48 = and i32 %46, %47
store i32 %48, ptr %22, align 4
%49 = load ptr, ptr %14, align 8
%50 = getelementptr inbounds double, ptr %49, i64 0
%51 = load double, ptr %50, align 8
%52 = load double, ptr %19, align 8
%53 = fdiv double %51, %52
%54 = fptosi double %53 to i32
%55 = load i32, ptr %29, align 4
%56 = and i32 %54, %55
store i32 %56, ptr %25, align 4
%57 = load i32, ptr %22, align 4
%58 = sub nsw i32 %57, 1
store i32 %58, ptr %23, align 4
br label %59
59: ; preds = %142, %10
%60 = load i32, ptr %23, align 4
%61 = load i32, ptr %22, align 4
%62 = add nsw i32 %61, 1
%63 = icmp sle i32 %60, %62
br i1 %63, label %64, label %145
64: ; preds = %59
%65 = load i32, ptr %23, align 4
%66 = load i32, ptr %29, align 4
%67 = and i32 %65, %66
store i32 %67, ptr %24, align 4
%68 = load i32, ptr %25, align 4
%69 = sub nsw i32 %68, 1
store i32 %69, ptr %26, align 4
br label %70
70: ; preds = %138, %64
%71 = load i32, ptr %26, align 4
%72 = load i32, ptr %25, align 4
%73 = add nsw i32 %72, 1
%74 = icmp sle i32 %71, %73
br i1 %74, label %75, label %141
75: ; preds = %70
%76 = load ptr, ptr %12, align 8
%77 = load i32, ptr %24, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %76, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = load i32, ptr %26, align 4
%82 = load i32, ptr %29, align 4
%83 = and i32 %81, %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i64, ptr %80, i64 %84
%86 = load i64, ptr %85, align 8
store i64 %86, ptr %30, align 8
br label %87
87: ; preds = %132, %75
%88 = load i64, ptr %30, align 8
%89 = icmp ne i64 %88, -1
br i1 %89, label %90, label %137
90: ; preds = %87
store i32 0, ptr %27, align 4
br label %91
91: ; preds = %119, %90
%92 = load i32, ptr %27, align 4
%93 = load i32, ptr %17, align 4
%94 = icmp ult i32 %92, %93
br i1 %94, label %95, label %122
95: ; preds = %91
%96 = load i32, ptr %27, align 4
%97 = sub nsw i32 0, %96
%98 = load i32, ptr %18, align 4
%99 = mul nsw i32 %97, %98
store i32 %99, ptr %28, align 4
%100 = load ptr, ptr %14, align 8
%101 = load i32, ptr %28, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, ptr %100, i64 %102
%104 = load double, ptr %103, align 8
%105 = load ptr, ptr %11, align 8
%106 = load i64, ptr %30, align 8
%107 = load i32, ptr %28, align 4
%108 = sext i32 %107 to i64
%109 = add nsw i64 %106, %108
%110 = getelementptr inbounds double, ptr %105, i64 %109
%111 = load double, ptr %110, align 8
%112 = fsub double %104, %111
%113 = call double @llvm.fabs.f64(double %112)
store double %113, ptr %31, align 8
%114 = load double, ptr %31, align 8
%115 = load double, ptr %19, align 8
%116 = fcmp ogt double %114, %115
br i1 %116, label %117, label %118
117: ; preds = %95
br label %122
118: ; preds = %95
br label %119
119: ; preds = %118
%120 = load i32, ptr %27, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %27, align 4
br label %91, !llvm.loop !6
122: ; preds = %117, %91
%123 = load i32, ptr %27, align 4
%124 = load i32, ptr %17, align 4
%125 = icmp eq i32 %123, %124
br i1 %125, label %126, label %132
126: ; preds = %122
%127 = load i64, ptr %30, align 8
%128 = load ptr, ptr %20, align 8
%129 = load i64, ptr %21, align 8
%130 = add i64 %129, 1
store i64 %130, ptr %21, align 8
%131 = getelementptr inbounds i64, ptr %128, i64 %129
store i64 %127, ptr %131, align 8
br label %132
132: ; preds = %126, %122
%133 = load ptr, ptr %13, align 8
%134 = load i64, ptr %30, align 8
%135 = getelementptr inbounds i64, ptr %133, i64 %134
%136 = load i64, ptr %135, align 8
store i64 %136, ptr %30, align 8
br label %87, !llvm.loop !8
137: ; preds = %87
br label %138
138: ; preds = %137
%139 = load i32, ptr %26, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %26, align 4
br label %70, !llvm.loop !9
141: ; preds = %70
br label %142
142: ; preds = %141
%143 = load i32, ptr %23, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %23, align 4
br label %59, !llvm.loop !10
145: ; preds = %59
%146 = load i64, ptr %21, align 8
ret i64 %146
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppbodv1vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @find_neighbors(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, double noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca ptr, align 8
%21 = alloca i64, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i64, align 8
%31 = alloca double, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store i64 %4, ptr %15, align 8
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store i32 %7, ptr %18, align 4
store double %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
store i64 0, ptr %21, align 8
%32 = load i32, ptr %16, align 4
%33 = sub i32 %32, 1
store i32 %33, ptr %29, align 4
%34 = load i32, ptr %17, align 4
%35 = sub i32 %34, 1
%36 = load i32, ptr %18, align 4
%37 = mul i32 %35, %36
store i32 %37, ptr %27, align 4
%38 = load ptr, ptr %14, align 8
%39 = load i32, ptr %27, align 4
%40 = sub nsw i32 0, %39
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %38, i64 %41
%43 = load double, ptr %42, align 8
%44 = load double, ptr %19, align 8
%45 = fdiv double %43, %44
%46 = fptosi double %45 to i32
%47 = load i32, ptr %29, align 4
%48 = and i32 %46, %47
store i32 %48, ptr %22, align 4
%49 = load ptr, ptr %14, align 8
%50 = getelementptr inbounds double, ptr %49, i64 0
%51 = load double, ptr %50, align 8
%52 = load double, ptr %19, align 8
%53 = fdiv double %51, %52
%54 = fptosi double %53 to i32
%55 = load i32, ptr %29, align 4
%56 = and i32 %54, %55
store i32 %56, ptr %25, align 4
%57 = load i32, ptr %22, align 4
%58 = sub nsw i32 %57, 1
store i32 %58, ptr %23, align 4
%59 = load i32, ptr %23, align 4
%60 = load i32, ptr %22, align 4
%61 = add nsw i32 %60, 1
%62 = icmp sle i32 %59, %61
br i1 %62, label %.lr.ph6, label %154
.lr.ph6: ; preds = %10
br label %63
63: ; preds = %.lr.ph6, %147
%64 = load i32, ptr %23, align 4
%65 = load i32, ptr %29, align 4
%66 = and i32 %64, %65
store i32 %66, ptr %24, align 4
%67 = load i32, ptr %25, align 4
%68 = sub nsw i32 %67, 1
store i32 %68, ptr %26, align 4
%69 = load i32, ptr %26, align 4
%70 = load i32, ptr %25, align 4
%71 = add nsw i32 %70, 1
%72 = icmp sle i32 %69, %71
br i1 %72, label %.lr.ph3, label %146
.lr.ph3: ; preds = %63
br label %73
73: ; preds = %.lr.ph3, %139
%74 = load ptr, ptr %12, align 8
%75 = load i32, ptr %24, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %74, i64 %76
%78 = load ptr, ptr %77, align 8
%79 = load i32, ptr %26, align 4
%80 = load i32, ptr %29, align 4
%81 = and i32 %79, %80
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i64, ptr %78, i64 %82
%84 = load i64, ptr %83, align 8
store i64 %84, ptr %30, align 8
%85 = load i64, ptr %30, align 8
%86 = icmp ne i64 %85, -1
br i1 %86, label %.lr.ph1, label %138
.lr.ph1: ; preds = %73
br label %87
87: ; preds = %.lr.ph1, %131
store i32 0, ptr %27, align 4
%88 = load i32, ptr %27, align 4
%89 = load i32, ptr %17, align 4
%90 = icmp ult i32 %88, %89
br i1 %90, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %87
br label %91
91: ; preds = %.lr.ph, %115
%92 = load i32, ptr %27, align 4
%93 = sub nsw i32 0, %92
%94 = load i32, ptr %18, align 4
%95 = mul nsw i32 %93, %94
store i32 %95, ptr %28, align 4
%96 = load ptr, ptr %14, align 8
%97 = load i32, ptr %28, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, ptr %96, i64 %98
%100 = load double, ptr %99, align 8
%101 = load ptr, ptr %11, align 8
%102 = load i64, ptr %30, align 8
%103 = load i32, ptr %28, align 4
%104 = sext i32 %103 to i64
%105 = add nsw i64 %102, %104
%106 = getelementptr inbounds double, ptr %101, i64 %105
%107 = load double, ptr %106, align 8
%108 = fsub double %100, %107
%109 = call double @llvm.fabs.f64(double %108)
store double %109, ptr %31, align 8
%110 = load double, ptr %31, align 8
%111 = load double, ptr %19, align 8
%112 = fcmp ogt double %110, %111
br i1 %112, label %113, label %114
113: ; preds = %91
br label %121
114: ; preds = %91
br label %115
115: ; preds = %114
%116 = load i32, ptr %27, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %27, align 4
%118 = load i32, ptr %27, align 4
%119 = load i32, ptr %17, align 4
%120 = icmp ult i32 %118, %119
br i1 %120, label %91, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %115
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %87
br label %121
121: ; preds = %.loopexit, %113
%122 = load i32, ptr %27, align 4
%123 = load i32, ptr %17, align 4
%124 = icmp eq i32 %122, %123
br i1 %124, label %125, label %131
125: ; preds = %121
%126 = load i64, ptr %30, align 8
%127 = load ptr, ptr %20, align 8
%128 = load i64, ptr %21, align 8
%129 = add i64 %128, 1
store i64 %129, ptr %21, align 8
%130 = getelementptr inbounds i64, ptr %127, i64 %128
store i64 %126, ptr %130, align 8
br label %131
131: ; preds = %125, %121
%132 = load ptr, ptr %13, align 8
%133 = load i64, ptr %30, align 8
%134 = getelementptr inbounds i64, ptr %132, i64 %133
%135 = load i64, ptr %134, align 8
store i64 %135, ptr %30, align 8
%136 = load i64, ptr %30, align 8
%137 = icmp ne i64 %136, -1
br i1 %137, label %87, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %131
br label %138
138: ; preds = %._crit_edge, %73
br label %139
139: ; preds = %138
%140 = load i32, ptr %26, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %26, align 4
%142 = load i32, ptr %26, align 4
%143 = load i32, ptr %25, align 4
%144 = add nsw i32 %143, 1
%145 = icmp sle i32 %142, %144
br i1 %145, label %73, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %139
br label %146
146: ; preds = %._crit_edge4, %63
br label %147
147: ; preds = %146
%148 = load i32, ptr %23, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %23, align 4
%150 = load i32, ptr %23, align 4
%151 = load i32, ptr %22, align 4
%152 = add nsw i32 %151, 1
%153 = icmp sle i32 %150, %152
br i1 %153, label %63, label %._crit_edge7, !llvm.loop !10
._crit_edge7: ; preds = %147
br label %154
154: ; preds = %._crit_edge7, %10
%155 = load i64, ptr %21, align 8
ret i64 %155
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpg5ry4s9g.c'
source_filename = "/tmp/tmpg5ry4s9g.c"
target datalayout = "e-m:e-p270: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/tmpg5ry4s9g.c"
target datalayout = "e-m:e-p270: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/tmpt70e5_vr.c'
source_filename = "/tmp/tmpt70e5_vr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %4, align 8
%11 = load i64, ptr %4, align 8
%12 = add i64 %11, 1
%13 = call ptr @xmalloc(i64 noundef %12)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %2, align 8
%16 = load i64, ptr %4, align 8
%17 = add i64 %16, 1
%18 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i64 noundef %17)
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare i32 @assert(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @xmalloc(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/tmpt70e5_vr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %4, align 8
%11 = load i64, ptr %4, align 8
%12 = add i64 %11, 1
%13 = call ptr @xmalloc(i64 noundef %12)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %2, align 8
%16 = load i64, ptr %4, align 8
%17 = add i64 %16, 1
%18 = call i32 @memcpy(ptr noundef %14, ptr noundef %15, i64 noundef %17)
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare i32 @assert(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @xmalloc(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/tmped0h3iqw.c'
source_filename = "/tmp/tmped0h3iqw.c"
target datalayout = "e-m:e-p270: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/tmped0h3iqw.c"
target datalayout = "e-m:e-p270: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/tmpqnk_tbxs.c'
source_filename = "/tmp/tmpqnk_tbxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xor_encode(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %17, %5
%13 = load i32, ptr %11, align 4
%14 = zext i32 %13 to i64
%15 = load i64, ptr %8, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %40
17: ; preds = %12
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr %11, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = load ptr, ptr %9, align 8
%25 = load i32, ptr %11, align 4
%26 = zext i32 %25 to i64
%27 = load i64, ptr %10, align 8
%28 = urem i64 %26, %27
%29 = getelementptr inbounds i8, ptr %24, i64 %28
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = xor i32 %23, %31
%33 = trunc i32 %32 to i8
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %11, align 4
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 %33, ptr %37, align 1
%38 = load i32, ptr %11, align 4
%39 = add i32 %38, 1
store i32 %39, ptr %11, align 4
br label %12, !llvm.loop !6
40: ; preds = %12
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/tmpqnk_tbxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xor_encode(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %11, align 4
%13 = zext i32 %12 to i64
%14 = load i64, ptr %8, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %.lr.ph, label %43
.lr.ph: ; preds = %5
br label %16
16: ; preds = %.lr.ph, %16
%17 = load ptr, ptr %7, align 8
%18 = load i32, ptr %11, align 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = zext i8 %21 to i32
%23 = load ptr, ptr %9, align 8
%24 = load i32, ptr %11, align 4
%25 = zext i32 %24 to i64
%26 = load i64, ptr %10, align 8
%27 = urem i64 %25, %26
%28 = getelementptr inbounds i8, ptr %23, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = xor i32 %22, %30
%32 = trunc i32 %31 to i8
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %11, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 %32, ptr %36, align 1
%37 = load i32, ptr %11, align 4
%38 = add i32 %37, 1
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = zext i32 %39 to i64
%41 = load i64, ptr %8, align 8
%42 = icmp ult i64 %40, %41
br i1 %42, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %43
43: ; preds = %._crit_edge, %5
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/tmp6e62nv9a.c'
source_filename = "/tmp/tmp6e62nv9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @coshf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i64 @cosh(float noundef %3)
%5 = sitofp i64 %4 to float
ret float %5
}
declare i64 @cosh(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6e62nv9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @coshf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i64 @cosh(float noundef %3)
%5 = sitofp i64 %4 to float
ret float %5
}
declare i64 @cosh(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptnanyt_z.c'
source_filename = "/tmp/tmptnanyt_z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32 }
%struct.timezone = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_useconds() #0 {
%1 = alloca %struct.timeval, align 4
%2 = alloca %struct.timezone, align 4
%3 = call i32 @gettimeofday(ptr noundef %1, ptr noundef %2)
%4 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%5 = load i32, ptr %4, align 4
ret i32 %5
}
declare i32 @gettimeofday(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/tmptnanyt_z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32 }
%struct.timezone = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_useconds() #0 {
%1 = alloca %struct.timeval, align 4
%2 = alloca %struct.timezone, align 4
%3 = call i32 @gettimeofday(ptr noundef %1, ptr noundef %2)
%4 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%5 = load i32, ptr %4, align 4
ret i32 %5
}
declare i32 @gettimeofday(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/tmpcm99p2cg.c'
source_filename = "/tmp/tmpcm99p2cg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f17(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 @f16(i32 noundef %3)
%5 = call i32 @f16(i32 noundef %4)
ret i32 %5
}
declare i32 @f16(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/tmpcm99p2cg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f17(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 @f16(i32 noundef %3)
%5 = call i32 @f16(i32 noundef %4)
ret i32 %5
}
declare i32 @f16(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/tmpp2x6z81y.c'
source_filename = "/tmp/tmpp2x6z81y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Invalid size of array \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FindOddOccuring(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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 0, ptr %7, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %30
12: ; preds = %2
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %25, %12
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %28
17: ; preds = %13
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = xor i32 %18, %23
store i32 %24, ptr %6, align 4
br label %25
25: ; preds = %17
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
br label %13, !llvm.loop !6
28: ; preds = %13
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %3, align 4
br label %30
30: ; preds = %28, %10
%31 = load i32, ptr %3, align 4
ret i32 %31
}
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/tmpp2x6z81y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Invalid size of array \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FindOddOccuring(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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 0, ptr %7, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %32
12: ; preds = %2
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %30
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %24
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = xor i32 %17, %22
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %16
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %12
%31 = load i32, ptr %6, align 4
store i32 %31, ptr %3, align 4
br label %32
32: ; preds = %30, %10
%33 = load i32, ptr %3, align 4
ret i32 %33
}
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/tmp6gdb0a4_.c'
source_filename = "/tmp/tmp6gdb0a4_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sdmmc_sdcard_init() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @InitSD()
%4 = call i32 (...) @Nand_Init()
store i32 %4, ptr %1, align 4
%5 = call i32 (...) @SD_Init()
store i32 %5, ptr %2, align 4
ret void
}
declare i32 @InitSD(...) #1
declare i32 @Nand_Init(...) #1
declare i32 @SD_Init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6gdb0a4_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sdmmc_sdcard_init() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @InitSD()
%4 = call i32 (...) @Nand_Init()
store i32 %4, ptr %1, align 4
%5 = call i32 (...) @SD_Init()
store i32 %5, ptr %2, align 4
ret void
}
declare i32 @InitSD(...) #1
declare i32 @Nand_Init(...) #1
declare i32 @SD_Init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5uks32vs.c'
source_filename = "/tmp/tmp5uks32vs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [50 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
br label %8
8: ; preds = %16, %0
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %8
br label %8, !llvm.loop !6
17: ; preds = %8
br label %18
18: ; preds = %21, %17
%19 = load i32, ptr %4, align 4
%20 = icmp sge i32 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %18
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %24
%26 = load i8, ptr %25, align 1
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %29
store i8 %26, ptr %30, align 1
br label %18, !llvm.loop !8
31: ; preds = %18
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %33
store i8 0, ptr %34, align 1
%35 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%36 = call i32 @printf(ptr noundef @.str, ptr noundef %35)
ret i32 0
}
declare i32 @scanf(ptr noundef, 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5uks32vs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [50 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
br label %8
8: ; preds = %8, %0
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %8, label %16, !llvm.loop !6
16: ; preds = %8
%17 = load i32, ptr %4, align 4
%18 = icmp sge i32 %17, 0
br i1 %18, label %.lr.ph, label %31
.lr.ph: ; preds = %16
br label %19
19: ; preds = %.lr.ph, %19
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %22
%24 = load i8, ptr %23, align 1
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %27
store i8 %24, ptr %28, align 1
%29 = load i32, ptr %4, align 4
%30 = icmp sge i32 %29, 0
br i1 %30, label %19, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %19
br label %31
31: ; preds = %._crit_edge, %16
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %33
store i8 0, ptr %34, align 1
%35 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%36 = call i32 @printf(ptr noundef @.str, ptr noundef %35)
ret i32 0
}
declare i32 @scanf(ptr noundef, 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}
|
; ModuleID = '/tmp/tmpe21otj2o.c'
source_filename = "/tmp/tmpe21otj2o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @third_digit(float noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store float %0, ptr %3, align 4
%6 = load float, ptr %3, align 4
%7 = fpext float %6 to double
%8 = fmul double %7, 1.000000e+03
%9 = fptrunc double %8 to float
%10 = call i32 @trunc(float noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = call i64 @fmod(i32 noundef %11, i32 noundef 10)
%13 = trunc i64 %12 to i32
%14 = call i32 @abs(i32 noundef %13) #3
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 3
br i1 %16, label %17, label %18
17: ; preds = %1
store i32 1, ptr %2, align 4
br label %19
18: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
19: ; preds = %18, %17
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i32 @trunc(float noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
declare i64 @fmod(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe21otj2o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @third_digit(float noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store float %0, ptr %3, align 4
%6 = load float, ptr %3, align 4
%7 = fpext float %6 to double
%8 = fmul double %7, 1.000000e+03
%9 = fptrunc double %8 to float
%10 = call i32 @trunc(float noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = call i64 @fmod(i32 noundef %11, i32 noundef 10)
%13 = trunc i64 %12 to i32
%14 = call i32 @abs(i32 noundef %13) #3
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 3
br i1 %16, label %17, label %18
17: ; preds = %1
store i32 1, ptr %2, align 4
br label %19
18: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
19: ; preds = %18, %17
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i32 @trunc(float noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
declare i64 @fmod(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphgb8hw7_.c'
source_filename = "/tmp/tmphgb8hw7_.c"
target datalayout = "e-m:e-p270: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/tmphgb8hw7_.c"
target datalayout = "e-m:e-p270: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/tmp4we42zry.c'
source_filename = "/tmp/tmp4we42zry.c"
target datalayout = "e-m:e-p270: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/tmp4we42zry.c"
target datalayout = "e-m:e-p270: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/tmplcmtlvzu.c'
source_filename = "/tmp/tmplcmtlvzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @imgdrawcircle(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %13, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = sub nsw i32 %14, %15
store i32 %16, ptr %9, align 4
br label %17
17: ; preds = %59, %4
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = add nsw i32 %19, %20
%22 = icmp slt i32 %18, %21
br i1 %22, label %23, label %62
23: ; preds = %17
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %9, align 4
%26 = sub nsw i32 %24, %25
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = mul nsw i32 %27, %28
%30 = load i32, ptr %11, align 4
%31 = load i32, ptr %11, align 4
%32 = mul nsw i32 %30, %31
%33 = sub nsw i32 %29, %32
%34 = call i32 @sqrt(i32 noundef %33)
store i32 %34, ptr %12, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %12, align 4
%37 = sub nsw i32 %35, %36
store i32 %37, ptr %10, align 4
br label %38
38: ; preds = %55, %23
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %12, align 4
%42 = add nsw i32 %40, %41
%43 = icmp slt i32 %39, %42
br i1 %43, label %44, label %58
44: ; preds = %38
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %45, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = load i32, ptr %10, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
store i32 255, ptr %52, align 4
%53 = load i32, ptr %13, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %13, align 4
br label %55
55: ; preds = %44
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
br label %38, !llvm.loop !6
58: ; preds = %38
br label %59
59: ; preds = %58
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %9, align 4
br label %17, !llvm.loop !8
62: ; preds = %17
%63 = load i32, ptr %13, align 4
ret i32 %63
}
declare i32 @sqrt(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/tmplcmtlvzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @imgdrawcircle(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %13, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = sub nsw i32 %14, %15
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = add nsw i32 %18, %19
%21 = icmp slt i32 %17, %20
br i1 %21, label %.lr.ph2, label %70
.lr.ph2: ; preds = %4
br label %22
22: ; preds = %.lr.ph2, %62
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %9, align 4
%25 = sub nsw i32 %23, %24
store i32 %25, ptr %11, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = mul nsw i32 %26, %27
%29 = load i32, ptr %11, align 4
%30 = load i32, ptr %11, align 4
%31 = mul nsw i32 %29, %30
%32 = sub nsw i32 %28, %31
%33 = call i32 @sqrt(i32 noundef %32)
store i32 %33, ptr %12, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %12, align 4
%36 = sub nsw i32 %34, %35
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %10, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %12, align 4
%40 = add nsw i32 %38, %39
%41 = icmp slt i32 %37, %40
br i1 %41, label %.lr.ph, label %61
.lr.ph: ; preds = %22
br label %42
42: ; preds = %.lr.ph, %53
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds ptr, ptr %43, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = load i32, ptr %10, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
store i32 255, ptr %50, align 4
%51 = load i32, ptr %13, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %13, align 4
br label %53
53: ; preds = %42
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr %12, align 4
%59 = add nsw i32 %57, %58
%60 = icmp slt i32 %56, %59
br i1 %60, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %61
61: ; preds = %._crit_edge, %22
br label %62
62: ; preds = %61
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr %7, align 4
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %66, %67
%69 = icmp slt i32 %65, %68
br i1 %69, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %62
br label %70
70: ; preds = %._crit_edge3, %4
%71 = load i32, ptr %13, align 4
ret i32 %71
}
declare i32 @sqrt(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/tmp5jkkyncn.c'
source_filename = "/tmp/tmp5jkkyncn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gaussRand(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%8 = call float @uRand(i32 noundef 0, i32 noundef 6)
store float %8, ptr %5, align 4
%9 = call float @expRand(double noundef 5.000000e-01)
store float %9, ptr %6, align 4
%10 = load float, ptr %6, align 4
%11 = call float @sqrt(float noundef %10)
%12 = load float, ptr %5, align 4
%13 = call float @cos(float noundef %12)
%14 = fmul float %11, %13
store float %14, ptr %7, align 4
%15 = load float, ptr %7, align 4
%16 = load float, ptr %4, align 4
%17 = load float, ptr %3, align 4
%18 = call float @llvm.fmuladd.f32(float %15, float %16, float %17)
ret float %18
}
declare float @uRand(i32 noundef, i32 noundef) #1
declare float @expRand(double noundef) #1
declare float @sqrt(float noundef) #1
declare float @cos(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5jkkyncn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gaussRand(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%8 = call float @uRand(i32 noundef 0, i32 noundef 6)
store float %8, ptr %5, align 4
%9 = call float @expRand(double noundef 5.000000e-01)
store float %9, ptr %6, align 4
%10 = load float, ptr %6, align 4
%11 = call float @sqrt(float noundef %10)
%12 = load float, ptr %5, align 4
%13 = call float @cos(float noundef %12)
%14 = fmul float %11, %13
store float %14, ptr %7, align 4
%15 = load float, ptr %7, align 4
%16 = load float, ptr %4, align 4
%17 = load float, ptr %3, align 4
%18 = call float @llvm.fmuladd.f32(float %15, float %16, float %17)
ret float %18
}
declare float @uRand(i32 noundef, i32 noundef) #1
declare float @expRand(double noundef) #1
declare float @sqrt(float noundef) #1
declare float @cos(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_gcecfqq.c'
source_filename = "/tmp/tmp_gcecfqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"** look at %s:%d **\0A\00", align 1
@.str.2 = private unnamed_addr constant [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/reslaurentii/sandbox/refs/heads/master/src/operators.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @basic_operator() #0 {
%1 = alloca i32, align 4
store i32 11, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %2)
store i32 1, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
store i32 0, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
store i32 1, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 14)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_gcecfqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"** look at %s:%d **\0A\00", align 1
@.str.2 = private unnamed_addr constant [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/reslaurentii/sandbox/refs/heads/master/src/operators.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @basic_operator() #0 {
%1 = alloca i32, align 4
store i32 11, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %2)
store i32 1, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
store i32 0, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
store i32 1, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 14)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsxgutc1a.c'
source_filename = "/tmp/tmpsxgutc1a.c"
target datalayout = "e-m:e-p270: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, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [18 x i8] c"lstat(): path=%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"(null)\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"\09\09st_dev = %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"\09\09st_ino = %ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"\09\09st_mode = 0x%x(0%d)\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"\09\09st_nlink = %ld\0A\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"\09\09st_uid = %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"\09\09st_gid = %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [17 x i8] c"\09\09st_rdev = %ld\0A\00", align 1
@.str.11 = private unnamed_addr constant [17 x i8] c"\09\09st_size = %ld\0A\00", align 1
@.str.12 = private unnamed_addr constant [18 x i8] c"\09\09st_atime = %ld\0A\00", align 1
@.str.13 = private unnamed_addr constant [18 x i8] c"\09\09st_mtime = %ld\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"\09\09st_ctime = %ld\0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c"\09\09st_blksize = %lu\0A\00", align 1
@.str.16 = private unnamed_addr constant [19 x i8] c"\09\09st_blocks = %lu\0A\00", align 1
@.str.17 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.18 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lstat_test(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
br label %13
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
br label %13
13: ; preds = %11, %10
%14 = phi ptr [ @.str.1, %10 ], [ %12, %11 ]
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %14)
%16 = call i32 @fflush(ptr noundef null)
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @lstat(ptr noundef %17, ptr noundef %18)
store i32 %19, ptr %5, align 4
%20 = call i32 @handle_zng(i32 noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr @errno, align 4
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %7, align 4
switch i32 %22, label %90 [
i32 -1, label %23
i32 0, label %28
i32 -2, label %86
]
23: ; preds = %13
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%27 = call i32 @fflush(ptr noundef null)
br label %94
28: ; preds = %13
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds %struct.stat, ptr %29, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %31)
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds %struct.stat, ptr %33, i32 0, i32 1
%35 = load i32, ptr %34, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds %struct.stat, ptr %37, i32 0, i32 2
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds %struct.stat, ptr %40, i32 0, i32 2
%42 = load i32, ptr %41, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %39, i32 noundef %42)
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds %struct.stat, ptr %44, i32 0, i32 3
%46 = load i32, ptr %45, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %46)
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds %struct.stat, ptr %48, i32 0, i32 4
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %50)
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds %struct.stat, ptr %52, i32 0, i32 5
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %54)
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds %struct.stat, ptr %56, i32 0, i32 6
%58 = load i32, ptr %57, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %58)
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds %struct.stat, ptr %60, i32 0, i32 7
%62 = load i32, ptr %61, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %62)
%64 = load ptr, ptr %4, align 8
%65 = getelementptr inbounds %struct.stat, ptr %64, i32 0, i32 8
%66 = load i32, ptr %65, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %66)
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds %struct.stat, ptr %68, i32 0, i32 9
%70 = load i32, ptr %69, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %70)
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds %struct.stat, ptr %72, i32 0, i32 10
%74 = load i32, ptr %73, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %74)
%76 = load ptr, ptr %4, align 8
%77 = getelementptr inbounds %struct.stat, ptr %76, i32 0, i32 11
%78 = load i32, ptr %77, align 4
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %78)
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds %struct.stat, ptr %80, i32 0, i32 12
%82 = load i32, ptr %81, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %82)
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%85 = call i32 @fflush(ptr noundef null)
br label %94
86: ; preds = %13
%87 = load i32, ptr %5, align 4
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %87)
%89 = call i32 @fflush(ptr noundef null)
br label %94
90: ; preds = %13
%91 = load i32, ptr %7, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %91)
%93 = call i32 @fflush(ptr noundef null)
br label %94
94: ; preds = %90, %86, %28, %23
%95 = load i32, ptr %6, align 4
store i32 %95, ptr @errno, align 4
%96 = load i32, ptr %5, align 4
ret i32 %96
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_zng(i32 noundef) #1
declare i32 @lstat(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/tmpsxgutc1a.c"
target datalayout = "e-m:e-p270: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, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [18 x i8] c"lstat(): path=%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"(null)\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"\09\09st_dev = %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"\09\09st_ino = %ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"\09\09st_mode = 0x%x(0%d)\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"\09\09st_nlink = %ld\0A\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"\09\09st_uid = %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"\09\09st_gid = %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [17 x i8] c"\09\09st_rdev = %ld\0A\00", align 1
@.str.11 = private unnamed_addr constant [17 x i8] c"\09\09st_size = %ld\0A\00", align 1
@.str.12 = private unnamed_addr constant [18 x i8] c"\09\09st_atime = %ld\0A\00", align 1
@.str.13 = private unnamed_addr constant [18 x i8] c"\09\09st_mtime = %ld\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"\09\09st_ctime = %ld\0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c"\09\09st_blksize = %lu\0A\00", align 1
@.str.16 = private unnamed_addr constant [19 x i8] c"\09\09st_blocks = %lu\0A\00", align 1
@.str.17 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.18 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lstat_test(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
br label %13
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
br label %13
13: ; preds = %11, %10
%14 = phi ptr [ @.str.1, %10 ], [ %12, %11 ]
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %14)
%16 = call i32 @fflush(ptr noundef null)
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @lstat(ptr noundef %17, ptr noundef %18)
store i32 %19, ptr %5, align 4
%20 = call i32 @handle_zng(i32 noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr @errno, align 4
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %7, align 4
switch i32 %22, label %90 [
i32 -1, label %23
i32 0, label %28
i32 -2, label %86
]
23: ; preds = %13
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%27 = call i32 @fflush(ptr noundef null)
br label %94
28: ; preds = %13
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds %struct.stat, ptr %29, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %31)
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds %struct.stat, ptr %33, i32 0, i32 1
%35 = load i32, ptr %34, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds %struct.stat, ptr %37, i32 0, i32 2
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds %struct.stat, ptr %40, i32 0, i32 2
%42 = load i32, ptr %41, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %39, i32 noundef %42)
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds %struct.stat, ptr %44, i32 0, i32 3
%46 = load i32, ptr %45, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %46)
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds %struct.stat, ptr %48, i32 0, i32 4
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %50)
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds %struct.stat, ptr %52, i32 0, i32 5
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %54)
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds %struct.stat, ptr %56, i32 0, i32 6
%58 = load i32, ptr %57, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %58)
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds %struct.stat, ptr %60, i32 0, i32 7
%62 = load i32, ptr %61, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %62)
%64 = load ptr, ptr %4, align 8
%65 = getelementptr inbounds %struct.stat, ptr %64, i32 0, i32 8
%66 = load i32, ptr %65, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %66)
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds %struct.stat, ptr %68, i32 0, i32 9
%70 = load i32, ptr %69, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %70)
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds %struct.stat, ptr %72, i32 0, i32 10
%74 = load i32, ptr %73, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %74)
%76 = load ptr, ptr %4, align 8
%77 = getelementptr inbounds %struct.stat, ptr %76, i32 0, i32 11
%78 = load i32, ptr %77, align 4
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %78)
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds %struct.stat, ptr %80, i32 0, i32 12
%82 = load i32, ptr %81, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %82)
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%85 = call i32 @fflush(ptr noundef null)
br label %94
86: ; preds = %13
%87 = load i32, ptr %5, align 4
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %87)
%89 = call i32 @fflush(ptr noundef null)
br label %94
90: ; preds = %13
%91 = load i32, ptr %7, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %91)
%93 = call i32 @fflush(ptr noundef null)
br label %94
94: ; preds = %90, %86, %28, %23
%95 = load i32, ptr %6, align 4
store i32 %95, ptr @errno, align 4
%96 = load i32, ptr %5, align 4
ret i32 %96
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_zng(i32 noundef) #1
declare i32 @lstat(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"}
|