; LLVM IR from mbheinen/bpa-ipf-tsp :: cflow (post_pvcurve)

; 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.CRIT = type { i32, [60 x i8], [60 x i8], [60 x i8], [60 x i8] }
%struct.FILENM = type { [12 x [60 x i8]], i32 }
%struct.MATRIX = type { i32, i32, i32, i32, [200 x i32], [500 x i32], [3 x [60 x i8]], [500 x [200 x ptr]] }

@stderr = external global ptr, align 8
@caselog_fp = external dso_local global ptr, align 8
@critical = external dso_local global [200 x %struct.CRIT], align 16
@concat.num_new_pre_cntg_files = external hidden global i32, align 4
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage_error_exit() #0

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

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @extract_dir(ptr noundef) #0

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

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @concat(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca [60 x i8], align 16
  %8 = alloca [60 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.FILENM, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 60, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 60, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 724, ptr %16) #5
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %18
  %20 = getelementptr inbounds %struct.CRIT, ptr %19, i32 0, i32 1
  %21 = getelementptr inbounds [60 x i8], ptr %20, i64 0, i64 0
  store ptr %21, ptr %10, align 8, !tbaa !9
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 1
  store i32 %22, ptr %23, align 4, !tbaa !11
  %24 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %25 = load ptr, ptr %10, align 8, !tbaa !9
  %26 = call ptr @strcpy(ptr noundef %24, ptr noundef %25) #5
  %27 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %28 = call ptr @strstr(ptr noundef %27, ptr noundef @.str.54) #6
  store ptr %28, ptr %9, align 8, !tbaa !9
  %29 = load ptr, ptr %9, align 8, !tbaa !9
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %34

31:                                               ; preds = %3
  %32 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %33 = call ptr @strstr(ptr noundef %32, ptr noundef @.str.55) #6
  store ptr %33, ptr %9, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %31, %3
  %35 = load ptr, ptr %9, align 8, !tbaa !9
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %41

37:                                               ; preds = %34
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = load ptr, ptr %10, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.56, ptr noundef %39) #5
  call void @usage_error_exit()
  br label %47

41:                                               ; preds = %34
  %42 = load ptr, ptr %9, align 8, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %42, i32 -1
  store ptr %43, ptr %9, align 8, !tbaa !9
  %44 = load ptr, ptr %9, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %44, i32 -1
  store ptr %45, ptr %9, align 8, !tbaa !9
  %46 = load ptr, ptr %9, align 8, !tbaa !9
  store i8 0, ptr %46, align 1, !tbaa !13
  br label %47

