; LLVM IR from reworks-org/galaxy :: deps/sfml_deps/freetype-src/src/tools/ftrandom (ftrandom)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@check_outlines = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@error_fraction = external hidden global double, align 8
@error_count = external hidden global i32, align 4
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@nohints = external hidden global i32, align 4
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@rasterize = external hidden global i32, align 4
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@results_dir = external hidden global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@font_size = external hidden global i64, align 8
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@default_ext_list = external hidden global [13 x ptr], align 16
@default_dir_list = external hidden global [2 x ptr], align 16

; Function Attrs: nounwind 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 i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr null, ptr %14, align 8, !tbaa !9
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  %19 = sext i32 %18 to i64
  %20 = call noalias ptr @calloc(i64 noundef %19, i64 noundef 8) #7
  store ptr %20, ptr %6, align 8, !tbaa !9
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  %23 = sext i32 %22 to i64
  %24 = call noalias ptr @calloc(i64 noundef %23, i64 noundef 8) #7
  store ptr %24, ptr %7, align 8, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %247, %2
  %26 = load i32, ptr %12, align 4, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %29, label %250

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = load i32, ptr %12, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds ptr, ptr %30, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  store ptr %34, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %35 = load ptr, ptr %15, align 8, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %35, i64 0
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = sext i8 %37 to i32
  %39 = icmp eq i32 %38, 45
  br i1 %39, label %40, label %49

40:                                               ; preds = %29
  %41 = load ptr, ptr %15, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = sext i8 %43 to i32
  %45 = icmp eq i32 %44, 45
  br i1 %45, label %46, label %49

46:                                               ; preds = %40
  %47 = load ptr, ptr %15, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i32 1
  store ptr %48, ptr %15, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %46, %40, %29
  %50 = load ptr, ptr %15, align 8, !tbaa !9
  %51 = call i32 @strcmp(ptr noundef %50, ptr noundef @.str) #8
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %246

54:                                               ; preds = %49
  %55 = load ptr, ptr %15, align 8, !tbaa !9
  %56 = call i32 @strcmp(ptr noundef %55, ptr noundef @.str.1) #8
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  store i32 1, ptr @check_outlines, align 4, !tbaa !5
  br label %245

59:                                               ; preds = %54
  %60 = load ptr, ptr %15, align 8, !tbaa !9
  %61 = call i32 @strcmp(ptr noundef %60, ptr noundef @.str.2) #8
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %75

63:                                               ; preds = %59
  %64 = load ptr, ptr %5, align 8, !tbaa !9
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %12, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %64, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = load ptr, ptr %6, align 8, !tbaa !9
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %71 to i64
  %74 = getelementptr inbounds ptr, ptr %70, i64 %73
  store ptr %69, ptr %74, align 8, !tbaa !9
  br label %244

75:                                               ; preds = %59
  %76 = load ptr, ptr %15, align 8, !tbaa !9
  %77 = call i32 @strcmp(ptr noundef %76, ptr noundef @.str.3) #8
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %105

79:                                               ; preds = %75
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store double 0.000000e+00, ptr @error_fraction, align 8, !tbaa !12
  br label %83

83:                                               ; preds = %82, %79
  store i32 1, ptr %10, align 4, !tbaa !5
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %12, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %84, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = call i64 @strtoul(ptr noundef %89, ptr noundef %16, i32 noundef 10) #6
  %91 = trunc i64 %90 to i32
  store i32 %91, ptr @error_count, align 4, !tbaa !5
  %92 = load ptr, ptr %16, align 8, !tbaa !9
  %93 = load i8, ptr %92, align 1, !tbaa !11
  %94 = sext i8 %93 to i32
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %104

96:                                               ; preds = %83
  %97 = load ptr, ptr @stderr, align 8, !tbaa !9
  %98 = load ptr, ptr %5, align 8, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.4, ptr noundef %102) #6
  call void @exit(i32 noundef 1) #9
  unreachable

104:                                              ; preds = %83
  br label %243

105:                                              ; preds = %75
  %106 = load ptr, ptr %15, align 8, !tbaa !9
  %107 = call i32 @strcmp(ptr noundef %106, ptr noundef @.str.5) #8
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %143

