llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpatj6aapc.c'
source_filename = "/tmp/tmpatj6aapc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @hello()
ret i32 %2
}
declare i32 @hello(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpatj6aapc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @hello()
ret i32 %2
}
declare i32 @hello(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvpq6eafn.c'
source_filename = "/tmp/tmpvpq6eafn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"RT28xx_DIR\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"CHIPSET\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"HAS_WOW_SUPPORT\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Environment value \22RT28xx_DIR\22 not export \0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"Environment value \22CHIPSET\22 not export \0A\00", align 1
@.str.5 = private unnamed_addr constant [45 x i8] c"Environment value \22RT28xx_DIR\22 is too long!\0A\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"2860\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"/common/rt2860.bin\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"2870\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"/common/rt2870.bin\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"3090\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"2070\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"3070\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"3572\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"3573\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"3370\00", align 1
@.str.16 = private unnamed_addr constant [5 x i8] c"5370\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"5572\00", align 1
@.str.18 = private unnamed_addr constant [5 x i8] c"5592\00", align 1
@.str.19 = private unnamed_addr constant [4 x i8] c"USB\00", align 1
@.str.20 = private unnamed_addr constant [4 x i8] c"PCI\00", align 1
@.str.21 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.22 = private unnamed_addr constant [7 x i8] c"rt2870\00", align 1
@.str.23 = private unnamed_addr constant [15 x i8] c"rt2870_wow.bin\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [12 x i8] c"infname %s\0A\00", align 1
@.str.25 = private unnamed_addr constant [20 x i8] c"/include/firmware.h\00", align 1
@.str.26 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.27 = private unnamed_addr constant [21 x i8] c"Can't read file %s \0A\00", align 1
@.str.28 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.29 = private unnamed_addr constant [27 x i8] c"Can't open write file %s \0A\00", align 1
@.str.30 = private unnamed_addr constant [41 x i8] c"/* AUTO GEN PLEASE DO NOT MODIFY IT */ \0A\00", align 1
@.str.31 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.32 = private unnamed_addr constant [29 x i8] c"UCHAR FirmwareImage [] = { \0A\00", align 1
@.str.33 = private unnamed_addr constant [3 x i8] c"0x\00", align 1
@.str.34 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.35 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.36 = private unnamed_addr constant [5 x i8] c"} ;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [1024 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca [3 x i8], align 1
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 %13, align 4
%16 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @memset(ptr noundef %16, i32 noundef 0, i32 noundef 1024)
%18 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef 1024)
%20 = call i64 @getenv(ptr noundef @.str)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %10, align 8
%22 = call i64 @getenv(ptr noundef @.str.1)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %11, align 8
%24 = call i64 @getenv(ptr noundef @.str.2)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %10, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %30, label %28
28: ; preds = %2
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %237
30: ; preds = %2
%31 = load ptr, ptr %11, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %237
35: ; preds = %30
%36 = load ptr, ptr %10, align 8
%37 = call i32 @strlen(ptr noundef %36)
%38 = sext i32 %37 to i64
%39 = icmp ugt i64 %38, 924
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %237
42: ; preds = %35
%43 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%44 = load ptr, ptr %10, align 8
%45 = call i32 @strcat(ptr noundef %43, ptr noundef %44)
%46 = load ptr, ptr %11, align 8
%47 = call i64 @strncmp(ptr noundef %46, ptr noundef @.str.6, i32 noundef 4)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %42
%50 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%51 = call i32 @strcat(ptr noundef %50, ptr noundef @.str.7)
br label %151
52: ; preds = %42
%53 = load ptr, ptr %11, align 8
%54 = call i64 @strncmp(ptr noundef %53, ptr noundef @.str.8, i32 noundef 4)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%58 = call i32 @strcat(ptr noundef %57, ptr noundef @.str.9)
br label %150
59: ; preds = %52
%60 = load ptr, ptr %11, align 8
%61 = call i64 @strncmp(ptr noundef %60, ptr noundef @.str.10, i32 noundef 4)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%65 = call i32 @strcat(ptr noundef %64, ptr noundef @.str.7)
br label %149
66: ; preds = %59
%67 = load ptr, ptr %11, align 8
%68 = call i64 @strncmp(ptr noundef %67, ptr noundef @.str.11, i32 noundef 4)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%72 = call i32 @strcat(ptr noundef %71, ptr noundef @.str.9)
br label %148
73: ; preds = %66
%74 = load ptr, ptr %11, align 8
%75 = call i64 @strncmp(ptr noundef %74, ptr noundef @.str.12, i32 noundef 4)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%79 = call i32 @strcat(ptr noundef %78, ptr noundef @.str.9)
br label %147
80: ; preds = %73
%81 = load ptr, ptr %11, align 8
%82 = call i64 @strncmp(ptr noundef %81, ptr noundef @.str.13, i32 noundef 4)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %80
%85 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%86 = call i32 @strcat(ptr noundef %85, ptr noundef @.str.9)
br label %146
87: ; preds = %80
%88 = load ptr, ptr %11, align 8
%89 = call i64 @strncmp(ptr noundef %88, ptr noundef @.str.14, i32 noundef 4)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%93 = call i32 @strcat(ptr noundef %92, ptr noundef @.str.9)
br label %145
94: ; preds = %87
%95 = load ptr, ptr %11, align 8
%96 = call i64 @strncmp(ptr noundef %95, ptr noundef @.str.15, i32 noundef 4)
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%100 = call i32 @strcat(ptr noundef %99, ptr noundef @.str.9)
br label %144
101: ; preds = %94
%102 = load ptr, ptr %11, align 8
%103 = call i64 @strncmp(ptr noundef %102, ptr noundef @.str.16, i32 noundef 4)
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %101
%106 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%107 = call i32 @strcat(ptr noundef %106, ptr noundef @.str.9)
br label %143
108: ; preds = %101
%109 = load ptr, ptr %11, align 8
%110 = call i64 @strncmp(ptr noundef %109, ptr noundef @.str.17, i32 noundef 4)
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %115
112: ; preds = %108
%113 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%114 = call i32 @strcat(ptr noundef %113, ptr noundef @.str.9)
br label %142
115: ; preds = %108
%116 = load ptr, ptr %11, align 8
%117 = call i64 @strncmp(ptr noundef %116, ptr noundef @.str.18, i32 noundef 4)
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %115
%120 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%121 = call i32 @strcat(ptr noundef %120, ptr noundef @.str.7)
br label %141
122: ; preds = %115
%123 = load ptr, ptr %11, align 8
%124 = call i64 @strncmp(ptr noundef %123, ptr noundef @.str.19, i32 noundef 3)
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %129
126: ; preds = %122
%127 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%128 = call i32 @strcat(ptr noundef %127, ptr noundef @.str.9)
br label %140
129: ; preds = %122
%130 = load ptr, ptr %11, align 8
%131 = call i64 @strncmp(ptr noundef %130, ptr noundef @.str.20, i32 noundef 3)
%132 = icmp eq i64 %131, 0
br i1 %132, label %133, label %136
133: ; preds = %129
%134 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%135 = call i32 @strcat(ptr noundef %134, ptr noundef @.str.7)
br label %139
136: ; preds = %129
%137 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%138 = call i32 @strcat(ptr noundef %137, ptr noundef @.str.7)
br label %139
139: ; preds = %136, %133
br label %140
140: ; preds = %139, %126
br label %141
141: ; preds = %140, %119
br label %142
142: ; preds = %141, %112
br label %143
143: ; preds = %142, %105
br label %144
144: ; preds = %143, %98
br label %145
145: ; preds = %144, %91
br label %146
146: ; preds = %145, %84
br label %147
147: ; preds = %146, %77
br label %148
148: ; preds = %147, %70
br label %149
149: ; preds = %148, %63
br label %150
150: ; preds = %149, %56
br label %151
151: ; preds = %150, %49
%152 = load ptr, ptr %12, align 8
%153 = icmp ne ptr %152, null
br i1 %153, label %154, label %169
154: ; preds = %151
%155 = load ptr, ptr %12, align 8
%156 = call i64 @strncmp(ptr noundef %155, ptr noundef @.str.21, i32 noundef 1)
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %169
158: ; preds = %154
%159 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%160 = call ptr @strstr(ptr noundef %159, ptr noundef @.str.22)
store ptr %160, ptr %12, align 8
%161 = icmp ne ptr %160, null
br i1 %161, label %162, label %168
162: ; preds = %158
%163 = load ptr, ptr %12, align 8
%164 = call i32 @strcpy(ptr noundef %163, ptr noundef @.str.23)
%165 = load i32, ptr @stderr, align 4
%166 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%167 = call i32 @fprintf(i32 noundef %165, ptr noundef @.str.24, ptr noundef %166)
br label %168
168: ; preds = %162, %158
br label %169
169: ; preds = %168, %154, %151
%170 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%171 = load ptr, ptr %10, align 8
%172 = call i32 @strcat(ptr noundef %170, ptr noundef %171)
%173 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%174 = call i32 @strcat(ptr noundef %173, ptr noundef @.str.25)
%175 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%176 = call ptr @fopen(ptr noundef %175, ptr noundef @.str.26)
store ptr %176, ptr %6, align 8
%177 = load ptr, ptr %6, align 8
%178 = icmp eq ptr %177, null
br i1 %178, label %179, label %182
179: ; preds = %169
%180 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, ptr noundef %180)
store i32 -1, ptr %3, align 4
br label %237
182: ; preds = %169
%183 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%184 = call ptr @fopen(ptr noundef %183, ptr noundef @.str.28)
store ptr %184, ptr %7, align 8
%185 = load ptr, ptr %7, align 8
%186 = icmp eq ptr %185, null
br i1 %186, label %187, label %190
187: ; preds = %182
%188 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%189 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %188)
store i32 -1, ptr %3, align 4
br label %237
190: ; preds = %182
%191 = load ptr, ptr %7, align 8
%192 = call i32 @fputs(ptr noundef @.str.30, ptr noundef %191)
%193 = load ptr, ptr %7, align 8
%194 = call i32 @fputs(ptr noundef @.str.30, ptr noundef %193)
%195 = load ptr, ptr %7, align 8
%196 = call i32 @fputs(ptr noundef @.str.31, ptr noundef %195)
%197 = load ptr, ptr %7, align 8
%198 = call i32 @fputs(ptr noundef @.str.31, ptr noundef %197)
%199 = load ptr, ptr %7, align 8
%200 = call i32 @fputs(ptr noundef @.str.32, ptr noundef %199)
br label %201
201: ; preds = %190, %216
%202 = load ptr, ptr %6, align 8
%203 = call zeroext i8 @getc(ptr noundef %202)
store i8 %203, ptr %14, align 1
%204 = load ptr, ptr %6, align 8
%205 = call i64 @feof(ptr noundef %204)
%206 = icmp ne i64 %205, 0
br i1 %206, label %207, label %208
207: ; preds = %201
br label %229
208: ; preds = %201
%209 = getelementptr inbounds [3 x i8], ptr %15, i64 0, i64 0
%210 = call i32 @memset(ptr noundef %209, i32 noundef 0, i32 noundef 2)
%211 = load i32, ptr %13, align 4
%212 = icmp sge i32 %211, 16
br i1 %212, label %213, label %216
213: ; preds = %208
%214 = load ptr, ptr %7, align 8
%215 = call i32 @fputs(ptr noundef @.str.31, ptr noundef %214)
store i32 0, ptr %13, align 4
br label %216
216: ; preds = %213, %208
%217 = load ptr, ptr %7, align 8
%218 = call i32 @fputs(ptr noundef @.str.33, ptr noundef %217)
%219 = getelementptr inbounds [3 x i8], ptr %15, i64 0, i64 0
%220 = load i8, ptr %14, align 1
%221 = call i32 @sprintf(ptr noundef %219, ptr noundef @.str.34, i8 noundef zeroext %220)
%222 = getelementptr inbounds [3 x i8], ptr %15, i64 0, i64 0
%223 = load ptr, ptr %7, align 8
%224 = call i32 @fputs(ptr noundef %222, ptr noundef %223)
%225 = load ptr, ptr %7, align 8
%226 = call i32 @fputs(ptr noundef @.str.35, ptr noundef %225)
%227 = load i32, ptr %13, align 4
%228 = add nsw i32 %227, 1
store i32 %228, ptr %13, align 4
br label %201
229: ; preds = %207
%230 = load ptr, ptr %7, align 8
%231 = call i32 @fputs(ptr noundef @.str.36, ptr noundef %230)
%232 = load ptr, ptr %6, align 8
%233 = call i32 @fclose(ptr noundef %232)
%234 = load ptr, ptr %7, align 8
%235 = call i32 @fclose(ptr noundef %234)
%236 = call i32 @exit(i32 noundef 0) #3
unreachable
237: ; preds = %187, %179, %40, %33, %28
%238 = load i32, ptr %3, align 4
ret i32 %238
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @getenv(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare zeroext i8 @getc(ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
declare i32 @fclose(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/tmpvpq6eafn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"RT28xx_DIR\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"CHIPSET\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"HAS_WOW_SUPPORT\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Environment value \22RT28xx_DIR\22 not export \0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"Environment value \22CHIPSET\22 not export \0A\00", align 1
@.str.5 = private unnamed_addr constant [45 x i8] c"Environment value \22RT28xx_DIR\22 is too long!\0A\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"2860\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"/common/rt2860.bin\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"2870\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"/common/rt2870.bin\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"3090\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"2070\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"3070\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"3572\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"3573\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"3370\00", align 1
@.str.16 = private unnamed_addr constant [5 x i8] c"5370\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"5572\00", align 1
@.str.18 = private unnamed_addr constant [5 x i8] c"5592\00", align 1
@.str.19 = private unnamed_addr constant [4 x i8] c"USB\00", align 1
@.str.20 = private unnamed_addr constant [4 x i8] c"PCI\00", align 1
@.str.21 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.22 = private unnamed_addr constant [7 x i8] c"rt2870\00", align 1
@.str.23 = private unnamed_addr constant [15 x i8] c"rt2870_wow.bin\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [12 x i8] c"infname %s\0A\00", align 1
@.str.25 = private unnamed_addr constant [20 x i8] c"/include/firmware.h\00", align 1
@.str.26 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.27 = private unnamed_addr constant [21 x i8] c"Can't read file %s \0A\00", align 1
@.str.28 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.29 = private unnamed_addr constant [27 x i8] c"Can't open write file %s \0A\00", align 1
@.str.30 = private unnamed_addr constant [41 x i8] c"/* AUTO GEN PLEASE DO NOT MODIFY IT */ \0A\00", align 1
@.str.31 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.32 = private unnamed_addr constant [29 x i8] c"UCHAR FirmwareImage [] = { \0A\00", align 1
@.str.33 = private unnamed_addr constant [3 x i8] c"0x\00", align 1
@.str.34 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.35 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.36 = private unnamed_addr constant [5 x i8] c"} ;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [1024 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca [3 x i8], align 1
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 %13, align 4
%16 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @memset(ptr noundef %16, i32 noundef 0, i32 noundef 1024)
%18 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef 1024)
%20 = call i64 @getenv(ptr noundef @.str)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %10, align 8
%22 = call i64 @getenv(ptr noundef @.str.1)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %11, align 8
%24 = call i64 @getenv(ptr noundef @.str.2)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %10, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %30, label %28
28: ; preds = %2
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %241
30: ; preds = %2
%31 = load ptr, ptr %11, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %241
35: ; preds = %30
%36 = load ptr, ptr %10, align 8
%37 = call i32 @strlen(ptr noundef %36)
%38 = sext i32 %37 to i64
%39 = icmp ugt i64 %38, 924
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %241
42: ; preds = %35
%43 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%44 = load ptr, ptr %10, align 8
%45 = call i32 @strcat(ptr noundef %43, ptr noundef %44)
%46 = load ptr, ptr %11, align 8
%47 = call i64 @strncmp(ptr noundef %46, ptr noundef @.str.6, i32 noundef 4)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %42
%50 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%51 = call i32 @strcat(ptr noundef %50, ptr noundef @.str.7)
br label %151
52: ; preds = %42
%53 = load ptr, ptr %11, align 8
%54 = call i64 @strncmp(ptr noundef %53, ptr noundef @.str.8, i32 noundef 4)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%58 = call i32 @strcat(ptr noundef %57, ptr noundef @.str.9)
br label %150
59: ; preds = %52
%60 = load ptr, ptr %11, align 8
%61 = call i64 @strncmp(ptr noundef %60, ptr noundef @.str.10, i32 noundef 4)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%65 = call i32 @strcat(ptr noundef %64, ptr noundef @.str.7)
br label %149
66: ; preds = %59
%67 = load ptr, ptr %11, align 8
%68 = call i64 @strncmp(ptr noundef %67, ptr noundef @.str.11, i32 noundef 4)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%72 = call i32 @strcat(ptr noundef %71, ptr noundef @.str.9)
br label %148
73: ; preds = %66
%74 = load ptr, ptr %11, align 8
%75 = call i64 @strncmp(ptr noundef %74, ptr noundef @.str.12, i32 noundef 4)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%79 = call i32 @strcat(ptr noundef %78, ptr noundef @.str.9)
br label %147
80: ; preds = %73
%81 = load ptr, ptr %11, align 8
%82 = call i64 @strncmp(ptr noundef %81, ptr noundef @.str.13, i32 noundef 4)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %80
%85 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%86 = call i32 @strcat(ptr noundef %85, ptr noundef @.str.9)
br label %146
87: ; preds = %80
%88 = load ptr, ptr %11, align 8
%89 = call i64 @strncmp(ptr noundef %88, ptr noundef @.str.14, i32 noundef 4)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%93 = call i32 @strcat(ptr noundef %92, ptr noundef @.str.9)
br label %145
94: ; preds = %87
%95 = load ptr, ptr %11, align 8
%96 = call i64 @strncmp(ptr noundef %95, ptr noundef @.str.15, i32 noundef 4)
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%100 = call i32 @strcat(ptr noundef %99, ptr noundef @.str.9)
br label %144
101: ; preds = %94
%102 = load ptr, ptr %11, align 8
%103 = call i64 @strncmp(ptr noundef %102, ptr noundef @.str.16, i32 noundef 4)
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %101
%106 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%107 = call i32 @strcat(ptr noundef %106, ptr noundef @.str.9)
br label %143
108: ; preds = %101
%109 = load ptr, ptr %11, align 8
%110 = call i64 @strncmp(ptr noundef %109, ptr noundef @.str.17, i32 noundef 4)
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %115
112: ; preds = %108
%113 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%114 = call i32 @strcat(ptr noundef %113, ptr noundef @.str.9)
br label %142
115: ; preds = %108
%116 = load ptr, ptr %11, align 8
%117 = call i64 @strncmp(ptr noundef %116, ptr noundef @.str.18, i32 noundef 4)
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %115
%120 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%121 = call i32 @strcat(ptr noundef %120, ptr noundef @.str.7)
br label %141
122: ; preds = %115
%123 = load ptr, ptr %11, align 8
%124 = call i64 @strncmp(ptr noundef %123, ptr noundef @.str.19, i32 noundef 3)
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %129
126: ; preds = %122
%127 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%128 = call i32 @strcat(ptr noundef %127, ptr noundef @.str.9)
br label %140
129: ; preds = %122
%130 = load ptr, ptr %11, align 8
%131 = call i64 @strncmp(ptr noundef %130, ptr noundef @.str.20, i32 noundef 3)
%132 = icmp eq i64 %131, 0
br i1 %132, label %133, label %136
133: ; preds = %129
%134 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%135 = call i32 @strcat(ptr noundef %134, ptr noundef @.str.7)
br label %139
136: ; preds = %129
%137 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%138 = call i32 @strcat(ptr noundef %137, ptr noundef @.str.7)
br label %139
139: ; preds = %136, %133
br label %140
140: ; preds = %139, %126
br label %141
141: ; preds = %140, %119
br label %142
142: ; preds = %141, %112
br label %143
143: ; preds = %142, %105
br label %144
144: ; preds = %143, %98
br label %145
145: ; preds = %144, %91
br label %146
146: ; preds = %145, %84
br label %147
147: ; preds = %146, %77
br label %148
148: ; preds = %147, %70
br label %149
149: ; preds = %148, %63
br label %150
150: ; preds = %149, %56
br label %151
151: ; preds = %150, %49
%152 = load ptr, ptr %12, align 8
%153 = icmp ne ptr %152, null
br i1 %153, label %154, label %169
154: ; preds = %151
%155 = load ptr, ptr %12, align 8
%156 = call i64 @strncmp(ptr noundef %155, ptr noundef @.str.21, i32 noundef 1)
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %169
158: ; preds = %154
%159 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%160 = call ptr @strstr(ptr noundef %159, ptr noundef @.str.22)
store ptr %160, ptr %12, align 8
%161 = icmp ne ptr %160, null
br i1 %161, label %162, label %168
162: ; preds = %158
%163 = load ptr, ptr %12, align 8
%164 = call i32 @strcpy(ptr noundef %163, ptr noundef @.str.23)
%165 = load i32, ptr @stderr, align 4
%166 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%167 = call i32 @fprintf(i32 noundef %165, ptr noundef @.str.24, ptr noundef %166)
br label %168
168: ; preds = %162, %158
br label %169
169: ; preds = %168, %154, %151
%170 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%171 = load ptr, ptr %10, align 8
%172 = call i32 @strcat(ptr noundef %170, ptr noundef %171)
%173 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%174 = call i32 @strcat(ptr noundef %173, ptr noundef @.str.25)
%175 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%176 = call ptr @fopen(ptr noundef %175, ptr noundef @.str.26)
store ptr %176, ptr %6, align 8
%177 = load ptr, ptr %6, align 8
%178 = icmp eq ptr %177, null
br i1 %178, label %179, label %182
179: ; preds = %169
%180 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, ptr noundef %180)
store i32 -1, ptr %3, align 4
br label %241
182: ; preds = %169
%183 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%184 = call ptr @fopen(ptr noundef %183, ptr noundef @.str.28)
store ptr %184, ptr %7, align 8
%185 = load ptr, ptr %7, align 8
%186 = icmp eq ptr %185, null
br i1 %186, label %187, label %190
187: ; preds = %182
%188 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%189 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %188)
store i32 -1, ptr %3, align 4
br label %241
190: ; preds = %182
%191 = load ptr, ptr %7, align 8
%192 = call i32 @fputs(ptr noundef @.str.30, ptr noundef %191)
%193 = load ptr, ptr %7, align 8
%194 = call i32 @fputs(ptr noundef @.str.30, ptr noundef %193)
%195 = load ptr, ptr %7, align 8
%196 = call i32 @fputs(ptr noundef @.str.31, ptr noundef %195)
%197 = load ptr, ptr %7, align 8
%198 = call i32 @fputs(ptr noundef @.str.31, ptr noundef %197)
%199 = load ptr, ptr %7, align 8
%200 = call i32 @fputs(ptr noundef @.str.32, ptr noundef %199)
%201 = load ptr, ptr %6, align 8
%202 = call zeroext i8 @getc(ptr noundef %201)
store i8 %202, ptr %14, align 1
%203 = load ptr, ptr %6, align 8
%204 = call i64 @feof(ptr noundef %203)
%205 = icmp ne i64 %204, 0
br i1 %205, label %206, label %.lr.ph
.lr.ph: ; preds = %190
br label %207
._crit_edge: ; preds = %215
br label %206
206: ; preds = %._crit_edge, %190
br label %233
207: ; preds = %.lr.ph, %215
%208 = getelementptr inbounds [3 x i8], ptr %15, i64 0, i64 0
%209 = call i32 @memset(ptr noundef %208, i32 noundef 0, i32 noundef 2)
%210 = load i32, ptr %13, align 4
%211 = icmp sge i32 %210, 16
br i1 %211, label %212, label %215
212: ; preds = %207
%213 = load ptr, ptr %7, align 8
%214 = call i32 @fputs(ptr noundef @.str.31, ptr noundef %213)
store i32 0, ptr %13, align 4
br label %215
215: ; preds = %212, %207
%216 = load ptr, ptr %7, align 8
%217 = call i32 @fputs(ptr noundef @.str.33, ptr noundef %216)
%218 = getelementptr inbounds [3 x i8], ptr %15, i64 0, i64 0
%219 = load i8, ptr %14, align 1
%220 = call i32 @sprintf(ptr noundef %218, ptr noundef @.str.34, i8 noundef zeroext %219)
%221 = getelementptr inbounds [3 x i8], ptr %15, i64 0, i64 0
%222 = load ptr, ptr %7, align 8
%223 = call i32 @fputs(ptr noundef %221, ptr noundef %222)
%224 = load ptr, ptr %7, align 8
%225 = call i32 @fputs(ptr noundef @.str.35, ptr noundef %224)
%226 = load i32, ptr %13, align 4
%227 = add nsw i32 %226, 1
store i32 %227, ptr %13, align 4
%228 = load ptr, ptr %6, align 8
%229 = call zeroext i8 @getc(ptr noundef %228)
store i8 %229, ptr %14, align 1
%230 = load ptr, ptr %6, align 8
%231 = call i64 @feof(ptr noundef %230)
%232 = icmp ne i64 %231, 0
br i1 %232, label %._crit_edge, label %207
233: ; preds = %206
%234 = load ptr, ptr %7, align 8
%235 = call i32 @fputs(ptr noundef @.str.36, ptr noundef %234)
%236 = load ptr, ptr %6, align 8
%237 = call i32 @fclose(ptr noundef %236)
%238 = load ptr, ptr %7, align 8
%239 = call i32 @fclose(ptr noundef %238)
%240 = call i32 @exit(i32 noundef 0) #3
unreachable
241: ; preds = %187, %179, %40, %33, %28
%242 = load i32, ptr %3, align 4
ret i32 %242
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @getenv(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare zeroext i8 @getc(ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
declare i32 @fclose(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/tmpn1qhqi5y.c'
source_filename = "/tmp/tmpn1qhqi5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atomic_notify(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @__builtin_wasm_atomic_notify(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @__builtin_wasm_atomic_notify(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/tmpn1qhqi5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atomic_notify(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @__builtin_wasm_atomic_notify(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @__builtin_wasm_atomic_notify(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/tmpgyddw1hw.c'
source_filename = "/tmp/tmpgyddw1hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Insira o nome de um arquivo.\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"0%d.c\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d.c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = 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
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %118
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = sext i32 %25 to i64
%27 = mul i64 %26, 1
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 noundef %28)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %9, align 4
br label %31
31: ; preds = %50, %21
%32 = load i32, ptr %9, align 4
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call i32 @strlen(ptr noundef %35)
%37 = icmp slt i32 %32, %36
br i1 %37, label %38, label %53
38: ; preds = %31
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
store i8 %45, ptr %49, align 1
br label %50
50: ; preds = %38
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
br label %31, !llvm.loop !6
53: ; preds = %31
%54 = load ptr, ptr %8, align 8
%55 = call ptr @fopen(ptr noundef %54, ptr noundef @.str.1)
store ptr %55, ptr %6, align 8
%56 = load ptr, ptr %8, align 8
%57 = call i32 @fsize(ptr noundef %56)
store i32 %57, ptr %10, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %58
58: ; preds = %53, %112
%59 = load ptr, ptr %6, align 8
%60 = call signext i8 @fgetc(ptr noundef %59)
store i8 %60, ptr %11, align 1
%61 = load i8, ptr %11, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 47
br i1 %63, label %64, label %107
64: ; preds = %58
%65 = load ptr, ptr %6, align 8
%66 = call signext i8 @fgetc(ptr noundef %65)
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 42
br i1 %68, label %69, label %106
69: ; preds = %64
%70 = load i32, ptr %14, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %14, align 4
%72 = load i32, ptr %14, align 4
%73 = icmp slt i32 %72, 9
br i1 %73, label %74, label %78
74: ; preds = %69
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr %14, align 4
%77 = call i32 @sprintf(ptr noundef %75, ptr noundef @.str.2, i32 noundef %76)
br label %82
78: ; preds = %69
%79 = load ptr, ptr %8, align 8
%80 = load i32, ptr %14, align 4
%81 = call i32 @sprintf(ptr noundef %79, ptr noundef @.str.3, i32 noundef %80)
br label %82
82: ; preds = %78, %74
br label %83
83: ; preds = %82, %104
%84 = load ptr, ptr %8, align 8
%85 = call ptr @fopen(ptr noundef %84, ptr noundef @.str.4)
store ptr %85, ptr %7, align 8
%86 = load ptr, ptr %6, align 8
%87 = call signext i8 @fgetc(ptr noundef %86)
store i8 %87, ptr %11, align 1
%88 = load ptr, ptr %7, align 8
%89 = load i8, ptr %11, align 1
%90 = call i32 @fprintf(ptr noundef %88, ptr noundef @.str.5, i8 noundef signext %89)
%91 = load i8, ptr %11, align 1
%92 = sext i8 %91 to i32
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %92)
%94 = load i8, ptr %11, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 42
br i1 %96, label %97, label %104
97: ; preds = %83
%98 = load ptr, ptr %6, align 8
%99 = call signext i8 @fgetc(ptr noundef %98)
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 47
br i1 %101, label %102, label %103
102: ; preds = %97
br label %105
103: ; preds = %97
br label %104
104: ; preds = %103, %83
br label %83
105: ; preds = %102
br label %106
106: ; preds = %105, %64
br label %107
107: ; preds = %106, %58
%108 = load ptr, ptr %6, align 8
%109 = call i64 @feof(ptr noundef %108)
%110 = icmp ne i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
br label %115
112: ; preds = %107
%113 = load i32, ptr %12, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %12, align 4
br label %58
115: ; preds = %111
%116 = load ptr, ptr %6, align 8
%117 = call i32 @fclose(ptr noundef %116)
store i32 0, ptr %3, align 4
br label %118
118: ; preds = %115, %19
%119 = load i32, ptr %3, align 4
ret i32 %119
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fsize(ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgyddw1hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Insira o nome de um arquivo.\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"0%d.c\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d.c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = 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
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %123
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = sext i32 %25 to i64
%27 = mul i64 %26, 1
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 noundef %28)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i32 @strlen(ptr noundef %34)
%36 = icmp slt i32 %31, %35
br i1 %36, label %.lr.ph, label %58
.lr.ph: ; preds = %21
br label %37
37: ; preds = %.lr.ph, %49
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr %9, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
store i8 %44, ptr %48, align 1
br label %49
49: ; preds = %37
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
%52 = load i32, ptr %9, align 4
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 1
%55 = load ptr, ptr %54, align 8
%56 = call i32 @strlen(ptr noundef %55)
%57 = icmp slt i32 %52, %56
br i1 %57, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %58
58: ; preds = %._crit_edge, %21
%59 = load ptr, ptr %8, align 8
%60 = call ptr @fopen(ptr noundef %59, ptr noundef @.str.1)
store ptr %60, ptr %6, align 8
%61 = load ptr, ptr %8, align 8
%62 = call i32 @fsize(ptr noundef %61)
store i32 %62, ptr %10, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %63
63: ; preds = %117, %58
%64 = load ptr, ptr %6, align 8
%65 = call signext i8 @fgetc(ptr noundef %64)
store i8 %65, ptr %11, align 1
%66 = load i8, ptr %11, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 47
br i1 %68, label %69, label %112
69: ; preds = %63
%70 = load ptr, ptr %6, align 8
%71 = call signext i8 @fgetc(ptr noundef %70)
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 42
br i1 %73, label %74, label %111
74: ; preds = %69
%75 = load i32, ptr %14, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %14, align 4
%77 = load i32, ptr %14, align 4
%78 = icmp slt i32 %77, 9
br i1 %78, label %79, label %83
79: ; preds = %74
%80 = load ptr, ptr %8, align 8
%81 = load i32, ptr %14, align 4
%82 = call i32 @sprintf(ptr noundef %80, ptr noundef @.str.2, i32 noundef %81)
br label %87
83: ; preds = %74
%84 = load ptr, ptr %8, align 8
%85 = load i32, ptr %14, align 4
%86 = call i32 @sprintf(ptr noundef %84, ptr noundef @.str.3, i32 noundef %85)
br label %87
87: ; preds = %83, %79
br label %88
88: ; preds = %109, %87
%89 = load ptr, ptr %8, align 8
%90 = call ptr @fopen(ptr noundef %89, ptr noundef @.str.4)
store ptr %90, ptr %7, align 8
%91 = load ptr, ptr %6, align 8
%92 = call signext i8 @fgetc(ptr noundef %91)
store i8 %92, ptr %11, align 1
%93 = load ptr, ptr %7, align 8
%94 = load i8, ptr %11, align 1
%95 = call i32 @fprintf(ptr noundef %93, ptr noundef @.str.5, i8 noundef signext %94)
%96 = load i8, ptr %11, align 1
%97 = sext i8 %96 to i32
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %97)
%99 = load i8, ptr %11, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 42
br i1 %101, label %102, label %109
102: ; preds = %88
%103 = load ptr, ptr %6, align 8
%104 = call signext i8 @fgetc(ptr noundef %103)
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 47
br i1 %106, label %107, label %108
107: ; preds = %102
br label %110
108: ; preds = %102
br label %109
109: ; preds = %108, %88
br label %88
110: ; preds = %107
br label %111
111: ; preds = %110, %69
br label %112
112: ; preds = %111, %63
%113 = load ptr, ptr %6, align 8
%114 = call i64 @feof(ptr noundef %113)
%115 = icmp ne i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
br label %120
117: ; preds = %112
%118 = load i32, ptr %12, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %12, align 4
br label %63
120: ; preds = %116
%121 = load ptr, ptr %6, align 8
%122 = call i32 @fclose(ptr noundef %121)
store i32 0, ptr %3, align 4
br label %123
123: ; preds = %120, %19
%124 = load i32, ptr %3, align 4
ret i32 %124
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fsize(ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfxc6p2j6.c'
source_filename = "/tmp/tmpfxc6p2j6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %2, align 4
br label %9
9: ; preds = %18, %0
%10 = load i32, ptr %2, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %16)
br label %18
18: ; preds = %12
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %2, align 4
br label %9, !llvm.loop !6
21: ; preds = %9
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfxc6p2j6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %17
%12 = load i32, ptr %2, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %15)
br label %17
17: ; preds = %11
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp sge i32 %20, 0
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(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"}
|
; ModuleID = '/tmp/tmpsdwv5w7x.c'
source_filename = "/tmp/tmpsdwv5w7x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3.1lf - %3.4lf = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 1.525000e+02, ptr %2, align 8
store double 0x4063065AEE631F8A, ptr %3, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %3, align 8
%8 = fsub double %6, %7
%9 = call i32 @printf(ptr noundef @.str, double noundef %4, double noundef %5, double noundef %8)
%10 = load double, ptr %2, align 8
%11 = load double, ptr %3, align 8
%12 = load double, ptr %2, align 8
%13 = load double, ptr %3, align 8
%14 = fsub double %12, %13
%15 = call i32 @printf(ptr noundef @.str, double noundef %10, double noundef %11, double noundef %14)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsdwv5w7x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3.1lf - %3.4lf = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 1.525000e+02, ptr %2, align 8
store double 0x4063065AEE631F8A, ptr %3, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %3, align 8
%8 = fsub double %6, %7
%9 = call i32 @printf(ptr noundef @.str, double noundef %4, double noundef %5, double noundef %8)
%10 = load double, ptr %2, align 8
%11 = load double, ptr %3, align 8
%12 = load double, ptr %2, align 8
%13 = load double, ptr %3, align 8
%14 = fsub double %12, %13
%15 = call i32 @printf(ptr noundef @.str, double noundef %10, double noundef %11, double noundef %14)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpukcjro5o.c'
source_filename = "/tmp/tmpukcjro5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Route file simplification\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"-------------------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"sort [FILE] : sort FILE by prefix\0A\00", align 1
@.str.3 = private unnamed_addr constant [80 x i8] c"sortby name [FILE] : sort FILE by (prefix|gw|mask), prefix is a tie-breaker\0A\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"sortby help\09 : print available sort options\0A\00", align 1
@.str.5 = private unnamed_addr constant [79 x i8] c"subnetagg [FILE] : sort and aggregate subnets in FILE; GW is not checked\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c"routeagg [FILE] : sort and aggregate subnets in FILE; GW is checked\0A\00", align 1
@.str.7 = private unnamed_addr constant [94 x i8] c"routesimplify1 [FILE] : simplify CSV subnet file duplicate or included networks are removed;\0A\00", align 1
@.str.8 = private unnamed_addr constant [95 x i8] c"routesimplify2 [FILE] : simplify CSV subnet file; prints redundant routes that can be removed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage_en_simplify() #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)
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/tmpukcjro5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Route file simplification\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"-------------------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"sort [FILE] : sort FILE by prefix\0A\00", align 1
@.str.3 = private unnamed_addr constant [80 x i8] c"sortby name [FILE] : sort FILE by (prefix|gw|mask), prefix is a tie-breaker\0A\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"sortby help\09 : print available sort options\0A\00", align 1
@.str.5 = private unnamed_addr constant [79 x i8] c"subnetagg [FILE] : sort and aggregate subnets in FILE; GW is not checked\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c"routeagg [FILE] : sort and aggregate subnets in FILE; GW is checked\0A\00", align 1
@.str.7 = private unnamed_addr constant [94 x i8] c"routesimplify1 [FILE] : simplify CSV subnet file duplicate or included networks are removed;\0A\00", align 1
@.str.8 = private unnamed_addr constant [95 x i8] c"routesimplify2 [FILE] : simplify CSV subnet file; prints redundant routes that can be removed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage_en_simplify() #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)
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/tmp86rggxab.c'
source_filename = "/tmp/tmp86rggxab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = call i64 @bar(i32 noundef 7)
%8 = add nsw i64 %7, 6
%9 = call i32 @baz(i64 noundef %8)
br label %14
10: ; preds = %1
%11 = call i64 @bar(i32 noundef 7)
%12 = add nsw i64 %11, 6
%13 = call i32 @baz(i64 noundef %12)
br label %14
14: ; preds = %10, %6
ret void
}
declare i32 @baz(i64 noundef) #1
declare i64 @bar(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/tmp86rggxab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = call i64 @bar(i32 noundef 7)
%8 = add nsw i64 %7, 6
%9 = call i32 @baz(i64 noundef %8)
br label %14
10: ; preds = %1
%11 = call i64 @bar(i32 noundef 7)
%12 = add nsw i64 %11, 6
%13 = call i32 @baz(i64 noundef %12)
br label %14
14: ; preds = %10, %6
ret void
}
declare i32 @baz(i64 noundef) #1
declare i64 @bar(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/tmph0iqe7mh.c'
source_filename = "/tmp/tmph0iqe7mh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %21, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = load i32, ptr %5, align 4
%11 = trunc i32 %10 to i8
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %9, %12
br i1 %13, label %14, label %22
14: ; preds = %6
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %4, align 8
%17 = load i8, ptr %15, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %14
store ptr null, ptr %3, align 8
br label %24
21: ; preds = %14
br label %6, !llvm.loop !6
22: ; preds = %6
%23 = load ptr, ptr %4, align 8
store ptr %23, ptr %3, align 8
br label %24
24: ; preds = %22, %20
%25 = load ptr, ptr %3, align 8
ret ptr %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/tmph0iqe7mh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = load i32, ptr %5, align 4
%10 = trunc i32 %9 to i8
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %8, %11
br i1 %12, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %21
13: ; preds = %21
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = load i32, ptr %5, align 4
%18 = trunc i32 %17 to i8
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %16, %19
br i1 %20, label %21, label %._crit_edge, !llvm.loop !6
21: ; preds = %.lr.ph, %13
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %4, align 8
%24 = load i8, ptr %22, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %13
27: ; preds = %21
store ptr null, ptr %3, align 8
br label %30
._crit_edge: ; preds = %13
br label %28
28: ; preds = %._crit_edge, %2
%29 = load ptr, ptr %4, align 8
store ptr %29, ptr %3, align 8
br label %30
30: ; preds = %28, %27
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpy4fxd5t7.c'
source_filename = "/tmp/tmpy4fxd5t7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %57
10: ; preds = %2
br label %11
11: ; preds = %55, %10
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %56
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i64 @string_prefix(ptr noundef %16, ptr noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = load ptr, ptr %4, align 8
store ptr %21, ptr %3, align 8
br label %58
22: ; preds = %15
br label %23
23: ; preds = %35, %22
%24 = load ptr, ptr %4, 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 %33
28: ; preds = %23
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = call i64 @isalnum(i8 noundef signext %30)
%32 = icmp ne i64 %31, 0
br label %33
33: ; preds = %28, %23
%34 = phi i1 [ false, %23 ], [ %32, %28 ]
br i1 %34, label %35, label %38
35: ; preds = %33
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %4, align 8
br label %23, !llvm.loop !6
38: ; preds = %33
br label %39
39: ; preds = %52, %38
%40 = load ptr, ptr %4, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %39
%45 = load ptr, ptr %4, align 8
%46 = load i8, ptr %45, align 1
%47 = call i64 @isalnum(i8 noundef signext %46)
%48 = icmp ne i64 %47, 0
%49 = xor i1 %48, true
br label %50
50: ; preds = %44, %39
%51 = phi i1 [ false, %39 ], [ %49, %44 ]
br i1 %51, label %52, label %55
52: ; preds = %50
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %4, align 8
br label %39, !llvm.loop !8
55: ; preds = %50
br label %11, !llvm.loop !9
56: ; preds = %11
br label %57
57: ; preds = %56, %2
store ptr null, ptr %3, align 8
br label %58
58: ; preds = %57, %20
%59 = load ptr, ptr %3, align 8
ret ptr %59
}
declare i64 @string_prefix(ptr noundef, ptr noundef) #1
declare i64 @isalnum(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy4fxd5t7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %59
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %.lr.ph, label %58
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %54
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i64 @string_prefix(ptr noundef %15, ptr noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %3, align 8
br label %60
21: ; preds = %14
br label %22
22: ; preds = %34, %21
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %22
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = call i64 @isalnum(i8 noundef signext %29)
%31 = icmp ne i64 %30, 0
br label %32
32: ; preds = %27, %22
%33 = phi i1 [ false, %22 ], [ %31, %27 ]
br i1 %33, label %34, label %37
34: ; preds = %32
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %4, align 8
br label %22, !llvm.loop !6
37: ; preds = %32
br label %38
38: ; preds = %51, %37
%39 = load ptr, ptr %4, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %38
%44 = load ptr, ptr %4, align 8
%45 = load i8, ptr %44, align 1
%46 = call i64 @isalnum(i8 noundef signext %45)
%47 = icmp ne i64 %46, 0
%48 = xor i1 %47, true
br label %49
49: ; preds = %43, %38
%50 = phi i1 [ false, %38 ], [ %48, %43 ]
br i1 %50, label %51, label %54
51: ; preds = %49
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds i8, ptr %52, i32 1
store ptr %53, ptr %4, align 8
br label %38, !llvm.loop !8
54: ; preds = %49
%55 = load ptr, ptr %4, align 8
%56 = load i8, ptr %55, align 1
%57 = icmp ne i8 %56, 0
br i1 %57, label %14, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %54
br label %58
58: ; preds = %._crit_edge, %10
br label %59
59: ; preds = %58, %2
store ptr null, ptr %3, align 8
br label %60
60: ; preds = %59, %19
%61 = load ptr, ptr %3, align 8
ret ptr %61
}
declare i64 @string_prefix(ptr noundef, ptr noundef) #1
declare i64 @isalnum(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp7xlpxzu5.c'
source_filename = "/tmp/tmp7xlpxzu5.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@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/tmp7xlpxzu5.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@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/tmpuuleqxdi.c'
source_filename = "/tmp/tmpuuleqxdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"snanstdevtk\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 1000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuuleqxdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"snanstdevtk\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 1000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpph_8jplg.c'
source_filename = "/tmp/tmpph_8jplg.c"
target datalayout = "e-m:e-p270: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/tmpph_8jplg.c"
target datalayout = "e-m:e-p270: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/tmpr3wgfcq9.c'
source_filename = "/tmp/tmpr3wgfcq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @output_sensors_binary(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 @serial_write(ptr noundef %3, i32 noundef 72)
ret void
}
declare i32 @serial_write(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/tmpr3wgfcq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @output_sensors_binary(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 @serial_write(ptr noundef %3, i32 noundef 72)
ret void
}
declare i32 @serial_write(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/tmpnsqlbjkt.c'
source_filename = "/tmp/tmpnsqlbjkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_back(ptr noalias noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) #0 {
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%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 ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i32 %2, ptr %14, align 4
store i32 %3, ptr %15, align 4
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store i32 %6, ptr %18, align 4
store i32 %7, ptr %19, align 4
store i32 %8, ptr %20, align 4
store i32 %9, ptr %21, align 4
store i32 %10, ptr %22, align 4
%36 = load i32, ptr %14, align 4
%37 = load i32, ptr %16, align 4
%38 = mul nsw i32 2, %37
%39 = add nsw i32 %36, %38
store i32 %39, ptr %23, align 4
%40 = load i32, ptr %19, align 4
store i32 %40, ptr %24, align 4
%41 = load i32, ptr %15, align 4
%42 = load i32, ptr %16, align 4
%43 = mul nsw i32 2, %42
%44 = add nsw i32 %41, %43
%45 = load i32, ptr %23, align 4
%46 = mul nsw i32 %44, %45
store i32 %46, ptr %25, align 4
%47 = load i32, ptr %20, align 4
%48 = load i32, ptr %24, align 4
%49 = mul nsw i32 %47, %48
store i32 %49, ptr %26, align 4
%50 = load i32, ptr %18, align 4
%51 = load i32, ptr %21, align 4
%52 = srem i32 %50, %51
%53 = load i32, ptr %21, align 4
%54 = sub nsw i32 %53, 1
%55 = icmp eq i32 %52, %54
br i1 %55, label %56, label %62
56: ; preds = %11
%57 = load i32, ptr %21, align 4
%58 = load i32, ptr %14, align 4
%59 = mul nsw i32 %57, %58
%60 = load i32, ptr %19, align 4
%61 = sub nsw i32 %59, %60
br label %63
62: ; preds = %11
br label %63
63: ; preds = %62, %56
%64 = phi i32 [ %61, %56 ], [ 0, %62 ]
store i32 %64, ptr %27, align 4
%65 = load i32, ptr %18, align 4
%66 = load i32, ptr %21, align 4
%67 = sdiv i32 %65, %66
%68 = load i32, ptr %22, align 4
%69 = sub nsw i32 %68, 1
%70 = icmp eq i32 %67, %69
br i1 %70, label %71, label %77
71: ; preds = %63
%72 = load i32, ptr %22, align 4
%73 = load i32, ptr %15, align 4
%74 = mul nsw i32 %72, %73
%75 = load i32, ptr %20, align 4
%76 = sub nsw i32 %74, %75
br label %78
77: ; preds = %63
br label %78
78: ; preds = %77, %71
%79 = phi i32 [ %76, %71 ], [ 0, %77 ]
store i32 %79, ptr %28, align 4
store i32 0, ptr %29, align 4
br label %80
80: ; preds = %159, %78
%81 = load i32, ptr %29, align 4
%82 = load i32, ptr %17, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %162
84: ; preds = %80
%85 = load ptr, ptr %12, align 8
%86 = load i32, ptr %29, align 4
%87 = load i32, ptr %25, align 4
%88 = mul nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds float, ptr %85, i64 %89
store ptr %90, ptr %30, align 8
%91 = load ptr, ptr %13, align 8
%92 = load i32, ptr %29, align 4
%93 = load i32, ptr %26, align 4
%94 = mul nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds float, ptr %91, i64 %95
store ptr %96, ptr %31, align 8
%97 = load i32, ptr %16, align 4
store i32 %97, ptr %32, align 4
br label %98
98: ; preds = %155, %84
%99 = load i32, ptr %32, align 4
%100 = load i32, ptr %15, align 4
%101 = load i32, ptr %16, align 4
%102 = add nsw i32 %100, %101
%103 = load i32, ptr %28, align 4
%104 = sub nsw i32 %102, %103
%105 = icmp slt i32 %99, %104
br i1 %105, label %106, label %158
106: ; preds = %98
%107 = load i32, ptr %32, align 4
%108 = load i32, ptr %21, align 4
%109 = load i32, ptr %15, align 4
%110 = load i32, ptr %20, align 4
%111 = load i32, ptr %16, align 4
%112 = load i32, ptr %18, align 4
%113 = call i32 @gy_pos(i32 noundef %107, i32 noundef %108, i32 noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef %112)
store i32 %113, ptr %33, align 4
%114 = load i32, ptr %16, align 4
store i32 %114, ptr %34, align 4
br label %115
115: ; preds = %151, %106
%116 = load i32, ptr %34, align 4
%117 = load i32, ptr %14, align 4
%118 = load i32, ptr %16, align 4
%119 = add nsw i32 %117, %118
%120 = load i32, ptr %27, align 4
%121 = sub nsw i32 %119, %120
%122 = icmp slt i32 %116, %121
br i1 %122, label %123, label %154
123: ; preds = %115
%124 = load i32, ptr %34, align 4
%125 = load i32, ptr %21, align 4
%126 = load i32, ptr %14, align 4
%127 = load i32, ptr %19, align 4
%128 = load i32, ptr %16, align 4
%129 = load i32, ptr %18, align 4
%130 = call i32 @gx_pos(i32 noundef %124, i32 noundef %125, i32 noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129)
store i32 %130, ptr %35, align 4
%131 = load ptr, ptr %30, align 8
%132 = load i32, ptr %32, align 4
%133 = load i32, ptr %14, align 4
%134 = load i32, ptr %16, align 4
%135 = mul nsw i32 2, %134
%136 = add nsw i32 %133, %135
%137 = mul nsw i32 %132, %136
%138 = load i32, ptr %34, align 4
%139 = add nsw i32 %137, %138
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds float, ptr %131, i64 %140
%142 = load float, ptr %141, align 4
%143 = load ptr, ptr %31, align 8
%144 = load i32, ptr %33, align 4
%145 = load i32, ptr %19, align 4
%146 = mul nsw i32 %144, %145
%147 = load i32, ptr %35, align 4
%148 = add nsw i32 %146, %147
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds float, ptr %143, i64 %149
store float %142, ptr %150, align 4
br label %151
151: ; preds = %123
%152 = load i32, ptr %34, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %34, align 4
br label %115, !llvm.loop !6
154: ; preds = %115
br label %155
155: ; preds = %154
%156 = load i32, ptr %32, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %32, align 4
br label %98, !llvm.loop !8
158: ; preds = %98
br label %159
159: ; preds = %158
%160 = load i32, ptr %29, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %29, align 4
br label %80, !llvm.loop !9
162: ; preds = %80
ret void
}
declare i32 @gy_pos(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @gx_pos(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnsqlbjkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_back(ptr noalias noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) #0 {
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%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 ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i32 %2, ptr %14, align 4
store i32 %3, ptr %15, align 4
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store i32 %6, ptr %18, align 4
store i32 %7, ptr %19, align 4
store i32 %8, ptr %20, align 4
store i32 %9, ptr %21, align 4
store i32 %10, ptr %22, align 4
%36 = load i32, ptr %14, align 4
%37 = load i32, ptr %16, align 4
%38 = mul nsw i32 2, %37
%39 = add nsw i32 %36, %38
store i32 %39, ptr %23, align 4
%40 = load i32, ptr %19, align 4
store i32 %40, ptr %24, align 4
%41 = load i32, ptr %15, align 4
%42 = load i32, ptr %16, align 4
%43 = mul nsw i32 2, %42
%44 = add nsw i32 %41, %43
%45 = load i32, ptr %23, align 4
%46 = mul nsw i32 %44, %45
store i32 %46, ptr %25, align 4
%47 = load i32, ptr %20, align 4
%48 = load i32, ptr %24, align 4
%49 = mul nsw i32 %47, %48
store i32 %49, ptr %26, align 4
%50 = load i32, ptr %18, align 4
%51 = load i32, ptr %21, align 4
%52 = srem i32 %50, %51
%53 = load i32, ptr %21, align 4
%54 = sub nsw i32 %53, 1
%55 = icmp eq i32 %52, %54
br i1 %55, label %56, label %62
56: ; preds = %11
%57 = load i32, ptr %21, align 4
%58 = load i32, ptr %14, align 4
%59 = mul nsw i32 %57, %58
%60 = load i32, ptr %19, align 4
%61 = sub nsw i32 %59, %60
br label %63
62: ; preds = %11
br label %63
63: ; preds = %62, %56
%64 = phi i32 [ %61, %56 ], [ 0, %62 ]
store i32 %64, ptr %27, align 4
%65 = load i32, ptr %18, align 4
%66 = load i32, ptr %21, align 4
%67 = sdiv i32 %65, %66
%68 = load i32, ptr %22, align 4
%69 = sub nsw i32 %68, 1
%70 = icmp eq i32 %67, %69
br i1 %70, label %71, label %77
71: ; preds = %63
%72 = load i32, ptr %22, align 4
%73 = load i32, ptr %15, align 4
%74 = mul nsw i32 %72, %73
%75 = load i32, ptr %20, align 4
%76 = sub nsw i32 %74, %75
br label %78
77: ; preds = %63
br label %78
78: ; preds = %77, %71
%79 = phi i32 [ %76, %71 ], [ 0, %77 ]
store i32 %79, ptr %28, align 4
store i32 0, ptr %29, align 4
%80 = load i32, ptr %29, align 4
%81 = load i32, ptr %17, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %.lr.ph5, label %176
.lr.ph5: ; preds = %78
br label %83
83: ; preds = %.lr.ph5, %170
%84 = load ptr, ptr %12, align 8
%85 = load i32, ptr %29, align 4
%86 = load i32, ptr %25, align 4
%87 = mul nsw i32 %85, %86
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds float, ptr %84, i64 %88
store ptr %89, ptr %30, align 8
%90 = load ptr, ptr %13, align 8
%91 = load i32, ptr %29, align 4
%92 = load i32, ptr %26, align 4
%93 = mul nsw i32 %91, %92
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds float, ptr %90, i64 %94
store ptr %95, ptr %31, align 8
%96 = load i32, ptr %16, align 4
store i32 %96, ptr %32, align 4
%97 = load i32, ptr %32, align 4
%98 = load i32, ptr %15, align 4
%99 = load i32, ptr %16, align 4
%100 = add nsw i32 %98, %99
%101 = load i32, ptr %28, align 4
%102 = sub nsw i32 %100, %101
%103 = icmp slt i32 %97, %102
br i1 %103, label %.lr.ph2, label %169
.lr.ph2: ; preds = %83
br label %104
104: ; preds = %.lr.ph2, %159
%105 = load i32, ptr %32, align 4
%106 = load i32, ptr %21, align 4
%107 = load i32, ptr %15, align 4
%108 = load i32, ptr %20, align 4
%109 = load i32, ptr %16, align 4
%110 = load i32, ptr %18, align 4
%111 = call i32 @gy_pos(i32 noundef %105, i32 noundef %106, i32 noundef %107, i32 noundef %108, i32 noundef %109, i32 noundef %110)
store i32 %111, ptr %33, align 4
%112 = load i32, ptr %16, align 4
store i32 %112, ptr %34, align 4
%113 = load i32, ptr %34, align 4
%114 = load i32, ptr %14, align 4
%115 = load i32, ptr %16, align 4
%116 = add nsw i32 %114, %115
%117 = load i32, ptr %27, align 4
%118 = sub nsw i32 %116, %117
%119 = icmp slt i32 %113, %118
br i1 %119, label %.lr.ph, label %158
.lr.ph: ; preds = %104
br label %120
120: ; preds = %.lr.ph, %148
%121 = load i32, ptr %34, align 4
%122 = load i32, ptr %21, align 4
%123 = load i32, ptr %14, align 4
%124 = load i32, ptr %19, align 4
%125 = load i32, ptr %16, align 4
%126 = load i32, ptr %18, align 4
%127 = call i32 @gx_pos(i32 noundef %121, i32 noundef %122, i32 noundef %123, i32 noundef %124, i32 noundef %125, i32 noundef %126)
store i32 %127, ptr %35, align 4
%128 = load ptr, ptr %30, align 8
%129 = load i32, ptr %32, align 4
%130 = load i32, ptr %14, align 4
%131 = load i32, ptr %16, align 4
%132 = mul nsw i32 2, %131
%133 = add nsw i32 %130, %132
%134 = mul nsw i32 %129, %133
%135 = load i32, ptr %34, align 4
%136 = add nsw i32 %134, %135
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds float, ptr %128, i64 %137
%139 = load float, ptr %138, align 4
%140 = load ptr, ptr %31, align 8
%141 = load i32, ptr %33, align 4
%142 = load i32, ptr %19, align 4
%143 = mul nsw i32 %141, %142
%144 = load i32, ptr %35, align 4
%145 = add nsw i32 %143, %144
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds float, ptr %140, i64 %146
store float %139, ptr %147, align 4
br label %148
148: ; preds = %120
%149 = load i32, ptr %34, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %34, align 4
%151 = load i32, ptr %34, align 4
%152 = load i32, ptr %14, align 4
%153 = load i32, ptr %16, align 4
%154 = add nsw i32 %152, %153
%155 = load i32, ptr %27, align 4
%156 = sub nsw i32 %154, %155
%157 = icmp slt i32 %151, %156
br i1 %157, label %120, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %148
br label %158
158: ; preds = %._crit_edge, %104
br label %159
159: ; preds = %158
%160 = load i32, ptr %32, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %32, align 4
%162 = load i32, ptr %32, align 4
%163 = load i32, ptr %15, align 4
%164 = load i32, ptr %16, align 4
%165 = add nsw i32 %163, %164
%166 = load i32, ptr %28, align 4
%167 = sub nsw i32 %165, %166
%168 = icmp slt i32 %162, %167
br i1 %168, label %104, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %159
br label %169
169: ; preds = %._crit_edge3, %83
br label %170
170: ; preds = %169
%171 = load i32, ptr %29, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %29, align 4
%173 = load i32, ptr %29, align 4
%174 = load i32, ptr %17, align 4
%175 = icmp slt i32 %173, %174
br i1 %175, label %83, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %170
br label %176
176: ; preds = %._crit_edge6, %78
ret void
}
declare i32 @gy_pos(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @gx_pos(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpguexw0g0.c'
source_filename = "/tmp/tmpguexw0g0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MAX_10_EXP = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"getnum(): input string exceeds maxstr: [%s%c]\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"getnum(): bad number: [%s%c]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getnum(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = call i32 (...) @chomp()
store i32 0, ptr %11, align 4
br label %13
13: ; preds = %40, %4
%14 = load i32, ptr %11, align 4
%15 = load i32, ptr @DBL_MAX_10_EXP, align 4
%16 = call i32 @log(i32 noundef 10)
%17 = call i32 @log(i32 noundef 2)
%18 = sdiv i32 %16, %17
%19 = mul nsw i32 %15, %18
%20 = add nsw i32 %19, 1
%21 = icmp ult i32 %14, %20
br i1 %21, label %22, label %31
22: ; preds = %13
%23 = call i32 (...) @getchar()
store i32 %23, ptr %10, align 4
%24 = load i32, ptr @EOF, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %31
26: ; preds = %22
%27 = load i32, ptr %10, align 4
%28 = call i64 @isspace(i32 noundef %27)
%29 = icmp ne i64 %28, 0
%30 = xor i1 %29, true
br label %31
31: ; preds = %26, %22, %13
%32 = phi i1 [ false, %22 ], [ false, %13 ], [ %30, %26 ]
br i1 %32, label %33, label %43
33: ; preds = %31
%34 = load i32, ptr %10, align 4
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %11, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 %35, ptr %39, align 1
br label %40
40: ; preds = %33
%41 = load i32, ptr %11, align 4
%42 = add i32 %41, 1
store i32 %42, ptr %11, align 4
br label %13, !llvm.loop !6
43: ; preds = %31
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %11, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
store i8 0, ptr %47, align 1
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr @EOF, align 4
%50 = icmp eq i32 %48, %49
br i1 %50, label %55, label %51
51: ; preds = %43
%52 = load i32, ptr %10, align 4
%53 = call i64 @isspace(i32 noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %68
55: ; preds = %51, %43
%56 = load ptr, ptr %7, align 8
%57 = load ptr, ptr %8, align 8
%58 = load ptr, ptr %9, align 8
%59 = call i64 @match(ptr noundef %56, ptr noundef %57, ptr noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %68
61: ; preds = %55
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr @stdin, align 4
%64 = call i32 @ungetc(i32 noundef %62, i32 noundef %63)
%65 = load ptr, ptr %7, align 8
%66 = call double @strtod(ptr noundef %65, ptr noundef null)
%67 = load ptr, ptr %6, align 8
store double %66, ptr %67, align 8
store i32 1, ptr %5, align 4
br label %108
68: ; preds = %55, %51
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr @EOF, align 4
%71 = icmp eq i32 %69, %70
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 0, ptr %5, align 4
br label %108
73: ; preds = %68
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr @DBL_MAX_10_EXP, align 4
%76 = call i32 @log(i32 noundef 10)
%77 = call i32 @log(i32 noundef 2)
%78 = sdiv i32 %76, %77
%79 = mul nsw i32 %75, %78
%80 = add nsw i32 %79, 1
%81 = icmp eq i32 %74, %80
br i1 %81, label %82, label %87
82: ; preds = %73
%83 = load ptr, ptr %9, align 8
%84 = load ptr, ptr %7, align 8
%85 = load i32, ptr %10, align 4
%86 = call i32 @fprintf(ptr noundef %83, ptr noundef @.str, ptr noundef %84, i32 noundef %85)
br label %92
87: ; preds = %73
%88 = load ptr, ptr %9, align 8
%89 = load ptr, ptr %7, align 8
%90 = load i32, ptr %10, align 4
%91 = call i32 @fprintf(ptr noundef %88, ptr noundef @.str.1, ptr noundef %89, i32 noundef %90)
br label %92
92: ; preds = %87, %82
br label %93
93: ; preds = %103, %92
%94 = load i32, ptr %10, align 4
%95 = call i64 @isspace(i32 noundef %94)
%96 = icmp ne i64 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %93
%98 = call i32 (...) @getchar()
store i32 %98, ptr %10, align 4
%99 = load i32, ptr @EOF, align 4
%100 = icmp ne i32 %98, %99
br label %101
101: ; preds = %97, %93
%102 = phi i1 [ false, %93 ], [ %100, %97 ]
br i1 %102, label %103, label %104
103: ; preds = %101
br label %93, !llvm.loop !8
104: ; preds = %101
%105 = load i32, ptr %10, align 4
%106 = load i32, ptr @stdin, align 4
%107 = call i32 @ungetc(i32 noundef %105, i32 noundef %106)
store i32 0, ptr %5, align 4
br label %108
108: ; preds = %104, %72, %61
%109 = load i32, ptr %5, align 4
ret i32 %109
}
declare i32 @chomp(...) #1
declare i32 @log(i32 noundef) #1
declare i32 @getchar(...) #1
declare i64 @isspace(i32 noundef) #1
declare i64 @match(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ungetc(i32 noundef, i32 noundef) #1
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpguexw0g0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MAX_10_EXP = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"getnum(): input string exceeds maxstr: [%s%c]\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"getnum(): bad number: [%s%c]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getnum(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = call i32 (...) @chomp()
store i32 0, ptr %11, align 4
br label %13
13: ; preds = %40, %4
%14 = load i32, ptr %11, align 4
%15 = load i32, ptr @DBL_MAX_10_EXP, align 4
%16 = call i32 @log(i32 noundef 10)
%17 = call i32 @log(i32 noundef 2)
%18 = sdiv i32 %16, %17
%19 = mul nsw i32 %15, %18
%20 = add nsw i32 %19, 1
%21 = icmp ult i32 %14, %20
br i1 %21, label %22, label %31
22: ; preds = %13
%23 = call i32 (...) @getchar()
store i32 %23, ptr %10, align 4
%24 = load i32, ptr @EOF, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %31
26: ; preds = %22
%27 = load i32, ptr %10, align 4
%28 = call i64 @isspace(i32 noundef %27)
%29 = icmp ne i64 %28, 0
%30 = xor i1 %29, true
br label %31
31: ; preds = %26, %22, %13
%32 = phi i1 [ false, %22 ], [ false, %13 ], [ %30, %26 ]
br i1 %32, label %33, label %43
33: ; preds = %31
%34 = load i32, ptr %10, align 4
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %11, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 %35, ptr %39, align 1
br label %40
40: ; preds = %33
%41 = load i32, ptr %11, align 4
%42 = add i32 %41, 1
store i32 %42, ptr %11, align 4
br label %13, !llvm.loop !6
43: ; preds = %31
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %11, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
store i8 0, ptr %47, align 1
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr @EOF, align 4
%50 = icmp eq i32 %48, %49
br i1 %50, label %55, label %51
51: ; preds = %43
%52 = load i32, ptr %10, align 4
%53 = call i64 @isspace(i32 noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %68
55: ; preds = %51, %43
%56 = load ptr, ptr %7, align 8
%57 = load ptr, ptr %8, align 8
%58 = load ptr, ptr %9, align 8
%59 = call i64 @match(ptr noundef %56, ptr noundef %57, ptr noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %68
61: ; preds = %55
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr @stdin, align 4
%64 = call i32 @ungetc(i32 noundef %62, i32 noundef %63)
%65 = load ptr, ptr %7, align 8
%66 = call double @strtod(ptr noundef %65, ptr noundef null)
%67 = load ptr, ptr %6, align 8
store double %66, ptr %67, align 8
store i32 1, ptr %5, align 4
br label %107
68: ; preds = %55, %51
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr @EOF, align 4
%71 = icmp eq i32 %69, %70
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 0, ptr %5, align 4
br label %107
73: ; preds = %68
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr @DBL_MAX_10_EXP, align 4
%76 = call i32 @log(i32 noundef 10)
%77 = call i32 @log(i32 noundef 2)
%78 = sdiv i32 %76, %77
%79 = mul nsw i32 %75, %78
%80 = add nsw i32 %79, 1
%81 = icmp eq i32 %74, %80
br i1 %81, label %82, label %87
82: ; preds = %73
%83 = load ptr, ptr %9, align 8
%84 = load ptr, ptr %7, align 8
%85 = load i32, ptr %10, align 4
%86 = call i32 @fprintf(ptr noundef %83, ptr noundef @.str, ptr noundef %84, i32 noundef %85)
br label %92
87: ; preds = %73
%88 = load ptr, ptr %9, align 8
%89 = load ptr, ptr %7, align 8
%90 = load i32, ptr %10, align 4
%91 = call i32 @fprintf(ptr noundef %88, ptr noundef @.str.1, ptr noundef %89, i32 noundef %90)
br label %92
92: ; preds = %87, %82
br label %93
93: ; preds = %101, %92
%94 = load i32, ptr %10, align 4
%95 = call i64 @isspace(i32 noundef %94)
%96 = icmp ne i64 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %93
%98 = call i32 (...) @getchar()
store i32 %98, ptr %10, align 4
%99 = load i32, ptr @EOF, align 4
%100 = icmp ne i32 %98, %99
br label %101
101: ; preds = %97, %93
%102 = phi i1 [ false, %93 ], [ %100, %97 ]
br i1 %102, label %93, label %103, !llvm.loop !8
103: ; preds = %101
%104 = load i32, ptr %10, align 4
%105 = load i32, ptr @stdin, align 4
%106 = call i32 @ungetc(i32 noundef %104, i32 noundef %105)
store i32 0, ptr %5, align 4
br label %107
107: ; preds = %103, %72, %61
%108 = load i32, ptr %5, align 4
ret i32 %108
}
declare i32 @chomp(...) #1
declare i32 @log(i32 noundef) #1
declare i32 @getchar(...) #1
declare i64 @isspace(i32 noundef) #1
declare i64 @match(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ungetc(i32 noundef, i32 noundef) #1
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0uknj2t5.c'
source_filename = "/tmp/tmp0uknj2t5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pf_constructor() #0 {
%1 = call i32 (...) @pf_init()
ret void
}
declare i32 @pf_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/tmp0uknj2t5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pf_constructor() #0 {
%1 = call i32 (...) @pf_init()
ret void
}
declare i32 @pf_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/tmputkamx6x.c'
source_filename = "/tmp/tmputkamx6x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Fussball-Vereinigung\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"inpos_match_replace.ctb\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"FUSSBALL-V7EINIGUNG\00", align 1
@__const.main.inpos = private unnamed_addr constant [19 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 9, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [19 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store ptr @.str, ptr %7, align 8
store ptr @.str.1, ptr %8, align 8
store ptr @.str.2, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.inpos, i64 76, i1 false)
%11 = load ptr, ptr %8, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %9, align 8
%14 = call i32 @check_translation(ptr noundef %11, ptr noundef %12, ptr noundef null, ptr noundef %13)
%15 = load i32, ptr %6, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %6, align 4
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds [19 x i32], ptr %10, i64 0, i64 0
%20 = call i32 @check_inpos(ptr noundef %17, ptr noundef %18, ptr noundef %19)
%21 = load i32, ptr %6, align 4
%22 = or i32 %21, %20
store i32 %22, ptr %6, align 4
%23 = call i32 (...) @lou_free()
%24 = load i32, ptr %6, align 4
ret i32 %24
}
; 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 @check_translation(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @check_inpos(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @lou_free(...) #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/tmputkamx6x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Fussball-Vereinigung\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"inpos_match_replace.ctb\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"FUSSBALL-V7EINIGUNG\00", align 1
@__const.main.inpos = private unnamed_addr constant [19 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 9, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [19 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store ptr @.str, ptr %7, align 8
store ptr @.str.1, ptr %8, align 8
store ptr @.str.2, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.inpos, i64 76, i1 false)
%11 = load ptr, ptr %8, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %9, align 8
%14 = call i32 @check_translation(ptr noundef %11, ptr noundef %12, ptr noundef null, ptr noundef %13)
%15 = load i32, ptr %6, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %6, align 4
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds [19 x i32], ptr %10, i64 0, i64 0
%20 = call i32 @check_inpos(ptr noundef %17, ptr noundef %18, ptr noundef %19)
%21 = load i32, ptr %6, align 4
%22 = or i32 %21, %20
store i32 %22, ptr %6, align 4
%23 = call i32 (...) @lou_free()
%24 = load i32, ptr %6, align 4
ret i32 %24
}
; 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 @check_translation(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @check_inpos(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @lou_free(...) #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/tmp9wq8har7.c'
source_filename = "/tmp/tmp9wq8har7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @txt_file_number_of_lines(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 1024, i1 false)
store i64 0, ptr %5, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @SEEK_SET, align 4
%8 = call i32 @fseek(ptr noundef %6, i64 noundef 0, i32 noundef %7)
br label %9
9: ; preds = %25, %1
%10 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 1024)
%12 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%13 = load ptr, ptr %2, align 8
%14 = call i64 @fread(ptr noundef %12, i32 noundef 1, i32 noundef 1023, ptr noundef %13)
store i64 %14, ptr %5, align 8
%15 = load i64, ptr %5, align 8
%16 = icmp ugt i64 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %9
%18 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%19 = call i64 @find_count_of_lines(ptr noundef %18)
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %9
br label %25
25: ; preds = %24
%26 = load i64, ptr %5, align 8
%27 = icmp ugt i64 %26, 0
br i1 %27, label %9, label %28, !llvm.loop !6
28: ; preds = %25
%29 = load i32, ptr %3, align 4
ret i32 %29
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i64 @find_count_of_lines(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9wq8har7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @txt_file_number_of_lines(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 1024, i1 false)
store i64 0, ptr %5, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @SEEK_SET, align 4
%8 = call i32 @fseek(ptr noundef %6, i64 noundef 0, i32 noundef %7)
br label %9
9: ; preds = %25, %1
%10 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 1024)
%12 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%13 = load ptr, ptr %2, align 8
%14 = call i64 @fread(ptr noundef %12, i32 noundef 1, i32 noundef 1023, ptr noundef %13)
store i64 %14, ptr %5, align 8
%15 = load i64, ptr %5, align 8
%16 = icmp ugt i64 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %9
%18 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%19 = call i64 @find_count_of_lines(ptr noundef %18)
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %9
br label %25
25: ; preds = %24
%26 = load i64, ptr %5, align 8
%27 = icmp ugt i64 %26, 0
br i1 %27, label %9, label %28, !llvm.loop !6
28: ; preds = %25
%29 = load i32, ptr %3, align 4
ret i32 %29
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i64 @find_count_of_lines(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8lf_530y.c'
source_filename = "/tmp/tmp8lf_530y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"fdivr\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fdiv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @special_fdivrl() #0 {
%1 = call i32 @emit_1_or_2_operandsl_vartext(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @emit_1_or_2_operandsl_vartext(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/tmp8lf_530y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"fdivr\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fdiv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @special_fdivrl() #0 {
%1 = call i32 @emit_1_or_2_operandsl_vartext(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @emit_1_or_2_operandsl_vartext(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/tmpeehal9nu.c'
source_filename = "/tmp/tmpeehal9nu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glob(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmpeehal9nu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glob(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmphtqp63qg.c'
source_filename = "/tmp/tmphtqp63qg.c"
target datalayout = "e-m:e-p270: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/tmphtqp63qg.c"
target datalayout = "e-m:e-p270: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/tmp7axgr3_s.c'
source_filename = "/tmp/tmp7axgr3_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_SETFL = dso_local global i32 0, align 4
@F_GETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sockndelay(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %16
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr @F_SETFL, align 4
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr @F_GETFL, align 4
%12 = call i32 @fcntl(i32 noundef %10, i32 noundef %11, i32 noundef 0)
%13 = load i32, ptr @O_NONBLOCK, align 4
%14 = or i32 %12, %13
%15 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, i32 noundef %14)
br label %26
16: ; preds = %2
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr @F_GETFL, align 4
%21 = call i32 @fcntl(i32 noundef %19, i32 noundef %20, i32 noundef 0)
%22 = load i32, ptr @O_NONBLOCK, align 4
%23 = xor i32 %22, -1
%24 = and i32 %21, %23
%25 = call i32 @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %24)
br label %26
26: ; preds = %16, %7
%27 = phi i32 [ %15, %7 ], [ %25, %16 ]
ret i32 %27
}
declare i32 @fcntl(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/tmp7axgr3_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_SETFL = dso_local global i32 0, align 4
@F_GETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sockndelay(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %16
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr @F_SETFL, align 4
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr @F_GETFL, align 4
%12 = call i32 @fcntl(i32 noundef %10, i32 noundef %11, i32 noundef 0)
%13 = load i32, ptr @O_NONBLOCK, align 4
%14 = or i32 %12, %13
%15 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, i32 noundef %14)
br label %26
16: ; preds = %2
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr @F_GETFL, align 4
%21 = call i32 @fcntl(i32 noundef %19, i32 noundef %20, i32 noundef 0)
%22 = load i32, ptr @O_NONBLOCK, align 4
%23 = xor i32 %22, -1
%24 = and i32 %21, %23
%25 = call i32 @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %24)
br label %26
26: ; preds = %16, %7
%27 = phi i32 [ %15, %7 ], [ %25, %16 ]
ret i32 %27
}
declare i32 @fcntl(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/tmpzdud1lqs.c'
source_filename = "/tmp/tmpzdud1lqs.c"
target datalayout = "e-m:e-p270: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/tmpzdud1lqs.c"
target datalayout = "e-m:e-p270: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/tmp6tkc83pu.c'
source_filename = "/tmp/tmp6tkc83pu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d | \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_int_array(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %16, %2
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %5, align 8
%13 = getelementptr inbounds i32, ptr %11, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i64, ptr %5, align 8
%18 = add i64 %17, 1
store i64 %18, ptr %5, align 8
br label %6, !llvm.loop !6
19: ; preds = %6
%20 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6tkc83pu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d | \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_int_array(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp ult i64 %6, %7
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %15
%10 = load ptr, ptr %3, align 8
%11 = load i64, ptr %5, align 8
%12 = getelementptr inbounds i32, ptr %10, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i64, ptr %5, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %5, align 8
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %4, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %2
%22 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp28689vc5.c'
source_filename = "/tmp/tmp28689vc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lmc_um_mark_allocated(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 i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load i64, ptr %6, align 8
%11 = sub i64 %10, 8
store i64 %11, ptr %7, align 8
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %7, align 8
%14 = getelementptr i8, ptr %12, i64 %13
%15 = load i64, ptr %14, align 8
store i64 %15, ptr %8, align 8
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = load i64, ptr %8, align 8
%20 = call i32 @lmc_um_mark(ptr noundef %16, ptr noundef %17, i64 noundef %18, i64 noundef %19)
store i32 %20, ptr %9, align 4
%21 = load i32, ptr %9, align 4
ret i32 %21
}
declare i32 @lmc_um_mark(ptr noundef, ptr noundef, i64 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/tmp28689vc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lmc_um_mark_allocated(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 i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load i64, ptr %6, align 8
%11 = sub i64 %10, 8
store i64 %11, ptr %7, align 8
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %7, align 8
%14 = getelementptr i8, ptr %12, i64 %13
%15 = load i64, ptr %14, align 8
store i64 %15, ptr %8, align 8
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = load i64, ptr %8, align 8
%20 = call i32 @lmc_um_mark(ptr noundef %16, ptr noundef %17, i64 noundef %18, i64 noundef %19)
store i32 %20, ptr %9, align 4
%21 = load i32, ptr %9, align 4
ret i32 %21
}
declare i32 @lmc_um_mark(ptr noundef, ptr noundef, i64 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/tmphw0a3g14.c'
source_filename = "/tmp/tmphw0a3g14.c"
target datalayout = "e-m:e-p270: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/tmphw0a3g14.c"
target datalayout = "e-m:e-p270: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/tmpaxmtw2e4.c'
source_filename = "/tmp/tmpaxmtw2e4.c"
target datalayout = "e-m:e-p270: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/tmpaxmtw2e4.c"
target datalayout = "e-m:e-p270: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/tmpu5x8711w.c'
source_filename = "/tmp/tmpu5x8711w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_time() #0 {
%1 = call double (...) @omp_get_wtime()
ret double %1
}
declare double @omp_get_wtime(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu5x8711w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_time() #0 {
%1 = call double (...) @omp_get_wtime()
ret double %1
}
declare double @omp_get_wtime(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9hwba1px.c'
source_filename = "/tmp/tmp9hwba1px.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clearBrackets(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i64 @malloc(i32 noundef 100)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 0
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 40
br i1 %10, label %11, label %30
11: ; preds = %1
%12 = load ptr, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = sub nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %12, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 41
br i1 %20, label %21, label %30
21: ; preds = %11
%22 = load ptr, ptr %2, align 8
%23 = load ptr, ptr %2, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %22, i64 %26
store i8 0, ptr %27, align 1
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 1
store ptr %29, ptr %3, align 8
br label %30
30: ; preds = %21, %11, %1
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9hwba1px.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clearBrackets(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i64 @malloc(i32 noundef 100)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 0
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 40
br i1 %10, label %11, label %30
11: ; preds = %1
%12 = load ptr, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = sub nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %12, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 41
br i1 %20, label %21, label %30
21: ; preds = %11
%22 = load ptr, ptr %2, align 8
%23 = load ptr, ptr %2, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %22, i64 %26
store i8 0, ptr %27, align 1
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 1
store ptr %29, ptr %3, align 8
br label %30
30: ; preds = %21, %11, %1
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq3ntiqkb.c'
source_filename = "/tmp/tmpq3ntiqkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%f %f %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
store double 1.000000e+00, ptr %1, align 8
store double 2.000000e+00, ptr %2, align 8
store double 1.000000e+00, ptr %3, align 8
br label %4
4: ; preds = %0, %4
%5 = load double, ptr %1, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %3, align 8
%8 = call i32 @printf(ptr noundef @.str, double noundef %5, double noundef %6, double noundef %7)
%9 = load double, ptr %2, align 8
%10 = load double, ptr %3, align 8
%11 = fadd double %9, %10
%12 = load double, ptr %1, align 8
%13 = load double, ptr %2, align 8
%14 = fsub double %12, %13
%15 = fdiv double %11, %14
store double %15, ptr %1, align 8
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = fadd double %16, %17
%19 = load double, ptr %1, align 8
%20 = load double, ptr %2, align 8
%21 = fsub double %19, %20
%22 = fdiv double %18, %21
store double %22, ptr %2, align 8
%23 = load double, ptr %2, align 8
%24 = load double, ptr %3, align 8
%25 = fadd double %23, %24
%26 = load double, ptr %1, align 8
%27 = load double, ptr %2, align 8
%28 = fsub double %26, %27
%29 = fdiv double %25, %28
store double %29, ptr %3, align 8
br label %4
}
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq3ntiqkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%f %f %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
store double 1.000000e+00, ptr %1, align 8
store double 2.000000e+00, ptr %2, align 8
store double 1.000000e+00, ptr %3, align 8
br label %4
4: ; preds = %4, %0
%5 = load double, ptr %1, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %3, align 8
%8 = call i32 @printf(ptr noundef @.str, double noundef %5, double noundef %6, double noundef %7)
%9 = load double, ptr %2, align 8
%10 = load double, ptr %3, align 8
%11 = fadd double %9, %10
%12 = load double, ptr %1, align 8
%13 = load double, ptr %2, align 8
%14 = fsub double %12, %13
%15 = fdiv double %11, %14
store double %15, ptr %1, align 8
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = fadd double %16, %17
%19 = load double, ptr %1, align 8
%20 = load double, ptr %2, align 8
%21 = fsub double %19, %20
%22 = fdiv double %18, %21
store double %22, ptr %2, align 8
%23 = load double, ptr %2, align 8
%24 = load double, ptr %3, align 8
%25 = fadd double %23, %24
%26 = load double, ptr %1, align 8
%27 = load double, ptr %2, align 8
%28 = fsub double %26, %27
%29 = fdiv double %25, %28
store double %29, ptr %3, align 8
br label %4
}
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjmj_i9gq.c'
source_filename = "/tmp/tmpjmj_i9gq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fdt_getprop(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = load ptr, ptr %8, align 8
%15 = call ptr @fdt_getprop_namelen(ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %13, ptr noundef %14)
ret ptr %15
}
declare ptr @fdt_getprop_namelen(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjmj_i9gq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fdt_getprop(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = load ptr, ptr %8, align 8
%15 = call ptr @fdt_getprop_namelen(ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %13, ptr noundef %14)
ret ptr %15
}
declare ptr @fdt_getprop_namelen(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpohz00yyr.c'
source_filename = "/tmp/tmpohz00yyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PECIAdvCmdSendNonBlocking(i64 noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2, i8 noundef zeroext %3, i8 noundef zeroext %4, i64 noundef %5, i8 noundef zeroext %6, i64 noundef %7, i64 noundef %8) #0 {
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i64, align 8
%17 = alloca i8, align 1
%18 = alloca i64, align 8
%19 = alloca i64, align 8
store i64 %0, ptr %11, align 8
store i8 %1, ptr %12, align 1
store i8 %2, ptr %13, align 1
store i8 %3, ptr %14, align 1
store i8 %4, ptr %15, align 1
store i64 %5, ptr %16, align 8
store i8 %6, ptr %17, align 1
store i64 %7, ptr %18, align 8
store i64 %8, ptr %19, align 8
%20 = load i64, ptr %11, align 8
%21 = icmp eq i64 %20, 1074462720
%22 = zext i1 %21 to i32
%23 = call i32 @DEBUG_ASSERT(i32 noundef %22)
%24 = load i64, ptr %11, align 8
%25 = add i64 %24, 276
%26 = inttoptr i64 %25 to ptr
%27 = load volatile i64, ptr %26, align 8
%28 = icmp eq i64 %27, 4294967295
br i1 %28, label %29, label %30
29: ; preds = %9
store i64 0, ptr %10, align 8
br label %41
30: ; preds = %9
%31 = load i64, ptr %11, align 8
%32 = load i8, ptr %12, align 1
%33 = load i8, ptr %13, align 1
%34 = load i8, ptr %14, align 1
%35 = load i8, ptr %15, align 1
%36 = load i64, ptr %16, align 8
%37 = load i8, ptr %17, align 1
%38 = load i64, ptr %18, align 8
%39 = load i64, ptr %19, align 8
%40 = call i32 @PECIAdvCmdSend(i64 noundef %31, i8 noundef zeroext %32, i8 noundef zeroext %33, i8 noundef zeroext %34, i8 noundef zeroext %35, i64 noundef %36, i8 noundef zeroext %37, i64 noundef %38, i64 noundef %39)
store i64 1, ptr %10, align 8
br label %41
41: ; preds = %30, %29
%42 = load i64, ptr %10, align 8
ret i64 %42
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @PECIAdvCmdSend(i64 noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i64 noundef, i8 noundef zeroext, i64 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/tmpohz00yyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PECIAdvCmdSendNonBlocking(i64 noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2, i8 noundef zeroext %3, i8 noundef zeroext %4, i64 noundef %5, i8 noundef zeroext %6, i64 noundef %7, i64 noundef %8) #0 {
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i64, align 8
%17 = alloca i8, align 1
%18 = alloca i64, align 8
%19 = alloca i64, align 8
store i64 %0, ptr %11, align 8
store i8 %1, ptr %12, align 1
store i8 %2, ptr %13, align 1
store i8 %3, ptr %14, align 1
store i8 %4, ptr %15, align 1
store i64 %5, ptr %16, align 8
store i8 %6, ptr %17, align 1
store i64 %7, ptr %18, align 8
store i64 %8, ptr %19, align 8
%20 = load i64, ptr %11, align 8
%21 = icmp eq i64 %20, 1074462720
%22 = zext i1 %21 to i32
%23 = call i32 @DEBUG_ASSERT(i32 noundef %22)
%24 = load i64, ptr %11, align 8
%25 = add i64 %24, 276
%26 = inttoptr i64 %25 to ptr
%27 = load volatile i64, ptr %26, align 8
%28 = icmp eq i64 %27, 4294967295
br i1 %28, label %29, label %30
29: ; preds = %9
store i64 0, ptr %10, align 8
br label %41
30: ; preds = %9
%31 = load i64, ptr %11, align 8
%32 = load i8, ptr %12, align 1
%33 = load i8, ptr %13, align 1
%34 = load i8, ptr %14, align 1
%35 = load i8, ptr %15, align 1
%36 = load i64, ptr %16, align 8
%37 = load i8, ptr %17, align 1
%38 = load i64, ptr %18, align 8
%39 = load i64, ptr %19, align 8
%40 = call i32 @PECIAdvCmdSend(i64 noundef %31, i8 noundef zeroext %32, i8 noundef zeroext %33, i8 noundef zeroext %34, i8 noundef zeroext %35, i64 noundef %36, i8 noundef zeroext %37, i64 noundef %38, i64 noundef %39)
store i64 1, ptr %10, align 8
br label %41
41: ; preds = %30, %29
%42 = load i64, ptr %10, align 8
ret i64 %42
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @PECIAdvCmdSend(i64 noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i64 noundef, i8 noundef zeroext, i64 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/tmpzvox8q_j.c'
source_filename = "/tmp/tmpzvox8q_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzvox8q_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvtms2uyc.c'
source_filename = "/tmp/tmpvtms2uyc.c"
target datalayout = "e-m:e-p270: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/tmpvtms2uyc.c"
target datalayout = "e-m:e-p270: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/tmp74cpk901.c'
source_filename = "/tmp/tmp74cpk901.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Element found at position: %i\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Element not found.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @LinearSearch(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %26, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %29
13: ; preds = %9
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %25
21: ; preds = %13
%22 = load i32, ptr %8, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %22)
%24 = load i32, ptr %8, align 4
store i32 %24, ptr %4, align 4
br label %31
25: ; preds = %13
br label %26
26: ; preds = %25
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4
br label %9, !llvm.loop !6
29: ; preds = %9
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %31
31: ; preds = %29, %21
%32 = load i32, ptr %4, align 4
ret i32 %32
}
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/tmp74cpk901.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Element found at position: %i\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Element not found.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @LinearSearch(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %31
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %25
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %12
%21 = load i32, ptr %8, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
%23 = load i32, ptr %8, align 4
store i32 %23, ptr %4, align 4
br label %33
24: ; preds = %12
br label %25
25: ; preds = %24
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp sle i32 %28, %29
br i1 %30, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %3
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %33
33: ; preds = %31, %20
%34 = load i32, ptr %4, align 4
ret i32 %34
}
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/tmpdvhe4rj8.c'
source_filename = "/tmp/tmpdvhe4rj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AFIQ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @OS_CPU_FIQ_ISR_Handler() #0 {
%1 = call i32 @uart_puts(ptr noundef @.str)
br label %2
2: ; preds = %0, %2
br label %2
}
declare i32 @uart_puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdvhe4rj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AFIQ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @OS_CPU_FIQ_ISR_Handler() #0 {
%1 = call i32 @uart_puts(ptr noundef @.str)
br label %2
2: ; preds = %2, %0
br label %2
}
declare i32 @uart_puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp66vw89zt.c'
source_filename = "/tmp/tmp66vw89zt.c"
target datalayout = "e-m:e-p270: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/tmp66vw89zt.c"
target datalayout = "e-m:e-p270: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/tmpp4vguqc3.c'
source_filename = "/tmp/tmpp4vguqc3.c"
target datalayout = "e-m:e-p270: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
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fatal_error_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @stderr, align 4
%5 = call i32 @fputs(ptr noundef %3, i32 noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fputc(i8 noundef signext 10, i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
declare i32 @free(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/tmpp4vguqc3.c"
target datalayout = "e-m:e-p270: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
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fatal_error_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @stderr, align 4
%5 = call i32 @fputs(ptr noundef %3, i32 noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fputc(i8 noundef signext 10, i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
declare i32 @free(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/tmpd_5j_1k5.c'
source_filename = "/tmp/tmpd_5j_1k5.c"
target datalayout = "e-m:e-p270: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/tmpd_5j_1k5.c"
target datalayout = "e-m:e-p270: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/tmpg6p0zasi.c'
source_filename = "/tmp/tmpg6p0zasi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stralloc(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 = call i64 @strlen(ptr noundef %5)
%7 = add nsw i64 %6, 1
%8 = call ptr @malloc(i64 noundef %7)
%9 = load ptr, ptr %3, align 8
store ptr %8, ptr %9, align 8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strcpy(ptr noundef %11, ptr noundef %12)
ret void
}
declare ptr @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/tmpg6p0zasi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stralloc(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 = call i64 @strlen(ptr noundef %5)
%7 = add nsw i64 %6, 1
%8 = call ptr @malloc(i64 noundef %7)
%9 = load ptr, ptr %3, align 8
store ptr %8, ptr %9, align 8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strcpy(ptr noundef %11, ptr noundef %12)
ret void
}
declare ptr @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/tmprna_ubzu.c'
source_filename = "/tmp/tmprna_ubzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcd_byte(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 @GPIOWrite(i32 noundef 7, i32 noundef %5)
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @usleep(i32 noundef 2000)
br label %11
11: ; preds = %9, %2
%12 = load i32, ptr %3, align 4
%13 = and i32 %12, 16
%14 = icmp eq i32 %13, 16
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 1)
br label %19
17: ; preds = %11
%18 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 0)
br label %19
19: ; preds = %17, %15
%20 = load i32, ptr %3, align 4
%21 = and i32 %20, 32
%22 = icmp eq i32 %21, 32
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 1)
br label %27
25: ; preds = %19
%26 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 0)
br label %27
27: ; preds = %25, %23
%28 = load i32, ptr %3, align 4
%29 = and i32 %28, 64
%30 = icmp eq i32 %29, 64
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 1)
br label %35
33: ; preds = %27
%34 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 0)
br label %35
35: ; preds = %33, %31
%36 = load i32, ptr %3, align 4
%37 = and i32 %36, 128
%38 = icmp eq i32 %37, 128
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 1)
br label %43
41: ; preds = %35
%42 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 0)
br label %43
43: ; preds = %41, %39
%44 = call i32 @usleep(i32 noundef 50)
%45 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 1)
%46 = call i32 @usleep(i32 noundef 50)
%47 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 0)
%48 = call i32 @usleep(i32 noundef 50)
%49 = load i32, ptr %3, align 4
%50 = and i32 %49, 1
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %54
52: ; preds = %43
%53 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 1)
br label %56
54: ; preds = %43
%55 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 0)
br label %56
56: ; preds = %54, %52
%57 = load i32, ptr %3, align 4
%58 = and i32 %57, 2
%59 = icmp eq i32 %58, 2
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 1)
br label %64
62: ; preds = %56
%63 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 0)
br label %64
64: ; preds = %62, %60
%65 = load i32, ptr %3, align 4
%66 = and i32 %65, 4
%67 = icmp eq i32 %66, 4
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 1)
br label %72
70: ; preds = %64
%71 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 0)
br label %72
72: ; preds = %70, %68
%73 = load i32, ptr %3, align 4
%74 = and i32 %73, 8
%75 = icmp eq i32 %74, 8
br i1 %75, label %76, label %78
76: ; preds = %72
%77 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 1)
br label %80
78: ; preds = %72
%79 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 0)
br label %80
80: ; preds = %78, %76
%81 = call i32 @usleep(i32 noundef 50)
%82 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 1)
%83 = call i32 @usleep(i32 noundef 50)
%84 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 0)
%85 = call i32 @usleep(i32 noundef 50)
ret void
}
declare i32 @GPIOWrite(i32 noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprna_ubzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcd_byte(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 @GPIOWrite(i32 noundef 7, i32 noundef %5)
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @usleep(i32 noundef 2000)
br label %11
11: ; preds = %9, %2
%12 = load i32, ptr %3, align 4
%13 = and i32 %12, 16
%14 = icmp eq i32 %13, 16
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 1)
br label %19
17: ; preds = %11
%18 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 0)
br label %19
19: ; preds = %17, %15
%20 = load i32, ptr %3, align 4
%21 = and i32 %20, 32
%22 = icmp eq i32 %21, 32
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 1)
br label %27
25: ; preds = %19
%26 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 0)
br label %27
27: ; preds = %25, %23
%28 = load i32, ptr %3, align 4
%29 = and i32 %28, 64
%30 = icmp eq i32 %29, 64
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 1)
br label %35
33: ; preds = %27
%34 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 0)
br label %35
35: ; preds = %33, %31
%36 = load i32, ptr %3, align 4
%37 = and i32 %36, 128
%38 = icmp eq i32 %37, 128
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 1)
br label %43
41: ; preds = %35
%42 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 0)
br label %43
43: ; preds = %41, %39
%44 = call i32 @usleep(i32 noundef 50)
%45 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 1)
%46 = call i32 @usleep(i32 noundef 50)
%47 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 0)
%48 = call i32 @usleep(i32 noundef 50)
%49 = load i32, ptr %3, align 4
%50 = and i32 %49, 1
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %54
52: ; preds = %43
%53 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 1)
br label %56
54: ; preds = %43
%55 = call i32 @GPIOWrite(i32 noundef 25, i32 noundef 0)
br label %56
56: ; preds = %54, %52
%57 = load i32, ptr %3, align 4
%58 = and i32 %57, 2
%59 = icmp eq i32 %58, 2
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 1)
br label %64
62: ; preds = %56
%63 = call i32 @GPIOWrite(i32 noundef 24, i32 noundef 0)
br label %64
64: ; preds = %62, %60
%65 = load i32, ptr %3, align 4
%66 = and i32 %65, 4
%67 = icmp eq i32 %66, 4
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 1)
br label %72
70: ; preds = %64
%71 = call i32 @GPIOWrite(i32 noundef 23, i32 noundef 0)
br label %72
72: ; preds = %70, %68
%73 = load i32, ptr %3, align 4
%74 = and i32 %73, 8
%75 = icmp eq i32 %74, 8
br i1 %75, label %76, label %78
76: ; preds = %72
%77 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 1)
br label %80
78: ; preds = %72
%79 = call i32 @GPIOWrite(i32 noundef 18, i32 noundef 0)
br label %80
80: ; preds = %78, %76
%81 = call i32 @usleep(i32 noundef 50)
%82 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 1)
%83 = call i32 @usleep(i32 noundef 50)
%84 = call i32 @GPIOWrite(i32 noundef 8, i32 noundef 0)
%85 = call i32 @usleep(i32 noundef 50)
ret void
}
declare i32 @GPIOWrite(i32 noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4qf3q0dm.c'
source_filename = "/tmp/tmp4qf3q0dm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_tram_update_lagrangian_mult(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca double, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
store i32 0, ptr %19, align 4
br label %28
28: ; preds = %164, %8
%29 = load i32, ptr %19, align 4
%30 = load i32, ptr %13, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %167
32: ; preds = %28
%33 = load i32, ptr %19, align 4
%34 = load i32, ptr %14, align 4
%35 = mul nsw i32 %33, %34
store i32 %35, ptr %23, align 4
%36 = load i32, ptr %23, align 4
%37 = load i32, ptr %14, align 4
%38 = mul nsw i32 %36, %37
store i32 %38, ptr %24, align 4
store i32 0, ptr %17, align 4
br label %39
39: ; preds = %160, %32
%40 = load i32, ptr %17, align 4
%41 = load i32, ptr %14, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %163
43: ; preds = %39
%44 = load i32, ptr %23, align 4
%45 = load i32, ptr %17, align 4
%46 = add nsw i32 %44, %45
store i32 %46, ptr %21, align 4
%47 = load ptr, ptr %12, align 8
%48 = load i32, ptr %21, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = icmp eq i32 0, %51
br i1 %52, label %53, label %58
53: ; preds = %43
%54 = load ptr, ptr %16, align 8
%55 = load i32, ptr %21, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
store double 0xFFF0000000000000, ptr %57, align 8
br label %160
58: ; preds = %43
store i32 0, ptr %20, align 4
store i32 0, ptr %18, align 4
br label %59
59: ; preds = %149, %58
%60 = load i32, ptr %18, align 4
%61 = load i32, ptr %14, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %152
63: ; preds = %59
%64 = load ptr, ptr %11, align 8
%65 = load i32, ptr %24, align 4
%66 = load i32, ptr %17, align 4
%67 = load i32, ptr %14, align 4
%68 = mul nsw i32 %66, %67
%69 = add nsw i32 %65, %68
%70 = load i32, ptr %18, align 4
%71 = add nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %64, i64 %72
%74 = load i32, ptr %73, align 4
store i32 %74, ptr %26, align 4
%75 = load i32, ptr %17, align 4
%76 = load i32, ptr %18, align 4
%77 = icmp eq i32 %75, %76
br i1 %77, label %78, label %94
78: ; preds = %63
%79 = load i32, ptr %26, align 4
%80 = icmp eq i32 0, %79
br i1 %80, label %81, label %82
81: ; preds = %78
br label %87
82: ; preds = %78
%83 = load i32, ptr %26, align 4
%84 = sitofp i32 %83 to double
%85 = fadd double 0.000000e+00, %84
%86 = call double @log(double noundef %85) #3
br label %87
87: ; preds = %82, %81
%88 = phi double [ 0xFFF0000000000000, %81 ], [ %86, %82 ]
%89 = load ptr, ptr %15, align 8
%90 = load i32, ptr %20, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %20, align 4
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds double, ptr %89, i64 %92
store double %88, ptr %93, align 8
br label %149
94: ; preds = %63
%95 = load i32, ptr %26, align 4
%96 = load ptr, ptr %11, align 8
%97 = load i32, ptr %24, align 4
%98 = load i32, ptr %18, align 4
%99 = load i32, ptr %14, align 4
%100 = mul nsw i32 %98, %99
%101 = add nsw i32 %97, %100
%102 = load i32, ptr %17, align 4
%103 = add nsw i32 %101, %102
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %96, i64 %104
%106 = load i32, ptr %105, align 4
%107 = add nsw i32 %95, %106
store i32 %107, ptr %25, align 4
%108 = load i32, ptr %25, align 4
%109 = icmp eq i32 0, %108
br i1 %109, label %110, label %111
110: ; preds = %94
br label %149
111: ; preds = %94
%112 = load i32, ptr %23, align 4
%113 = load i32, ptr %18, align 4
%114 = add nsw i32 %112, %113
store i32 %114, ptr %22, align 4
%115 = load ptr, ptr %9, align 8
%116 = load i32, ptr %22, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, ptr %115, i64 %117
%119 = load double, ptr %118, align 8
%120 = load ptr, ptr %10, align 8
%121 = load i32, ptr %21, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, ptr %120, i64 %122
%124 = load double, ptr %123, align 8
%125 = fsub double %119, %124
%126 = load ptr, ptr %9, align 8
%127 = load i32, ptr %21, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, ptr %126, i64 %128
%130 = load double, ptr %129, align 8
%131 = fsub double %125, %130
%132 = load ptr, ptr %10, align 8
%133 = load i32, ptr %22, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, ptr %132, i64 %134
%136 = load double, ptr %135, align 8
%137 = fadd double %131, %136
%138 = call double @_logsumexp_pair(double noundef %137, double noundef 0.000000e+00)
store double %138, ptr %27, align 8
%139 = load i32, ptr %25, align 4
%140 = sitofp i32 %139 to double
%141 = call double @log(double noundef %140) #3
%142 = load double, ptr %27, align 8
%143 = fsub double %141, %142
%144 = load ptr, ptr %15, align 8
%145 = load i32, ptr %20, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %20, align 4
%147 = sext i32 %145 to i64
%148 = getelementptr inbounds double, ptr %144, i64 %147
store double %143, ptr %148, align 8
br label %149
149: ; preds = %111, %110, %87
%150 = load i32, ptr %18, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %18, align 4
br label %59, !llvm.loop !6
152: ; preds = %59
%153 = load ptr, ptr %15, align 8
%154 = load i32, ptr %20, align 4
%155 = call double @_logsumexp_sort_kahan_inplace(ptr noundef %153, i32 noundef %154)
%156 = load ptr, ptr %16, align 8
%157 = load i32, ptr %21, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, ptr %156, i64 %158
store double %155, ptr %159, align 8
br label %160
160: ; preds = %152, %53
%161 = load i32, ptr %17, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %17, align 4
br label %39, !llvm.loop !8
163: ; preds = %39
br label %164
164: ; preds = %163
%165 = load i32, ptr %19, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %19, align 4
br label %28, !llvm.loop !9
167: ; preds = %28
ret void
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
declare double @_logsumexp_pair(double noundef, double noundef) #2
declare double @_logsumexp_sort_kahan_inplace(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4qf3q0dm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_tram_update_lagrangian_mult(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca double, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
store i32 0, ptr %19, align 4
%28 = load i32, ptr %19, align 4
%29 = load i32, ptr %13, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph5, label %173
.lr.ph5: ; preds = %8
br label %31
31: ; preds = %.lr.ph5, %167
%32 = load i32, ptr %19, align 4
%33 = load i32, ptr %14, align 4
%34 = mul nsw i32 %32, %33
store i32 %34, ptr %23, align 4
%35 = load i32, ptr %23, align 4
%36 = load i32, ptr %14, align 4
%37 = mul nsw i32 %35, %36
store i32 %37, ptr %24, align 4
store i32 0, ptr %17, align 4
%38 = load i32, ptr %17, align 4
%39 = load i32, ptr %14, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph2, label %166
.lr.ph2: ; preds = %31
br label %41
41: ; preds = %.lr.ph2, %160
%42 = load i32, ptr %23, align 4
%43 = load i32, ptr %17, align 4
%44 = add nsw i32 %42, %43
store i32 %44, ptr %21, align 4
%45 = load ptr, ptr %12, align 8
%46 = load i32, ptr %21, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = load i32, ptr %48, align 4
%50 = icmp eq i32 0, %49
br i1 %50, label %51, label %56
51: ; preds = %41
%52 = load ptr, ptr %16, align 8
%53 = load i32, ptr %21, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, ptr %52, i64 %54
store double 0xFFF0000000000000, ptr %55, align 8
br label %160
56: ; preds = %41
store i32 0, ptr %20, align 4
store i32 0, ptr %18, align 4
%57 = load i32, ptr %18, align 4
%58 = load i32, ptr %14, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %.lr.ph, label %152
.lr.ph: ; preds = %56
br label %60
60: ; preds = %.lr.ph, %146
%61 = load ptr, ptr %11, align 8
%62 = load i32, ptr %24, align 4
%63 = load i32, ptr %17, align 4
%64 = load i32, ptr %14, align 4
%65 = mul nsw i32 %63, %64
%66 = add nsw i32 %62, %65
%67 = load i32, ptr %18, align 4
%68 = add nsw i32 %66, %67
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %61, i64 %69
%71 = load i32, ptr %70, align 4
store i32 %71, ptr %26, align 4
%72 = load i32, ptr %17, align 4
%73 = load i32, ptr %18, align 4
%74 = icmp eq i32 %72, %73
br i1 %74, label %75, label %91
75: ; preds = %60
%76 = load i32, ptr %26, align 4
%77 = icmp eq i32 0, %76
br i1 %77, label %78, label %79
78: ; preds = %75
br label %84
79: ; preds = %75
%80 = load i32, ptr %26, align 4
%81 = sitofp i32 %80 to double
%82 = fadd double 0.000000e+00, %81
%83 = call double @log(double noundef %82) #3
br label %84
84: ; preds = %79, %78
%85 = phi double [ 0xFFF0000000000000, %78 ], [ %83, %79 ]
%86 = load ptr, ptr %15, align 8
%87 = load i32, ptr %20, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %20, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds double, ptr %86, i64 %89
store double %85, ptr %90, align 8
br label %146
91: ; preds = %60
%92 = load i32, ptr %26, align 4
%93 = load ptr, ptr %11, align 8
%94 = load i32, ptr %24, align 4
%95 = load i32, ptr %18, align 4
%96 = load i32, ptr %14, align 4
%97 = mul nsw i32 %95, %96
%98 = add nsw i32 %94, %97
%99 = load i32, ptr %17, align 4
%100 = add nsw i32 %98, %99
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, ptr %93, i64 %101
%103 = load i32, ptr %102, align 4
%104 = add nsw i32 %92, %103
store i32 %104, ptr %25, align 4
%105 = load i32, ptr %25, align 4
%106 = icmp eq i32 0, %105
br i1 %106, label %107, label %108
107: ; preds = %91
br label %146
108: ; preds = %91
%109 = load i32, ptr %23, align 4
%110 = load i32, ptr %18, align 4
%111 = add nsw i32 %109, %110
store i32 %111, ptr %22, align 4
%112 = load ptr, ptr %9, align 8
%113 = load i32, ptr %22, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, ptr %112, i64 %114
%116 = load double, ptr %115, align 8
%117 = load ptr, ptr %10, align 8
%118 = load i32, ptr %21, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, ptr %117, i64 %119
%121 = load double, ptr %120, align 8
%122 = fsub double %116, %121
%123 = load ptr, ptr %9, align 8
%124 = load i32, ptr %21, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, ptr %123, i64 %125
%127 = load double, ptr %126, align 8
%128 = fsub double %122, %127
%129 = load ptr, ptr %10, align 8
%130 = load i32, ptr %22, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, ptr %129, i64 %131
%133 = load double, ptr %132, align 8
%134 = fadd double %128, %133
%135 = call double @_logsumexp_pair(double noundef %134, double noundef 0.000000e+00)
store double %135, ptr %27, align 8
%136 = load i32, ptr %25, align 4
%137 = sitofp i32 %136 to double
%138 = call double @log(double noundef %137) #3
%139 = load double, ptr %27, align 8
%140 = fsub double %138, %139
%141 = load ptr, ptr %15, align 8
%142 = load i32, ptr %20, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %20, align 4
%144 = sext i32 %142 to i64
%145 = getelementptr inbounds double, ptr %141, i64 %144
store double %140, ptr %145, align 8
br label %146
146: ; preds = %108, %107, %84
%147 = load i32, ptr %18, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %18, align 4
%149 = load i32, ptr %18, align 4
%150 = load i32, ptr %14, align 4
%151 = icmp slt i32 %149, %150
br i1 %151, label %60, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %146
br label %152
152: ; preds = %._crit_edge, %56
%153 = load ptr, ptr %15, align 8
%154 = load i32, ptr %20, align 4
%155 = call double @_logsumexp_sort_kahan_inplace(ptr noundef %153, i32 noundef %154)
%156 = load ptr, ptr %16, align 8
%157 = load i32, ptr %21, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, ptr %156, i64 %158
store double %155, ptr %159, align 8
br label %160
160: ; preds = %152, %51
%161 = load i32, ptr %17, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %17, align 4
%163 = load i32, ptr %17, align 4
%164 = load i32, ptr %14, align 4
%165 = icmp slt i32 %163, %164
br i1 %165, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %160
br label %166
166: ; preds = %._crit_edge3, %31
br label %167
167: ; preds = %166
%168 = load i32, ptr %19, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %19, align 4
%170 = load i32, ptr %19, align 4
%171 = load i32, ptr %13, align 4
%172 = icmp slt i32 %170, %171
br i1 %172, label %31, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %167
br label %173
173: ; preds = %._crit_edge6, %8
ret void
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
declare double @_logsumexp_pair(double noundef, double noundef) #2
declare double @_logsumexp_sort_kahan_inplace(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpem9hv_2m.c'
source_filename = "/tmp/tmpem9hv_2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"ROM_START first seen with:\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Sentinel first seen with:\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Sentinel next seen with:\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"ROM_START next seen with:\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Sentinel at:\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"ROM_START at:\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"Signs of life\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"Core partly started with code:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wait_core() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr inttoptr (i64 4 to ptr), ptr %2, align 8
store ptr inttoptr (i64 32513444 to ptr), ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = load volatile i64, ptr %7, align 8
store i64 %8, ptr %5, align 8
%9 = load ptr, ptr %2, align 8
%10 = load volatile i64, ptr %9, align 8
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %5, align 8
%12 = call i32 (ptr, ...) @print_hex(ptr noundef @.str, i64 noundef %11)
%13 = load i64, ptr %6, align 8
%14 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.1, i64 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = load volatile i64, ptr %15, align 8
%17 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.2, i64 noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = load volatile i64, ptr %18, align 8
%20 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.3, i64 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.4, ptr noundef %21)
%23 = load ptr, ptr %3, align 8
%24 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.5, ptr noundef %23)
store i32 0, ptr %4, align 4
br label %25
25: ; preds = %34, %0
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 100
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = load ptr, ptr %2, align 8
%30 = load volatile i64, ptr %29, align 8
%31 = icmp ne i64 %30, 3735928559
br i1 %31, label %32, label %33
32: ; preds = %28
br label %37
33: ; preds = %28
br label %34
34: ; preds = %33
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
br label %25, !llvm.loop !6
37: ; preds = %32, %25
%38 = load ptr, ptr %2, align 8
%39 = load volatile i64, ptr %38, align 8
%40 = icmp eq i64 %39, 3735928559
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 0, ptr %1, align 4
br label %65
42: ; preds = %37
%43 = call i32 @puts(ptr noundef @.str.6)
store i32 0, ptr %4, align 4
br label %44
44: ; preds = %53, %42
%45 = load i32, ptr %4, align 4
%46 = icmp slt i32 %45, 100
br i1 %46, label %47, label %56
47: ; preds = %44
%48 = load ptr, ptr %2, align 8
%49 = load volatile i64, ptr %48, align 8
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
br label %56
52: ; preds = %47
br label %53
53: ; preds = %52
%54 = load i32, ptr %4, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %4, align 4
br label %44, !llvm.loop !8
56: ; preds = %51, %44
%57 = load ptr, ptr %2, align 8
%58 = load volatile i64, ptr %57, align 8
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %56
store i32 1, ptr %1, align 4
br label %65
61: ; preds = %56
%62 = load ptr, ptr %2, align 8
%63 = load volatile i64, ptr %62, align 8
%64 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.7, i64 noundef %63)
store i32 0, ptr %1, align 4
br label %65
65: ; preds = %61, %60, %41
%66 = load i32, ptr %1, align 4
ret i32 %66
}
declare i32 @print_hex(ptr noundef, ...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpem9hv_2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"ROM_START first seen with:\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Sentinel first seen with:\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Sentinel next seen with:\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"ROM_START next seen with:\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Sentinel at:\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"ROM_START at:\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"Signs of life\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"Core partly started with code:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wait_core() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr inttoptr (i64 4 to ptr), ptr %2, align 8
store ptr inttoptr (i64 32513444 to ptr), ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = load volatile i64, ptr %7, align 8
store i64 %8, ptr %5, align 8
%9 = load ptr, ptr %2, align 8
%10 = load volatile i64, ptr %9, align 8
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %5, align 8
%12 = call i32 (ptr, ...) @print_hex(ptr noundef @.str, i64 noundef %11)
%13 = load i64, ptr %6, align 8
%14 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.1, i64 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = load volatile i64, ptr %15, align 8
%17 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.2, i64 noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = load volatile i64, ptr %18, align 8
%20 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.3, i64 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.4, ptr noundef %21)
%23 = load ptr, ptr %3, align 8
%24 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.5, ptr noundef %23)
store i32 0, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %25, 100
br i1 %26, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %0
br label %27
27: ; preds = %.lr.ph, %33
%28 = load ptr, ptr %2, align 8
%29 = load volatile i64, ptr %28, align 8
%30 = icmp ne i64 %29, 3735928559
br i1 %30, label %31, label %32
31: ; preds = %27
br label %38
32: ; preds = %27
br label %33
33: ; preds = %32
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %36, 100
br i1 %37, label %27, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %33
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %0
br label %38
38: ; preds = %.loopexit1, %31
%39 = load ptr, ptr %2, align 8
%40 = load volatile i64, ptr %39, align 8
%41 = icmp eq i64 %40, 3735928559
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 0, ptr %1, align 4
br label %67
43: ; preds = %38
%44 = call i32 @puts(ptr noundef @.str.6)
store i32 0, ptr %4, align 4
%45 = load i32, ptr %4, align 4
%46 = icmp slt i32 %45, 100
br i1 %46, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %43
br label %47
47: ; preds = %.lr.ph2, %53
%48 = load ptr, ptr %2, align 8
%49 = load volatile i64, ptr %48, align 8
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
br label %58
52: ; preds = %47
br label %53
53: ; preds = %52
%54 = load i32, ptr %4, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %4, align 4
%57 = icmp slt i32 %56, 100
br i1 %57, label %47, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %53
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %43
br label %58
58: ; preds = %.loopexit, %51
%59 = load ptr, ptr %2, align 8
%60 = load volatile i64, ptr %59, align 8
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %58
store i32 1, ptr %1, align 4
br label %67
63: ; preds = %58
%64 = load ptr, ptr %2, align 8
%65 = load volatile i64, ptr %64, align 8
%66 = call i32 (ptr, ...) @print_hex(ptr noundef @.str.7, i64 noundef %65)
store i32 0, ptr %1, align 4
br label %67
67: ; preds = %63, %62, %42
%68 = load i32, ptr %1, align 4
ret i32 %68
}
declare i32 @print_hex(ptr noundef, ...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzgeykw6g.c'
source_filename = "/tmp/tmpzgeykw6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_hello() #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/tmpzgeykw6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_hello() #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/tmpsif1t257.c'
source_filename = "/tmp/tmpsif1t257.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @f1(i32 noundef 10)
%3 = call i32 @f2(i32 noundef 12)
ret i32 0
}
declare i32 @f1(i32 noundef) #1
declare i32 @f2(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/tmpsif1t257.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @f1(i32 noundef 10)
%3 = call i32 @f2(i32 noundef 12)
ret i32 0
}
declare i32 @f1(i32 noundef) #1
declare i32 @f2(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/tmp271f7rgn.c'
source_filename = "/tmp/tmp271f7rgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @print_hex(i32 noundef 222)
%2 = call i32 @print_hex(i32 noundef 173)
%3 = call i32 @print_hex(i32 noundef 190)
%4 = call i32 @print_hex(i32 noundef 239)
ret void
}
declare i32 @print_hex(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/tmp271f7rgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @print_hex(i32 noundef 222)
%2 = call i32 @print_hex(i32 noundef 173)
%3 = call i32 @print_hex(i32 noundef 190)
%4 = call i32 @print_hex(i32 noundef 239)
ret void
}
declare i32 @print_hex(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/tmpe9_3rgzg.c'
source_filename = "/tmp/tmpe9_3rgzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @consttime_memcmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %8, align 8
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %18, %3
%16 = load i64, ptr %6, align 8
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %44
18: ; preds = %15
%19 = load i32, ptr %10, align 4
%20 = sext i32 %19 to i64
%21 = trunc i64 %20 to i32
%22 = add nsw i32 %21, 255
store i32 %22, ptr %12, align 4
%23 = load i32, ptr %12, align 4
%24 = sdiv i32 %23, 256
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %11, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i64, ptr %26, align 8
%28 = trunc i64 %27 to i32
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %29, align 8
%31 = trunc i64 %30 to i32
%32 = sub nsw i32 %28, %31
store i32 %32, ptr %9, align 4
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %11, align 4
%35 = and i32 %33, %34
%36 = load i32, ptr %10, align 4
%37 = or i32 %36, %35
store i32 %37, ptr %10, align 4
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i64, ptr %38, i32 1
store ptr %39, ptr %7, align 8
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds i64, ptr %40, i32 1
store ptr %41, ptr %8, align 8
%42 = load i64, ptr %6, align 8
%43 = add i64 %42, -1
store i64 %43, ptr %6, align 8
br label %15, !llvm.loop !6
44: ; preds = %15
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = add nsw i64 %46, 32768
%48 = trunc i64 %47 to i32
%49 = sext i32 %48 to i64
%50 = sub nsw i64 %49, 32768
%51 = trunc i64 %50 to i32
ret i32 %51
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpe9_3rgzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @consttime_memcmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %8, align 8
store i32 0, ptr %10, align 4
%15 = load i64, ptr %6, align 8
%16 = icmp ne i64 %15, 0
br i1 %16, label %.lr.ph, label %45
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %17
%18 = load i32, ptr %10, align 4
%19 = sext i32 %18 to i64
%20 = trunc i64 %19 to i32
%21 = add nsw i32 %20, 255
store i32 %21, ptr %12, align 4
%22 = load i32, ptr %12, align 4
%23 = sdiv i32 %22, 256
%24 = sub nsw i32 %23, 1
store i32 %24, ptr %11, align 4
%25 = load ptr, ptr %7, align 8
%26 = load i64, ptr %25, align 8
%27 = trunc i64 %26 to i32
%28 = load ptr, ptr %8, align 8
%29 = load i64, ptr %28, align 8
%30 = trunc i64 %29 to i32
%31 = sub nsw i32 %27, %30
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %11, align 4
%34 = and i32 %32, %33
%35 = load i32, ptr %10, align 4
%36 = or i32 %35, %34
store i32 %36, ptr %10, align 4
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds i64, ptr %37, i32 1
store ptr %38, ptr %7, align 8
%39 = load ptr, ptr %8, align 8
%40 = getelementptr inbounds i64, ptr %39, i32 1
store ptr %40, ptr %8, align 8
%41 = load i64, ptr %6, align 8
%42 = add i64 %41, -1
store i64 %42, ptr %6, align 8
%43 = load i64, ptr %6, align 8
%44 = icmp ne i64 %43, 0
br i1 %44, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %45
45: ; preds = %._crit_edge, %3
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = add nsw i64 %47, 32768
%49 = trunc i64 %48 to i32
%50 = sext i32 %49 to i64
%51 = sub nsw i64 %50, 32768
%52 = trunc i64 %51 to i32
ret i32 %52
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmprhktp5v1.c'
source_filename = "/tmp/tmprhktp5v1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %6, %0
%4 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = icmp sgt i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 @computeCubeSum(i32 noundef %7)
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8)
br label %3, !llvm.loop !6
10: ; preds = %3
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @computeCubeSum(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/tmprhktp5v1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = icmp sgt i64 %3, 0
br i1 %4, label %.lr.ph, label %11
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i32, ptr %2, align 4
%7 = call i32 @computeCubeSum(i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7)
%9 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = icmp sgt i64 %9, 0
br i1 %10, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %11
11: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @computeCubeSum(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/tmpfvqdub6b.c'
source_filename = "/tmp/tmpfvqdub6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_stdout() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfvqdub6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_stdout() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpigvclcf3.c'
source_filename = "/tmp/tmpigvclcf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: udpgen [OPTIONS]\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"OPTIONS:\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c" -o, --host=VAL destination address\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c" -p, --port=VAL destination port\00", align 1
@.str.4 = private unnamed_addr constant [63 x i8] c" -d, --delay=VAL delay in milliseconds (default 100ms)\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c" -s, --size=VAL packet size (default 1024)\00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c" -n, --num=VAL how many packets to send (default infinite)\00", align 1
@.str.7 = private unnamed_addr constant [54 x i8] c" -t, --ttl=VAL TTL value (1-64, default 16)\00", align 1
@.str.8 = private unnamed_addr constant [36 x i8] c" -e, --debug debug mode\00", align 1
@.str.9 = private unnamed_addr constant [53 x i8] c" -h, --help display this help and exit\0A\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"Examples:\00", align 1
@.str.11 = private unnamed_addr constant [71 x i8] c"udpgen --host=239.194.1.1 --port=1234 --size=1024 --delay=100 --ttl=8\0A\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"Report bugs to <jiri(dot)tyr(at)gmail(dot)com>.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = call i32 @puts(ptr noundef @.str.6)
%8 = call i32 @puts(ptr noundef @.str.7)
%9 = call i32 @puts(ptr noundef @.str.8)
%10 = call i32 @puts(ptr noundef @.str.9)
%11 = call i32 @puts(ptr noundef @.str.10)
%12 = call i32 @puts(ptr noundef @.str.11)
%13 = call i32 @puts(ptr noundef @.str.12)
%14 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @puts(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/tmpigvclcf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: udpgen [OPTIONS]\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"OPTIONS:\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c" -o, --host=VAL destination address\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c" -p, --port=VAL destination port\00", align 1
@.str.4 = private unnamed_addr constant [63 x i8] c" -d, --delay=VAL delay in milliseconds (default 100ms)\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c" -s, --size=VAL packet size (default 1024)\00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c" -n, --num=VAL how many packets to send (default infinite)\00", align 1
@.str.7 = private unnamed_addr constant [54 x i8] c" -t, --ttl=VAL TTL value (1-64, default 16)\00", align 1
@.str.8 = private unnamed_addr constant [36 x i8] c" -e, --debug debug mode\00", align 1
@.str.9 = private unnamed_addr constant [53 x i8] c" -h, --help display this help and exit\0A\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"Examples:\00", align 1
@.str.11 = private unnamed_addr constant [71 x i8] c"udpgen --host=239.194.1.1 --port=1234 --size=1024 --delay=100 --ttl=8\0A\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"Report bugs to <jiri(dot)tyr(at)gmail(dot)com>.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = call i32 @puts(ptr noundef @.str.6)
%8 = call i32 @puts(ptr noundef @.str.7)
%9 = call i32 @puts(ptr noundef @.str.8)
%10 = call i32 @puts(ptr noundef @.str.9)
%11 = call i32 @puts(ptr noundef @.str.10)
%12 = call i32 @puts(ptr noundef @.str.11)
%13 = call i32 @puts(ptr noundef @.str.12)
%14 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @puts(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/tmpk8owyzer.c'
source_filename = "/tmp/tmpk8owyzer.c"
target datalayout = "e-m:e-p270: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/tmpk8owyzer.c"
target datalayout = "e-m:e-p270: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/tmppkh__p7p.c'
source_filename = "/tmp/tmppkh__p7p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @internal_abs_s(i16 noundef signext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call signext i16 @abs(i16 noundef signext %3)
ret i16 %4
}
declare signext i16 @abs(i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppkh__p7p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @internal_abs_s(i16 noundef signext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call signext i16 @abs(i16 noundef signext %3)
ret i16 %4
}
declare signext i16 @abs(i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8k99l2tq.c'
source_filename = "/tmp/tmp8k99l2tq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Mercury\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Venus\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Earth\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"Mars\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Jupiter\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"Saturn\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"Uranus\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"Neptune\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"Pluto\00", align 1
@__const.main.planets = private unnamed_addr constant [9 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8], align 16
@.str.9 = private unnamed_addr constant [18 x i8] c"%s is planet %d.\0A\00", align 1
@.str.10 = private unnamed_addr constant [21 x i8] c"%s is not a planet.\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 ptr], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.planets, i64 72, i1 false)
store i32 1, ptr %7, align 4
br label %9
9: ; preds = %53, %2
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %56
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %39, %13
%15 = load i32, ptr %8, align 4
%16 = icmp slt i32 %15, 9
br i1 %16, label %17, label %42
17: ; preds = %14
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [9 x ptr], ptr %6, i64 0, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = call i64 @strcasecmp(ptr noundef %22, ptr noundef %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %17
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
%37 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %34, i32 noundef %36)
br label %42
38: ; preds = %17
br label %39
39: ; preds = %38
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4
br label %14, !llvm.loop !6
42: ; preds = %29, %14
%43 = load i32, ptr %8, align 4
%44 = icmp eq i32 %43, 9
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %50)
br label %52
52: ; preds = %45, %42
br label %53
53: ; preds = %52
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %7, align 4
br label %9, !llvm.loop !8
56: ; preds = %9
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 i64 @strcasecmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8k99l2tq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Mercury\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Venus\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Earth\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"Mars\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Jupiter\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"Saturn\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"Uranus\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"Neptune\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"Pluto\00", align 1
@__const.main.planets = private unnamed_addr constant [9 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8], align 16
@.str.9 = private unnamed_addr constant [18 x i8] c"%s is planet %d.\0A\00", align 1
@.str.10 = private unnamed_addr constant [21 x i8] c"%s is not a planet.\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 ptr], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.planets, i64 72, i1 false)
store i32 1, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph1, label %59
.lr.ph1: ; preds = %2
br label %12
12: ; preds = %.lr.ph1, %53
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 9
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %12
br label %15
15: ; preds = %.lr.ph, %37
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [9 x ptr], ptr %6, i64 0, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcasecmp(ptr noundef %20, ptr noundef %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %36
27: ; preds = %15
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
%35 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %32, i32 noundef %34)
br label %42
36: ; preds = %15
br label %37
37: ; preds = %36
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %40, 9
br i1 %41, label %15, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %37
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %12
br label %42
42: ; preds = %.loopexit, %27
%43 = load i32, ptr %8, align 4
%44 = icmp eq i32 %43, 9
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %50)
br label %52
52: ; preds = %45, %42
br label %53
53: ; preds = %52
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %12, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %53
br label %59
59: ; preds = %._crit_edge, %2
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 i64 @strcasecmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbd69o0om.c'
source_filename = "/tmp/tmpbd69o0om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [18 x i8] c"file mmap error.\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"file munmap error.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @File_UpdateGetLost(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 -1, ptr %4, align 4
br label %75
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = call i64 @File_Exist(ptr noundef %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 -1, ptr %4, align 4
br label %75
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = call i32 @File_Open(ptr noundef %21)
store i32 %22, ptr %8, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 -1, ptr %4, align 4
br label %75
25: ; preds = %20
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr @PROT_READ, align 4
%28 = load i32, ptr @PROT_WRITE, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @MAP_SHARED, align 4
%31 = load i32, ptr %8, align 4
%32 = call ptr @mmap(ptr noundef null, i32 noundef %26, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef 0)
store ptr %32, ptr %9, align 8
%33 = load ptr, ptr %9, align 8
%34 = load ptr, ptr @MAP_FAILED, align 8
%35 = icmp eq ptr %33, %34
br i1 %35, label %36, label %40
36: ; preds = %25
%37 = call i32 @logcat(ptr noundef @.str)
%38 = load i32, ptr %8, align 4
%39 = call i32 @File_Close(i32 noundef %38)
store i32 -1, ptr %4, align 4
br label %75
40: ; preds = %25
store i32 0, ptr %10, align 4
br label %41
41: ; preds = %61, %40
%42 = load i32, ptr %10, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %64
45: ; preds = %41
%46 = load ptr, ptr %9, align 8
%47 = load i32, ptr %10, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 1
br i1 %52, label %53, label %60
53: ; preds = %45
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds i32, ptr %56, i32 1
store ptr %57, ptr %7, align 8
store i32 %55, ptr %56, align 4
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %11, align 4
br label %60
60: ; preds = %53, %45
br label %61
61: ; preds = %60
%62 = load i32, ptr %10, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %10, align 4
br label %41, !llvm.loop !6
64: ; preds = %41
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %6, align 4
%67 = call i64 @munmap(ptr noundef %65, i32 noundef %66)
%68 = icmp slt i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %64
%70 = call i32 @logcat(ptr noundef @.str.1)
br label %71
71: ; preds = %69, %64
%72 = load i32, ptr %8, align 4
%73 = call i32 @File_Close(i32 noundef %72)
%74 = load i32, ptr %11, align 4
store i32 %74, ptr %4, align 4
br label %75
75: ; preds = %71, %36, %24, %19, %14
%76 = load i32, ptr %4, align 4
ret i32 %76
}
declare i64 @File_Exist(ptr noundef) #1
declare i32 @File_Open(ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @logcat(ptr noundef) #1
declare i32 @File_Close(i32 noundef) #1
declare i64 @munmap(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/tmpbd69o0om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [18 x i8] c"file mmap error.\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"file munmap error.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @File_UpdateGetLost(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 -1, ptr %4, align 4
br label %77
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = call i64 @File_Exist(ptr noundef %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 -1, ptr %4, align 4
br label %77
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = call i32 @File_Open(ptr noundef %21)
store i32 %22, ptr %8, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 -1, ptr %4, align 4
br label %77
25: ; preds = %20
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr @PROT_READ, align 4
%28 = load i32, ptr @PROT_WRITE, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @MAP_SHARED, align 4
%31 = load i32, ptr %8, align 4
%32 = call ptr @mmap(ptr noundef null, i32 noundef %26, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef 0)
store ptr %32, ptr %9, align 8
%33 = load ptr, ptr %9, align 8
%34 = load ptr, ptr @MAP_FAILED, align 8
%35 = icmp eq ptr %33, %34
br i1 %35, label %36, label %40
36: ; preds = %25
%37 = call i32 @logcat(ptr noundef @.str)
%38 = load i32, ptr %8, align 4
%39 = call i32 @File_Close(i32 noundef %38)
store i32 -1, ptr %4, align 4
br label %77
40: ; preds = %25
store i32 0, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph, label %66
.lr.ph: ; preds = %40
br label %44
44: ; preds = %.lr.ph, %60
%45 = load ptr, ptr %9, align 8
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 1
br i1 %51, label %52, label %59
52: ; preds = %44
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds i32, ptr %55, i32 1
store ptr %56, ptr %7, align 8
store i32 %54, ptr %55, align 4
%57 = load i32, ptr %11, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %11, align 4
br label %59
59: ; preds = %52, %44
br label %60
60: ; preds = %59
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4
%63 = load i32, ptr %10, align 4
%64 = load i32, ptr %6, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %66
66: ; preds = %._crit_edge, %40
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %6, align 4
%69 = call i64 @munmap(ptr noundef %67, i32 noundef %68)
%70 = icmp slt i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %66
%72 = call i32 @logcat(ptr noundef @.str.1)
br label %73
73: ; preds = %71, %66
%74 = load i32, ptr %8, align 4
%75 = call i32 @File_Close(i32 noundef %74)
%76 = load i32, ptr %11, align 4
store i32 %76, ptr %4, align 4
br label %77
77: ; preds = %73, %36, %24, %19, %14
%78 = load i32, ptr %4, align 4
ret i32 %78
}
declare i64 @File_Exist(ptr noundef) #1
declare i32 @File_Open(ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @logcat(ptr noundef) #1
declare i32 @File_Close(i32 noundef) #1
declare i64 @munmap(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/tmp0ntye1_0.c'
source_filename = "/tmp/tmp0ntye1_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"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ntye1_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"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphspct3oe.c'
source_filename = "/tmp/tmphspct3oe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr @PF_INET, 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 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %1
%15 = load i32, ptr @AF_INET, align 4
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %15, ptr %16, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 @htons(i32 noundef %17)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
store i32 %18, ptr %19, align 4
%20 = load i32, ptr @INADDR_ANY, align 4
%21 = call i32 @htonl(i32 noundef %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i32 0, i32 0
store i32 %21, ptr %23, align 4
%24 = load i32, ptr %3, align 4
%25 = call i64 @bind(i32 noundef %24, ptr noundef %4, i32 noundef 12)
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %14
%28 = call i32 @perror(ptr noundef @.str.1)
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = call i32 @exit(i32 noundef %29) #3
unreachable
31: ; preds = %14
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmphspct3oe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr @PF_INET, 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 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %1
%15 = load i32, ptr @AF_INET, align 4
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %15, ptr %16, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 @htons(i32 noundef %17)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
store i32 %18, ptr %19, align 4
%20 = load i32, ptr @INADDR_ANY, align 4
%21 = call i32 @htonl(i32 noundef %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i32 0, i32 0
store i32 %21, ptr %23, align 4
%24 = load i32, ptr %3, align 4
%25 = call i64 @bind(i32 noundef %24, ptr noundef %4, i32 noundef 12)
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %14
%28 = call i32 @perror(ptr noundef @.str.1)
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = call i32 @exit(i32 noundef %29) #3
unreachable
31: ; preds = %14
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpcxm4lm_e.c'
source_filename = "/tmp/tmpcxm4lm_e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
br label %8
8: ; preds = %32, %2
%9 = load ptr, ptr %5, align 8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %35
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %6, align 8
br label %14
14: ; preds = %28, %12
%15 = load ptr, ptr %6, align 8
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
br i1 %17, label %18, label %31
18: ; preds = %14
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %21, %24
br i1 %25, label %26, label %27
26: ; preds = %18
br label %36
27: ; preds = %18
br label %28
28: ; preds = %27
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %6, align 8
br label %14, !llvm.loop !6
31: ; preds = %14
br label %32
32: ; preds = %31
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %5, align 8
br label %8, !llvm.loop !8
35: ; preds = %8
br label %36
36: ; preds = %35, %26
%37 = load ptr, ptr %5, align 8
%38 = load ptr, ptr %3, align 8
%39 = ptrtoint ptr %37 to i64
%40 = ptrtoint ptr %38 to i64
%41 = sub i64 %39, %40
ret i64 %41
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpcxm4lm_e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %.lr.ph2, label %39
.lr.ph2: ; preds = %2
br label %11
11: ; preds = %.lr.ph2, %33
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %.lr.ph, label %32
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %26
%17 = load ptr, ptr %6, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load ptr, ptr %5, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %19, %22
br i1 %23, label %24, label %25
24: ; preds = %16
br label %40
25: ; preds = %16
br label %26
26: ; preds = %25
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %6, align 8
%29 = load ptr, ptr %6, align 8
%30 = load i8, ptr %29, align 1
%31 = icmp ne i8 %30, 0
br i1 %31, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %11
br label %33
33: ; preds = %32
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %5, align 8
%36 = load ptr, ptr %5, align 8
%37 = load i8, ptr %36, align 1
%38 = icmp ne i8 %37, 0
br i1 %38, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %39
39: ; preds = %._crit_edge3, %2
br label %40
40: ; preds = %39, %24
%41 = load ptr, ptr %5, align 8
%42 = load ptr, ptr %3, align 8
%43 = ptrtoint ptr %41 to i64
%44 = ptrtoint ptr %42 to i64
%45 = sub i64 %43, %44
ret i64 %45
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp92s7sia9.c'
source_filename = "/tmp/tmp92s7sia9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_deleteln(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 0)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %13
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 (...) @deleteln()
%12 = call i32 @report_return(i32 noundef %11)
br label %13
13: ; 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_return(i32 noundef) #1
declare i32 @deleteln(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp92s7sia9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_deleteln(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 0)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %13
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 (...) @deleteln()
%12 = call i32 @report_return(i32 noundef %11)
br label %13
13: ; 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_return(i32 noundef) #1
declare i32 @deleteln(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpybiiizvw.c'
source_filename = "/tmp/tmpybiiizvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PERQTFlush() #0 {
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybiiizvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PERQTFlush() #0 {
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppuwz8ibb.c'
source_filename = "/tmp/tmppuwz8ibb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genn1(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load i64, ptr %5, align 8
%11 = mul i64 %10, 32
store i64 %11, ptr %8, align 8
%12 = load i64, ptr %6, align 8
%13 = load i64, ptr %8, align 8
%14 = add i64 %12, %13
%15 = call i32 @invpyr(i64 noundef %14)
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
store i64 %17, ptr %9, align 8
store i64 2, ptr %7, align 8
br label %18
18: ; preds = %45, %3
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %9, align 8
%21 = icmp ule i64 %19, %20
br i1 %21, label %22, label %48
22: ; preds = %18
%23 = load i64, ptr %7, align 8
%24 = call i64 @pyramid(i64 noundef %23)
%25 = load i64, ptr %6, align 8
%26 = add i64 %25, 1
%27 = icmp ult i64 %24, %26
br i1 %27, label %28, label %29
28: ; preds = %22
br label %45
29: ; preds = %22
%30 = load i64, ptr %7, align 8
%31 = call i64 @pyramid(i64 noundef %30)
%32 = load i64, ptr %6, align 8
%33 = load i64, ptr %8, align 8
%34 = add i64 %32, %33
%35 = icmp ugt i64 %31, %34
br i1 %35, label %36, label %37
36: ; preds = %29
br label %48
37: ; preds = %29
%38 = load ptr, ptr %4, align 8
%39 = load i64, ptr %7, align 8
%40 = call i64 @pyramid(i64 noundef %39)
%41 = load i64, ptr %6, align 8
%42 = sub i64 %40, %41
%43 = sub i64 %42, 1
%44 = call i32 @mark(ptr noundef %38, i64 noundef %43)
br label %45
45: ; preds = %37, %28
%46 = load i64, ptr %7, align 8
%47 = add i64 %46, 1
store i64 %47, ptr %7, align 8
br label %18, !llvm.loop !6
48: ; preds = %36, %18
ret void
}
declare i32 @invpyr(i64 noundef) #1
declare i64 @pyramid(i64 noundef) #1
declare i32 @mark(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppuwz8ibb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genn1(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load i64, ptr %5, align 8
%11 = mul i64 %10, 32
store i64 %11, ptr %8, align 8
%12 = load i64, ptr %6, align 8
%13 = load i64, ptr %8, align 8
%14 = add i64 %12, %13
%15 = call i32 @invpyr(i64 noundef %14)
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
store i64 %17, ptr %9, align 8
store i64 2, ptr %7, align 8
%18 = load i64, ptr %7, align 8
%19 = load i64, ptr %9, align 8
%20 = icmp ule i64 %18, %19
br i1 %20, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %21
21: ; preds = %.lr.ph, %44
%22 = load i64, ptr %7, align 8
%23 = call i64 @pyramid(i64 noundef %22)
%24 = load i64, ptr %6, align 8
%25 = add i64 %24, 1
%26 = icmp ult i64 %23, %25
br i1 %26, label %27, label %28
27: ; preds = %21
br label %44
28: ; preds = %21
%29 = load i64, ptr %7, align 8
%30 = call i64 @pyramid(i64 noundef %29)
%31 = load i64, ptr %6, align 8
%32 = load i64, ptr %8, align 8
%33 = add i64 %31, %32
%34 = icmp ugt i64 %30, %33
br i1 %34, label %35, label %36
35: ; preds = %28
br label %50
36: ; preds = %28
%37 = load ptr, ptr %4, align 8
%38 = load i64, ptr %7, align 8
%39 = call i64 @pyramid(i64 noundef %38)
%40 = load i64, ptr %6, align 8
%41 = sub i64 %39, %40
%42 = sub i64 %41, 1
%43 = call i32 @mark(ptr noundef %37, i64 noundef %42)
br label %44
44: ; preds = %36, %27
%45 = load i64, ptr %7, align 8
%46 = add i64 %45, 1
store i64 %46, ptr %7, align 8
%47 = load i64, ptr %7, align 8
%48 = load i64, ptr %9, align 8
%49 = icmp ule i64 %47, %48
br i1 %49, label %21, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %44
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %50
50: ; preds = %.loopexit, %35
ret void
}
declare i32 @invpyr(i64 noundef) #1
declare i64 @pyramid(i64 noundef) #1
declare i32 @mark(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7owl1x73.c'
source_filename = "/tmp/tmp7owl1x73.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"3 1 2 2\0A3 3 4 4\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"2\0A5\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"2\0A2\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"2\0A1\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"2\0A3\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"2\0A4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fflush(i32 noundef %6)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.3)
br label %37
13: ; preds = %0
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(ptr noundef @.str.4)
br label %36
18: ; preds = %13
%19 = load i32, ptr %2, align 4
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(ptr noundef @.str.5)
br label %35
23: ; preds = %18
%24 = load i32, ptr %2, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(ptr noundef @.str.6)
br label %34
28: ; preds = %23
%29 = load i32, ptr %2, align 4
%30 = icmp eq i32 %29, -2
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(ptr noundef @.str.7)
br label %33
33: ; preds = %31, %28
br label %34
34: ; preds = %33, %26
br label %35
35: ; preds = %34, %21
br label %36
36: ; preds = %35, %16
br label %37
37: ; preds = %36, %11
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 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/tmp7owl1x73.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"3 1 2 2\0A3 3 4 4\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"2\0A5\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"2\0A2\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"2\0A1\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"2\0A3\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"2\0A4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fflush(i32 noundef %6)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.3)
br label %37
13: ; preds = %0
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(ptr noundef @.str.4)
br label %36
18: ; preds = %13
%19 = load i32, ptr %2, align 4
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(ptr noundef @.str.5)
br label %35
23: ; preds = %18
%24 = load i32, ptr %2, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(ptr noundef @.str.6)
br label %34
28: ; preds = %23
%29 = load i32, ptr %2, align 4
%30 = icmp eq i32 %29, -2
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(ptr noundef @.str.7)
br label %33
33: ; preds = %31, %28
br label %34
34: ; preds = %33, %26
br label %35
35: ; preds = %34, %21
br label %36
36: ; preds = %35, %16
br label %37
37: ; preds = %36, %11
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 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/tmp7fib6waj.c'
source_filename = "/tmp/tmp7fib6waj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Error in compiling regex %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorRegexCompile(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 @genericError(ptr noundef @.str, i32 noundef 3, ptr noundef %3)
ret void
}
declare i32 @genericError(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7fib6waj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Error in compiling regex %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorRegexCompile(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 @genericError(ptr noundef @.str, i32 noundef 3, ptr noundef %3)
ret void
}
declare i32 @genericError(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5l5gsff5.c'
source_filename = "/tmp/tmp5l5gsff5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = call i32 @bar(i32 noundef 0)
ret void
}
declare i32 @bar(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/tmp5l5gsff5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = call i32 @bar(i32 noundef 0)
ret void
}
declare i32 @bar(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/tmp7jqj4v7x.c'
source_filename = "/tmp/tmp7jqj4v7x.c"
target datalayout = "e-m:e-p270: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/tmp7jqj4v7x.c"
target datalayout = "e-m:e-p270: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/tmp7yk5o7na.c'
source_filename = "/tmp/tmp7yk5o7na.c"
target datalayout = "e-m:e-p270: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/tmp7yk5o7na.c"
target datalayout = "e-m:e-p270: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/tmpywua451o.c'
source_filename = "/tmp/tmpywua451o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld\00", align 1
@.str.1 = 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 i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%6 = load i64, ptr %2, align 8
%7 = mul i64 %6, 1
%8 = call i64 @malloc(i64 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %20, %0
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = load i64, ptr %2, align 8
%14 = icmp slt i64 %12, %13
br i1 %14, label %15, label %23
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = call i32 @biggerisgreater(ptr noundef %18)
br label %20
20: ; preds = %15
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %10, !llvm.loop !6
23: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @biggerisgreater(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpywua451o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld\00", align 1
@.str.1 = 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 i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%6 = load i64, ptr %2, align 8
%7 = mul i64 %6, 1
%8 = call i64 @malloc(i64 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = load i64, ptr %2, align 8
%13 = icmp slt i64 %11, %12
br i1 %13, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %19
%15 = load ptr, ptr %3, align 8
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = load ptr, ptr %3, align 8
%18 = call i32 @biggerisgreater(ptr noundef %17)
br label %19
19: ; preds = %14
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = load i64, ptr %2, align 8
%25 = icmp slt i64 %23, %24
br i1 %25, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %26
26: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @biggerisgreater(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdtj63olz.c'
source_filename = "/tmp/tmpdtj63olz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @candrv_cleanup() #0 {
%1 = call i32 (...) @unican_boards_cleanup()
ret void
}
declare i32 @unican_boards_cleanup(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdtj63olz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @candrv_cleanup() #0 {
%1 = call i32 (...) @unican_boards_cleanup()
ret void
}
declare i32 @unican_boards_cleanup(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuxo_umi7.c'
source_filename = "/tmp/tmpuxo_umi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_geoip_data(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
ret ptr %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/tmpuxo_umi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_geoip_data(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
ret ptr %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/tmpmlrkpnyk.c'
source_filename = "/tmp/tmpmlrkpnyk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X509_TRUST_DYNAMIC = dso_local global i32 0, align 4
@X509_TRUST_DYNAMIC_NAME = 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/tmpmlrkpnyk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X509_TRUST_DYNAMIC = dso_local global i32 0, align 4
@X509_TRUST_DYNAMIC_NAME = 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/tmpzro42sre.c'
source_filename = "/tmp/tmpzro42sre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"1234567890\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Error:\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\EF\BC\81\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\E6\BA\90\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Error:\E6\BA\90\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\EF\BC\81\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"\E5\A4\8D\E5\88\B6\E9\95\BF\E5\BA\A6\E4\B8\BA\E7\A9\BA\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Error:\E5\A4\8D\E5\88\B6\E9\95\BF\E5\BA\A6\E4\B8\BA0\EF\BC\81\0A\00", align 1
@.str.7 = private unnamed_addr constant [50 x i8] c"\E6\BA\90\E5\9C\B0\E5\9D\80\E4\B8\8E\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E7\9B\B8\E5\90\8C\EF\BC\8C\E8\BE\93\E5\87\BA\E7\9B\AE\E6\A0\87\EF\BC\9A\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%c \00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [47 x i8] c"\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E5\A4\A7\E4\BA\8E\E6\BA\90\E5\9C\B0\E5\9D\80\EF\BC\8C\E8\BE\93\E5\87\BA\E7\9B\AE\E6\A0\87\EF\BC\9A\0A\00", align 1
@.str.11 = private unnamed_addr constant [47 x i8] c"\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E5\B0\8F\E4\BA\8E\E6\BA\90\E5\9C\B0\E5\9D\80\EF\BC\8C\E8\BE\93\E5\87\BA\E7\9B\AE\E6\A0\87\EF\BC\9A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [12 x i8], align 1
%9 = alloca [12 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%11 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 12)
%12 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
store i32 10, ptr %7, align 4
%14 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%15 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 12)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%18 = load i32, ptr %7, align 4
%19 = call i32 @my_memcpy(ptr noundef null, ptr noundef %17, i32 noundef %18)
%20 = icmp eq i32 -1, %19
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %23
23: ; preds = %21, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%25 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%26 = load i32, ptr %7, align 4
%27 = call i32 @my_memcpy(ptr noundef %25, ptr noundef null, i32 noundef %26)
%28 = icmp eq i32 -1, %27
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %31
31: ; preds = %29, %23
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%33 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%34 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%35 = call i32 @my_memcpy(ptr noundef %33, ptr noundef %34, i32 noundef 0)
%36 = icmp eq i32 -1, %35
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %39
39: ; preds = %37, %31
%40 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%41 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%42 = load i32, ptr %7, align 4
%43 = call i32 @my_memcpy(ptr noundef %40, ptr noundef %41, i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %6, align 4
br label %45
45: ; preds = %57, %39
%46 = load i32, ptr %6, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %60
49: ; preds = %45
%50 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %55)
br label %57
57: ; preds = %49
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
br label %45, !llvm.loop !6
60: ; preds = %45
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%62 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%63 = getelementptr inbounds i8, ptr %62, i64 1
%64 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%65 = load i32, ptr %7, align 4
%66 = call i32 @my_memcpy(ptr noundef %63, ptr noundef %64, i32 noundef %65)
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %6, align 4
br label %68
68: ; preds = %81, %60
%69 = load i32, ptr %6, align 4
%70 = load i32, ptr %7, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %84
72: ; preds = %68
%73 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%74 = load i32, ptr %6, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
%77 = getelementptr inbounds i8, ptr %76, i64 1
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %79)
br label %81
81: ; preds = %72
%82 = load i32, ptr %6, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %6, align 4
br label %68, !llvm.loop !8
84: ; preds = %68
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%86 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%87 = call i32 @strcpy(ptr noundef %86, ptr noundef @.str)
%88 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%89 = call i32 @memset(ptr noundef %88, i32 noundef 0, i32 noundef 12)
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%91 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%92 = getelementptr inbounds i8, ptr %91, i64 -1
%93 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%94 = load i32, ptr %7, align 4
%95 = call i32 @my_memcpy(ptr noundef %92, ptr noundef %93, i32 noundef %94)
store i32 0, ptr %6, align 4
br label %96
96: ; preds = %109, %84
%97 = load i32, ptr %6, align 4
%98 = load i32, ptr %7, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %112
100: ; preds = %96
%101 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%102 = load i32, ptr %6, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = getelementptr inbounds i8, ptr %104, i64 -1
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %107)
br label %109
109: ; preds = %100
%110 = load i32, ptr %6, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %6, align 4
br label %96, !llvm.loop !9
112: ; preds = %96
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @my_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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzro42sre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"1234567890\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Error:\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\EF\BC\81\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\E6\BA\90\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Error:\E6\BA\90\E5\9C\B0\E5\9D\80\E4\B8\BA\E7\A9\BA\EF\BC\81\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"\E5\A4\8D\E5\88\B6\E9\95\BF\E5\BA\A6\E4\B8\BA\E7\A9\BA\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Error:\E5\A4\8D\E5\88\B6\E9\95\BF\E5\BA\A6\E4\B8\BA0\EF\BC\81\0A\00", align 1
@.str.7 = private unnamed_addr constant [50 x i8] c"\E6\BA\90\E5\9C\B0\E5\9D\80\E4\B8\8E\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E7\9B\B8\E5\90\8C\EF\BC\8C\E8\BE\93\E5\87\BA\E7\9B\AE\E6\A0\87\EF\BC\9A\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%c \00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [47 x i8] c"\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E5\A4\A7\E4\BA\8E\E6\BA\90\E5\9C\B0\E5\9D\80\EF\BC\8C\E8\BE\93\E5\87\BA\E7\9B\AE\E6\A0\87\EF\BC\9A\0A\00", align 1
@.str.11 = private unnamed_addr constant [47 x i8] c"\E7\9B\AE\E6\A0\87\E5\9C\B0\E5\9D\80\E5\B0\8F\E4\BA\8E\E6\BA\90\E5\9C\B0\E5\9D\80\EF\BC\8C\E8\BE\93\E5\87\BA\E7\9B\AE\E6\A0\87\EF\BC\9A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [12 x i8], align 1
%9 = alloca [12 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%11 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 12)
%12 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
store i32 10, ptr %7, align 4
%14 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%15 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 12)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%18 = load i32, ptr %7, align 4
%19 = call i32 @my_memcpy(ptr noundef null, ptr noundef %17, i32 noundef %18)
%20 = icmp eq i32 -1, %19
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %23
23: ; preds = %21, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%25 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%26 = load i32, ptr %7, align 4
%27 = call i32 @my_memcpy(ptr noundef %25, ptr noundef null, i32 noundef %26)
%28 = icmp eq i32 -1, %27
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %31
31: ; preds = %29, %23
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%33 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%34 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%35 = call i32 @my_memcpy(ptr noundef %33, ptr noundef %34, i32 noundef 0)
%36 = icmp eq i32 -1, %35
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %39
39: ; preds = %37, %31
%40 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%41 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%42 = load i32, ptr %7, align 4
%43 = call i32 @my_memcpy(ptr noundef %40, ptr noundef %41, i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %62
.lr.ph: ; preds = %39
br label %48
48: ; preds = %.lr.ph, %56
%49 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %54)
br label %56
56: ; preds = %48
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %48, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %39
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%64 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%65 = getelementptr inbounds i8, ptr %64, i64 1
%66 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%67 = load i32, ptr %7, align 4
%68 = call i32 @my_memcpy(ptr noundef %65, ptr noundef %66, i32 noundef %67)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %6, align 4
%70 = load i32, ptr %6, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %.lr.ph2, label %88
.lr.ph2: ; preds = %62
br label %73
73: ; preds = %.lr.ph2, %82
%74 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%75 = load i32, ptr %6, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = getelementptr inbounds i8, ptr %77, i64 1
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %80)
br label %82
82: ; preds = %73
%83 = load i32, ptr %6, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %6, align 4
%85 = load i32, ptr %6, align 4
%86 = load i32, ptr %7, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %73, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %82
br label %88
88: ; preds = %._crit_edge3, %62
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%90 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%91 = call i32 @strcpy(ptr noundef %90, ptr noundef @.str)
%92 = getelementptr inbounds [12 x i8], ptr %9, i64 0, i64 0
%93 = call i32 @memset(ptr noundef %92, i32 noundef 0, i32 noundef 12)
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%95 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%96 = getelementptr inbounds i8, ptr %95, i64 -1
%97 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%98 = load i32, ptr %7, align 4
%99 = call i32 @my_memcpy(ptr noundef %96, ptr noundef %97, i32 noundef %98)
store i32 0, ptr %6, align 4
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %7, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %.lr.ph5, label %118
.lr.ph5: ; preds = %88
br label %103
103: ; preds = %.lr.ph5, %112
%104 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%105 = load i32, ptr %6, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %104, i64 %106
%108 = getelementptr inbounds i8, ptr %107, i64 -1
%109 = load i8, ptr %108, align 1
%110 = sext i8 %109 to i32
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %110)
br label %112
112: ; preds = %103
%113 = load i32, ptr %6, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %6, align 4
%115 = load i32, ptr %6, align 4
%116 = load i32, ptr %7, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %103, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %112
br label %118
118: ; preds = %._crit_edge6, %88
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @my_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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpmge93h7q.c'
source_filename = "/tmp/tmpmge93h7q.c"
target datalayout = "e-m:e-p270: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/tmpmge93h7q.c"
target datalayout = "e-m:e-p270: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/tmpo0b0984p.c'
source_filename = "/tmp/tmpo0b0984p.c"
target datalayout = "e-m:e-p270: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/tmpo0b0984p.c"
target datalayout = "e-m:e-p270: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/tmp80whukyi.c'
source_filename = "/tmp/tmp80whukyi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [5 x i8] c".xml\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".srt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_name_generator(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [200 x i8], align 16
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %3
%18 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @strcat(ptr noundef %18, ptr noundef @.str)
%20 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strcat(ptr noundef %20, ptr noundef %21)
br label %23
23: ; preds = %17, %3
%24 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%25 = call ptr @strstr(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %31, label %27
27: ; preds = %23
%28 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%29 = call ptr @strstr(ptr noundef %28, ptr noundef @.str.2)
store ptr %29, ptr %8, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %50
31: ; preds = %27, %23
%32 = load ptr, ptr %8, align 8
%33 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%34 = ptrtoint ptr %32 to i64
%35 = ptrtoint ptr %33 to i64
%36 = sub i64 %34, %35
%37 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%38 = call i32 @strlen(ptr noundef %37)
%39 = sub nsw i32 %38, 4
%40 = sext i32 %39 to i64
%41 = icmp eq i64 %36, %40
br i1 %41, label %42, label %49
42: ; preds = %31
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%45 = ptrtoint ptr %43 to i64
%46 = ptrtoint ptr %44 to i64
%47 = sub i64 %45, %46
%48 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 %47
store i8 0, ptr %48, align 1
br label %49
49: ; preds = %42, %31
br label %50
50: ; preds = %49, %27
%51 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @strcat(ptr noundef %51, ptr noundef @.str.2)
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%55 = call i32 @strcpy(ptr noundef %53, ptr noundef %54)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp80whukyi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [5 x i8] c".xml\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".srt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_name_generator(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [200 x i8], align 16
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %3
%18 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @strcat(ptr noundef %18, ptr noundef @.str)
%20 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strcat(ptr noundef %20, ptr noundef %21)
br label %23
23: ; preds = %17, %3
%24 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%25 = call ptr @strstr(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %31, label %27
27: ; preds = %23
%28 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%29 = call ptr @strstr(ptr noundef %28, ptr noundef @.str.2)
store ptr %29, ptr %8, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %50
31: ; preds = %27, %23
%32 = load ptr, ptr %8, align 8
%33 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%34 = ptrtoint ptr %32 to i64
%35 = ptrtoint ptr %33 to i64
%36 = sub i64 %34, %35
%37 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%38 = call i32 @strlen(ptr noundef %37)
%39 = sub nsw i32 %38, 4
%40 = sext i32 %39 to i64
%41 = icmp eq i64 %36, %40
br i1 %41, label %42, label %49
42: ; preds = %31
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%45 = ptrtoint ptr %43 to i64
%46 = ptrtoint ptr %44 to i64
%47 = sub i64 %45, %46
%48 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 %47
store i8 0, ptr %48, align 1
br label %49
49: ; preds = %42, %31
br label %50
50: ; preds = %49, %27
%51 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @strcat(ptr noundef %51, ptr noundef @.str.2)
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%55 = call i32 @strcpy(ptr noundef %53, ptr noundef %54)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpea256_r5.c'
source_filename = "/tmp/tmpea256_r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_h2_info() #0 {
%1 = call i32 (...) @print_h2_pairs()
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @print_h2_singles()
%4 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @print_h2_pairs(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @print_h2_singles(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpea256_r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_h2_info() #0 {
%1 = call i32 (...) @print_h2_pairs()
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @print_h2_singles()
%4 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @print_h2_pairs(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @print_h2_singles(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphhu9akyy.c'
source_filename = "/tmp/tmphhu9akyy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"\0Ausage: %s [-d spooldir] [-p port]\0A\00", align 1
@.str.1 = private unnamed_addr constant [65 x i8] c"options: -d spooldir\09where to store incoming files (default: .)\0A\00", align 1
@.str.2 = private unnamed_addr constant [57 x i8] c" -p port\09port we are listening on (default: %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 2546)
ret i32 -1
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphhu9akyy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"\0Ausage: %s [-d spooldir] [-p port]\0A\00", align 1
@.str.1 = private unnamed_addr constant [65 x i8] c"options: -d spooldir\09where to store incoming files (default: .)\0A\00", align 1
@.str.2 = private unnamed_addr constant [57 x i8] c" -p port\09port we are listening on (default: %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 2546)
ret i32 -1
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpattgu1ik.c'
source_filename = "/tmp/tmpattgu1ik.c"
target datalayout = "e-m:e-p270: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.str2 = private unnamed_addr constant [20 x i8] c"Hola que tal estas\00\00", align 16
@.str = private unnamed_addr constant [29 x i8] c"The error is the error haha \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.str2, i64 20, i1 false)
%3 = call i32 @perror(ptr noundef @.str)
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @printf(ptr noundef @.str.1, ptr noundef %4)
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 @perror(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpattgu1ik.c"
target datalayout = "e-m:e-p270: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.str2 = private unnamed_addr constant [20 x i8] c"Hola que tal estas\00\00", align 16
@.str = private unnamed_addr constant [29 x i8] c"The error is the error haha \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.str2, i64 20, i1 false)
%3 = call i32 @perror(ptr noundef @.str)
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @printf(ptr noundef @.str.1, ptr noundef %4)
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 @perror(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0kmsv1_5.c'
source_filename = "/tmp/tmp0kmsv1_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@IPPROTO_IP = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"/bin/sh\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 %struct.sockaddr_in, align 4
%7 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @AF_INET, align 4
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %8, ptr %9, align 4
%10 = call i32 @htons(i32 noundef 1337)
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %10, ptr %11, align 4
%12 = load i32, ptr @INADDR_ANY, align 4
%13 = call i32 @htonl(i32 noundef %12)
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%15 = getelementptr inbounds %struct.TYPE_2__, ptr %14, i32 0, i32 0
store i32 %13, ptr %15, align 4
%16 = load i32, ptr @AF_INET, align 4
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = load i32, ptr @IPPROTO_IP, align 4
%19 = call i32 @socket(i32 noundef %16, i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 @bind(i32 noundef %20, ptr noundef %6, i32 noundef 12)
%22 = load i32, ptr %3, align 4
%23 = call i32 @listen(i32 noundef %22, i32 noundef 0)
store i32 12, ptr %5, align 4
%24 = load i32, ptr %3, align 4
%25 = call i32 @accept(i32 noundef %24, ptr noundef %7, ptr noundef %5)
store i32 %25, ptr %4, align 4
store i32 0, ptr %2, align 4
br label %26
26: ; preds = %33, %0
%27 = load i32, ptr %2, align 4
%28 = icmp sle i32 %27, 2
br i1 %28, label %29, label %36
29: ; preds = %26
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %2, align 4
%32 = call i32 @dup2(i32 noundef %30, i32 noundef %31)
br label %33
33: ; preds = %29
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4
br label %26, !llvm.loop !6
36: ; preds = %26
%37 = call i32 @execve(ptr noundef @.str, ptr noundef null, ptr noundef null)
%38 = load i32, ptr %1, align 4
ret i32 %38
}
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0kmsv1_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@IPPROTO_IP = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"/bin/sh\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 %struct.sockaddr_in, align 4
%7 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @AF_INET, align 4
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %8, ptr %9, align 4
%10 = call i32 @htons(i32 noundef 1337)
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %10, ptr %11, align 4
%12 = load i32, ptr @INADDR_ANY, align 4
%13 = call i32 @htonl(i32 noundef %12)
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%15 = getelementptr inbounds %struct.TYPE_2__, ptr %14, i32 0, i32 0
store i32 %13, ptr %15, align 4
%16 = load i32, ptr @AF_INET, align 4
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = load i32, ptr @IPPROTO_IP, align 4
%19 = call i32 @socket(i32 noundef %16, i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 @bind(i32 noundef %20, ptr noundef %6, i32 noundef 12)
%22 = load i32, ptr %3, align 4
%23 = call i32 @listen(i32 noundef %22, i32 noundef 0)
store i32 12, ptr %5, align 4
%24 = load i32, ptr %3, align 4
%25 = call i32 @accept(i32 noundef %24, ptr noundef %7, ptr noundef %5)
store i32 %25, ptr %4, align 4
store i32 0, ptr %2, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp sle i32 %26, 2
br i1 %27, label %.lr.ph, label %37
.lr.ph: ; preds = %0
br label %28
28: ; preds = %.lr.ph, %32
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %2, align 4
%31 = call i32 @dup2(i32 noundef %29, i32 noundef %30)
br label %32
32: ; preds = %28
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp sle i32 %35, 2
br i1 %36, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %0
%38 = call i32 @execve(ptr noundef @.str, ptr noundef null, ptr noundef null)
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmph_w1x0n9.c'
source_filename = "/tmp/tmph_w1x0n9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main_work(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i8 %0, ptr %5, align 1
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
store i8 48, ptr %6, align 1
br label %9
9: ; preds = %47, %4
%10 = load i8, ptr %6, align 1
%11 = sext i8 %10 to i32
%12 = icmp sle i32 %11, 57
br i1 %12, label %13, label %50
13: ; preds = %9
store i8 48, ptr %5, align 1
br label %14
14: ; preds = %44, %13
%15 = load i8, ptr %5, align 1
%16 = sext i8 %15 to i32
%17 = icmp slt i32 %16, 56
br i1 %17, label %18, label %47
18: ; preds = %14
%19 = load i8, ptr %6, align 1
store i8 %19, ptr %7, align 1
br label %20
20: ; preds = %41, %18
%21 = load i8, ptr %7, align 1
%22 = sext i8 %21 to i32
%23 = icmp sle i32 %22, 57
br i1 %23, label %24, label %44
24: ; preds = %20
%25 = load i8, ptr %5, align 1
%26 = sext i8 %25 to i32
%27 = add nsw i32 %26, 1
%28 = trunc i32 %27 to i8
store i8 %28, ptr %8, align 1
br label %29
29: ; preds = %33, %24
%30 = load i8, ptr %8, align 1
%31 = sext i8 %30 to i32
%32 = icmp sle i32 %31, 57
br i1 %32, label %33, label %41
33: ; preds = %29
%34 = load i8, ptr %6, align 1
%35 = load i8, ptr %5, align 1
%36 = load i8, ptr %7, align 1
%37 = load i8, ptr %8, align 1
%38 = call i32 @print_num_b(i8 noundef signext %34, i8 noundef signext %35, i8 noundef signext %36, i8 noundef signext %37)
%39 = load i8, ptr %8, align 1
%40 = add i8 %39, 1
store i8 %40, ptr %8, align 1
br label %29, !llvm.loop !6
41: ; preds = %29
%42 = load i8, ptr %7, align 1
%43 = add i8 %42, 1
store i8 %43, ptr %7, align 1
br label %20, !llvm.loop !8
44: ; preds = %20
%45 = load i8, ptr %5, align 1
%46 = add i8 %45, 1
store i8 %46, ptr %5, align 1
br label %14, !llvm.loop !9
47: ; preds = %14
%48 = load i8, ptr %6, align 1
%49 = add i8 %48, 1
store i8 %49, ptr %6, align 1
br label %9, !llvm.loop !10
50: ; preds = %9
ret void
}
declare i32 @print_num_b(i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmph_w1x0n9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main_work(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i8 %0, ptr %5, align 1
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
store i8 48, ptr %6, align 1
%9 = load i8, ptr %6, align 1
%10 = sext i8 %9 to i32
%11 = icmp sle i32 %10, 57
br i1 %11, label %.lr.ph8, label %58
.lr.ph8: ; preds = %4
br label %12
12: ; preds = %.lr.ph8, %52
store i8 48, ptr %5, align 1
%13 = load i8, ptr %5, align 1
%14 = sext i8 %13 to i32
%15 = icmp slt i32 %14, 56
br i1 %15, label %.lr.ph5, label %52
.lr.ph5: ; preds = %12
br label %16
16: ; preds = %.lr.ph5, %46
%17 = load i8, ptr %6, align 1
store i8 %17, ptr %7, align 1
%18 = load i8, ptr %7, align 1
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %19, 57
br i1 %20, label %.lr.ph2, label %46
.lr.ph2: ; preds = %16
br label %21
21: ; preds = %.lr.ph2, %40
%22 = load i8, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = add nsw i32 %23, 1
%25 = trunc i32 %24 to i8
store i8 %25, ptr %8, align 1
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = icmp sle i32 %27, 57
br i1 %28, label %.lr.ph, label %40
.lr.ph: ; preds = %21
br label %29
29: ; preds = %.lr.ph, %29
%30 = load i8, ptr %6, align 1
%31 = load i8, ptr %5, align 1
%32 = load i8, ptr %7, align 1
%33 = load i8, ptr %8, align 1
%34 = call i32 @print_num_b(i8 noundef signext %30, i8 noundef signext %31, i8 noundef signext %32, i8 noundef signext %33)
%35 = load i8, ptr %8, align 1
%36 = add i8 %35, 1
store i8 %36, ptr %8, align 1
%37 = load i8, ptr %8, align 1
%38 = sext i8 %37 to i32
%39 = icmp sle i32 %38, 57
br i1 %39, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %40
40: ; preds = %._crit_edge, %21
%41 = load i8, ptr %7, align 1
%42 = add i8 %41, 1
store i8 %42, ptr %7, align 1
%43 = load i8, ptr %7, align 1
%44 = sext i8 %43 to i32
%45 = icmp sle i32 %44, 57
br i1 %45, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %40
br label %46
46: ; preds = %._crit_edge3, %16
%47 = load i8, ptr %5, align 1
%48 = add i8 %47, 1
store i8 %48, ptr %5, align 1
%49 = load i8, ptr %5, align 1
%50 = sext i8 %49 to i32
%51 = icmp slt i32 %50, 56
br i1 %51, label %16, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %46
br label %52
52: ; preds = %._crit_edge6, %12
%53 = load i8, ptr %6, align 1
%54 = add i8 %53, 1
store i8 %54, ptr %6, align 1
%55 = load i8, ptr %6, align 1
%56 = sext i8 %55 to i32
%57 = icmp sle i32 %56, 57
br i1 %57, label %12, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %52
br label %58
58: ; preds = %._crit_edge9, %4
ret void
}
declare i32 @print_num_b(i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpcgyu7od2.c'
source_filename = "/tmp/tmpcgyu7od2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ler_acessos(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
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %27, %2
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 100
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %15, ptr noundef %6, ptr noundef %7)
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %19
18: ; preds = %11
br label %30
19: ; preds = %11
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %6, align 4
%22 = sub nsw i32 %20, %21
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
store i32 %22, ptr %26, align 4
br label %27
27: ; preds = %19
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %8, !llvm.loop !6
30: ; preds = %18, %8
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcgyu7od2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ler_acessos(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
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 100
br i1 %9, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %26
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14, ptr noundef %6, ptr noundef %7)
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %18
17: ; preds = %10
br label %31
18: ; preds = %10
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = sub nsw i32 %19, %20
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
store i32 %21, ptr %25, align 4
br label %26
26: ; preds = %18
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 100
br i1 %30, label %10, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %26
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %31
31: ; preds = %.loopexit, %17
%32 = load i32, ptr %5, align 4
ret i32 %32
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3pfc1a8u.c'
source_filename = "/tmp/tmp3pfc1a8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset(ptr noundef %0, i8 noundef zeroext %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = load i32, ptr %6, align 4
%12 = zext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
store ptr %13, ptr %8, align 8
br label %14
14: ; preds = %18, %3
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i8, ptr %5, align 1
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %7, align 8
store i8 %19, ptr %20, align 1
br label %14, !llvm.loop !6
22: ; preds = %14
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/tmp3pfc1a8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset(ptr noundef %0, i8 noundef zeroext %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = load i32, ptr %6, align 4
%12 = zext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %8, align 8
%16 = icmp ne ptr %14, %15
br i1 %16, label %.lr.ph, label %24
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %17
%18 = load i8, ptr %5, align 1
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %7, align 8
store i8 %18, ptr %19, align 1
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %8, align 8
%23 = icmp ne ptr %21, %22
br i1 %23, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %24
24: ; preds = %._crit_edge, %3
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/tmple0ncpmt.c'
source_filename = "/tmp/tmple0ncpmt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tokenize(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %12, align 8
store ptr %13, ptr %5, align 8
br label %14
14: ; preds = %11, %3
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strspn(ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds i8, ptr %18, i64 %19
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %14
store ptr null, ptr %4, align 8
br label %44
26: ; preds = %14
%27 = load ptr, ptr %5, align 8
store ptr %27, ptr %8, align 8
%28 = load ptr, ptr %5, align 8
%29 = load ptr, ptr %6, align 8
%30 = call i32 @strcspn(ptr noundef %28, ptr noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = sext i32 %30 to i64
%33 = getelementptr inbounds i8, ptr %31, i64 %32
store ptr %33, ptr %5, align 8
%34 = load ptr, ptr %5, align 8
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %26
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %5, align 8
store i8 0, ptr %38, align 1
br label %40
40: ; preds = %37, %26
%41 = load ptr, ptr %5, align 8
%42 = load ptr, ptr %7, align 8
store ptr %41, ptr %42, align 8
%43 = load ptr, ptr %8, align 8
store ptr %43, ptr %4, align 8
br label %44
44: ; preds = %40, %25
%45 = load ptr, ptr %4, align 8
ret ptr %45
}
declare i32 @strspn(ptr noundef, ptr noundef) #1
declare i32 @strcspn(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmple0ncpmt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tokenize(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %12, align 8
store ptr %13, ptr %5, align 8
br label %14
14: ; preds = %11, %3
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strspn(ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds i8, ptr %18, i64 %19
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %14
store ptr null, ptr %4, align 8
br label %44
26: ; preds = %14
%27 = load ptr, ptr %5, align 8
store ptr %27, ptr %8, align 8
%28 = load ptr, ptr %5, align 8
%29 = load ptr, ptr %6, align 8
%30 = call i32 @strcspn(ptr noundef %28, ptr noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = sext i32 %30 to i64
%33 = getelementptr inbounds i8, ptr %31, i64 %32
store ptr %33, ptr %5, align 8
%34 = load ptr, ptr %5, align 8
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %26
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %5, align 8
store i8 0, ptr %38, align 1
br label %40
40: ; preds = %37, %26
%41 = load ptr, ptr %5, align 8
%42 = load ptr, ptr %7, align 8
store ptr %41, ptr %42, align 8
%43 = load ptr, ptr %8, align 8
store ptr %43, ptr %4, align 8
br label %44
44: ; preds = %40, %25
%45 = load ptr, ptr %4, align 8
ret ptr %45
}
declare i32 @strspn(ptr noundef, ptr noundef) #1
declare i32 @strcspn(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4r9_8i_k.c'
source_filename = "/tmp/tmp4r9_8i_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__stpcpy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = ptrtoint ptr %8 to i64
%10 = urem i64 %9, 8
%11 = load ptr, ptr %4, align 8
%12 = ptrtoint ptr %11 to i64
%13 = urem i64 %12, 8
%14 = icmp eq i64 %10, %13
br i1 %14, label %15, label %66
15: ; preds = %2
br label %16
16: ; preds = %29, %15
%17 = load ptr, ptr %5, align 8
%18 = ptrtoint ptr %17 to i64
%19 = urem i64 %18, 8
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %34
21: ; preds = %16
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %4, align 8
store i8 %23, ptr %24, align 1
%25 = icmp ne i8 %23, 0
br i1 %25, label %28, label %26
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
store ptr %27, ptr %3, align 8
br label %80
28: ; preds = %21
br label %29
29: ; preds = %28
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %5, align 8
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %4, align 8
br label %16, !llvm.loop !6
34: ; preds = %16
%35 = load ptr, ptr %4, align 8
store ptr %35, ptr %6, align 8
%36 = load ptr, ptr %5, align 8
store ptr %36, ptr %7, align 8
br label %37
37: ; preds = %57, %34
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %38, align 8
%40 = load i64, ptr @UCHAR_MAX, align 8
%41 = udiv i64 -1, %40
%42 = sub i64 %39, %41
%43 = load ptr, ptr %7, align 8
%44 = load i64, ptr %43, align 8
%45 = xor i64 %44, -1
%46 = and i64 %42, %45
%47 = load i64, ptr @UCHAR_MAX, align 8
%48 = udiv i64 -1, %47
%49 = load i64, ptr @UCHAR_MAX, align 8
%50 = udiv i64 %49, 2
%51 = add i64 %50, 1
%52 = mul i64 %48, %51
%53 = and i64 %46, %52
%54 = icmp ne i64 %53, 0
%55 = xor i1 %54, true
br i1 %55, label %56, label %63
56: ; preds = %37
br label %57
57: ; preds = %56
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds i64, ptr %58, i32 1
store ptr %59, ptr %7, align 8
%60 = load i64, ptr %58, align 8
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds i64, ptr %61, i32 1
store ptr %62, ptr %6, align 8
store i64 %60, ptr %61, align 8
br label %37, !llvm.loop !8
63: ; preds = %37
%64 = load ptr, ptr %6, align 8
store ptr %64, ptr %4, align 8
%65 = load ptr, ptr %7, align 8
store ptr %65, ptr %5, align 8
br label %66
66: ; preds = %63, %2
br label %67
67: ; preds = %73, %66
%68 = load ptr, ptr %5, align 8
%69 = load i8, ptr %68, align 1
%70 = load ptr, ptr %4, align 8
store i8 %69, ptr %70, align 1
%71 = icmp ne i8 %69, 0
br i1 %71, label %72, label %78
72: ; preds = %67
br label %73
73: ; preds = %72
%74 = load ptr, ptr %5, align 8
%75 = getelementptr inbounds i8, ptr %74, i32 1
store ptr %75, ptr %5, align 8
%76 = load ptr, ptr %4, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %4, align 8
br label %67, !llvm.loop !9
78: ; preds = %67
%79 = load ptr, ptr %4, align 8
store ptr %79, ptr %3, align 8
br label %80
80: ; preds = %78, %26
%81 = load ptr, ptr %3, align 8
ret ptr %81
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4r9_8i_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__stpcpy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = ptrtoint ptr %8 to i64
%10 = urem i64 %9, 8
%11 = load ptr, ptr %4, align 8
%12 = ptrtoint ptr %11 to i64
%13 = urem i64 %12, 8
%14 = icmp eq i64 %10, %13
br i1 %14, label %15, label %69
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = ptrtoint ptr %16 to i64
%18 = urem i64 %17, 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %.lr.ph, label %37
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %28
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %4, align 8
store i8 %22, ptr %23, align 1
%24 = icmp ne i8 %22, 0
br i1 %24, label %27, label %25
25: ; preds = %20
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %3, align 8
br label %86
27: ; preds = %20
br label %28
28: ; preds = %27
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
%33 = load ptr, ptr %5, align 8
%34 = ptrtoint ptr %33 to i64
%35 = urem i64 %34, 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %37
37: ; preds = %._crit_edge, %15
%38 = load ptr, ptr %4, align 8
store ptr %38, ptr %6, align 8
%39 = load ptr, ptr %5, align 8
store ptr %39, ptr %7, align 8
br label %40
40: ; preds = %60, %37
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %41, align 8
%43 = load i64, ptr @UCHAR_MAX, align 8
%44 = udiv i64 -1, %43
%45 = sub i64 %42, %44
%46 = load ptr, ptr %7, align 8
%47 = load i64, ptr %46, align 8
%48 = xor i64 %47, -1
%49 = and i64 %45, %48
%50 = load i64, ptr @UCHAR_MAX, align 8
%51 = udiv i64 -1, %50
%52 = load i64, ptr @UCHAR_MAX, align 8
%53 = udiv i64 %52, 2
%54 = add i64 %53, 1
%55 = mul i64 %51, %54
%56 = and i64 %49, %55
%57 = icmp ne i64 %56, 0
%58 = xor i1 %57, true
br i1 %58, label %59, label %66
59: ; preds = %40
br label %60
60: ; preds = %59
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i64, ptr %61, i32 1
store ptr %62, ptr %7, align 8
%63 = load i64, ptr %61, align 8
%64 = load ptr, ptr %6, align 8
%65 = getelementptr inbounds i64, ptr %64, i32 1
store ptr %65, ptr %6, align 8
store i64 %63, ptr %64, align 8
br label %40, !llvm.loop !8
66: ; preds = %40
%67 = load ptr, ptr %6, align 8
store ptr %67, ptr %4, align 8
%68 = load ptr, ptr %7, align 8
store ptr %68, ptr %5, align 8
br label %69
69: ; preds = %66, %2
%70 = load ptr, ptr %5, align 8
%71 = load i8, ptr %70, align 1
%72 = load ptr, ptr %4, align 8
store i8 %71, ptr %72, align 1
%73 = icmp ne i8 %71, 0
br i1 %73, label %.lr.ph2, label %84
.lr.ph2: ; preds = %69
br label %74
74: ; preds = %.lr.ph2, %75
br label %75
75: ; preds = %74
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %5, align 8
%78 = load ptr, ptr %4, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %4, align 8
%80 = load ptr, ptr %5, align 8
%81 = load i8, ptr %80, align 1
%82 = load ptr, ptr %4, align 8
store i8 %81, ptr %82, align 1
%83 = icmp ne i8 %81, 0
br i1 %83, label %74, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %75
br label %84
84: ; preds = %._crit_edge3, %69
%85 = load ptr, ptr %4, align 8
store ptr %85, ptr %3, align 8
br label %86
86: ; preds = %84, %25
%87 = load ptr, ptr %3, align 8
ret ptr %87
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpq92s_wlr.c'
source_filename = "/tmp/tmpq92s_wlr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"writelzma\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [48 x i8] c"Usage: mkmmimg <filename> [write[lzma]] [dest]\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"CRC32 (%s): %08x\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IWOTH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [4 x i8], align 1
%12 = alloca [4 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 3
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 4
br i1 %20, label %36, label %21
21: ; preds = %18, %15, %2
%22 = load i32, ptr %4, align 4
%23 = icmp sgt i32 %22, 2
br i1 %23, label %24, label %39
24: ; preds = %21
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %39
30: ; preds = %24
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.1)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %30, %18
%37 = load i32, ptr @stderr, align 4
%38 = call i32 @fprintf(i32 noundef %37, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %215
39: ; preds = %30, %24, %21
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = load i32, ptr @O_RDONLY, align 4
%44 = call i32 (ptr, i32, ...) @open(ptr noundef %42, i32 noundef %43)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %49
47: ; preds = %39
%48 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %215
49: ; preds = %39
%50 = load i32, ptr %6, align 4
%51 = load i32, ptr @SEEK_END, align 4
%52 = call i32 @lseek(i32 noundef %50, i32 noundef 0, i32 noundef %51)
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %6, align 4
%54 = load i32, ptr @SEEK_SET, align 4
%55 = call i32 @lseek(i32 noundef %53, i32 noundef 0, i32 noundef %54)
%56 = load i32, ptr %9, align 4
%57 = load i32, ptr @PROT_READ, align 4
%58 = load i32, ptr @MAP_SHARED, align 4
%59 = load i32, ptr %6, align 4
%60 = call ptr @mmap(ptr noundef null, i32 noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef %59, i32 noundef 0)
store ptr %60, ptr %8, align 8
%61 = load ptr, ptr %8, align 8
%62 = icmp ne ptr %61, null
br i1 %62, label %67, label %63
63: ; preds = %49
%64 = call i32 @perror(ptr noundef @.str.4)
%65 = load i32, ptr %6, align 4
%66 = call i32 @close(i32 noundef %65)
store i32 1, ptr %3, align 4
br label %215
67: ; preds = %49
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %9, align 4
%70 = call i32 @crc32(ptr noundef %68, i32 noundef %69)
store i32 %70, ptr %10, align 4
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 1
%73 = load ptr, ptr %72, align 8
%74 = load i32, ptr %10, align 4
%75 = call i32 @printf(ptr noundef @.str.5, ptr noundef %73, i32 noundef %74)
%76 = load i32, ptr %4, align 4
%77 = icmp eq i32 %76, 3
br i1 %77, label %78, label %116
78: ; preds = %67
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds ptr, ptr %79, i64 1
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr @O_WRONLY, align 4
%83 = load i32, ptr @O_APPEND, align 4
%84 = or i32 %82, %83
%85 = call i32 (ptr, i32, ...) @open(ptr noundef %81, i32 noundef %84)
store i32 %85, ptr %7, align 4
%86 = load i32, ptr %7, align 4
%87 = icmp eq i32 %86, -1
br i1 %87, label %88, label %90
88: ; preds = %78
%89 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %215
90: ; preds = %78
%91 = load i32, ptr %10, align 4
%92 = and i32 %91, -16777216
%93 = lshr i32 %92, 24
%94 = trunc i32 %93 to i8
%95 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
store i8 %94, ptr %95, align 1
%96 = load i32, ptr %10, align 4
%97 = and i32 %96, 16711680
%98 = lshr i32 %97, 16
%99 = trunc i32 %98 to i8
%100 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 1
store i8 %99, ptr %100, align 1
%101 = load i32, ptr %10, align 4
%102 = and i32 %101, 65280
%103 = lshr i32 %102, 8
%104 = trunc i32 %103 to i8
%105 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 2
store i8 %104, ptr %105, align 1
%106 = load i32, ptr %10, align 4
%107 = and i32 %106, 255
%108 = lshr i32 %107, 0
%109 = trunc i32 %108 to i8
%110 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 3
store i8 %109, ptr %110, align 1
%111 = load i32, ptr %7, align 4
%112 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%113 = call i32 (i32, ...) @write(i32 noundef %111, ptr noundef %112, i32 noundef 4)
%114 = load i32, ptr %7, align 4
%115 = call i32 @close(i32 noundef %114)
br label %116
116: ; preds = %90, %67
%117 = load i32, ptr %4, align 4
%118 = icmp eq i32 %117, 4
br i1 %118, label %119, label %209
119: ; preds = %116
%120 = load ptr, ptr %5, align 8
%121 = getelementptr inbounds ptr, ptr %120, i64 3
%122 = load ptr, ptr %121, align 8
%123 = load i32, ptr @O_WRONLY, align 4
%124 = load i32, ptr @O_CREAT, align 4
%125 = or i32 %123, %124
%126 = load i32, ptr @O_TRUNC, align 4
%127 = or i32 %125, %126
%128 = load i32, ptr @S_IRUSR, align 4
%129 = load i32, ptr @S_IWUSR, align 4
%130 = or i32 %128, %129
%131 = load i32, ptr @S_IRGRP, align 4
%132 = or i32 %130, %131
%133 = load i32, ptr @S_IWGRP, align 4
%134 = or i32 %132, %133
%135 = load i32, ptr @S_IROTH, align 4
%136 = or i32 %134, %135
%137 = load i32, ptr @S_IWOTH, align 4
%138 = or i32 %136, %137
%139 = call i32 (ptr, i32, ...) @open(ptr noundef %122, i32 noundef %127, i32 noundef %138)
store i32 %139, ptr %7, align 4
%140 = load i32, ptr %7, align 4
%141 = icmp eq i32 %140, -1
br i1 %141, label %142, label %144
142: ; preds = %119
%143 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %215
144: ; preds = %119
%145 = load i32, ptr %9, align 4
%146 = and i32 %145, -16777216
%147 = lshr i32 %146, 24
%148 = trunc i32 %147 to i8
%149 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
store i8 %148, ptr %149, align 1
%150 = load i32, ptr %9, align 4
%151 = and i32 %150, 16711680
%152 = lshr i32 %151, 16
%153 = trunc i32 %152 to i8
%154 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 1
store i8 %153, ptr %154, align 1
%155 = load i32, ptr %9, align 4
%156 = and i32 %155, 65280
%157 = lshr i32 %156, 8
%158 = trunc i32 %157 to i8
%159 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 2
store i8 %158, ptr %159, align 1
%160 = load i32, ptr %9, align 4
%161 = and i32 %160, 255
%162 = lshr i32 %161, 0
%163 = trunc i32 %162 to i8
%164 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 3
store i8 %163, ptr %164, align 1
%165 = load ptr, ptr %5, align 8
%166 = getelementptr inbounds ptr, ptr %165, i64 2
%167 = load ptr, ptr %166, align 8
%168 = call i64 @strcmp(ptr noundef %167, ptr noundef @.str.1)
%169 = icmp eq i64 %168, 0
br i1 %169, label %170, label %176
170: ; preds = %144
%171 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
%172 = load i8, ptr %171, align 1
%173 = sext i8 %172 to i32
%174 = or i32 %173, 128
%175 = trunc i32 %174 to i8
store i8 %175, ptr %171, align 1
br label %176
176: ; preds = %170, %144
%177 = load i32, ptr %7, align 4
%178 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
%179 = call i32 (i32, ...) @write(i32 noundef %177, ptr noundef %178, i32 noundef 4)
%180 = load i32, ptr %10, align 4
%181 = and i32 %180, -16777216
%182 = lshr i32 %181, 24
%183 = trunc i32 %182 to i8
%184 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
store i8 %183, ptr %184, align 1
%185 = load i32, ptr %10, align 4
%186 = and i32 %185, 16711680
%187 = lshr i32 %186, 16
%188 = trunc i32 %187 to i8
%189 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 1
store i8 %188, ptr %189, align 1
%190 = load i32, ptr %10, align 4
%191 = and i32 %190, 65280
%192 = lshr i32 %191, 8
%193 = trunc i32 %192 to i8
%194 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 2
store i8 %193, ptr %194, align 1
%195 = load i32, ptr %10, align 4
%196 = and i32 %195, 255
%197 = lshr i32 %196, 0
%198 = trunc i32 %197 to i8
%199 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 3
store i8 %198, ptr %199, align 1
%200 = load i32, ptr %7, align 4
%201 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
%202 = call i32 (i32, ...) @write(i32 noundef %200, ptr noundef %201, i32 noundef 4)
%203 = load i32, ptr %7, align 4
%204 = load ptr, ptr %8, align 8
%205 = load i32, ptr %9, align 4
%206 = call i32 (i32, ...) @write(i32 noundef %203, ptr noundef %204, i32 noundef %205)
%207 = load i32, ptr %7, align 4
%208 = call i32 @close(i32 noundef %207)
br label %209
209: ; preds = %176, %116
%210 = load ptr, ptr %8, align 8
%211 = load i32, ptr %9, align 4
%212 = call i32 @munmap(ptr noundef %210, i32 noundef %211)
%213 = load i32, ptr %6, align 4
%214 = call i32 @close(i32 noundef %213)
store i32 0, ptr %3, align 4
br label %215
215: ; preds = %209, %142, %88, %63, %47, %36
%216 = load i32, ptr %3, align 4
ret i32 %216
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @crc32(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ...) #1
declare i32 @munmap(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/tmpq92s_wlr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"writelzma\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [48 x i8] c"Usage: mkmmimg <filename> [write[lzma]] [dest]\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"CRC32 (%s): %08x\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@S_IWOTH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [4 x i8], align 1
%12 = alloca [4 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 3
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 4
br i1 %20, label %36, label %21
21: ; preds = %18, %15, %2
%22 = load i32, ptr %4, align 4
%23 = icmp sgt i32 %22, 2
br i1 %23, label %24, label %39
24: ; preds = %21
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %39
30: ; preds = %24
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.1)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %30, %18
%37 = load i32, ptr @stderr, align 4
%38 = call i32 @fprintf(i32 noundef %37, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %215
39: ; preds = %30, %24, %21
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = load i32, ptr @O_RDONLY, align 4
%44 = call i32 (ptr, i32, ...) @open(ptr noundef %42, i32 noundef %43)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %49
47: ; preds = %39
%48 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %215
49: ; preds = %39
%50 = load i32, ptr %6, align 4
%51 = load i32, ptr @SEEK_END, align 4
%52 = call i32 @lseek(i32 noundef %50, i32 noundef 0, i32 noundef %51)
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %6, align 4
%54 = load i32, ptr @SEEK_SET, align 4
%55 = call i32 @lseek(i32 noundef %53, i32 noundef 0, i32 noundef %54)
%56 = load i32, ptr %9, align 4
%57 = load i32, ptr @PROT_READ, align 4
%58 = load i32, ptr @MAP_SHARED, align 4
%59 = load i32, ptr %6, align 4
%60 = call ptr @mmap(ptr noundef null, i32 noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef %59, i32 noundef 0)
store ptr %60, ptr %8, align 8
%61 = load ptr, ptr %8, align 8
%62 = icmp ne ptr %61, null
br i1 %62, label %67, label %63
63: ; preds = %49
%64 = call i32 @perror(ptr noundef @.str.4)
%65 = load i32, ptr %6, align 4
%66 = call i32 @close(i32 noundef %65)
store i32 1, ptr %3, align 4
br label %215
67: ; preds = %49
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %9, align 4
%70 = call i32 @crc32(ptr noundef %68, i32 noundef %69)
store i32 %70, ptr %10, align 4
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 1
%73 = load ptr, ptr %72, align 8
%74 = load i32, ptr %10, align 4
%75 = call i32 @printf(ptr noundef @.str.5, ptr noundef %73, i32 noundef %74)
%76 = load i32, ptr %4, align 4
%77 = icmp eq i32 %76, 3
br i1 %77, label %78, label %116
78: ; preds = %67
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds ptr, ptr %79, i64 1
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr @O_WRONLY, align 4
%83 = load i32, ptr @O_APPEND, align 4
%84 = or i32 %82, %83
%85 = call i32 (ptr, i32, ...) @open(ptr noundef %81, i32 noundef %84)
store i32 %85, ptr %7, align 4
%86 = load i32, ptr %7, align 4
%87 = icmp eq i32 %86, -1
br i1 %87, label %88, label %90
88: ; preds = %78
%89 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %215
90: ; preds = %78
%91 = load i32, ptr %10, align 4
%92 = and i32 %91, -16777216
%93 = lshr i32 %92, 24
%94 = trunc i32 %93 to i8
%95 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
store i8 %94, ptr %95, align 1
%96 = load i32, ptr %10, align 4
%97 = and i32 %96, 16711680
%98 = lshr i32 %97, 16
%99 = trunc i32 %98 to i8
%100 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 1
store i8 %99, ptr %100, align 1
%101 = load i32, ptr %10, align 4
%102 = and i32 %101, 65280
%103 = lshr i32 %102, 8
%104 = trunc i32 %103 to i8
%105 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 2
store i8 %104, ptr %105, align 1
%106 = load i32, ptr %10, align 4
%107 = and i32 %106, 255
%108 = lshr i32 %107, 0
%109 = trunc i32 %108 to i8
%110 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 3
store i8 %109, ptr %110, align 1
%111 = load i32, ptr %7, align 4
%112 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%113 = call i32 (i32, ...) @write(i32 noundef %111, ptr noundef %112, i32 noundef 4)
%114 = load i32, ptr %7, align 4
%115 = call i32 @close(i32 noundef %114)
br label %116
116: ; preds = %90, %67
%117 = load i32, ptr %4, align 4
%118 = icmp eq i32 %117, 4
br i1 %118, label %119, label %209
119: ; preds = %116
%120 = load ptr, ptr %5, align 8
%121 = getelementptr inbounds ptr, ptr %120, i64 3
%122 = load ptr, ptr %121, align 8
%123 = load i32, ptr @O_WRONLY, align 4
%124 = load i32, ptr @O_CREAT, align 4
%125 = or i32 %123, %124
%126 = load i32, ptr @O_TRUNC, align 4
%127 = or i32 %125, %126
%128 = load i32, ptr @S_IRUSR, align 4
%129 = load i32, ptr @S_IWUSR, align 4
%130 = or i32 %128, %129
%131 = load i32, ptr @S_IRGRP, align 4
%132 = or i32 %130, %131
%133 = load i32, ptr @S_IWGRP, align 4
%134 = or i32 %132, %133
%135 = load i32, ptr @S_IROTH, align 4
%136 = or i32 %134, %135
%137 = load i32, ptr @S_IWOTH, align 4
%138 = or i32 %136, %137
%139 = call i32 (ptr, i32, ...) @open(ptr noundef %122, i32 noundef %127, i32 noundef %138)
store i32 %139, ptr %7, align 4
%140 = load i32, ptr %7, align 4
%141 = icmp eq i32 %140, -1
br i1 %141, label %142, label %144
142: ; preds = %119
%143 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %215
144: ; preds = %119
%145 = load i32, ptr %9, align 4
%146 = and i32 %145, -16777216
%147 = lshr i32 %146, 24
%148 = trunc i32 %147 to i8
%149 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
store i8 %148, ptr %149, align 1
%150 = load i32, ptr %9, align 4
%151 = and i32 %150, 16711680
%152 = lshr i32 %151, 16
%153 = trunc i32 %152 to i8
%154 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 1
store i8 %153, ptr %154, align 1
%155 = load i32, ptr %9, align 4
%156 = and i32 %155, 65280
%157 = lshr i32 %156, 8
%158 = trunc i32 %157 to i8
%159 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 2
store i8 %158, ptr %159, align 1
%160 = load i32, ptr %9, align 4
%161 = and i32 %160, 255
%162 = lshr i32 %161, 0
%163 = trunc i32 %162 to i8
%164 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 3
store i8 %163, ptr %164, align 1
%165 = load ptr, ptr %5, align 8
%166 = getelementptr inbounds ptr, ptr %165, i64 2
%167 = load ptr, ptr %166, align 8
%168 = call i64 @strcmp(ptr noundef %167, ptr noundef @.str.1)
%169 = icmp eq i64 %168, 0
br i1 %169, label %170, label %176
170: ; preds = %144
%171 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
%172 = load i8, ptr %171, align 1
%173 = sext i8 %172 to i32
%174 = or i32 %173, 128
%175 = trunc i32 %174 to i8
store i8 %175, ptr %171, align 1
br label %176
176: ; preds = %170, %144
%177 = load i32, ptr %7, align 4
%178 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
%179 = call i32 (i32, ...) @write(i32 noundef %177, ptr noundef %178, i32 noundef 4)
%180 = load i32, ptr %10, align 4
%181 = and i32 %180, -16777216
%182 = lshr i32 %181, 24
%183 = trunc i32 %182 to i8
%184 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
store i8 %183, ptr %184, align 1
%185 = load i32, ptr %10, align 4
%186 = and i32 %185, 16711680
%187 = lshr i32 %186, 16
%188 = trunc i32 %187 to i8
%189 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 1
store i8 %188, ptr %189, align 1
%190 = load i32, ptr %10, align 4
%191 = and i32 %190, 65280
%192 = lshr i32 %191, 8
%193 = trunc i32 %192 to i8
%194 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 2
store i8 %193, ptr %194, align 1
%195 = load i32, ptr %10, align 4
%196 = and i32 %195, 255
%197 = lshr i32 %196, 0
%198 = trunc i32 %197 to i8
%199 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 3
store i8 %198, ptr %199, align 1
%200 = load i32, ptr %7, align 4
%201 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
%202 = call i32 (i32, ...) @write(i32 noundef %200, ptr noundef %201, i32 noundef 4)
%203 = load i32, ptr %7, align 4
%204 = load ptr, ptr %8, align 8
%205 = load i32, ptr %9, align 4
%206 = call i32 (i32, ...) @write(i32 noundef %203, ptr noundef %204, i32 noundef %205)
%207 = load i32, ptr %7, align 4
%208 = call i32 @close(i32 noundef %207)
br label %209
209: ; preds = %176, %116
%210 = load ptr, ptr %8, align 8
%211 = load i32, ptr %9, align 4
%212 = call i32 @munmap(ptr noundef %210, i32 noundef %211)
%213 = load i32, ptr %6, align 4
%214 = call i32 @close(i32 noundef %213)
store i32 0, ptr %3, align 4
br label %215
215: ; preds = %209, %142, %88, %63, %47, %36
%216 = load i32, ptr %3, align 4
ret i32 %216
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @crc32(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ...) #1
declare i32 @munmap(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/tmp4zwhddy6.c'
source_filename = "/tmp/tmp4zwhddy6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @output(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%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
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @putchar(i32 noundef %13)
%15 = load i32, ptr %8, align 4
%16 = call i32 @putchar(i32 noundef %15)
%17 = load i32, ptr %9, align 4
%18 = call i32 @putchar(i32 noundef %17)
%19 = load i32, ptr %10, align 4
%20 = call i32 @putchar(i32 noundef %19)
%21 = load i32, ptr %11, align 4
%22 = call i32 @putchar(i32 noundef %21)
%23 = load i32, ptr %12, align 4
%24 = call i32 @putchar(i32 noundef %23)
ret i32 0
}
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4zwhddy6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @output(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%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
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @putchar(i32 noundef %13)
%15 = load i32, ptr %8, align 4
%16 = call i32 @putchar(i32 noundef %15)
%17 = load i32, ptr %9, align 4
%18 = call i32 @putchar(i32 noundef %17)
%19 = load i32, ptr %10, align 4
%20 = call i32 @putchar(i32 noundef %19)
%21 = load i32, ptr %11, align 4
%22 = call i32 @putchar(i32 noundef %21)
%23 = load i32, ptr %12, align 4
%24 = call i32 @putchar(i32 noundef %23)
ret i32 0
}
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpet4heti1.c'
source_filename = "/tmp/tmpet4heti1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StartsWith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = call i64 @strncmp(ptr noundef %6, ptr noundef %7, i32 noundef %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 1, ptr %3, align 4
br label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %13, %12
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpet4heti1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StartsWith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = call i64 @strncmp(ptr noundef %6, ptr noundef %7, i32 noundef %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 1, ptr %3, align 4
br label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %13, %12
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwxv3wgmx.c'
source_filename = "/tmp/tmpwxv3wgmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"KFS\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_dat(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca 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 ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 65535, ptr %9, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr @SEEK_SET, align 4
%16 = call i32 @fseek(ptr noundef %14, i32 noundef 0, i32 noundef %15)
br label %17
17: ; preds = %80, %4
%18 = load i32, ptr %7, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %88
20: ; preds = %17
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %21, align 4
%23 = ashr i32 %22, 8
store i32 %23, ptr %10, align 4
%24 = load ptr, ptr %8, align 8
%25 = load i32, ptr %24, align 4
%26 = and i32 %25, 255
store i32 %26, ptr %11, align 4
store i32 65535, ptr %12, align 4
%27 = load i32, ptr %10, align 4
%28 = mul nsw i32 16384, %27
%29 = load i32, ptr %11, align 4
%30 = mul nsw i32 %29, 4
%31 = add nsw i32 %28, %30
store i32 %31, ptr %13, align 4
%32 = load i32, ptr %11, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %11, align 4
%34 = load i32, ptr %11, align 4
%35 = icmp sgt i32 %34, 63
br i1 %35, label %36, label %48
36: ; preds = %20
store i32 1, ptr %11, align 4
%37 = load i32, ptr %10, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %10, align 4
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %10, align 4
%41 = mul nsw i32 %40, 16384
%42 = load i32, ptr @SEEK_SET, align 4
%43 = call i32 @fseek(ptr noundef %39, i32 noundef %41, i32 noundef %42)
%44 = load ptr, ptr %5, align 8
%45 = call i32 @fprintf(ptr noundef %44, ptr noundef @.str)
%46 = load ptr, ptr %5, align 8
%47 = call i32 @fputc(i32 noundef 255, ptr noundef %46)
br label %48
48: ; preds = %36, %20
%49 = load i32, ptr %7, align 4
%50 = icmp sgt i32 %49, 256
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = shl i32 %52, 8
%54 = load i32, ptr %11, align 4
%55 = or i32 %53, %54
store i32 %55, ptr %12, align 4
br label %56
56: ; preds = %51, %48
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %13, align 4
%59 = load i32, ptr @SEEK_SET, align 4
%60 = call i32 @fseek(ptr noundef %57, i32 noundef %58, i32 noundef %59)
%61 = load i32, ptr %9, align 4
%62 = and i32 %61, 32767
store i32 %62, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = call i32 @fwrite(ptr noundef %9, i32 noundef 4, i32 noundef 1, ptr noundef %63)
%65 = load ptr, ptr %5, align 8
%66 = call i32 @fwrite(ptr noundef %12, i32 noundef 4, i32 noundef 1, ptr noundef %65)
%67 = load ptr, ptr %5, align 8
%68 = load ptr, ptr %6, align 8
%69 = load ptr, ptr %8, align 8
%70 = load i32, ptr %69, align 4
%71 = call i32 @write_block(ptr noundef %67, ptr noundef %68, i32 noundef %70)
%72 = load ptr, ptr %5, align 8
%73 = call i32 @fflush(ptr noundef %72)
%74 = load i32, ptr %7, align 4
%75 = icmp slt i32 %74, 256
br i1 %75, label %76, label %77
76: ; preds = %56
store i32 0, ptr %7, align 4
br label %80
77: ; preds = %56
%78 = load i32, ptr %7, align 4
%79 = sub nsw i32 %78, 256
store i32 %79, ptr %7, align 4
br label %80
80: ; preds = %77, %76
%81 = load ptr, ptr %8, align 8
%82 = load i32, ptr %81, align 4
store i32 %82, ptr %9, align 4
%83 = load i32, ptr %10, align 4
%84 = shl i32 %83, 8
%85 = load i32, ptr %11, align 4
%86 = or i32 %84, %85
%87 = load ptr, ptr %8, align 8
store i32 %86, ptr %87, align 4
br label %17, !llvm.loop !6
88: ; preds = %17
ret void
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write_block(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwxv3wgmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"KFS\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_dat(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca 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 ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 65535, ptr %9, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr @SEEK_SET, align 4
%16 = call i32 @fseek(ptr noundef %14, i32 noundef 0, i32 noundef %15)
%17 = load i32, ptr %7, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %.lr.ph, label %89
.lr.ph: ; preds = %4
br label %19
19: ; preds = %.lr.ph, %79
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr %20, align 4
%22 = ashr i32 %21, 8
store i32 %22, ptr %10, align 4
%23 = load ptr, ptr %8, align 8
%24 = load i32, ptr %23, align 4
%25 = and i32 %24, 255
store i32 %25, ptr %11, align 4
store i32 65535, ptr %12, align 4
%26 = load i32, ptr %10, align 4
%27 = mul nsw i32 16384, %26
%28 = load i32, ptr %11, align 4
%29 = mul nsw i32 %28, 4
%30 = add nsw i32 %27, %29
store i32 %30, ptr %13, align 4
%31 = load i32, ptr %11, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %11, align 4
%33 = load i32, ptr %11, align 4
%34 = icmp sgt i32 %33, 63
br i1 %34, label %35, label %47
35: ; preds = %19
store i32 1, ptr %11, align 4
%36 = load i32, ptr %10, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %10, align 4
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %10, align 4
%40 = mul nsw i32 %39, 16384
%41 = load i32, ptr @SEEK_SET, align 4
%42 = call i32 @fseek(ptr noundef %38, i32 noundef %40, i32 noundef %41)
%43 = load ptr, ptr %5, align 8
%44 = call i32 @fprintf(ptr noundef %43, ptr noundef @.str)
%45 = load ptr, ptr %5, align 8
%46 = call i32 @fputc(i32 noundef 255, ptr noundef %45)
br label %47
47: ; preds = %35, %19
%48 = load i32, ptr %7, align 4
%49 = icmp sgt i32 %48, 256
br i1 %49, label %50, label %55
50: ; preds = %47
%51 = load i32, ptr %10, align 4
%52 = shl i32 %51, 8
%53 = load i32, ptr %11, align 4
%54 = or i32 %52, %53
store i32 %54, ptr %12, align 4
br label %55
55: ; preds = %50, %47
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %13, align 4
%58 = load i32, ptr @SEEK_SET, align 4
%59 = call i32 @fseek(ptr noundef %56, i32 noundef %57, i32 noundef %58)
%60 = load i32, ptr %9, align 4
%61 = and i32 %60, 32767
store i32 %61, ptr %9, align 4
%62 = load ptr, ptr %5, align 8
%63 = call i32 @fwrite(ptr noundef %9, i32 noundef 4, i32 noundef 1, ptr noundef %62)
%64 = load ptr, ptr %5, align 8
%65 = call i32 @fwrite(ptr noundef %12, i32 noundef 4, i32 noundef 1, ptr noundef %64)
%66 = load ptr, ptr %5, align 8
%67 = load ptr, ptr %6, align 8
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %68, align 4
%70 = call i32 @write_block(ptr noundef %66, ptr noundef %67, i32 noundef %69)
%71 = load ptr, ptr %5, align 8
%72 = call i32 @fflush(ptr noundef %71)
%73 = load i32, ptr %7, align 4
%74 = icmp slt i32 %73, 256
br i1 %74, label %75, label %76
75: ; preds = %55
store i32 0, ptr %7, align 4
br label %79
76: ; preds = %55
%77 = load i32, ptr %7, align 4
%78 = sub nsw i32 %77, 256
store i32 %78, ptr %7, align 4
br label %79
79: ; preds = %76, %75
%80 = load ptr, ptr %8, align 8
%81 = load i32, ptr %80, align 4
store i32 %81, ptr %9, align 4
%82 = load i32, ptr %10, align 4
%83 = shl i32 %82, 8
%84 = load i32, ptr %11, align 4
%85 = or i32 %83, %84
%86 = load ptr, ptr %8, align 8
store i32 %85, ptr %86, align 4
%87 = load i32, ptr %7, align 4
%88 = icmp sgt i32 %87, 0
br i1 %88, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %79
br label %89
89: ; preds = %._crit_edge, %4
ret void
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write_block(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppegj84hf.c'
source_filename = "/tmp/tmppegj84hf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@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/tmppegj84hf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@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/tmp6j8n5bji.c'
source_filename = "/tmp/tmp6j8n5bji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"r_ls(): ruta incorrecta\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"r_ls(): conecta()\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"r_ls %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"r_ls(): envia()\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"r_ls(): pollIn(): timeout\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"r_ls(): recibe()\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @r_ls(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [300 x i8], align 16
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 300, i1 false)
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load i32, ptr @EINVAL, align 4
store i32 %15, ptr @errno, align 4
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %75
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = call i32 @conecta(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %10, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %75
25: ; preds = %18
%26 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%27 = load ptr, ptr %7, align 8
%28 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.2, ptr noundef %27)
%29 = load i32, ptr %10, align 4
%30 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%31 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%32 = call i32 @strlen(ptr noundef %31)
%33 = call i32 @envia(i32 noundef %29, ptr noundef %30, i32 noundef %32)
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %39
35: ; preds = %25
%36 = call i32 @perror(ptr noundef @.str.3)
%37 = load i32, ptr %10, align 4
%38 = call i32 @close(i32 noundef %37)
store i32 -1, ptr %4, align 4
br label %75
39: ; preds = %25
%40 = load i32, ptr %10, align 4
%41 = call i32 @pollIn(i32 noundef %40, i32 noundef 3000)
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %49
44: ; preds = %39
%45 = load i32, ptr @stderr, align 4
%46 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.4)
%47 = load i32, ptr %10, align 4
%48 = call i32 @close(i32 noundef %47)
store i32 -1, ptr %4, align 4
br label %75
49: ; preds = %39
store i32 0, ptr %8, align 4
br label %50
50: ; preds = %63, %49
%51 = load i32, ptr %8, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %64
53: ; preds = %50
%54 = load i32, ptr %10, align 4
%55 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%56 = call i32 @recibe(i32 noundef %54, ptr noundef %55, i32 noundef 300)
store i32 %56, ptr %8, align 4
%57 = load i32, ptr %8, align 4
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %63
59: ; preds = %53
%60 = call i32 @perror(ptr noundef @.str.5)
%61 = load i32, ptr %10, align 4
%62 = call i32 @close(i32 noundef %61)
store i32 -1, ptr %4, align 4
br label %75
63: ; preds = %53
br label %50, !llvm.loop !6
64: ; preds = %50
%65 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%66 = call i32 @sscanf(ptr noundef %65, ptr noundef @.str.6, ptr noundef %9)
%67 = load i32, ptr %9, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %64
%70 = load i32, ptr %9, align 4
store i32 %70, ptr @errno, align 4
%71 = load i32, ptr %10, align 4
%72 = call i32 @close(i32 noundef %71)
store i32 -1, ptr %4, align 4
br label %75
73: ; preds = %64
%74 = load i32, ptr %10, align 4
store i32 %74, ptr %4, align 4
br label %75
75: ; preds = %73, %69, %59, %44, %35, %23, %14
%76 = load i32, ptr %4, align 4
ret i32 %76
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #2
declare i32 @conecta(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @envia(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @pollIn(i32 noundef, i32 noundef) #2
declare i32 @recibe(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6j8n5bji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"r_ls(): ruta incorrecta\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"r_ls(): conecta()\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"r_ls %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"r_ls(): envia()\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"r_ls(): pollIn(): timeout\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"r_ls(): recibe()\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @r_ls(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [300 x i8], align 16
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 300, i1 false)
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load i32, ptr @EINVAL, align 4
store i32 %15, ptr @errno, align 4
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %76
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = call i32 @conecta(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %10, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %76
25: ; preds = %18
%26 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%27 = load ptr, ptr %7, align 8
%28 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.2, ptr noundef %27)
%29 = load i32, ptr %10, align 4
%30 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%31 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%32 = call i32 @strlen(ptr noundef %31)
%33 = call i32 @envia(i32 noundef %29, ptr noundef %30, i32 noundef %32)
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %39
35: ; preds = %25
%36 = call i32 @perror(ptr noundef @.str.3)
%37 = load i32, ptr %10, align 4
%38 = call i32 @close(i32 noundef %37)
store i32 -1, ptr %4, align 4
br label %76
39: ; preds = %25
%40 = load i32, ptr %10, align 4
%41 = call i32 @pollIn(i32 noundef %40, i32 noundef 3000)
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %49
44: ; preds = %39
%45 = load i32, ptr @stderr, align 4
%46 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.4)
%47 = load i32, ptr %10, align 4
%48 = call i32 @close(i32 noundef %47)
store i32 -1, ptr %4, align 4
br label %76
49: ; preds = %39
store i32 0, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %.lr.ph, label %65
.lr.ph: ; preds = %49
br label %55
52: ; preds = %55
%53 = load i32, ptr %8, align 4
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %._crit_edge, !llvm.loop !6
55: ; preds = %.lr.ph, %52
%56 = load i32, ptr %10, align 4
%57 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%58 = call i32 @recibe(i32 noundef %56, ptr noundef %57, i32 noundef 300)
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %52
61: ; preds = %55
%62 = call i32 @perror(ptr noundef @.str.5)
%63 = load i32, ptr %10, align 4
%64 = call i32 @close(i32 noundef %63)
store i32 -1, ptr %4, align 4
br label %76
._crit_edge: ; preds = %52
br label %65
65: ; preds = %._crit_edge, %49
%66 = getelementptr inbounds [300 x i8], ptr %11, i64 0, i64 0
%67 = call i32 @sscanf(ptr noundef %66, ptr noundef @.str.6, ptr noundef %9)
%68 = load i32, ptr %9, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i32, ptr %9, align 4
store i32 %71, ptr @errno, align 4
%72 = load i32, ptr %10, align 4
%73 = call i32 @close(i32 noundef %72)
store i32 -1, ptr %4, align 4
br label %76
74: ; preds = %65
%75 = load i32, ptr %10, align 4
store i32 %75, ptr %4, align 4
br label %76
76: ; preds = %74, %70, %61, %44, %35, %23, %14
%77 = load i32, ptr %4, align 4
ret i32 %77
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #2
declare i32 @conecta(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @envia(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @pollIn(i32 noundef, i32 noundef) #2
declare i32 @recibe(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnh_hz2zk.c'
source_filename = "/tmp/tmpnh_hz2zk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 5000
%7 = zext i1 %6 to i32
%8 = call i32 @assume(i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %9, 10000
%11 = zext i1 %10 to i32
%12 = call i32 @assume(i32 noundef %11)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %13
13: ; preds = %17, %0
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %23
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %18, %19
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %13, !llvm.loop !6
23: ; preds = %13
%24 = load i32, ptr %4, align 4
%25 = mul nsw i32 2, %24
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, 1
%29 = mul nsw i32 %26, %28
%30 = icmp eq i32 %25, %29
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
ret i32 0
}
declare i32 @assume(i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnh_hz2zk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 5000
%7 = zext i1 %6 to i32
%8 = call i32 @assume(i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %9, 10000
%11 = zext i1 %10 to i32
%12 = call i32 @assume(i32 noundef %11)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %16
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %17, %18
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %25
25: ; preds = %._crit_edge, %0
%26 = load i32, ptr %4, align 4
%27 = mul nsw i32 2, %26
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
%31 = mul nsw i32 %28, %30
%32 = icmp eq i32 %27, %31
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
ret i32 0
}
declare i32 @assume(i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp41qpn0n8.c'
source_filename = "/tmp/tmp41qpn0n8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute_error(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 double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %7, align 8
store i32 1, ptr %8, align 4
br label %11
11: ; preds = %51, %3
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %54
16: ; preds = %11
store i32 1, ptr %9, align 4
br label %17
17: ; preds = %47, %16
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
%21 = icmp slt i32 %18, %20
br i1 %21, label %22, label %50
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [702 x double], ptr %23, i64 %25
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [702 x double], ptr %26, i64 0, i64 %28
%30 = load double, ptr %29, align 8
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [702 x double], ptr %31, i64 %33
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [702 x double], ptr %34, i64 0, i64 %36
%38 = load double, ptr %37, align 8
%39 = fsub double %30, %38
%40 = call double @llvm.fabs.f64(double %39)
store double %40, ptr %10, align 8
%41 = load double, ptr %7, align 8
%42 = load double, ptr %10, align 8
%43 = fcmp olt double %41, %42
br i1 %43, label %44, label %46
44: ; preds = %22
%45 = load double, ptr %10, align 8
store double %45, ptr %7, align 8
br label %46
46: ; preds = %44, %22
br label %47
47: ; preds = %46
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
br label %17, !llvm.loop !6
50: ; preds = %17
br label %51
51: ; preds = %50
%52 = load i32, ptr %8, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %8, align 4
br label %11, !llvm.loop !8
54: ; preds = %11
%55 = load double, ptr %7, align 8
ret double %55
}
; 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp41qpn0n8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute_error(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 double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %7, align 8
store i32 1, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph2, label %60
.lr.ph2: ; preds = %3
br label %15
15: ; preds = %.lr.ph2, %53
store i32 1, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
%19 = icmp slt i32 %16, %18
br i1 %19, label %.lr.ph, label %52
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %45
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [702 x double], ptr %21, i64 %23
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [702 x double], ptr %24, i64 0, i64 %26
%28 = load double, ptr %27, align 8
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [702 x double], ptr %29, i64 %31
%33 = load i32, ptr %9, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [702 x double], ptr %32, i64 0, i64 %34
%36 = load double, ptr %35, align 8
%37 = fsub double %28, %36
%38 = call double @llvm.fabs.f64(double %37)
store double %38, ptr %10, align 8
%39 = load double, ptr %7, align 8
%40 = load double, ptr %10, align 8
%41 = fcmp olt double %39, %40
br i1 %41, label %42, label %44
42: ; preds = %20
%43 = load double, ptr %10, align 8
store double %43, ptr %7, align 8
br label %44
44: ; preds = %42, %20
br label %45
45: ; preds = %44
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %9, align 4
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
%51 = icmp slt i32 %48, %50
br i1 %51, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %52
52: ; preds = %._crit_edge, %15
br label %53
53: ; preds = %52
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
%59 = icmp slt i32 %56, %58
br i1 %59, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %60
60: ; preds = %._crit_edge3, %3
%61 = load double, ptr %7, align 8
ret double %61
}
; 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}
|
; ModuleID = '/tmp/tmpl2z6jqm8.c'
source_filename = "/tmp/tmpl2z6jqm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_section(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
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
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl2z6jqm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_section(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
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
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmeto6ovr.c'
source_filename = "/tmp/tmpmeto6ovr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%s\09%s\09%s\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_to_log(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [4096 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 4096, i1 false)
%10 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%11 = call i32 @set_current_time(ptr noundef %10)
%12 = load ptr, ptr %8, align 8
%13 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @fprintf(ptr noundef %12, ptr noundef @.str, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %8, align 8
%19 = call i32 @fclose(ptr noundef %18)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @set_current_time(ptr noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmeto6ovr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%s\09%s\09%s\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_to_log(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [4096 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 4096, i1 false)
%10 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%11 = call i32 @set_current_time(ptr noundef %10)
%12 = load ptr, ptr %8, align 8
%13 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @fprintf(ptr noundef %12, ptr noundef @.str, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %8, align 8
%19 = call i32 @fclose(ptr noundef %18)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @set_current_time(ptr noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxl3qe6qh.c'
source_filename = "/tmp/tmpxl3qe6qh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"printme\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @MYFUNC(i32 noundef 10, ptr noundef @.str)
ret i32 0
}
declare i32 @MYFUNC(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/tmpxl3qe6qh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"printme\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @MYFUNC(i32 noundef 10, ptr noundef @.str)
ret i32 0
}
declare i32 @MYFUNC(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/tmpkn63duf6.c'
source_filename = "/tmp/tmpkn63duf6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"No FIPS DSA support\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkn63duf6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"No FIPS DSA support\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqr13a379.c'
source_filename = "/tmp/tmpqr13a379.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_r(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 i32, ptr %3, align 4
%5 = and i32 %4, 15
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
%8 = call i32 @mersenne_twister(i32 noundef %5, i32 noundef %7)
%9 = and i32 %8, 2147483647
%10 = load ptr, ptr %2, align 8
store i32 %9, ptr %10, align 4
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %11, align 4
ret i32 %12
}
declare i32 @mersenne_twister(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/tmpqr13a379.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_r(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 i32, ptr %3, align 4
%5 = and i32 %4, 15
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
%8 = call i32 @mersenne_twister(i32 noundef %5, i32 noundef %7)
%9 = and i32 %8, 2147483647
%10 = load ptr, ptr %2, align 8
store i32 %9, ptr %10, align 4
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %11, align 4
ret i32 %12
}
declare i32 @mersenne_twister(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/tmpl49873oy.c'
source_filename = "/tmp/tmpl49873oy.c"
target datalayout = "e-m:e-p270: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/tmpl49873oy.c"
target datalayout = "e-m:e-p270: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/tmp1wdxgade.c'
source_filename = "/tmp/tmp1wdxgade.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @C_write_delimited_to(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = call i32 @C_write(ptr noundef %11, ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %15, %16
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = icmp sgt i32 %18, 127
%20 = zext i1 %19 to i64
%21 = select i1 %19, i32 2, i32 1
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %9, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %41, %3
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %25, %26
br i1 %27, label %28, label %44
28: ; preds = %24
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 %33, ptr %40, align 1
br label %41
41: ; preds = %28
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %7, align 4
br label %24, !llvm.loop !6
44: ; preds = %24
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %6, align 4
%49 = call i32 @write_raw_varint32(i64 noundef %46, ptr noundef %47, i32 noundef %48)
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %8, align 4
%52 = add nsw i32 %50, %51
ret i32 %52
}
declare i32 @C_write(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write_raw_varint32(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1wdxgade.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @C_write_delimited_to(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = call i32 @C_write(ptr noundef %11, ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %15, %16
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = icmp sgt i32 %18, 127
%20 = zext i1 %19 to i64
%21 = select i1 %19, i32 2, i32 1
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %9, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp sge i32 %24, %25
br i1 %26, label %.lr.ph, label %46
.lr.ph: ; preds = %3
br label %27
27: ; preds = %.lr.ph, %40
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 %32, ptr %39, align 1
br label %40
40: ; preds = %27
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %7, align 4
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sge i32 %43, %44
br i1 %45, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %3
%47 = load i32, ptr %10, align 4
%48 = sext i32 %47 to i64
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %6, align 4
%51 = call i32 @write_raw_varint32(i64 noundef %48, ptr noundef %49, i32 noundef %50)
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %8, align 4
%54 = add nsw i32 %52, %53
ret i32 %54
}
declare i32 @C_write(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write_raw_varint32(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk6xrxfvm.c'
source_filename = "/tmp/tmpk6xrxfvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Error: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Server closed connection!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @server_eof(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %7, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %4
%12 = load ptr, ptr %8, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load ptr, ptr %8, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
br label %17
17: ; preds = %14, %11, %4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%19 = 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/tmpk6xrxfvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Error: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Server closed connection!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @server_eof(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %7, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %4
%12 = load ptr, ptr %8, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load ptr, ptr %8, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
br label %17
17: ; preds = %14, %11, %4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%19 = 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/tmpx21qhs1o.c'
source_filename = "/tmp/tmpx21qhs1o.c"
target datalayout = "e-m:e-p270: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/tmpx21qhs1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.