47:                                               ; preds = %41, %37
  %48 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %49 = call ptr @extract_dir(ptr noundef %48)
  store ptr %49, ptr %9, align 8, !tbaa !9
  %50 = getelementptr inbounds [60 x i8], ptr %8, i64 0, i64 0
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = call ptr @strcpy(ptr noundef %50, ptr noundef %51) #5
  %53 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %54 = getelementptr inbounds [12 x [60 x i8]], ptr %53, i64 0, i64 4
  %55 = getelementptr inbounds [60 x i8], ptr %54, i64 0, i64 0
  %56 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %57 = call ptr @strcpy(ptr noundef %55, ptr noundef %56) #5
  %58 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %59 = getelementptr inbounds [12 x [60 x i8]], ptr %58, i64 0, i64 5
  %60 = getelementptr inbounds [60 x i8], ptr %59, i64 0, i64 0
  %61 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %62 = call ptr @strcpy(ptr noundef %60, ptr noundef %61) #5
  %63 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %64 = getelementptr inbounds [12 x [60 x i8]], ptr %63, i64 0, i64 6
  %65 = getelementptr inbounds [60 x i8], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %67 = call ptr @strcpy(ptr noundef %65, ptr noundef %66) #5
  %68 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %69 = getelementptr inbounds [12 x [60 x i8]], ptr %68, i64 0, i64 7
  %70 = getelementptr inbounds [60 x i8], ptr %69, i64 0, i64 0
  %71 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %72 = call ptr @strcpy(ptr noundef %70, ptr noundef %71) #5
  %73 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %74 = getelementptr inbounds [12 x [60 x i8]], ptr %73, i64 0, i64 4
  %75 = getelementptr inbounds [60 x i8], ptr %74, i64 0, i64 0
  %76 = call ptr @strcat(ptr noundef %75, ptr noundef @.str.57) #5
  %77 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %78 = getelementptr inbounds [12 x [60 x i8]], ptr %77, i64 0, i64 5
  %79 = getelementptr inbounds [60 x i8], ptr %78, i64 0, i64 0
  %80 = call ptr @strcat(ptr noundef %79, ptr noundef @.str.58) #5
  %81 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %82 = getelementptr inbounds [12 x [60 x i8]], ptr %81, i64 0, i64 6
  %83 = getelementptr inbounds [60 x i8], ptr %82, i64 0, i64 0
  %84 = call ptr @strcat(ptr noundef %83, ptr noundef @.str.59) #5
  %85 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %86 = getelementptr inbounds [12 x [60 x i8]], ptr %85, i64 0, i64 7
  %87 = getelementptr inbounds [60 x i8], ptr %86, i64 0, i64 0
  %88 = call ptr @strcat(ptr noundef %87, ptr noundef @.str.60) #5
  %89 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %90 = getelementptr inbounds [12 x [60 x i8]], ptr %89, i64 0, i64 8
  %91 = getelementptr inbounds [60 x i8], ptr %90, i64 0, i64 0
  %92 = getelementptr inbounds [60 x i8], ptr %8, i64 0, i64 0
  %93 = call ptr @strcpy(ptr noundef %91, ptr noundef %92) #5
  %94 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %95 = getelementptr inbounds [12 x [60 x i8]], ptr %94, i64 0, i64 10
  %96 = getelementptr inbounds [60 x i8], ptr %95, i64 0, i64 0
  %97 = getelementptr inbounds [60 x i8], ptr %8, i64 0, i64 0
  %98 = call ptr @strcpy(ptr noundef %96, ptr noundef %97) #5
  %99 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %100 = getelementptr inbounds [12 x [60 x i8]], ptr %99, i64 0, i64 8
  %101 = getelementptr inbounds [60 x i8], ptr %100, i64 0, i64 0
  %102 = call ptr @strcat(ptr noundef %101, ptr noundef @.str.61) #5
  %103 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %104 = getelementptr inbounds [12 x [60 x i8]], ptr %103, i64 0, i64 10
  %105 = getelementptr inbounds [60 x i8], ptr %104, i64 0, i64 0
  %106 = call ptr @strcat(ptr noundef %105, ptr noundef @.str.62) #5
  %107 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %108 = call i64 @strlen(ptr noundef %107) #6
  %109 = trunc i64 %108 to i32
  store i32 %109, ptr %12, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %130, %47
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %113, label %128

113:                                              ; preds = %110
  %114 = call ptr @__ctype_b_loc() #7
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !5
  %117 = sub nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !13
  %121 = sext i8 %120 to i32
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i16, ptr %115, i64 %122
  %124 = load i16, ptr %123, align 2, !tbaa !14
  %125 = zext i16 %124 to i32
  %126 = and i32 %125, 2048
  %127 = icmp ne i32 %126, 0
  br label %128

128:                                              ; preds = %113, %110
  %129 = phi i1 [ false, %110 ], [ %127, %113 ]
  br i1 %129, label %130, label %133

130:                                              ; preds = %128
  %131 = load i32, ptr %12, align 4, !tbaa !5
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %12, align 4, !tbaa !5
  br label %110, !llvm.loop !16

133:                                              ; preds = %128
  br label %134

134:                                              ; preds = %147, %133
  %135 = load i32, ptr %12, align 4, !tbaa !5
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %137, label %145

137:                                              ; preds = %134
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = sub nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !13
  %143 = sext i8 %142 to i32
  %144 = icmp eq i32 %143, 67
  br label %145

145:                                              ; preds = %137, %134
  %146 = phi i1 [ false, %134 ], [ %144, %137 ]
  br i1 %146, label %147, label %150

147:                                              ; preds = %145
  %148 = load i32, ptr %12, align 4, !tbaa !5
  %149 = add nsw i32 %148, -1
  store i32 %149, ptr %12, align 4, !tbaa !5
  br label %134, !llvm.loop !18