109:                                              ; preds = %105
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %109
  store i32 0, ptr @error_count, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %112, %109
  store i32 1, ptr %10, align 4, !tbaa !5
  %114 = load ptr, ptr %5, align 8, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %12, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %114, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = call double @strtod(ptr noundef %119, ptr noundef %16) #6
  store double %120, ptr @error_fraction, align 8, !tbaa !12
  %121 = load ptr, ptr %16, align 8, !tbaa !9
  %122 = load i8, ptr %121, align 1, !tbaa !11
  %123 = sext i8 %122 to i32
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %133

125:                                              ; preds = %113
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = load ptr, ptr %5, align 8, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %127, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.6, ptr noundef %131) #6
  call void @exit(i32 noundef 1) #9
  unreachable

133:                                              ; preds = %113
  %134 = load double, ptr @error_fraction, align 8, !tbaa !12
  %135 = fcmp olt double %134, 0.000000e+00
  br i1 %135, label %139, label %136

136:                                              ; preds = %133
  %137 = load double, ptr @error_fraction, align 8, !tbaa !12
  %138 = fcmp ogt double %137, 1.000000e+00
  br i1 %138, label %139, label %142

139:                                              ; preds = %136, %133
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.7) #6
  call void @exit(i32 noundef 1) #9
  unreachable

142:                                              ; preds = %136
  br label %242

143:                                              ; preds = %105
  %144 = load ptr, ptr %15, align 8, !tbaa !9
  %145 = call i32 @strcmp(ptr noundef %144, ptr noundef @.str.8) #8
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %159

147:                                              ; preds = %143
  %148 = load ptr, ptr %5, align 8, !tbaa !9
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %12, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds ptr, ptr %148, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !9
  %155 = load i32, ptr %9, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %9, align 4, !tbaa !5
  %157 = sext i32 %155 to i64
  %158 = getelementptr inbounds ptr, ptr %154, i64 %157
  store ptr %153, ptr %158, align 8, !tbaa !9
  br label %241

159:                                              ; preds = %143
  %160 = load ptr, ptr %15, align 8, !tbaa !9
  %161 = call i32 @strcmp(ptr noundef %160, ptr noundef @.str.9) #8
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %168

163:                                              ; preds = %159
  %164 = load ptr, ptr @stdout, align 8, !tbaa !9
  %165 = load ptr, ptr %5, align 8, !tbaa !9
  %166 = getelementptr inbounds ptr, ptr %165, i64 0
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  call void @usage(ptr noundef %164, ptr noundef %167)
  call void @exit(i32 noundef 0) #9
  unreachable

168:                                              ; preds = %159
  %169 = load ptr, ptr %15, align 8, !tbaa !9
  %170 = call i32 @strcmp(ptr noundef %169, ptr noundef @.str.10) #8
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %168
  store i32 1, ptr @nohints, align 4, !tbaa !5
  br label %239

173:                                              ; preds = %168
  %174 = load ptr, ptr %15, align 8, !tbaa !9
  %175 = call i32 @strcmp(ptr noundef %174, ptr noundef @.str.11) #8
  %176 = icmp eq i32 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %173
  store i32 1, ptr @rasterize, align 4, !tbaa !5
  br label %238

178:                                              ; preds = %173
  %179 = load ptr, ptr %15, align 8, !tbaa !9
  %180 = call i32 @strcmp(ptr noundef %179, ptr noundef @.str.12) #8
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %189

182:                                              ; preds = %178
  %183 = load ptr, ptr %5, align 8, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %12, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds ptr, ptr %183, i64 %186
  %188 = load ptr, ptr %187, align 8, !tbaa !9
  store ptr %188, ptr @results_dir, align 8, !tbaa !9
  br label %237

189:                                              ; preds = %178
  %190 = load ptr, ptr %15, align 8, !tbaa !9
  %191 = call i32 @strcmp(ptr noundef %190, ptr noundef @.str.13) #8
  %192 = icmp eq i32 %191, 0
  br i1 %192, label %193, label %219

193:                                              ; preds = %189
  %194 = load ptr, ptr %5, align 8, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %12, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds ptr, ptr %194, i64 %197
  %199 = load ptr, ptr %198, align 8, !tbaa !9
  %200 = call double @strtod(ptr noundef %199, ptr noundef %16) #6
  %201 = fmul double %200, 6.400000e+01
  %202 = fptosi double %201 to i64
  store i64 %202, ptr @font_size, align 8, !tbaa !14
  %203 = load ptr, ptr %16, align 8, !tbaa !9
  %204 = load i8, ptr %203, align 1, !tbaa !11
  %205 = sext i8 %204 to i32
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %210, label %207

207:                                              ; preds = %193
  %208 = load i64, ptr @font_size, align 8, !tbaa !14
  %209 = icmp slt i64 %208, 64
  br i1 %209, label %210, label %218

210:                                              ; preds = %207, %193
  %211 = load ptr, ptr @stderr, align 8, !tbaa !9
  %212 = load ptr, ptr %5, align 8, !tbaa !9
  %213 = load i32, ptr %12, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds ptr, ptr %212, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !9
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.14, ptr noundef %216) #6
  call void @exit(i32 noundef 1) #9
  unreachable

218:                                              ; preds = %207
  br label %236

219:                                              ; preds = %189
  %220 = load ptr, ptr %15, align 8, !tbaa !9
  %221 = call i32 @strcmp(ptr noundef %220, ptr noundef @.str.15) #8
  %222 = icmp eq i32 %221, 0
  br i1 %222, label %223, label %230

223:                                              ; preds = %219
  %224 = load ptr, ptr %5, align 8, !tbaa !9
  %225 = load i32, ptr %12, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %12, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds ptr, ptr %224, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !9
  store ptr %229, ptr %14, align 8, !tbaa !9
  br label %235

230:                                              ; preds = %219
  %231 = load ptr, ptr @stderr, align 8, !tbaa !9
  %232 = load ptr, ptr %5, align 8, !tbaa !9
  %233 = getelementptr inbounds ptr, ptr %232, i64 0
  %234 = load ptr, ptr %233, align 8, !tbaa !9
  call void @usage(ptr noundef %231, ptr noundef %234)
  call void @exit(i32 noundef 1) #9
  unreachable

235:                                              ; preds = %223
  br label %236

236:                                              ; preds = %235, %218
  br label %237

237:                                              ; preds = %236, %182
  br label %238

238:                                              ; preds = %237, %177
  br label %239

239:                                              ; preds = %238, %172
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240, %147
  br label %242

242:                                              ; preds = %241, %142
  br label %243

243:                                              ; preds = %242, %104
  br label %244

244:                                              ; preds = %243, %63
  br label %245

245:                                              ; preds = %244, %58
  br label %246

246:                                              ; preds = %245, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %12, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %12, align 4, !tbaa !5
  br label %25, !llvm.loop !16

250:                                              ; preds = %25
  %251 = load i32, ptr %11, align 4, !tbaa !5
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %255

253:                                              ; preds = %250
  %254 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %254) #6
  store ptr null, ptr %7, align 8, !tbaa !9
  br label %261

255:                                              ; preds = %250
  %256 = load i32, ptr %9, align 4, !tbaa !5
  %257 = icmp eq i32 %256, 0
  br i1 %257, label %258, label %260

258:                                              ; preds = %255
  %259 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %259) #6
  store ptr @default_ext_list, ptr %7, align 8, !tbaa !9
  br label %260

260:                                              ; preds = %258, %255
  br label %261

261:                                              ; preds = %260, %253
  %262 = load i32, ptr %8, align 4, !tbaa !5
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %264, label %266

264:                                              ; preds = %261
  %265 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %265) #6
  store ptr @default_dir_list, ptr %6, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %264, %261
  %267 = load ptr, ptr %14, align 8, !tbaa !9
  %268 = icmp ne ptr %267, null
  br i1 %268, label %269, label %271

269:                                              ; preds = %266
  %270 = load ptr, ptr %14, align 8, !tbaa !9
  call void @ExecuteTest(ptr noundef %270)
  br label %271

271:                                              ; preds = %269, %266
  %272 = call i64 @time(ptr noundef %13) #6
  %273 = load i64, ptr %13, align 8, !tbaa !14
  %274 = trunc i64 %273 to i32
  call void @srandom(i32 noundef %274) #6
  %275 = load ptr, ptr %6, align 8, !tbaa !9
  %276 = load ptr, ptr %7, align 8, !tbaa !9
  call void @FindFonts(ptr noundef %275, ptr noundef %276)
  %277 = load ptr, ptr @results_dir, align 8, !tbaa !9
  %278 = call i32 @mkdir(ptr noundef %277, i32 noundef 493) #6
  br label %279

279:                                              ; preds = %279, %271
  call void @do_test()
  br label %279
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: nounwind
declare double @strtod(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @ExecuteTest(ptr noundef) #0

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

; Function Attrs: nounwind
declare void @srandom(i32 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @FindFonts(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind
declare i32 @mkdir(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @do_test() #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@check_outlines = external hidden local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@error_fraction = external hidden local_unnamed_addr global double, align 8
@error_count = external hidden local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@nohints = external hidden local_unnamed_addr global i32, align 4
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@rasterize = external hidden local_unnamed_addr global i32, align 4
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@results_dir = external hidden local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@font_size = external hidden local_unnamed_addr global i64, align 8
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@default_ext_list = external hidden global [13 x ptr], align 16
@default_dir_list = external hidden global [2 x ptr], align 16

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %5 = add nsw i32 %0, 1
  %6 = sext i32 %5 to i64
  %7 = tail call noalias ptr @calloc(i64 noundef %6, i64 noundef 8) #11
  %8 = tail call noalias ptr @calloc(i64 noundef %6, i64 noundef 8) #11
  %9 = icmp sgt i32 %0, 1
  br i1 %9, label %.lr.ph.outer, label %.thread146.thread

.thread146.thread:                                ; preds = %2
  tail call void @free(ptr noundef %8) #10
  br label %169

.lr.ph.outer:                                     ; preds = %2, %157
  %.062114.ph = phi ptr [ %.1, %157 ], [ null, %2 ]
  %.063113.ph = phi i32 [ %158, %157 ], [ 1, %2 ]
  %.065112.ph = phi i32 [ %.065112.lcssa, %157 ], [ 0, %2 ]
  %.067111.ph = phi i32 [ %.168, %157 ], [ 0, %2 ]
  %.069110.ph = phi i32 [ %.170, %157 ], [ 0, %2 ]
  %.071109.ph = phi i32 [ %.172, %157 ], [ 0, %2 ]
  %10 = sext i32 %.063113.ph to i64
  %11 = getelementptr inbounds ptr, ptr %1, i64 %10
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  %13 = load i8, ptr %12, align 1, !tbaa !9
  %14 = icmp eq i8 %13, 45
  br i1 %14, label %15, label %19

15:                                               ; preds = %.lr.ph.outer
  %16 = getelementptr inbounds i8, ptr %12, i64 1
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = icmp eq i8 %17, 45
  %spec.select.peel = select i1 %18, ptr %16, ptr %12
  br label %19

19:                                               ; preds = %15, %.lr.ph.outer
  %.0.peel = phi ptr [ %12, %.lr.ph.outer ], [ %spec.select.peel, %15 ]
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.peel, ptr noundef nonnull dereferenceable(1) @.str) #12
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %.thread.peel, label %.loopexit

.thread.peel:                                     ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  %22 = add nsw i32 %.063113.ph, 1
  %23 = icmp slt i32 %22, %0
  br i1 %23, label %.lr.ph, label %._crit_edge.thread140

.lr.ph:                                           ; preds = %.thread.peel, %.thread
  %.063113 = phi i32 [ %160, %.thread ], [ %22, %.thread.peel ]
  %24 = sext i32 %.063113 to i64
  %25 = getelementptr inbounds ptr, ptr %1, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = icmp eq i8 %27, 45
  br i1 %28, label %29, label %33

29:                                               ; preds = %.lr.ph
  %30 = getelementptr inbounds i8, ptr %26, i64 1
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = icmp eq i8 %31, 45
  %spec.select = select i1 %32, ptr %30, ptr %26
  br label %33

33:                                               ; preds = %29, %.lr.ph
  %.0 = phi ptr [ %26, %.lr.ph ], [ %spec.select, %29 ]
  %34 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0, ptr noundef nonnull dereferenceable(1) @.str) #12
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %.thread, label %.loopexit

.loopexit:                                        ; preds = %33, %19
  %.0.lcssa = phi ptr [ %.0.peel, %19 ], [ %.0, %33 ]
  %.063113.lcssa = phi i32 [ %.063113.ph, %19 ], [ %.063113, %33 ]
  %.065112.lcssa = phi i32 [ %.065112.ph, %19 ], [ 1, %33 ]
  %36 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.1) #12
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %.loopexit
  store i32 1, ptr @check_outlines, align 4, !tbaa !10
  br label %157

39:                                               ; preds = %.loopexit
  %40 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.2) #12
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %50

42:                                               ; preds = %39
  %43 = add nsw i32 %.063113.lcssa, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %1, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = add nsw i32 %.071109.ph, 1
  %48 = sext i32 %.071109.ph to i64
  %49 = getelementptr inbounds ptr, ptr %7, i64 %48
  store ptr %46, ptr %49, align 8, !tbaa !5
  br label %157

50:                                               ; preds = %39
  %51 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.3) #12
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %69

53:                                               ; preds = %50
  %.not78 = icmp eq i32 %.067111.ph, 0
  br i1 %.not78, label %54, label %55

54:                                               ; preds = %53
  store double 0.000000e+00, ptr @error_fraction, align 8, !tbaa !12
  br label %55

55:                                               ; preds = %54, %53
  %56 = add nsw i32 %.063113.lcssa, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %1, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = call i64 @strtoul(ptr noundef %59, ptr noundef nonnull %4, i32 noundef 10) #10
  %61 = trunc i64 %60 to i32
  store i32 %61, ptr @error_count, align 4, !tbaa !10
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i8, ptr %62, align 1, !tbaa !9
  %.not79 = icmp eq i8 %63, 0
  br i1 %.not79, label %157, label %64

64:                                               ; preds = %55
  %65 = getelementptr inbounds ptr, ptr %1, i64 %57
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = load ptr, ptr %65, align 8, !tbaa !5
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.4, ptr noundef %67) #13
  tail call void @exit(i32 noundef 1) #14
  unreachable

69:                                               ; preds = %50
  %70 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.5) #12
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %93

72:                                               ; preds = %69
  %.not76 = icmp eq i32 %.067111.ph, 0
  br i1 %.not76, label %73, label %74

73:                                               ; preds = %72
  store i32 0, ptr @error_count, align 4, !tbaa !10
  br label %74

74:                                               ; preds = %73, %72
  %75 = add nsw i32 %.063113.lcssa, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %1, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = call double @strtod(ptr noundef %78, ptr noundef nonnull %4) #10
  store double %79, ptr @error_fraction, align 8, !tbaa !12
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i8, ptr %80, align 1, !tbaa !9
  %.not77 = icmp eq i8 %81, 0
  br i1 %.not77, label %87, label %82

82:                                               ; preds = %74
  %83 = getelementptr inbounds ptr, ptr %1, i64 %76
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = load ptr, ptr %83, align 8, !tbaa !5
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.6, ptr noundef %85) #13
  tail call void @exit(i32 noundef 1) #14
  unreachable

87:                                               ; preds = %74
  %88 = fcmp olt double %79, 0.000000e+00
  %89 = fcmp ogt double %79, 1.000000e+00
  %or.cond = or i1 %88, %89
  br i1 %or.cond, label %90, label %157

90:                                               ; preds = %87
  %91 = load ptr, ptr @stderr, align 8, !tbaa !5
  %92 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.7) #13
  tail call void @exit(i32 noundef 1) #14
  unreachable

93:                                               ; preds = %69
  %94 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.8) #12
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %104

96:                                               ; preds = %93
  %97 = add nsw i32 %.063113.lcssa, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds ptr, ptr %1, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = add nsw i32 %.069110.ph, 1
  %102 = sext i32 %.069110.ph to i64
  %103 = getelementptr inbounds ptr, ptr %8, i64 %102
  store ptr %100, ptr %103, align 8, !tbaa !5
  br label %157

104:                                              ; preds = %93
  %105 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.9) #12
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %110

107:                                              ; preds = %104
  %108 = load ptr, ptr @stdout, align 8, !tbaa !5
  %109 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @usage(ptr noundef %108, ptr noundef %109)
  tail call void @exit(i32 noundef 0) #14
  unreachable

110:                                              ; preds = %104
  %111 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.10) #12
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  store i32 1, ptr @nohints, align 4, !tbaa !10
  br label %157

114:                                              ; preds = %110
  %115 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.11) #12
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  store i32 1, ptr @rasterize, align 4, !tbaa !10
  br label %157

118:                                              ; preds = %114
  %119 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.12) #12
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %126

121:                                              ; preds = %118
  %122 = add nsw i32 %.063113.lcssa, 1
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %1, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  store ptr %125, ptr @results_dir, align 8, !tbaa !5
  br label %157

126:                                              ; preds = %118
  %127 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.13) #12
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %146

129:                                              ; preds = %126
  %130 = add nsw i32 %.063113.lcssa, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %1, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = call double @strtod(ptr noundef %133, ptr noundef nonnull %4) #10
  %135 = fmul double %134, 6.400000e+01
  %136 = fptosi double %135 to i64
  store i64 %136, ptr @font_size, align 8, !tbaa !14
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = load i8, ptr %137, align 1, !tbaa !9
  %139 = icmp ne i8 %138, 0
  %140 = icmp slt i64 %136, 64
  %or.cond3 = select i1 %139, i1 true, i1 %140
  br i1 %or.cond3, label %141, label %157

141:                                              ; preds = %129
  %142 = getelementptr inbounds ptr, ptr %1, i64 %131
  %143 = load ptr, ptr @stderr, align 8, !tbaa !5
  %144 = load ptr, ptr %142, align 8, !tbaa !5
  %145 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef nonnull @.str.14, ptr noundef %144) #13
  tail call void @exit(i32 noundef 1) #14
  unreachable

146:                                              ; preds = %126
  %147 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0.lcssa, ptr noundef nonnull dereferenceable(1) @.str.15) #12
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %154

149:                                              ; preds = %146
  %150 = add nsw i32 %.063113.lcssa, 1
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds ptr, ptr %1, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  br label %157

154:                                              ; preds = %146
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @usage(ptr noundef %155, ptr noundef %156)
  tail call void @exit(i32 noundef 1) #14
  unreachable

157:                                              ; preds = %38, %55, %96, %113, %121, %129, %149, %117, %87, %42
  %.172 = phi i32 [ %.071109.ph, %38 ], [ %47, %42 ], [ %.071109.ph, %55 ], [ %.071109.ph, %87 ], [ %.071109.ph, %96 ], [ %.071109.ph, %113 ], [ %.071109.ph, %117 ], [ %.071109.ph, %121 ], [ %.071109.ph, %129 ], [ %.071109.ph, %149 ]
  %.170 = phi i32 [ %.069110.ph, %38 ], [ %.069110.ph, %42 ], [ %.069110.ph, %55 ], [ %.069110.ph, %87 ], [ %101, %96 ], [ %.069110.ph, %113 ], [ %.069110.ph, %117 ], [ %.069110.ph, %121 ], [ %.069110.ph, %129 ], [ %.069110.ph, %149 ]
  %.168 = phi i32 [ %.067111.ph, %38 ], [ %.067111.ph, %42 ], [ 1, %55 ], [ 1, %87 ], [ %.067111.ph, %96 ], [ %.067111.ph, %113 ], [ %.067111.ph, %117 ], [ %.067111.ph, %121 ], [ %.067111.ph, %129 ], [ %.067111.ph, %149 ]
  %.164 = phi i32 [ %.063113.lcssa, %38 ], [ %43, %42 ], [ %56, %55 ], [ %75, %87 ], [ %97, %96 ], [ %.063113.lcssa, %113 ], [ %.063113.lcssa, %117 ], [ %122, %121 ], [ %130, %129 ], [ %150, %149 ]
  %.1 = phi ptr [ %.062114.ph, %38 ], [ %.062114.ph, %42 ], [ %.062114.ph, %55 ], [ %.062114.ph, %87 ], [ %.062114.ph, %96 ], [ %.062114.ph, %113 ], [ %.062114.ph, %117 ], [ %.062114.ph, %121 ], [ %.062114.ph, %129 ], [ %153, %149 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  %158 = add nsw i32 %.164, 1
  %159 = icmp slt i32 %158, %0
  br i1 %159, label %.lr.ph.outer, label %._crit_edge, !llvm.loop !16

.thread:                                          ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  %160 = add nsw i32 %.063113, 1
  %161 = icmp slt i32 %160, %0
  br i1 %161, label %.lr.ph, label %._crit_edge.thread140, !llvm.loop !18

._crit_edge.thread140:                            ; preds = %.thread.peel, %.thread
  %162 = icmp eq i32 %.071109.ph, 0
  tail call void @free(ptr noundef %8) #10
  br i1 %162, label %169, label %170

._crit_edge:                                      ; preds = %157
  %163 = icmp eq i32 %.065112.lcssa, 0
  %164 = icmp eq i32 %.172, 0
  br i1 %163, label %166, label %165

165:                                              ; preds = %._crit_edge
  tail call void @free(ptr noundef %8) #10
  br i1 %164, label %169, label %170

166:                                              ; preds = %._crit_edge
  %167 = icmp eq i32 %.170, 0
  br i1 %167, label %.thread146, label %168

.thread146:                                       ; preds = %166
  tail call void @free(ptr noundef %8) #10
  br i1 %164, label %169, label %170

168:                                              ; preds = %166
  br i1 %164, label %169, label %170

169:                                              ; preds = %.thread146.thread, %._crit_edge.thread140, %.thread146, %165, %168
  %.073155 = phi ptr [ null, %165 ], [ %8, %168 ], [ @default_ext_list, %.thread146 ], [ null, %._crit_edge.thread140 ], [ @default_ext_list, %.thread146.thread ]
  %.062.lcssa128153 = phi ptr [ %.1, %165 ], [ %.1, %168 ], [ %.1, %.thread146 ], [ %.062114.ph, %._crit_edge.thread140 ], [ null, %.thread146.thread ]
  tail call void @free(ptr noundef %7) #10
  br label %170

170:                                              ; preds = %._crit_edge.thread140, %.thread146, %165, %169, %168
  %.073154 = phi ptr [ %.073155, %169 ], [ %8, %168 ], [ null, %165 ], [ @default_ext_list, %.thread146 ], [ null, %._crit_edge.thread140 ]
  %.062.lcssa128152 = phi ptr [ %.062.lcssa128153, %169 ], [ %.1, %168 ], [ %.1, %165 ], [ %.1, %.thread146 ], [ %.062114.ph, %._crit_edge.thread140 ]
  %.074 = phi ptr [ @default_dir_list, %169 ], [ %7, %168 ], [ %7, %165 ], [ %7, %.thread146 ], [ %7, %._crit_edge.thread140 ]
  %.not75 = icmp eq ptr %.062.lcssa128152, null
  br i1 %.not75, label %172, label %171

171:                                              ; preds = %170
  tail call void @ExecuteTest(ptr noundef nonnull %.062.lcssa128152)
  br label %172

172:                                              ; preds = %171, %170
  %173 = call i64 @time(ptr noundef nonnull %3) #10
  %174 = load i64, ptr %3, align 8, !tbaa !14
  %175 = trunc i64 %174 to i32
  call void @srandom(i32 noundef %175) #10
  call void @FindFonts(ptr noundef %.074, ptr noundef %.073154)
  %176 = load ptr, ptr @results_dir, align 8, !tbaa !5
  %177 = call i32 @mkdir(ptr noundef %176, i32 noundef 493) #10
  br label %178

178:                                              ; preds = %178, %172
  call void @do_test()
  br label %178
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoul(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn
declare double @strtod(ptr noundef readonly, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #8

; Function Attrs: nounwind uwtable
declare hidden void @ExecuteTest(ptr noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #9

; Function Attrs: nounwind
declare void @srandom(i32 noundef) local_unnamed_addr #9

; Function Attrs: nounwind uwtable
declare hidden void @FindFonts(ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noundef i32 @mkdir(ptr nocapture noundef readonly, i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden void @do_test() local_unnamed_addr #7

attributes #0 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { nounwind allocsize(0,1) }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { cold nounwind }
attributes #14 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17, !19}
!19 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass