; LLVM IR from alexzheng42/sDMD :: src (REMDExec)

; 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"

%struct.REMDTempStr = type { i32, double }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1

; 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [32 x i8], align 16
  %12 = alloca [32 x i8], align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [32 x ptr], align 16
  %18 = alloca %struct.REMDTempStr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %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 [64 x i8], align 16
  %29 = alloca i32, align 4
  %30 = alloca [20 x i8], align 16
  %31 = alloca [20 x i8], align 16
  %32 = alloca [5 x ptr], align 16
  %33 = alloca i32, align 4
  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 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %34 = call noalias ptr @calloc(i64 noundef 1024, i64 noundef 1) #9
  store ptr %34, ptr %13, align 8, !tbaa !9
  %35 = call noalias ptr @calloc(i64 noundef 1024, i64 noundef 1) #9
  store ptr %35, ptr %14, align 8, !tbaa !9
  %36 = call noalias ptr @calloc(i64 noundef 1024, i64 noundef 1) #9
  store ptr %36, ptr %15, align 8, !tbaa !9
  %37 = call noalias ptr @calloc(i64 noundef 1024, i64 noundef 1) #9
  store ptr %37, ptr %16, align 8, !tbaa !9
  %38 = load ptr, ptr %16, align 8, !tbaa !9
  %39 = call ptr @getcwd(ptr noundef %38, i64 noundef 1024) #8
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %2
  call void @perror(ptr noundef @.str)
  br label %42

42:                                               ; preds = %41, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %52, %42
  %44 = load i32, ptr %21, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 32
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %55

47:                                               ; preds = %43
  %48 = call noalias ptr @calloc(i64 noundef 64, i64 noundef 1) #9
  %49 = load i32, ptr %21, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %50
  store ptr %48, ptr %51, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %47
  %53 = load i32, ptr %21, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %21, align 4, !tbaa !5
  br label %43, !llvm.loop !11

55:                                               ; preds = %46
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %162, %55
  %57 = load i32, ptr %22, align 4, !tbaa !5
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %165

60:                                               ; preds = %56
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = load i32, ptr %22, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %61, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %65, i64 0
  %67 = load i8, ptr %66, align 1, !tbaa !13
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 %68, 45
  br i1 %69, label %70, label %161

70:                                               ; preds = %60
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = load i32, ptr %22, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = call i32 @strcmp(ptr noundef %75, ptr noundef @.str.1) #10
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %86, label %78

78:                                               ; preds = %70
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = load i32, ptr %22, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %79, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = call i32 @strcmp(ptr noundef %83, ptr noundef @.str.2) #10
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %94

86:                                               ; preds = %78, %70
  br label %87

87:                                               ; preds = %356, %86
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = getelementptr inbounds ptr, ptr %88, i64 0
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %90)
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  call void @exit(i32 noundef 0) #11
  unreachable

94:                                               ; preds = %78
  %95 = load ptr, ptr %5, align 8, !tbaa !9
  %96 = load i32, ptr %22, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = call i32 @strcmp(ptr noundef %99, ptr noundef @.str.6) #10
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %111

102:                                              ; preds = %94
  %103 = load ptr, ptr %13, align 8, !tbaa !9
  %104 = load ptr, ptr %5, align 8, !tbaa !9
  %105 = load i32, ptr %22, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %104, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %103, ptr noundef @.str.7, ptr noundef %109) #8
  br label %159

111:                                              ; preds = %94
  %112 = load ptr, ptr %5, align 8, !tbaa !9
  %113 = load i32, ptr %22, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = call i32 @strcmp(ptr noundef %116, ptr noundef @.str.8) #10
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %158

119:                                              ; preds = %111
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %138, %119
  %121 = load i32, ptr %22, align 4, !tbaa !5
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = add nsw i32 %121, %122
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %126, label %136

126:                                              ; preds = %120
  %127 = load ptr, ptr %5, align 8, !tbaa !9
  %128 = load i32, ptr %22, align 4, !tbaa !5
  %129 = load i32, ptr %8, align 4, !tbaa !5
  %130 = add nsw i32 %128, %129
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %127, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = call i32 @strcmp(ptr noundef %133, ptr noundef @.str.9) #10
  %135 = icmp ne i32 %134, 0
  br label %136

136:                                              ; preds = %126, %120
  %137 = phi i1 [ false, %120 ], [ %135, %126 ]
  br i1 %137, label %138, label %154

138:                                              ; preds = %136
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = sub nsw i32 %139, 1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  %144 = load ptr, ptr %5, align 8, !tbaa !9
  %145 = load i32, ptr %22, align 4, !tbaa !5
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = add nsw i32 %145, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds ptr, ptr %144, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %143, ptr noundef @.str.7, ptr noundef %150) #8
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %8, align 4, !tbaa !5
  br label %120, !llvm.loop !14

154:                                              ; preds = %136
  %155 = load i32, ptr %8, align 4, !tbaa !5
  %156 = load i32, ptr %22, align 4, !tbaa !5
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %22, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %154, %111
  br label %159

159:                                              ; preds = %158, %102
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160, %60
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %22, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %22, align 4, !tbaa !5
  br label %56, !llvm.loop !15

165:                                              ; preds = %56
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = add nsw i32 %166, -1
  store i32 %167, ptr %8, align 4, !tbaa !5
  %168 = load ptr, ptr %14, align 8, !tbaa !9
  %169 = load ptr, ptr %16, align 8, !tbaa !9
  %170 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %168, ptr noundef @.str.10, ptr noundef %169) #8
  %171 = load ptr, ptr %15, align 8, !tbaa !9
  %172 = load ptr, ptr %16, align 8, !tbaa !9
  %173 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %171, ptr noundef @.str.11, ptr noundef %172) #8
  %174 = load ptr, ptr %13, align 8, !tbaa !9
  %175 = call noalias ptr @fopen(ptr noundef %174, ptr noundef @.str.12)
  store ptr %175, ptr %20, align 8, !tbaa !9
  %176 = load ptr, ptr %20, align 8, !tbaa !9
  %177 = icmp eq ptr %176, null
  br i1 %177, label %178, label %181

178:                                              ; preds = %165
  %179 = load ptr, ptr %13, align 8, !tbaa !9
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %179)
  call void @exit(i32 noundef 1) #11
  unreachable

181:                                              ; preds = %165
  %182 = load ptr, ptr %13, align 8, !tbaa !9
  %183 = load ptr, ptr %20, align 8, !tbaa !9
  %184 = call ptr @fgets(ptr noundef %182, i32 noundef 1024, ptr noundef %183)
  %185 = load ptr, ptr %20, align 8, !tbaa !9
  %186 = load ptr, ptr %13, align 8, !tbaa !9
  %187 = load ptr, ptr %13, align 8, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %185, ptr noundef @.str.14, ptr noundef %186, ptr noundef %187, ptr noundef %10)
  store i32 0, ptr %23, align 4, !tbaa !5
  store i32 0, ptr %24, align 4, !tbaa !5
  %189 = load i32, ptr %10, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noalias ptr @calloc(i64 noundef %190, i64 noundef 16) #9
  store ptr %191, ptr %19, align 8, !tbaa !9
  %192 = load ptr, ptr %13, align 8, !tbaa !9
  %193 = load ptr, ptr %20, align 8, !tbaa !9
  %194 = call ptr @fgets(ptr noundef %192, i32 noundef 1024, ptr noundef %193)
  %195 = load ptr, ptr %13, align 8, !tbaa !9
  %196 = load ptr, ptr %16, align 8, !tbaa !9
  %197 = load ptr, ptr %16, align 8, !tbaa !9
  %198 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %195, ptr noundef @.str.15, ptr noundef %196, ptr noundef %197, ptr noundef %24) #8
  %199 = load i32, ptr %24, align 4, !tbaa !5
  %200 = load i32, ptr %23, align 4, !tbaa !5
  %201 = add nsw i32 %200, %199
  store i32 %201, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %239, %181
  %203 = load i32, ptr %25, align 4, !tbaa !5
  %204 = load i32, ptr %10, align 4, !tbaa !5
  %205 = icmp slt i32 %203, %204
  br i1 %205, label %207, label %206

206:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %242

207:                                              ; preds = %202
  %208 = load ptr, ptr %13, align 8, !tbaa !9
  %209 = load i32, ptr %23, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i8, ptr %208, i64 %210
  %212 = load ptr, ptr %19, align 8, !tbaa !9
  %213 = load i32, ptr %25, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %struct.REMDTempStr, ptr %212, i64 %214
  %216 = getelementptr inbounds %struct.REMDTempStr, ptr %215, i32 0, i32 1
  %217 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %211, ptr noundef @.str.16, ptr noundef %216, ptr noundef %24) #8
  %218 = icmp eq i32 %217, -1
  br i1 %218, label %219, label %221

219:                                              ; preds = %207
  %220 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  call void @exit(i32 noundef 1) #11
  unreachable

221:                                              ; preds = %207
  %222 = load ptr, ptr %19, align 8, !tbaa !9
  %223 = load i32, ptr %25, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds %struct.REMDTempStr, ptr %222, i64 %224
  %226 = getelementptr inbounds %struct.REMDTempStr, ptr %225, i32 0, i32 1
  %227 = load double, ptr %226, align 8, !tbaa !16
  %228 = fmul double %227, 0x3F60477813D6DA3E
  store double %228, ptr %226, align 8, !tbaa !16
  %229 = load i32, ptr %25, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  %231 = load ptr, ptr %19, align 8, !tbaa !9
  %232 = load i32, ptr %25, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds %struct.REMDTempStr, ptr %231, i64 %233
  %235 = getelementptr inbounds %struct.REMDTempStr, ptr %234, i32 0, i32 0
  store i32 %230, ptr %235, align 8, !tbaa !19
  %236 = load i32, ptr %24, align 4, !tbaa !5
  %237 = load i32, ptr %23, align 4, !tbaa !5
  %238 = add nsw i32 %237, %236
  store i32 %238, ptr %23, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %221
  %240 = load i32, ptr %25, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %25, align 4, !tbaa !5
  br label %202, !llvm.loop !20

242:                                              ; preds = %206
  %243 = load ptr, ptr %13, align 8, !tbaa !9
  %244 = load i32, ptr %23, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds i8, ptr %243, i64 %245
  %247 = getelementptr inbounds %struct.REMDTempStr, ptr %18, i32 0, i32 1
  %248 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %246, ptr noundef @.str.18, ptr noundef %247) #8
  %249 = icmp ne i32 %248, -1
  br i1 %249, label %250, label %252

250:                                              ; preds = %242
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  call void @exit(i32 noundef 1) #11
  unreachable

252:                                              ; preds = %242
  %253 = load ptr, ptr %20, align 8, !tbaa !9
  %254 = load ptr, ptr %13, align 8, !tbaa !9
  %255 = load ptr, ptr %13, align 8, !tbaa !9
  %256 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  %257 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %253, ptr noundef @.str.20, ptr noundef %254, ptr noundef %255, ptr noundef %256)
  %258 = load ptr, ptr %20, align 8, !tbaa !9
  %259 = load ptr, ptr %13, align 8, !tbaa !9
  %260 = load ptr, ptr %13, align 8, !tbaa !9
  %261 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  %262 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %258, ptr noundef @.str.20, ptr noundef %259, ptr noundef %260, ptr noundef %261)
  %263 = load ptr, ptr %20, align 8, !tbaa !9
  %264 = call i32 @fclose(ptr noundef %263)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %265

265:                                              ; preds = %353, %252
  %266 = load i32, ptr %26, align 4, !tbaa !5
  %267 = load i32, ptr %10, align 4, !tbaa !5
  %268 = icmp slt i32 %266, %267
  br i1 %268, label %270, label %269

269:                                              ; preds = %265
  store i32 14, ptr %27, align 4
  br label %356

270:                                              ; preds = %265
  %271 = load ptr, ptr %19, align 8, !tbaa !9
  %272 = load i32, ptr %26, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds %struct.REMDTempStr, ptr %271, i64 %273
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %274, i64 16, i1 false), !tbaa.struct !21
  %275 = load i32, ptr %8, align 4, !tbaa !5
  %276 = icmp slt i32 %275, 0
  br i1 %276, label %277, label %278

277:                                              ; preds = %270
  store i32 8, ptr %27, align 4
  br label %356

278:                                              ; preds = %270
  %279 = load i32, ptr %8, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %280
  %282 = load ptr, ptr %281, align 8, !tbaa !9
  %283 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %282, ptr noundef @.str.21) #8
  %284 = load i32, ptr %8, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %286
  %288 = load ptr, ptr %287, align 8, !tbaa !9
  %289 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %288, ptr noundef @.str.22) #8
  %290 = load i32, ptr %8, align 4, !tbaa !5
  %291 = add nsw i32 %290, 2
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %292
  %294 = load ptr, ptr %293, align 8, !tbaa !9
  %295 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  %296 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %294, ptr noundef @.str.7, ptr noundef %295) #8
  %297 = load i32, ptr %8, align 4, !tbaa !5
  %298 = add nsw i32 %297, 3
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %299
  %301 = load ptr, ptr %300, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.REMDTempStr, ptr %18, i32 0, i32 1
  %303 = load double, ptr %302, align 8, !tbaa !16
  %304 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %301, ptr noundef @.str.18, double noundef %303) #8
  %305 = load i32, ptr %8, align 4, !tbaa !5
  %306 = add nsw i32 %305, 4
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %307
  %309 = load ptr, ptr %308, align 8, !tbaa !9
  %310 = getelementptr inbounds %struct.REMDTempStr, ptr %18, i32 0, i32 0
  %311 = load i32, ptr %310, align 8, !tbaa !19
  %312 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %309, ptr noundef @.str.23, i32 noundef %311) #8
  %313 = load i32, ptr %8, align 4, !tbaa !5
  %314 = add nsw i32 %313, 5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %315
  %317 = load ptr, ptr %316, align 8, !tbaa !9
  %318 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  %319 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %317, ptr noundef @.str.7, ptr noundef %318) #8
  %320 = load i32, ptr %8, align 4, !tbaa !5
  %321 = add nsw i32 %320, 6
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %322
  %324 = load ptr, ptr %323, align 8, !tbaa !9
  %325 = load i32, ptr %26, align 4, !tbaa !5
  %326 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %324, ptr noundef @.str.23, i32 noundef %325) #8
  %327 = load i32, ptr %8, align 4, !tbaa !5
  %328 = add nsw i32 %327, 7
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %329
  store ptr null, ptr %330, align 8, !tbaa !9
  %331 = call i32 @fork() #8
  store i32 %331, ptr %6, align 4, !tbaa !5
  %332 = icmp eq i32 %331, 0
  br i1 %332, label %333, label %352

333:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #8
  %334 = getelementptr inbounds [64 x i8], ptr %28, i64 0, i64 0
  %335 = load i32, ptr %26, align 4, !tbaa !5
  %336 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %334, ptr noundef @.str.24, i32 noundef %335) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %337 = getelementptr inbounds [64 x i8], ptr %28, i64 0, i64 0
  %338 = call i32 (ptr, i32, ...) @open(ptr noundef %337, i32 noundef 66, i32 noundef 384)
  store i32 %338, ptr %29, align 4, !tbaa !5
  %339 = load i32, ptr %29, align 4, !tbaa !5
  %340 = call i32 @dup2(i32 noundef %339, i32 noundef 1) #8
  %341 = load i32, ptr %29, align 4, !tbaa !5
  %342 = call i32 @close(i32 noundef %341)
  %343 = load i32, ptr %26, align 4, !tbaa !5
  %344 = add nsw i32 1, %343
  %345 = call i32 @sleep(i32 noundef %344)
  %346 = load ptr, ptr %14, align 8, !tbaa !9
  %347 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 0
  %348 = call i32 @execv(ptr noundef %346, ptr noundef %347) #8
  %349 = icmp slt i32 %348, 0
  br i1 %349, label %350, label %351

350:                                              ; preds = %333
  call void @perror(ptr noundef @.str)
  br label %351

351:                                              ; preds = %350, %333
  call void @exit(i32 noundef 0) #11
  unreachable

352:                                              ; preds = %278
  br label %353

353:                                              ; preds = %352
  %354 = load i32, ptr %26, align 4, !tbaa !5
  %355 = add nsw i32 %354, 1
  store i32 %355, ptr %26, align 4, !tbaa !5
  br label %265, !llvm.loop !23

356:                                              ; preds = %277, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  %357 = load i32, ptr %27, align 4
  switch i32 %357, label %403 [
    i32 14, label %358
    i32 8, label %87
  ]

358:                                              ; preds = %356
  %359 = getelementptr inbounds [20 x i8], ptr %30, i64 0, i64 0
  %360 = load i32, ptr %10, align 4, !tbaa !5
  %361 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %359, ptr noundef @.str.23, i32 noundef %360) #8
  %362 = getelementptr inbounds [20 x i8], ptr %31, i64 0, i64 0
  %363 = call i64 @time(ptr noundef null) #8
  %364 = trunc i64 %363 to i32
  %365 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %362, ptr noundef @.str.23, i32 noundef %364) #8
  store ptr @.str.25, ptr %32, align 8, !tbaa !9
  %366 = getelementptr inbounds ptr, ptr %32, i64 1
  %367 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  store ptr %367, ptr %366, align 8, !tbaa !9
  %368 = getelementptr inbounds ptr, ptr %32, i64 2
  %369 = getelementptr inbounds [20 x i8], ptr %30, i64 0, i64 0
  store ptr %369, ptr %368, align 8, !tbaa !9
  %370 = getelementptr inbounds ptr, ptr %32, i64 3
  %371 = getelementptr inbounds [20 x i8], ptr %31, i64 0, i64 0
  store ptr %371, ptr %370, align 8, !tbaa !9
  %372 = getelementptr inbounds ptr, ptr %32, i64 4
  store ptr null, ptr %372, align 8, !tbaa !9
  %373 = load ptr, ptr %15, align 8, !tbaa !9
  %374 = getelementptr inbounds [5 x ptr], ptr %32, i64 0, i64 0
  %375 = call i32 @execv(ptr noundef %373, ptr noundef %374) #8
  %376 = icmp slt i32 %375, 0
  br i1 %376, label %377, label %378

377:                                              ; preds = %358
  call void @perror(ptr noundef @.str)
  br label %378

378:                                              ; preds = %377, %358
  br label %379

379:                                              ; preds = %382, %378
  %380 = call i32 @wait(ptr noundef %9)
  store i32 %380, ptr %7, align 4, !tbaa !5
  %381 = icmp sgt i32 %380, 0
  br i1 %381, label %382, label %383

382:                                              ; preds = %379
  br label %379, !llvm.loop !24

383:                                              ; preds = %379
  %384 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %384) #8
  %385 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %385) #8
  %386 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %386) #8
  %387 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %387) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %388

388:                                              ; preds = %397, %383
  %389 = load i32, ptr %33, align 4, !tbaa !5
  %390 = icmp slt i32 %389, 32
  br i1 %390, label %392, label %391

391:                                              ; preds = %388
  store i32 19, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %400

392:                                              ; preds = %388
  %393 = load i32, ptr %33, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %394
  %396 = load ptr, ptr %395, align 8, !tbaa !9
  call void @free(ptr noundef %396) #8
  br label %397

397:                                              ; preds = %392
  %398 = load i32, ptr %33, align 4, !tbaa !5
  %399 = add nsw i32 %398, 1
  store i32 %399, ptr %33, align 4, !tbaa !5
  br label %388, !llvm.loop !25

400:                                              ; preds = %391
  %401 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %401) #8
  store i32 0, ptr %3, align 4
  store i32 1, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %402 = load i32, ptr %3, align 4
  ret i32 %402

403:                                              ; preds = %356
  unreachable
}

; 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
declare ptr @getcwd(ptr noundef, i64 noundef) #3

declare void @perror(ptr noundef) #4

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

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

declare i32 @printf(ptr noundef, ...) #4

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #3

declare i32 @fclose(ptr noundef) #4

; 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) #7

; Function Attrs: nounwind
declare i32 @fork() #3

declare i32 @open(ptr noundef, i32 noundef, ...) #4

; Function Attrs: nounwind
declare i32 @dup2(i32 noundef, i32 noundef) #3

declare i32 @close(i32 noundef) #4

declare i32 @sleep(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @execv(ptr noundef, ptr noundef) #3

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

declare i32 @wait(ptr noundef) #4

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

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 "no-trapping-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 = { "no-trapping-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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0,1) }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !18, i64 8}
!17 = !{!"REMDTempStr", !6, i64 0, !18, i64 8}
!18 = !{!"double", !7, i64 0}
!19 = !{!17, !6, i64 0}
!20 = distinct !{!20, !12}
!21 = !{i64 0, i64 4, !5, i64 8, i64 8, !22}
!22 = !{!18, !18, i64 0}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


; 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"

%struct.REMDTempStr = type { i32, double }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [32 x i8], align 16
  %6 = alloca [32 x i8], align 16
  %7 = alloca [32 x ptr], align 16
  %8 = alloca %struct.REMDTempStr, align 8
  %9 = alloca i32, align 4
  %10 = alloca [64 x i8], align 16
  %11 = alloca [20 x i8], align 16
  %12 = alloca [20 x i8], align 16
  %13 = alloca [5 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #11
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #11
  %14 = tail call noalias dereferenceable_or_null(1024) ptr @calloc(i64 noundef 1024, i64 noundef 1) #12
  %15 = tail call noalias dereferenceable_or_null(1024) ptr @calloc(i64 noundef 1024, i64 noundef 1) #12
  %16 = tail call noalias dereferenceable_or_null(1024) ptr @calloc(i64 noundef 1024, i64 noundef 1) #12
  %17 = tail call noalias dereferenceable_or_null(1024) ptr @calloc(i64 noundef 1024, i64 noundef 1) #12
  %18 = tail call ptr @getcwd(ptr noundef %17, i64 noundef 1024) #11
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %.preheader119

20:                                               ; preds = %2
  tail call void @perror(ptr noundef nonnull @.str) #13
  br label %.preheader119

.preheader119:                                    ; preds = %20, %2
  %21 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  store ptr %21, ptr %7, align 16, !tbaa !9
  %22 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %23 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %22, ptr %23, align 8, !tbaa !9
  %24 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %25 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %24, ptr %25, align 16, !tbaa !9
  %26 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %27 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %26, ptr %27, align 8, !tbaa !9
  %28 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %29 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %28, ptr %29, align 16, !tbaa !9
  %30 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %31 = getelementptr inbounds i8, ptr %7, i64 40
  store ptr %30, ptr %31, align 8, !tbaa !9
  %32 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %33 = getelementptr inbounds i8, ptr %7, i64 48
  store ptr %32, ptr %33, align 16, !tbaa !9
  %34 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %35 = getelementptr inbounds i8, ptr %7, i64 56
  store ptr %34, ptr %35, align 8, !tbaa !9
  %36 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %37 = getelementptr inbounds i8, ptr %7, i64 64
  store ptr %36, ptr %37, align 16, !tbaa !9
  %38 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %39 = getelementptr inbounds i8, ptr %7, i64 72
  store ptr %38, ptr %39, align 8, !tbaa !9
  %40 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %41 = getelementptr inbounds i8, ptr %7, i64 80
  store ptr %40, ptr %41, align 16, !tbaa !9
  %42 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %43 = getelementptr inbounds i8, ptr %7, i64 88
  store ptr %42, ptr %43, align 8, !tbaa !9
  %44 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %45 = getelementptr inbounds i8, ptr %7, i64 96
  store ptr %44, ptr %45, align 16, !tbaa !9
  %46 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %47 = getelementptr inbounds i8, ptr %7, i64 104
  store ptr %46, ptr %47, align 8, !tbaa !9
  %48 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %49 = getelementptr inbounds i8, ptr %7, i64 112
  store ptr %48, ptr %49, align 16, !tbaa !9
  %50 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %51 = getelementptr inbounds i8, ptr %7, i64 120
  store ptr %50, ptr %51, align 8, !tbaa !9
  %52 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %53 = getelementptr inbounds i8, ptr %7, i64 128
  store ptr %52, ptr %53, align 16, !tbaa !9
  %54 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %55 = getelementptr inbounds i8, ptr %7, i64 136
  store ptr %54, ptr %55, align 8, !tbaa !9
  %56 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %57 = getelementptr inbounds i8, ptr %7, i64 144
  store ptr %56, ptr %57, align 16, !tbaa !9
  %58 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %59 = getelementptr inbounds i8, ptr %7, i64 152
  store ptr %58, ptr %59, align 8, !tbaa !9
  %60 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %61 = getelementptr inbounds i8, ptr %7, i64 160
  store ptr %60, ptr %61, align 16, !tbaa !9
  %62 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %63 = getelementptr inbounds i8, ptr %7, i64 168
  store ptr %62, ptr %63, align 8, !tbaa !9
  %64 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %65 = getelementptr inbounds i8, ptr %7, i64 176
  store ptr %64, ptr %65, align 16, !tbaa !9
  %66 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %67 = getelementptr inbounds i8, ptr %7, i64 184
  store ptr %66, ptr %67, align 8, !tbaa !9
  %68 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %69 = getelementptr inbounds i8, ptr %7, i64 192
  store ptr %68, ptr %69, align 16, !tbaa !9
  %70 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %71 = getelementptr inbounds i8, ptr %7, i64 200
  store ptr %70, ptr %71, align 8, !tbaa !9
  %72 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %73 = getelementptr inbounds i8, ptr %7, i64 208
  store ptr %72, ptr %73, align 16, !tbaa !9
  %74 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %75 = getelementptr inbounds i8, ptr %7, i64 216
  store ptr %74, ptr %75, align 8, !tbaa !9
  %76 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %77 = getelementptr inbounds i8, ptr %7, i64 224
  store ptr %76, ptr %77, align 16, !tbaa !9
  %78 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %79 = getelementptr inbounds i8, ptr %7, i64 232
  store ptr %78, ptr %79, align 8, !tbaa !9
  %80 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %81 = getelementptr inbounds i8, ptr %7, i64 240
  store ptr %80, ptr %81, align 16, !tbaa !9
  %82 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 64, i64 noundef 1) #12
  %83 = getelementptr inbounds i8, ptr %7, i64 248
  store ptr %82, ptr %83, align 8, !tbaa !9
  %84 = icmp sgt i32 %0, 1
  br i1 %84, label %.lr.ph136.preheader, label %._crit_edge

.lr.ph136.preheader:                              ; preds = %.preheader119
  %85 = zext nneg i32 %0 to i64
  br label %.lr.ph136

.lr.ph136:                                        ; preds = %.lr.ph136.preheader, %.critedge
  %.0107135 = phi i32 [ %126, %.critedge ], [ 1, %.lr.ph136.preheader ]
  %.0109134 = phi i32 [ %.2, %.critedge ], [ 0, %.lr.ph136.preheader ]
  %86 = sext i32 %.0107135 to i64
  %87 = getelementptr inbounds ptr, ptr %1, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = icmp eq i8 %89, 45
  br i1 %90, label %91, label %.critedge

91:                                               ; preds = %.lr.ph136
  %92 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %88, ptr noundef nonnull dereferenceable(1) @.str.1) #14
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %.loopexit120, label %94

94:                                               ; preds = %91
  %95 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %88, ptr noundef nonnull dereferenceable(1) @.str.2) #14
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %.loopexit120, label %101

.loopexit120:                                     ; preds = %91, %94, %.lr.ph146.split.us
  %97 = load ptr, ptr %1, align 8, !tbaa !9
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %97)
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  call void @exit(i32 noundef 0) #15
  unreachable

101:                                              ; preds = %94
  %102 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %88, ptr noundef nonnull dereferenceable(1) @.str.6) #14
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %108

104:                                              ; preds = %101
  %105 = getelementptr i8, ptr %87, i64 8
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %106) #11
  br label %.critedge

108:                                              ; preds = %101
  %109 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %88, ptr noundef nonnull dereferenceable(1) @.str.8) #14
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %.preheader, label %.critedge

.preheader:                                       ; preds = %108
  %111 = add nsw i32 %.0107135, 1
  %112 = icmp slt i32 %111, %0
  br i1 %112, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %.preheader
  %113 = sext i32 %111 to i64
  %114 = sub i32 %0, %.0107135
  %invariant.op = sub nsw i64 %85, %86
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %118
  %indvars.iv154 = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next155, %118 ]
  %indvars.iv = phi i64 [ %113, %.lr.ph.preheader ], [ %indvars.iv.next, %118 ]
  %115 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %116, ptr noundef nonnull dereferenceable(1) @.str.9) #14
  %.not115 = icmp eq i32 %117, 0
  br i1 %.not115, label %.critedge.loopexit.split.loop.exit, label %118

118:                                              ; preds = %.lr.ph
  %119 = add nsw i64 %indvars.iv154, -1
  %120 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %121, ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %116) #11
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %123 = icmp slt i64 %indvars.iv.next155, %invariant.op
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  br i1 %123, label %.lr.ph, label %.critedge, !llvm.loop !12

.critedge.loopexit.split.loop.exit:               ; preds = %.lr.ph
  %124 = trunc nsw i64 %indvars.iv to i32
  %125 = trunc nuw nsw i64 %indvars.iv154 to i32
  br label %.critedge

.critedge:                                        ; preds = %118, %.critedge.loopexit.split.loop.exit, %.preheader, %.lr.ph136, %104, %108
  %.2 = phi i32 [ %.0109134, %104 ], [ %.0109134, %108 ], [ %.0109134, %.lr.ph136 ], [ 1, %.preheader ], [ %125, %.critedge.loopexit.split.loop.exit ], [ %114, %118 ]
  %.1 = phi i32 [ %.0107135, %104 ], [ %.0107135, %108 ], [ %.0107135, %.lr.ph136 ], [ %111, %.preheader ], [ %124, %.critedge.loopexit.split.loop.exit ], [ %0, %118 ]
  %126 = add nsw i32 %.1, 1
  %127 = icmp slt i32 %126, %0
  br i1 %127, label %.lr.ph136, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.critedge, %.preheader119
  %.0109.lcssa = phi i32 [ 0, %.preheader119 ], [ %.2, %.critedge ]
  %128 = add nsw i32 %.0109.lcssa, -1
  %129 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %17) #11
  %130 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %17) #11
  %131 = tail call noalias ptr @fopen(ptr noundef %14, ptr noundef nonnull @.str.12)
  %132 = icmp eq ptr %131, null
  br i1 %132, label %133, label %135

133:                                              ; preds = %._crit_edge
  %134 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %14)
  tail call void @exit(i32 noundef 1) #15
  unreachable

135:                                              ; preds = %._crit_edge
  %136 = tail call ptr @fgets(ptr noundef %14, i32 noundef 1024, ptr noundef nonnull %131)
  %137 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %131, ptr noundef nonnull @.str.14, ptr noundef %14, ptr noundef %14, ptr noundef nonnull %4) #11
  store i32 0, ptr %9, align 4, !tbaa !5
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = call noalias ptr @calloc(i64 noundef %139, i64 noundef 16) #12
  %141 = call ptr @fgets(ptr noundef %14, i32 noundef 1024, ptr noundef nonnull %131)
  %142 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %14, ptr noundef nonnull @.str.15, ptr noundef %17, ptr noundef %17, ptr noundef nonnull %9) #11
  %143 = load i32, ptr %9, align 4, !tbaa !5
  %144 = load i32, ptr %4, align 4, !tbaa !5
  %145 = icmp sgt i32 %144, 0
  br i1 %145, label %.lr.ph141, label %._crit_edge142

._crit_edge142:                                   ; preds = %158, %135
  %.0106.lcssa = phi i32 [ %143, %135 ], [ %163, %158 ]
  %146 = sext i32 %.0106.lcssa to i64
  %147 = getelementptr inbounds i8, ptr %14, i64 %146
  %148 = getelementptr inbounds i8, ptr %8, i64 8
  %149 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %147, ptr noundef nonnull @.str.18, ptr noundef nonnull %148) #11
  %.not = icmp eq i32 %149, -1
  br i1 %.not, label %169, label %167

.lr.ph141:                                        ; preds = %135, %158
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %158 ], [ 0, %135 ]
  %.0106138 = phi i32 [ %163, %158 ], [ %143, %135 ]
  %150 = sext i32 %.0106138 to i64
  %151 = getelementptr inbounds i8, ptr %14, i64 %150
  %152 = getelementptr inbounds %struct.REMDTempStr, ptr %140, i64 %indvars.iv159
  %153 = getelementptr inbounds i8, ptr %152, i64 8
  %154 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %151, ptr noundef nonnull @.str.16, ptr noundef nonnull %153, ptr noundef nonnull %9) #11
  %155 = icmp eq i32 %154, -1
  br i1 %155, label %156, label %158

156:                                              ; preds = %.lr.ph141
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  call void @exit(i32 noundef 1) #15
  unreachable

158:                                              ; preds = %.lr.ph141
  %159 = load double, ptr %153, align 8, !tbaa !15
  %160 = fmul double %159, 0x3F60477813D6DA3E
  store double %160, ptr %153, align 8, !tbaa !15
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %161 = trunc nuw nsw i64 %indvars.iv.next160 to i32
  store i32 %161, ptr %152, align 8, !tbaa !18
  %162 = load i32, ptr %9, align 4, !tbaa !5
  %163 = add nsw i32 %162, %.0106138
  %164 = load i32, ptr %4, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = icmp slt i64 %indvars.iv.next160, %165
  br i1 %166, label %.lr.ph141, label %._crit_edge142, !llvm.loop !19

167:                                              ; preds = %._crit_edge142
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  call void @exit(i32 noundef 1) #15
  unreachable

169:                                              ; preds = %._crit_edge142
  %170 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %131, ptr noundef nonnull @.str.20, ptr noundef %14, ptr noundef %14, ptr noundef nonnull %5) #11
  %171 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %131, ptr noundef nonnull @.str.20, ptr noundef %14, ptr noundef %14, ptr noundef nonnull %6) #11
  %172 = call i32 @fclose(ptr noundef nonnull %131)
  %173 = load i32, ptr %4, align 4, !tbaa !5
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %.lr.ph146, label %._crit_edge147

.lr.ph146:                                        ; preds = %169
  %175 = icmp slt i32 %.0109.lcssa, 1
  %176 = zext nneg i32 %128 to i64
  %177 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %176
  %178 = zext nneg i32 %.0109.lcssa to i64
  %179 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %178
  %180 = add nuw nsw i32 %.0109.lcssa, 1
  %181 = zext nneg i32 %180 to i64
  %182 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %181
  %183 = add nuw nsw i32 %.0109.lcssa, 2
  %184 = zext nneg i32 %183 to i64
  %185 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %184
  %186 = add nuw nsw i32 %.0109.lcssa, 3
  %187 = zext nneg i32 %186 to i64
  %188 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %187
  %189 = add nuw nsw i32 %.0109.lcssa, 4
  %190 = zext nneg i32 %189 to i64
  %191 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %190
  %192 = add nuw nsw i32 %.0109.lcssa, 5
  %193 = zext nneg i32 %192 to i64
  %194 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %193
  %195 = add nuw nsw i32 %.0109.lcssa, 6
  %196 = zext nneg i32 %195 to i64
  %197 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %196
  br i1 %175, label %.lr.ph146.split.us, label %.lr.ph146.split

.lr.ph146.split.us:                               ; preds = %.lr.ph146
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %140, i64 16, i1 false), !tbaa.struct !20
  br label %.loopexit120

.lr.ph146.split:                                  ; preds = %.lr.ph146, %229
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %229 ], [ 0, %.lr.ph146 ]
  %198 = getelementptr inbounds %struct.REMDTempStr, ptr %140, i64 %indvars.iv162
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %198, i64 16, i1 false), !tbaa.struct !20
  %199 = load ptr, ptr %177, align 8, !tbaa !9
  %200 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %199, ptr noundef nonnull dereferenceable(1) @.str.21) #11
  %201 = load ptr, ptr %179, align 8, !tbaa !9
  %202 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %201, ptr noundef nonnull dereferenceable(1) @.str.22) #11
  %203 = load ptr, ptr %182, align 8, !tbaa !9
  %204 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %203, ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull %5) #11
  %205 = load ptr, ptr %185, align 8, !tbaa !9
  %206 = load double, ptr %148, align 8, !tbaa !15
  %207 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %205, ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %206) #11
  %208 = load ptr, ptr %188, align 8, !tbaa !9
  %209 = load i32, ptr %8, align 8, !tbaa !18
  %210 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %208, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %209) #11
  %211 = load ptr, ptr %191, align 8, !tbaa !9
  %212 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %211, ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull %6) #11
  %213 = load ptr, ptr %194, align 8, !tbaa !9
  %214 = trunc nuw nsw i64 %indvars.iv162 to i32
  %215 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %213, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %214) #11
  store ptr null, ptr %197, align 8, !tbaa !9
  %216 = call i32 @fork() #11
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %229

218:                                              ; preds = %.lr.ph146.split
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #11
  %219 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %10, ptr noundef nonnull dereferenceable(1) @.str.24, i32 noundef %214) #11
  %220 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull %10, i32 noundef 66, i32 noundef 384) #11
  %221 = call i32 @dup2(i32 noundef %220, i32 noundef 1) #11
  %222 = call i32 @close(i32 noundef %220) #11
  %223 = add nuw nsw i32 %214, 1
  %224 = call i32 @sleep(i32 noundef %223) #11
  %225 = call i32 @execv(ptr noundef %15, ptr noundef nonnull %7) #11
  %226 = icmp slt i32 %225, 0
  br i1 %226, label %227, label %228

227:                                              ; preds = %218
  call void @perror(ptr noundef nonnull @.str) #13
  br label %228

228:                                              ; preds = %227, %218
  call void @exit(i32 noundef 0) #15
  unreachable

229:                                              ; preds = %.lr.ph146.split
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %230 = load i32, ptr %4, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = icmp slt i64 %indvars.iv.next163, %231
  br i1 %232, label %.lr.ph146.split, label %._crit_edge147, !llvm.loop !22

._crit_edge147:                                   ; preds = %229, %169
  %.lcssa = phi i32 [ %173, %169 ], [ %230, %229 ]
  %233 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %.lcssa) #11
  %234 = call i64 @time(ptr noundef null) #11
  %235 = trunc i64 %234 to i32
  %236 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %235) #11
  store ptr @.str.25, ptr %13, align 16, !tbaa !9
  %237 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %5, ptr %237, align 8, !tbaa !9
  %238 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %11, ptr %238, align 16, !tbaa !9
  %239 = getelementptr inbounds i8, ptr %13, i64 24
  store ptr %12, ptr %239, align 8, !tbaa !9
  %240 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr null, ptr %240, align 16, !tbaa !9
  %241 = call i32 @execv(ptr noundef %16, ptr noundef nonnull %13) #11
  %242 = icmp slt i32 %241, 0
  br i1 %242, label %243, label %.preheader181

243:                                              ; preds = %._crit_edge147
  call void @perror(ptr noundef nonnull @.str) #13
  br label %.preheader181

.preheader181:                                    ; preds = %243, %._crit_edge147
  br label %244

244:                                              ; preds = %.preheader181, %244
  %245 = call i32 @wait(ptr noundef nonnull %3) #11
  %246 = icmp sgt i32 %245, 0
  br i1 %246, label %244, label %247, !llvm.loop !23

247:                                              ; preds = %244
  call void @free(ptr noundef %14) #11
  call void @free(ptr noundef %15) #11
  call void @free(ptr noundef %16) #11
  call void @free(ptr noundef %17) #11
  %248 = load ptr, ptr %7, align 16, !tbaa !9
  call void @free(ptr noundef %248) #11
  %249 = load ptr, ptr %23, align 8, !tbaa !9
  call void @free(ptr noundef %249) #11
  %250 = load ptr, ptr %25, align 16, !tbaa !9
  call void @free(ptr noundef %250) #11
  %251 = load ptr, ptr %27, align 8, !tbaa !9
  call void @free(ptr noundef %251) #11
  %252 = load ptr, ptr %29, align 16, !tbaa !9
  call void @free(ptr noundef %252) #11
  %253 = load ptr, ptr %31, align 8, !tbaa !9
  call void @free(ptr noundef %253) #11
  %254 = load ptr, ptr %33, align 16, !tbaa !9
  call void @free(ptr noundef %254) #11
  %255 = load ptr, ptr %35, align 8, !tbaa !9
  call void @free(ptr noundef %255) #11
  %256 = load ptr, ptr %37, align 16, !tbaa !9
  call void @free(ptr noundef %256) #11
  %257 = load ptr, ptr %39, align 8, !tbaa !9
  call void @free(ptr noundef %257) #11
  %258 = load ptr, ptr %41, align 16, !tbaa !9
  call void @free(ptr noundef %258) #11
  %259 = load ptr, ptr %43, align 8, !tbaa !9
  call void @free(ptr noundef %259) #11
  %260 = load ptr, ptr %45, align 16, !tbaa !9
  call void @free(ptr noundef %260) #11
  %261 = load ptr, ptr %47, align 8, !tbaa !9
  call void @free(ptr noundef %261) #11
  %262 = load ptr, ptr %49, align 16, !tbaa !9
  call void @free(ptr noundef %262) #11
  %263 = load ptr, ptr %51, align 8, !tbaa !9
  call void @free(ptr noundef %263) #11
  %264 = load ptr, ptr %53, align 16, !tbaa !9
  call void @free(ptr noundef %264) #11
  %265 = load ptr, ptr %55, align 8, !tbaa !9
  call void @free(ptr noundef %265) #11
  %266 = load ptr, ptr %57, align 16, !tbaa !9
  call void @free(ptr noundef %266) #11
  %267 = load ptr, ptr %59, align 8, !tbaa !9
  call void @free(ptr noundef %267) #11
  %268 = load ptr, ptr %61, align 16, !tbaa !9
  call void @free(ptr noundef %268) #11
  %269 = load ptr, ptr %63, align 8, !tbaa !9
  call void @free(ptr noundef %269) #11
  %270 = load ptr, ptr %65, align 16, !tbaa !9
  call void @free(ptr noundef %270) #11
  %271 = load ptr, ptr %67, align 8, !tbaa !9
  call void @free(ptr noundef %271) #11
  %272 = load ptr, ptr %69, align 16, !tbaa !9
  call void @free(ptr noundef %272) #11
  %273 = load ptr, ptr %71, align 8, !tbaa !9
  call void @free(ptr noundef %273) #11
  %274 = load ptr, ptr %73, align 16, !tbaa !9
  call void @free(ptr noundef %274) #11
  %275 = load ptr, ptr %75, align 8, !tbaa !9
  call void @free(ptr noundef %275) #11
  %276 = load ptr, ptr %77, align 16, !tbaa !9
  call void @free(ptr noundef %276) #11
  %277 = load ptr, ptr %79, align 8, !tbaa !9
  call void @free(ptr noundef %277) #11
  %278 = load ptr, ptr %81, align 16, !tbaa !9
  call void @free(ptr noundef %278) #11
  %279 = load ptr, ptr %83, align 8, !tbaa !9
  call void @free(ptr noundef %279) #11
  call void @free(ptr noundef %140) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  ret i32 0
}

; 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: nounwind
declare ptr @getcwd(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #4

; 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 nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #5

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #4

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #7

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress 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) #8

; Function Attrs: nofree nounwind
declare i32 @fork() local_unnamed_addr #4

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #9

; Function Attrs: nounwind
declare i32 @dup2(i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @close(i32 noundef) local_unnamed_addr #7

declare i32 @sleep(i32 noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare i32 @execv(ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare i32 @wait(ptr noundef) local_unnamed_addr #7

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

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 = { 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 = { 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 #4 = { 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 #5 = { 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 #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 = { "no-trapping-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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nofree "no-trapping-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 = { 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 #11 = { nounwind }
attributes #12 = { nounwind allocsize(0,1) }
attributes #13 = { cold }
attributes #14 = { nounwind willreturn memory(read) }
attributes #15 = { 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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !17, i64 8}
!16 = !{!"REMDTempStr", !6, i64 0, !17, i64 8}
!17 = !{!"double", !7, i64 0}
!18 = !{!16, !6, i64 0}
!19 = distinct !{!19, !13}
!20 = !{i64 0, i64 4, !5, i64 8, i64 8, !21}
!21 = !{!17, !17, i64 0}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}


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