150:                                              ; preds = %145
  %151 = load i32, ptr %12, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %12, align 4, !tbaa !5
  %153 = sext i32 %151 to i64
  %154 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 %153
  store i8 95, ptr %154, align 1, !tbaa !13
  %155 = load i32, ptr %12, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %12, align 4, !tbaa !5
  %157 = sext i32 %155 to i64
  %158 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 %157
  store i8 48, ptr %158, align 1, !tbaa !13
  %159 = load i32, ptr %12, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 %160
  store i8 0, ptr %161, align 1, !tbaa !13
  %162 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %163 = call ptr @extract_dir(ptr noundef %162)
  store ptr %163, ptr %9, align 8, !tbaa !9
  %164 = getelementptr inbounds [60 x i8], ptr %8, i64 0, i64 0
  %165 = load ptr, ptr %9, align 8, !tbaa !9
  %166 = call ptr @strcpy(ptr noundef %164, ptr noundef %165) #5
  %167 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %168 = getelementptr inbounds [12 x [60 x i8]], ptr %167, i64 0, i64 0
  %169 = getelementptr inbounds [60 x i8], ptr %168, i64 0, i64 0
  %170 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %171 = call ptr @strcpy(ptr noundef %169, ptr noundef %170) #5
  %172 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %173 = getelementptr inbounds [12 x [60 x i8]], ptr %172, i64 0, i64 1
  %174 = getelementptr inbounds [60 x i8], ptr %173, i64 0, i64 0
  %175 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %176 = call ptr @strcpy(ptr noundef %174, ptr noundef %175) #5
  %177 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %178 = getelementptr inbounds [12 x [60 x i8]], ptr %177, i64 0, i64 2
  %179 = getelementptr inbounds [60 x i8], ptr %178, i64 0, i64 0
  %180 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %181 = call ptr @strcpy(ptr noundef %179, ptr noundef %180) #5
  %182 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %183 = getelementptr inbounds [12 x [60 x i8]], ptr %182, i64 0, i64 3
  %184 = getelementptr inbounds [60 x i8], ptr %183, i64 0, i64 0
  %185 = getelementptr inbounds [60 x i8], ptr %7, i64 0, i64 0
  %186 = call ptr @strcpy(ptr noundef %184, ptr noundef %185) #5
  %187 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %188 = getelementptr inbounds [12 x [60 x i8]], ptr %187, i64 0, i64 0
  %189 = getelementptr inbounds [60 x i8], ptr %188, i64 0, i64 0
  %190 = call ptr @strcat(ptr noundef %189, ptr noundef @.str.57) #5
  %191 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %192 = getelementptr inbounds [12 x [60 x i8]], ptr %191, i64 0, i64 1
  %193 = getelementptr inbounds [60 x i8], ptr %192, i64 0, i64 0
  %194 = call ptr @strcat(ptr noundef %193, ptr noundef @.str.58) #5
  %195 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %196 = getelementptr inbounds [12 x [60 x i8]], ptr %195, i64 0, i64 2
  %197 = getelementptr inbounds [60 x i8], ptr %196, i64 0, i64 0
  %198 = call ptr @strcat(ptr noundef %197, ptr noundef @.str.59) #5
  %199 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %200 = getelementptr inbounds [12 x [60 x i8]], ptr %199, i64 0, i64 3
  %201 = getelementptr inbounds [60 x i8], ptr %200, i64 0, i64 0
  %202 = call ptr @strcat(ptr noundef %201, ptr noundef @.str.60) #5
  %203 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %204 = getelementptr inbounds [12 x [60 x i8]], ptr %203, i64 0, i64 9
  %205 = getelementptr inbounds [60 x i8], ptr %204, i64 0, i64 0
  %206 = getelementptr inbounds [60 x i8], ptr %8, i64 0, i64 0
  %207 = call ptr @strcpy(ptr noundef %205, ptr noundef %206) #5
  %208 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %209 = getelementptr inbounds [12 x [60 x i8]], ptr %208, i64 0, i64 11
  %210 = getelementptr inbounds [60 x i8], ptr %209, i64 0, i64 0
  %211 = getelementptr inbounds [60 x i8], ptr %8, i64 0, i64 0
  %212 = call ptr @strcpy(ptr noundef %210, ptr noundef %211) #5
  %213 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %214 = getelementptr inbounds [12 x [60 x i8]], ptr %213, i64 0, i64 9
  %215 = getelementptr inbounds [60 x i8], ptr %214, i64 0, i64 0
  %216 = call ptr @strcat(ptr noundef %215, ptr noundef @.str.61) #5
  %217 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %218 = getelementptr inbounds [12 x [60 x i8]], ptr %217, i64 0, i64 11
  %219 = getelementptr inbounds [60 x i8], ptr %218, i64 0, i64 0
  %220 = call ptr @strcat(ptr noundef %219, ptr noundef @.str.62) #5
  %221 = load ptr, ptr %6, align 8, !tbaa !9
  %222 = call i32 @load_pvdata(ptr noundef %16, ptr noundef %221)
  store i32 %222, ptr %13, align 4, !tbaa !5
  %223 = load i32, ptr @concat.num_new_pre_cntg_files, align 4, !tbaa !5
  %224 = icmp eq i32 %223, 0
  br i1 %224, label %225, label %229

225:                                              ; preds = %150
  %226 = load i32, ptr %4, align 4, !tbaa !5
  %227 = load ptr, ptr %6, align 8, !tbaa !9
  %228 = call i32 @analyze_dvdq(i32 noundef %226, i32 noundef 1, ptr noundef %227)
  store i32 %228, ptr %13, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %225, %150
  %230 = load ptr, ptr %6, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct.MATRIX, ptr %230, i64 4
  %232 = getelementptr inbounds %struct.MATRIX, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 8, !tbaa !19
  store i32 %233, ptr %14, align 4, !tbaa !5
  %234 = load ptr, ptr %6, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.MATRIX, ptr %234, i64 0
  %236 = getelementptr inbounds %struct.MATRIX, ptr %235, i32 0, i32 1
  %237 = load i32, ptr %236, align 4, !tbaa !21
  %238 = load ptr, ptr %6, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.MATRIX, ptr %238, i64 1
  %240 = getelementptr inbounds %struct.MATRIX, ptr %239, i32 0, i32 1
  %241 = load i32, ptr %240, align 4, !tbaa !21
  %242 = mul nsw i32 3, %241
  %243 = add nsw i32 %237, %242
  %244 = load ptr, ptr %6, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.MATRIX, ptr %244, i64 3
  %246 = getelementptr inbounds %struct.MATRIX, ptr %245, i32 0, i32 1
  %247 = load i32, ptr %246, align 4, !tbaa !21
  %248 = mul nsw i32 2, %247
  %249 = add nsw i32 %243, %248
  %250 = sub nsw i32 %249, 10
  %251 = load ptr, ptr %6, align 8, !tbaa !9
  %252 = getelementptr inbounds %struct.MATRIX, ptr %251, i64 3
  %253 = getelementptr inbounds %struct.MATRIX, ptr %252, i32 0, i32 2
  %254 = load i32, ptr %253, align 8, !tbaa !22
  %255 = sub nsw i32 %250, %254
  %256 = load ptr, ptr %6, align 8, !tbaa !9
  %257 = getelementptr inbounds %struct.MATRIX, ptr %256, i64 7
  %258 = getelementptr inbounds %struct.MATRIX, ptr %257, i32 0, i32 2
  %259 = load i32, ptr %258, align 8, !tbaa !22
  %260 = sub nsw i32 %255, %259
  store i32 %260, ptr %15, align 4, !tbaa !5
  %261 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef @.str.63) #5
  %263 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %265 = getelementptr inbounds [12 x [60 x i8]], ptr %264, i64 0, i64 8
  %266 = getelementptr inbounds [60 x i8], ptr %265, i64 0, i64 0
  %267 = load i32, ptr %14, align 4, !tbaa !5
  %268 = load i32, ptr %15, align 4, !tbaa !5
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.64, ptr noundef %266, i32 noundef %267, i32 noundef %268) #5
  %270 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 1
  %271 = load i32, ptr %270, align 4, !tbaa !11
  %272 = icmp eq i32 %271, 1
  br i1 %272, label %273, label %281

273:                                              ; preds = %229
  %274 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %275 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %276 = getelementptr inbounds [12 x [60 x i8]], ptr %275, i64 0, i64 10
  %277 = getelementptr inbounds [60 x i8], ptr %276, i64 0, i64 0
  %278 = load i32, ptr %14, align 4, !tbaa !5
  %279 = load i32, ptr %15, align 4, !tbaa !5
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.65, ptr noundef %277, i32 noundef %278, i32 noundef %279) #5
  br label %281

281:                                              ; preds = %273, %229
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %293, %281
  %283 = load i32, ptr %11, align 4, !tbaa !5
  %284 = icmp slt i32 %283, 1
  br i1 %284, label %285, label %296

285:                                              ; preds = %282
  %286 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %287 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %288 = load i32, ptr %11, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [12 x [60 x i8]], ptr %287, i64 0, i64 %289
  %291 = getelementptr inbounds [60 x i8], ptr %290, i64 0, i64 0
  %292 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %286, ptr noundef @.str.66, ptr noundef %291) #5
  br label %293

293:                                              ; preds = %285
  %294 = load i32, ptr %11, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %11, align 4, !tbaa !5
  br label %282, !llvm.loop !23

296:                                              ; preds = %282
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %297

297:                                              ; preds = %308, %296
  %298 = load i32, ptr %11, align 4, !tbaa !5
  %299 = icmp slt i32 %298, 4
  br i1 %299, label %300, label %311

300:                                              ; preds = %297
  %301 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %303 = load i32, ptr %11, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [12 x [60 x i8]], ptr %302, i64 0, i64 %304
  %306 = getelementptr inbounds [60 x i8], ptr %305, i64 0, i64 0
  %307 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %301, ptr noundef @.str.67, ptr noundef %306) #5
  br label %308

308:                                              ; preds = %300
  %309 = load i32, ptr %11, align 4, !tbaa !5
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %11, align 4, !tbaa !5
  br label %297, !llvm.loop !24

311:                                              ; preds = %297
  store i32 4, ptr %11, align 4, !tbaa !5
  br label %312

312:                                              ; preds = %323, %311
  %313 = load i32, ptr %11, align 4, !tbaa !5
  %314 = icmp slt i32 %313, 5
  br i1 %314, label %315, label %326

315:                                              ; preds = %312
  %316 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %317 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %318 = load i32, ptr %11, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [12 x [60 x i8]], ptr %317, i64 0, i64 %319
  %321 = getelementptr inbounds [60 x i8], ptr %320, i64 0, i64 0
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %316, ptr noundef @.str.68, ptr noundef %321) #5
  br label %323

323:                                              ; preds = %315
  %324 = load i32, ptr %11, align 4, !tbaa !5
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %11, align 4, !tbaa !5
  br label %312, !llvm.loop !25

326:                                              ; preds = %312
  store i32 5, ptr %11, align 4, !tbaa !5
  br label %327

327:                                              ; preds = %338, %326
  %328 = load i32, ptr %11, align 4, !tbaa !5
  %329 = icmp slt i32 %328, 8
  br i1 %329, label %330, label %341

330:                                              ; preds = %327
  %331 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %332 = getelementptr inbounds %struct.FILENM, ptr %16, i32 0, i32 0
  %333 = load i32, ptr %11, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [12 x [60 x i8]], ptr %332, i64 0, i64 %334
  %336 = getelementptr inbounds [60 x i8], ptr %335, i64 0, i64 0
  %337 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.67, ptr noundef %336) #5
  br label %338

338:                                              ; preds = %330
  %339 = load i32, ptr %11, align 4, !tbaa !5
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %11, align 4, !tbaa !5
  br label %327, !llvm.loop !26

341:                                              ; preds = %327
  %342 = load ptr, ptr @caselog_fp, align 8, !tbaa !9
  %343 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %342, ptr noundef @.str.63) #5
  %344 = load ptr, ptr %6, align 8, !tbaa !9
  %345 = call i32 @write_post_contingency(ptr noundef %16, ptr noundef %344)
  store i32 %345, ptr %13, align 4, !tbaa !5
  %346 = load i32, ptr %4, align 4, !tbaa !5
  %347 = load ptr, ptr %6, align 8, !tbaa !9
  %348 = call i32 @analyze_dvdq(i32 noundef %346, i32 noundef 5, ptr noundef %347)
  store i32 %348, ptr %13, align 4, !tbaa !5
  %349 = load i32, ptr @concat.num_new_pre_cntg_files, align 4, !tbaa !5
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr @concat.num_new_pre_cntg_files, align 4, !tbaa !5
  %351 = icmp eq i32 %349, 0
  br i1 %351, label %352, label %355

352:                                              ; preds = %341
  %353 = load ptr, ptr %6, align 8, !tbaa !9
  %354 = call i32 @write_pre_contingency(ptr noundef %16, ptr noundef %353)
  store i32 %354, ptr %13, align 4, !tbaa !5
  br label %355

355:                                              ; preds = %352, %341
  call void @llvm.lifetime.end.p0(i64 724, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %7) #5
  ret i32 0
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @load_pvdata(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @analyze_dvdq(i32 noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @write_post_contingency(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @write_pre_contingency(ptr noundef, ptr noundef) #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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 willreturn memory(none) "no-trapping-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 }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!12, !6, i64 720}
!12 = !{!"", !7, i64 0, !6, i64 720}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !6, i64 0}
!20 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !7, i64 16, !7, i64 816, !7, i64 2816, !7, i64 3000}
!21 = !{!20, !6, i64 4}
!22 = !{!20, !6, i64 8}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


; 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.CRIT = type { i32, [60 x i8], [60 x i8], [60 x i8], [60 x i8] }
%struct.FILENM = type { [12 x [60 x i8]], i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@caselog_fp = external dso_local local_unnamed_addr global ptr, align 8
@critical = external dso_local global [200 x %struct.CRIT], align 16
@concat.num_new_pre_cntg_files = external hidden local_unnamed_addr global i32, align 4
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage_error_exit() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @extract_dir(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @concat(i32 noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca [60 x i8], align 16
  %5 = alloca [60 x i8], align 16
  %6 = alloca %struct.FILENM, align 4
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 724, ptr nonnull %6) #7
  %7 = sext i32 %0 to i64
  %8 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %7, i32 1
  %9 = getelementptr inbounds i8, ptr %6, i64 720
  store i32 %1, ptr %9, align 4, !tbaa !5
  %10 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %8) #7
  %11 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.54) #8
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %.thread

13:                                               ; preds = %3
  %14 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.55) #8
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %.thread

16:                                               ; preds = %13
  %17 = load ptr, ptr @stderr, align 8, !tbaa !10
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.56, ptr noundef nonnull %8) #9
  call void @usage_error_exit()
  br label %20

.thread:                                          ; preds = %3, %13
  %.059 = phi ptr [ %14, %13 ], [ %11, %3 ]
  %19 = getelementptr inbounds i8, ptr %.059, i64 -2
  store i8 0, ptr %19, align 1, !tbaa !12
  br label %20

20:                                               ; preds = %.thread, %16
  %21 = call ptr @extract_dir(ptr noundef nonnull %4)
  %22 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %21) #7
  %23 = getelementptr inbounds i8, ptr %6, i64 240
  %24 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) %4) #7
  %25 = getelementptr inbounds i8, ptr %6, i64 300
  %26 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) %4) #7
  %27 = getelementptr inbounds i8, ptr %6, i64 360
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) %4) #7
  %29 = getelementptr inbounds i8, ptr %6, i64 420
  %30 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) %4) #7
  %31 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.57) #7
  %32 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.58) #7
  %33 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.59) #7
  %34 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) @.str.60) #7
  %35 = getelementptr inbounds i8, ptr %6, i64 480
  %36 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %35, ptr noundef nonnull dereferenceable(1) %5) #7
  %37 = getelementptr inbounds i8, ptr %6, i64 600
  %38 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %37, ptr noundef nonnull dereferenceable(1) %5) #7
  %39 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %35, ptr noundef nonnull dereferenceable(1) @.str.61) #7
  %40 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %37, ptr noundef nonnull dereferenceable(1) @.str.62) #7
  %41 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #8
  %42 = trunc i64 %41 to i32
  %43 = and i64 %41, 4294967295
  %smin = call i32 @llvm.smin.i32(i32 %42, i32 0)
  br label %44

44:                                               ; preds = %47, %20
  %indvars.iv = phi i64 [ %50, %47 ], [ %43, %20 ]
  %45 = trunc nuw i64 %indvars.iv to i32
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %47, label %.critedge

47:                                               ; preds = %44
  %48 = tail call ptr @__ctype_b_loc() #10
  %49 = load ptr, ptr %48, align 8, !tbaa !10
  %50 = add nsw i64 %indvars.iv, -1
  %51 = getelementptr inbounds [60 x i8], ptr %4, i64 0, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !12
  %53 = sext i8 %52 to i64
  %54 = getelementptr inbounds i16, ptr %49, i64 %53
  %55 = load i16, ptr %54, align 2, !tbaa !13
  %56 = and i16 %55, 2048
  %.not = icmp eq i16 %56, 0
  br i1 %.not, label %.critedge, label %44, !llvm.loop !15

.critedge:                                        ; preds = %44, %47
  %.051.lcssa = phi i32 [ %smin, %44 ], [ %45, %47 ]
  %57 = zext i32 %.051.lcssa to i64
  %smin67 = call i32 @llvm.smin.i32(i32 %.051.lcssa, i32 0)
  br label %58

58:                                               ; preds = %61, %.critedge
  %indvars.iv65 = phi i64 [ %62, %61 ], [ %57, %.critedge ]
  %59 = trunc nuw i64 %indvars.iv65 to i32
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %61, label %.critedge2

61:                                               ; preds = %58
  %62 = add nsw i64 %indvars.iv65, -1
  %63 = getelementptr inbounds [60 x i8], ptr %4, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !12
  %65 = icmp eq i8 %64, 67
  br i1 %65, label %58, label %.critedge2, !llvm.loop !17

.critedge2:                                       ; preds = %58, %61
  %.152.lcssa = phi i32 [ %smin67, %58 ], [ %59, %61 ]
  %66 = add nsw i32 %.152.lcssa, 1
  %67 = sext i32 %.152.lcssa to i64
  %68 = getelementptr inbounds [60 x i8], ptr %4, i64 0, i64 %67
  store i8 95, ptr %68, align 1, !tbaa !12
  %69 = add nsw i32 %.152.lcssa, 2
  %70 = sext i32 %66 to i64
  %71 = getelementptr inbounds [60 x i8], ptr %4, i64 0, i64 %70
  store i8 48, ptr %71, align 1, !tbaa !12
  %72 = sext i32 %69 to i64
  %73 = getelementptr inbounds [60 x i8], ptr %4, i64 0, i64 %72
  store i8 0, ptr %73, align 1, !tbaa !12
  %74 = call ptr @extract_dir(ptr noundef nonnull %4)
  %75 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %74) #7
  %76 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %4) #7
  %77 = getelementptr inbounds i8, ptr %6, i64 60
  %78 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %77, ptr noundef nonnull dereferenceable(1) %4) #7
  %79 = getelementptr inbounds i8, ptr %6, i64 120
  %80 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %79, ptr noundef nonnull dereferenceable(1) %4) #7
  %81 = getelementptr inbounds i8, ptr %6, i64 180
  %82 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %81, ptr noundef nonnull dereferenceable(1) %4) #7
  %83 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.57) #7
  %84 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %77, ptr noundef nonnull dereferenceable(1) @.str.58) #7
  %85 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %79, ptr noundef nonnull dereferenceable(1) @.str.59) #7
  %86 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %81, ptr noundef nonnull dereferenceable(1) @.str.60) #7
  %87 = getelementptr inbounds i8, ptr %6, i64 540
  %88 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %87, ptr noundef nonnull dereferenceable(1) %5) #7
  %89 = getelementptr inbounds i8, ptr %6, i64 660
  %90 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %89, ptr noundef nonnull dereferenceable(1) %5) #7
  %91 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %87, ptr noundef nonnull dereferenceable(1) @.str.61) #7
  %92 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %89, ptr noundef nonnull dereferenceable(1) @.str.62) #7
  %93 = call i32 @load_pvdata(ptr noundef nonnull %6, ptr noundef %2)
  %94 = load i32, ptr @concat.num_new_pre_cntg_files, align 4, !tbaa !18
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %.critedge2
  %97 = call i32 @analyze_dvdq(i32 noundef %0, i32 noundef 1, ptr noundef %2)
  br label %98

98:                                               ; preds = %96, %.critedge2
  %99 = getelementptr inbounds i8, ptr %2, i64 3212000
  %100 = load i32, ptr %99, align 8, !tbaa !19
  %101 = getelementptr inbounds i8, ptr %2, i64 4
  %102 = load i32, ptr %101, align 4, !tbaa !21
  %103 = getelementptr inbounds i8, ptr %2, i64 803004
  %104 = load i32, ptr %103, align 4, !tbaa !21
  %105 = mul nsw i32 %104, 3
  %106 = getelementptr inbounds i8, ptr %2, i64 2409004
  %107 = load i32, ptr %106, align 4, !tbaa !21
  %108 = shl nsw i32 %107, 1
  %109 = getelementptr inbounds i8, ptr %2, i64 2409008
  %110 = load i32, ptr %109, align 8, !tbaa !22
  %111 = getelementptr inbounds i8, ptr %2, i64 5621008
  %112 = load i32, ptr %111, align 8, !tbaa !22
  %.neg61 = add i32 %102, -10
  %113 = add i32 %.neg61, %105
  %114 = add i32 %113, %108
  %115 = add i32 %110, %112
  %116 = sub i32 %114, %115
  %117 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef nonnull @.str.63) #7
  %119 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef nonnull @.str.64, ptr noundef nonnull %35, i32 noundef %100, i32 noundef %116) #7
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %.critedge55

123:                                              ; preds = %98
  %124 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.65, ptr noundef nonnull %37, i32 noundef %100, i32 noundef %116) #7
  br label %.critedge55

.critedge55:                                      ; preds = %123, %98
  %126 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef nonnull @.str.66, ptr noundef nonnull %6) #7
  %128 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.67, ptr noundef nonnull %77) #7
  %130 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef nonnull @.str.67, ptr noundef nonnull %79) #7
  %132 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef nonnull @.str.67, ptr noundef nonnull %81) #7
  %134 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull @.str.68, ptr noundef nonnull %23) #7
  %136 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef nonnull @.str.67, ptr noundef nonnull %25) #7
  %138 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.67, ptr noundef nonnull %27) #7
  %140 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.67, ptr noundef nonnull %29) #7
  %142 = load ptr, ptr @caselog_fp, align 8, !tbaa !10
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.63) #7
  %144 = call i32 @write_post_contingency(ptr noundef nonnull %6, ptr noundef nonnull %2)
  %145 = call i32 @analyze_dvdq(i32 noundef %0, i32 noundef 5, ptr noundef nonnull %2)
  %146 = load i32, ptr @concat.num_new_pre_cntg_files, align 4, !tbaa !18
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr @concat.num_new_pre_cntg_files, align 4, !tbaa !18
  %148 = icmp eq i32 %146, 0
  br i1 %148, label %149, label %151

149:                                              ; preds = %.critedge55
  %150 = call i32 @write_pre_contingency(ptr noundef nonnull %6, ptr noundef nonnull %2)
  br label %151

151:                                              ; preds = %149, %.critedge55
  call void @llvm.lifetime.end.p0(i64 724, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %4) #7
  ret i32 0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @load_pvdata(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @analyze_dvdq(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @write_post_contingency(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @write_pre_contingency(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-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 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 #5 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { cold nounwind }
attributes #10 = { nounwind willreturn memory(none) }

!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, !9, i64 720}
!6 = !{!"", !7, i64 0, !9, i64 720}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!9, !9, i64 0}
!19 = !{!20, !9, i64 0}
!20 = !{!"", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !7, i64 16, !7, i64 816, !7, i64 2816, !7, i64 3000}
!21 = !{!20, !9, i64 4}
!22 = !{!20, !9, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass