; LLVM IR from themisvaltinos/Partitioned-Hash-Join :: tests (test_optimizer)

; 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.relation_statistics = type { ptr, i32 }
%struct.column_statistics = type { i32, i32, i32, i32 }
%struct.relation = type { ptr, i64, i64 }

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@num_relations = external dso_local global i32, align 4
@.str.36 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.testCopyStats = external hidden unnamed_addr constant [25 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [88 x i8], align 1

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

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

; 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 i64 @strlen(ptr noundef) #2

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @acutest_abort_() #3

declare i32 @fclose(ptr noundef) #4

declare ptr @loadRelation(ptr noundef) #4

declare ptr @gatherStatistics(ptr noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @testCopyStats() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca [128 x i8], align 16
  %6 = alloca [1024 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #8
  %11 = call noalias ptr @fopen(ptr noundef @.str.51, ptr noundef @.str.52)
  store ptr %11, ptr %1, align 8, !tbaa !5
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %0
  br label %16

15:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.36, i32 noundef 82, ptr noundef @__PRETTY_FUNCTION__.testCopyStats) #9
  unreachable

16:                                               ; preds = %14
  %17 = load i32, ptr @num_relations, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = call ptr @llvm.stacksave.p0()
  store ptr %19, ptr %2, align 8
  %20 = alloca ptr, i64 %18, align 16
  store i64 %18, ptr %3, align 8
  %21 = load i32, ptr @num_relations, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = alloca ptr, i64 %22, align 16
  store i64 %22, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 1024, ptr %6) #8
  %24 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %25 = call ptr @strcpy(ptr noundef %24, ptr noundef @.str.54) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %26 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %27 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %28 = call i64 @strlen(ptr noundef %27) #10
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  store ptr %29, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %64, %16
  %31 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %32 = load ptr, ptr %1, align 8, !tbaa !5
  %33 = call ptr @fgets(ptr noundef %31, i32 noundef 1024, ptr noundef %32)
  %34 = icmp ne ptr %33, null
  br i1 %34, label %36, label %35

35:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %65

36:                                               ; preds = %30
  %37 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %38 = call i64 @strlen(ptr noundef %37) #10
  %39 = sub i64 %38, 1
  %40 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %39
  store i8 0, ptr %40, align 1, !tbaa !11
  %41 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %42 = call i64 @strlen(ptr noundef %41) #10
  %43 = icmp ugt i64 %42, 0
  br i1 %43, label %44, label %64

44:                                               ; preds = %36
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %47 = call ptr @strcpy(ptr noundef %45, ptr noundef %46) #8
  %48 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %49 = call ptr @loadRelation(ptr noundef %48)
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = add i32 %50, 1
  store i32 %51, ptr %8, align 4, !tbaa !9
  %52 = zext i32 %50 to i64
  %53 = getelementptr inbounds ptr, ptr %20, i64 %52
  store ptr %49, ptr %53, align 8, !tbaa !5
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = sub i32 %54, 1
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %20, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = call ptr @gatherStatistics(ptr noundef %58)
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = sub i32 %60, 1
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %23, i64 %62
  store ptr %59, ptr %63, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %44, %36
  br label %30, !llvm.loop !12

65:                                               ; preds = %35
  %66 = load ptr, ptr %1, align 8, !tbaa !5
  %67 = call i32 @fclose(ptr noundef %66)
  %68 = load i32, ptr @num_relations, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = alloca ptr, i64 %69, align 16
  store i64 %69, ptr %9, align 8
  %71 = load i32, ptr @num_relations, align 4, !tbaa !9
  call void @copyStats(ptr noundef %70, ptr noundef %23, i32 noundef %71)
  br label %72

72:                                               ; preds = %65
  %73 = getelementptr inbounds ptr, ptr %70, i64 0
  %74 = load ptr, ptr %73, align 16, !tbaa !5
  %75 = getelementptr inbounds %struct.relation_statistics, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !14
  %77 = icmp eq i32 %76, 3
  %78 = zext i1 %77 to i32
  %79 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %78, ptr noundef @.str.36, i32 noundef 110, ptr noundef @.str.5, ptr noundef @.str.55)
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %82, label %81

81:                                               ; preds = %72
  call void @acutest_abort_() #11
  unreachable

82:                                               ; preds = %72
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = getelementptr inbounds ptr, ptr %70, i64 0
  %87 = load ptr, ptr %86, align 16, !tbaa !5
  %88 = getelementptr inbounds %struct.relation_statistics, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = getelementptr inbounds %struct.column_statistics, ptr %89, i64 0
  %91 = getelementptr inbounds %struct.column_statistics, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !17
  %93 = icmp eq i32 %92, 1561
  %94 = zext i1 %93 to i32
  %95 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %94, ptr noundef @.str.36, i32 noundef 111, ptr noundef @.str.5, ptr noundef @.str.56)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %98, label %97

97:                                               ; preds = %85
  call void @acutest_abort_() #11
  unreachable

98:                                               ; preds = %85
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  %102 = getelementptr inbounds ptr, ptr %70, i64 0
  %103 = load ptr, ptr %102, align 16, !tbaa !5
  %104 = getelementptr inbounds %struct.relation_statistics, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds %struct.column_statistics, ptr %105, i64 1
  %107 = getelementptr inbounds %struct.column_statistics, ptr %106, i32 0, i32 2
  %108 = load i32, ptr %107, align 4, !tbaa !17
  %109 = icmp eq i32 %108, 1561
  %110 = zext i1 %109 to i32
  %111 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %110, ptr noundef @.str.36, i32 noundef 112, ptr noundef @.str.5, ptr noundef @.str.57)
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %114, label %113

113:                                              ; preds = %101
  call void @acutest_abort_() #11
  unreachable

114:                                              ; preds = %101
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  %118 = getelementptr inbounds ptr, ptr %70, i64 0
  %119 = load ptr, ptr %118, align 16, !tbaa !5
  %120 = getelementptr inbounds %struct.relation_statistics, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !16
  %122 = getelementptr inbounds %struct.column_statistics, ptr %121, i64 2
  %123 = getelementptr inbounds %struct.column_statistics, ptr %122, i32 0, i32 2
  %124 = load i32, ptr %123, align 4, !tbaa !17
  %125 = icmp eq i32 %124, 1561
  %126 = zext i1 %125 to i32
  %127 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %126, ptr noundef @.str.36, i32 noundef 113, ptr noundef @.str.5, ptr noundef @.str.58)
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %130, label %129

129:                                              ; preds = %117
  call void @acutest_abort_() #11
  unreachable

130:                                              ; preds = %117
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = getelementptr inbounds ptr, ptr %70, i64 0
  %135 = load ptr, ptr %134, align 16, !tbaa !5
  %136 = getelementptr inbounds %struct.relation_statistics, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = getelementptr inbounds %struct.column_statistics, ptr %137, i64 0
  %139 = getelementptr inbounds %struct.column_statistics, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !19
  %141 = icmp eq i32 %140, 1
  %142 = zext i1 %141 to i32
  %143 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %142, ptr noundef @.str.36, i32 noundef 116, ptr noundef @.str.5, ptr noundef @.str.59)
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %146, label %145

145:                                              ; preds = %133
  call void @acutest_abort_() #11
  unreachable

146:                                              ; preds = %133
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = getelementptr inbounds ptr, ptr %70, i64 0
  %151 = load ptr, ptr %150, align 16, !tbaa !5
  %152 = getelementptr inbounds %struct.relation_statistics, ptr %151, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !16
  %154 = getelementptr inbounds %struct.column_statistics, ptr %153, i64 1
  %155 = getelementptr inbounds %struct.column_statistics, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !20
  %157 = icmp eq i32 %156, 10262
  %158 = zext i1 %157 to i32
  %159 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %158, ptr noundef @.str.36, i32 noundef 117, ptr noundef @.str.5, ptr noundef @.str.60)
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %162, label %161

161:                                              ; preds = %149
  call void @acutest_abort_() #11
  unreachable

162:                                              ; preds = %149
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  %166 = getelementptr inbounds ptr, ptr %70, i64 0
  %167 = load ptr, ptr %166, align 16, !tbaa !5
  %168 = getelementptr inbounds %struct.relation_statistics, ptr %167, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !16
  %170 = getelementptr inbounds %struct.column_statistics, ptr %169, i64 0
  %171 = getelementptr inbounds %struct.column_statistics, ptr %170, i32 0, i32 3
  %172 = load i32, ptr %171, align 4, !tbaa !21
  %173 = icmp eq i32 %172, 1561
  %174 = zext i1 %173 to i32
  %175 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %174, ptr noundef @.str.36, i32 noundef 120, ptr noundef @.str.5, ptr noundef @.str.61)
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %178, label %177

177:                                              ; preds = %165
  call void @acutest_abort_() #11
  unreachable

178:                                              ; preds = %165
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  br label %181

181:                                              ; preds = %180
  %182 = getelementptr inbounds ptr, ptr %70, i64 0
  %183 = load ptr, ptr %182, align 16, !tbaa !5
  %184 = getelementptr inbounds %struct.relation_statistics, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !16
  %186 = getelementptr inbounds %struct.column_statistics, ptr %185, i64 1
  %187 = getelementptr inbounds %struct.column_statistics, ptr %186, i32 0, i32 3
  %188 = load i32, ptr %187, align 4, !tbaa !21
  %189 = icmp eq i32 %188, 1365
  %190 = zext i1 %189 to i32
  %191 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %190, ptr noundef @.str.36, i32 noundef 121, ptr noundef @.str.5, ptr noundef @.str.62)
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %194, label %193

193:                                              ; preds = %181
  call void @acutest_abort_() #11
  unreachable

194:                                              ; preds = %181
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  %198 = getelementptr inbounds ptr, ptr %70, i64 0
  %199 = load ptr, ptr %198, align 16, !tbaa !5
  %200 = getelementptr inbounds %struct.relation_statistics, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !16
  %202 = getelementptr inbounds %struct.column_statistics, ptr %201, i64 2
  %203 = getelementptr inbounds %struct.column_statistics, ptr %202, i32 0, i32 3
  %204 = load i32, ptr %203, align 4, !tbaa !21
  %205 = icmp eq i32 %204, 1431
  %206 = zext i1 %205 to i32
  %207 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %206, ptr noundef @.str.36, i32 noundef 122, ptr noundef @.str.5, ptr noundef @.str.63)
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %210, label %209

209:                                              ; preds = %197
  call void @acutest_abort_() #11
  unreachable

210:                                              ; preds = %197
  br label %211

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  %214 = getelementptr inbounds ptr, ptr %70, i64 2
  %215 = load ptr, ptr %214, align 16, !tbaa !5
  %216 = getelementptr inbounds %struct.relation_statistics, ptr %215, i32 0, i32 1
  %217 = load i32, ptr %216, align 8, !tbaa !14
  %218 = getelementptr inbounds ptr, ptr %23, i64 2
  %219 = load ptr, ptr %218, align 16, !tbaa !5
  %220 = getelementptr inbounds %struct.relation_statistics, ptr %219, i32 0, i32 1
  %221 = load i32, ptr %220, align 8, !tbaa !14
  %222 = icmp eq i32 %217, %221
  %223 = zext i1 %222 to i32
  %224 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %223, ptr noundef @.str.36, i32 noundef 125, ptr noundef @.str.5, ptr noundef @.str.64)
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %227, label %226

226:                                              ; preds = %213
  call void @acutest_abort_() #11
  unreachable

227:                                              ; preds = %213
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229
  %231 = getelementptr inbounds ptr, ptr %70, i64 3
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.relation_statistics, ptr %232, i32 0, i32 1
  %234 = load i32, ptr %233, align 8, !tbaa !14
  %235 = getelementptr inbounds ptr, ptr %23, i64 3
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.relation_statistics, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 8, !tbaa !14
  %239 = icmp eq i32 %234, %238
  %240 = zext i1 %239 to i32
  %241 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %240, ptr noundef @.str.36, i32 noundef 126, ptr noundef @.str.5, ptr noundef @.str.65)
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %244, label %243

243:                                              ; preds = %230
  call void @acutest_abort_() #11
  unreachable

244:                                              ; preds = %230
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  %248 = getelementptr inbounds ptr, ptr %70, i64 1
  %249 = load ptr, ptr %248, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.relation_statistics, ptr %249, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8, !tbaa !16
  %252 = getelementptr inbounds %struct.column_statistics, ptr %251, i64 0
  %253 = getelementptr inbounds %struct.column_statistics, ptr %252, i32 0, i32 3
  %254 = load i32, ptr %253, align 4, !tbaa !21
  %255 = getelementptr inbounds ptr, ptr %23, i64 1
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.relation_statistics, ptr %256, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8, !tbaa !16
  %259 = getelementptr inbounds %struct.column_statistics, ptr %258, i64 0
  %260 = getelementptr inbounds %struct.column_statistics, ptr %259, i32 0, i32 3
  %261 = load i32, ptr %260, align 4, !tbaa !21
  %262 = icmp eq i32 %254, %261
  %263 = zext i1 %262 to i32
  %264 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %263, ptr noundef @.str.36, i32 noundef 127, ptr noundef @.str.5, ptr noundef @.str.66)
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %267, label %266

266:                                              ; preds = %247
  call void @acutest_abort_() #11
  unreachable

267:                                              ; preds = %247
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268
  br label %270

270:                                              ; preds = %269
  %271 = getelementptr inbounds ptr, ptr %70, i64 5
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.relation_statistics, ptr %272, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8, !tbaa !16
  %275 = getelementptr inbounds %struct.column_statistics, ptr %274, i64 1
  %276 = getelementptr inbounds %struct.column_statistics, ptr %275, i32 0, i32 1
  %277 = load i32, ptr %276, align 4, !tbaa !20
  %278 = getelementptr inbounds ptr, ptr %23, i64 5
  %279 = load ptr, ptr %278, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.relation_statistics, ptr %279, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8, !tbaa !16
  %282 = getelementptr inbounds %struct.column_statistics, ptr %281, i64 1
  %283 = getelementptr inbounds %struct.column_statistics, ptr %282, i32 0, i32 1
  %284 = load i32, ptr %283, align 4, !tbaa !20
  %285 = icmp eq i32 %277, %284
  %286 = zext i1 %285 to i32
  %287 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %286, ptr noundef @.str.36, i32 noundef 128, ptr noundef @.str.5, ptr noundef @.str.67)
  %288 = icmp ne i32 %287, 0
  br i1 %288, label %290, label %289

289:                                              ; preds = %270
  call void @acutest_abort_() #11
  unreachable

290:                                              ; preds = %270
  br label %291

291:                                              ; preds = %290
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292
  %294 = getelementptr inbounds ptr, ptr %70, i64 5
  %295 = load ptr, ptr %294, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.relation_statistics, ptr %295, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8, !tbaa !16
  %298 = getelementptr inbounds %struct.column_statistics, ptr %297, i64 0
  %299 = getelementptr inbounds %struct.column_statistics, ptr %298, i32 0, i32 0
  %300 = load i32, ptr %299, align 4, !tbaa !19
  %301 = getelementptr inbounds ptr, ptr %23, i64 5
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.relation_statistics, ptr %302, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8, !tbaa !16
  %305 = getelementptr inbounds %struct.column_statistics, ptr %304, i64 0
  %306 = getelementptr inbounds %struct.column_statistics, ptr %305, i32 0, i32 0
  %307 = load i32, ptr %306, align 4, !tbaa !19
  %308 = icmp eq i32 %300, %307
  %309 = zext i1 %308 to i32
  %310 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %309, ptr noundef @.str.36, i32 noundef 129, ptr noundef @.str.5, ptr noundef @.str.68)
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %313, label %312

312:                                              ; preds = %293
  call void @acutest_abort_() #11
  unreachable

313:                                              ; preds = %293
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314
  br label %316

316:                                              ; preds = %315
  %317 = getelementptr inbounds ptr, ptr %70, i64 10
  %318 = load ptr, ptr %317, align 16, !tbaa !5
  %319 = getelementptr inbounds %struct.relation_statistics, ptr %318, i32 0, i32 0
  %320 = load ptr, ptr %319, align 8, !tbaa !16
  %321 = getelementptr inbounds %struct.column_statistics, ptr %320, i64 1
  %322 = getelementptr inbounds %struct.column_statistics, ptr %321, i32 0, i32 2
  %323 = load i32, ptr %322, align 4, !tbaa !17
  %324 = getelementptr inbounds ptr, ptr %23, i64 10
  %325 = load ptr, ptr %324, align 16, !tbaa !5
  %326 = getelementptr inbounds %struct.relation_statistics, ptr %325, i32 0, i32 0
  %327 = load ptr, ptr %326, align 8, !tbaa !16
  %328 = getelementptr inbounds %struct.column_statistics, ptr %327, i64 1
  %329 = getelementptr inbounds %struct.column_statistics, ptr %328, i32 0, i32 2
  %330 = load i32, ptr %329, align 4, !tbaa !17
  %331 = icmp eq i32 %323, %330
  %332 = zext i1 %331 to i32
  %333 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %332, ptr noundef @.str.36, i32 noundef 130, ptr noundef @.str.5, ptr noundef @.str.69)
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %336, label %335

335:                                              ; preds = %316
  call void @acutest_abort_() #11
  unreachable

336:                                              ; preds = %316
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr @num_relations, align 4, !tbaa !9
  call void @destroyStats(ptr noundef %70, i32 noundef %339)
  %340 = load i32, ptr @num_relations, align 4, !tbaa !9
  call void @destroyStats(ptr noundef %23, i32 noundef %340)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !22
  br label %341

341:                                              ; preds = %362, %338
  %342 = load i64, ptr %10, align 8, !tbaa !22
  %343 = load i32, ptr @num_relations, align 4, !tbaa !9
  %344 = zext i32 %343 to i64
  %345 = icmp ult i64 %342, %344
  br i1 %345, label %347, label %346

346:                                              ; preds = %341
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %365

347:                                              ; preds = %341
  %348 = load i64, ptr %10, align 8, !tbaa !22
  %349 = getelementptr inbounds ptr, ptr %20, i64 %348
  %350 = load ptr, ptr %349, align 8, !tbaa !5
  %351 = icmp ne ptr %350, null
  br i1 %351, label %352, label %361

352:                                              ; preds = %347
  %353 = load i64, ptr %10, align 8, !tbaa !22
  %354 = getelementptr inbounds ptr, ptr %20, i64 %353
  %355 = load ptr, ptr %354, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.relation, ptr %355, i32 0, i32 0
  %357 = load ptr, ptr %356, align 8, !tbaa !24
  call void @free(ptr noundef %357) #8
  %358 = load i64, ptr %10, align 8, !tbaa !22
  %359 = getelementptr inbounds ptr, ptr %20, i64 %358
  %360 = load ptr, ptr %359, align 8, !tbaa !5
  call void @free(ptr noundef %360) #8
  br label %361

361:                                              ; preds = %352, %347
  br label %362

362:                                              ; preds = %361
  %363 = load i64, ptr %10, align 8, !tbaa !22
  %364 = add i64 %363, 1
  store i64 %364, ptr %10, align 8, !tbaa !22
  br label %341, !llvm.loop !26

365:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %5) #8
  %366 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %366)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  ret void
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #7

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

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

declare void @copyStats(ptr noundef, ptr noundef, i32 noundef) #4

declare void @destroyStats(ptr noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #7

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 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 #3 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 "no-trapping-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 nosync nounwind willreturn }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn }

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

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


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

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@num_relations = external dso_local local_unnamed_addr global i32, align 4
@.str.36 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.testCopyStats = external hidden unnamed_addr constant [25 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [88 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @acutest_check_(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #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 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 i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @acutest_abort_() local_unnamed_addr #3

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

declare ptr @loadRelation(ptr noundef) local_unnamed_addr #5

declare ptr @gatherStatistics(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local void @testCopyStats() local_unnamed_addr #0 {
  %1 = alloca [128 x i8], align 16
  %2 = alloca [1024 x i8], align 16
  %3 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.52)
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.36, i32 noundef 82, ptr noundef nonnull @__PRETTY_FUNCTION__.testCopyStats) #9
  unreachable

5:                                                ; preds = %0
  %6 = load i32, ptr @num_relations, align 4, !tbaa !5
  %7 = zext i32 %6 to i64
  %8 = alloca ptr, i64 %7, align 16
  %9 = alloca ptr, i64 %7, align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %1) #10
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %2) #10
  %10 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.54) #10
  %11 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #11
  %12 = getelementptr inbounds i8, ptr %1, i64 %11
  %13 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 1024, ptr noundef nonnull %3)
  %.not1533 = icmp eq ptr %13, null
  br i1 %.not1533, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %35, %5
  %14 = call i32 @fclose(ptr noundef nonnull %3)
  %15 = load i32, ptr @num_relations, align 4, !tbaa !5
  %16 = zext i32 %15 to i64
  %17 = alloca ptr, i64 %16, align 16
  call void @copyStats(ptr noundef nonnull %17, ptr noundef nonnull %9, i32 noundef %15) #10
  %18 = load ptr, ptr %17, align 16, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp eq i32 %20, 3
  %22 = zext i1 %21 to i32
  %23 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %22, ptr noundef nonnull @.str.36, i32 noundef 110, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.55)
  %.not16 = icmp eq i32 %23, 0
  br i1 %.not16, label %37, label %38

.lr.ph:                                           ; preds = %5, %35
  %.01234 = phi i32 [ %.1, %35 ], [ 0, %5 ]
  %24 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #11
  %25 = add i64 %24, -1
  %26 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %25
  store i8 0, ptr %26, align 1, !tbaa !13
  %char0 = load i8, ptr %2, align 16
  %.not32 = icmp eq i8 %char0, 0
  br i1 %.not32, label %35, label %27

27:                                               ; preds = %.lr.ph
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) %2) #10
  %29 = call ptr @loadRelation(ptr noundef nonnull %1) #10
  %30 = add i32 %.01234, 1
  %31 = zext i32 %.01234 to i64
  %32 = getelementptr inbounds ptr, ptr %8, i64 %31
  store ptr %29, ptr %32, align 8, !tbaa !9
  %33 = call ptr @gatherStatistics(ptr noundef %29) #10
  %34 = getelementptr inbounds ptr, ptr %9, i64 %31
  store ptr %33, ptr %34, align 8, !tbaa !9
  br label %35

35:                                               ; preds = %27, %.lr.ph
  %.1 = phi i32 [ %30, %27 ], [ %.01234, %.lr.ph ]
  %36 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 1024, ptr noundef nonnull %3)
  %.not15 = icmp eq ptr %36, null
  br i1 %.not15, label %._crit_edge, label %.lr.ph, !llvm.loop !14

37:                                               ; preds = %._crit_edge
  call void @acutest_abort_() #12
  unreachable

38:                                               ; preds = %._crit_edge
  %39 = load ptr, ptr %17, align 16, !tbaa !9
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load i32, ptr %41, align 4, !tbaa !17
  %43 = icmp eq i32 %42, 1561
  %44 = zext i1 %43 to i32
  %45 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %44, ptr noundef nonnull @.str.36, i32 noundef 111, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.56)
  %.not17 = icmp eq i32 %45, 0
  br i1 %.not17, label %46, label %47

46:                                               ; preds = %38
  call void @acutest_abort_() #12
  unreachable

47:                                               ; preds = %38
  %48 = load ptr, ptr %17, align 16, !tbaa !9
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = load i32, ptr %50, align 4, !tbaa !17
  %52 = icmp eq i32 %51, 1561
  %53 = zext i1 %52 to i32
  %54 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %53, ptr noundef nonnull @.str.36, i32 noundef 112, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.57)
  %.not18 = icmp eq i32 %54, 0
  br i1 %.not18, label %55, label %56

55:                                               ; preds = %47
  call void @acutest_abort_() #12
  unreachable

56:                                               ; preds = %47
  %57 = load ptr, ptr %17, align 16, !tbaa !9
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = getelementptr inbounds i8, ptr %58, i64 40
  %60 = load i32, ptr %59, align 4, !tbaa !17
  %61 = icmp eq i32 %60, 1561
  %62 = zext i1 %61 to i32
  %63 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %62, ptr noundef nonnull @.str.36, i32 noundef 113, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.58)
  %.not19 = icmp eq i32 %63, 0
  br i1 %.not19, label %64, label %65

64:                                               ; preds = %56
  call void @acutest_abort_() #12
  unreachable

65:                                               ; preds = %56
  %66 = load ptr, ptr %17, align 16, !tbaa !9
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  %68 = load i32, ptr %67, align 4, !tbaa !19
  %69 = icmp eq i32 %68, 1
  %70 = zext i1 %69 to i32
  %71 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %70, ptr noundef nonnull @.str.36, i32 noundef 116, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.59)
  %.not20 = icmp eq i32 %71, 0
  br i1 %.not20, label %72, label %73

72:                                               ; preds = %65
  call void @acutest_abort_() #12
  unreachable

73:                                               ; preds = %65
  %74 = load ptr, ptr %17, align 16, !tbaa !9
  %75 = load ptr, ptr %74, align 8, !tbaa !16
  %76 = getelementptr inbounds i8, ptr %75, i64 20
  %77 = load i32, ptr %76, align 4, !tbaa !20
  %78 = icmp eq i32 %77, 10262
  %79 = zext i1 %78 to i32
  %80 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %79, ptr noundef nonnull @.str.36, i32 noundef 117, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.60)
  %.not21 = icmp eq i32 %80, 0
  br i1 %.not21, label %81, label %82

81:                                               ; preds = %73
  call void @acutest_abort_() #12
  unreachable

82:                                               ; preds = %73
  %83 = load ptr, ptr %17, align 16, !tbaa !9
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  %85 = getelementptr inbounds i8, ptr %84, i64 12
  %86 = load i32, ptr %85, align 4, !tbaa !21
  %87 = icmp eq i32 %86, 1561
  %88 = zext i1 %87 to i32
  %89 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %88, ptr noundef nonnull @.str.36, i32 noundef 120, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.61)
  %.not22 = icmp eq i32 %89, 0
  br i1 %.not22, label %90, label %91

90:                                               ; preds = %82
  call void @acutest_abort_() #12
  unreachable

91:                                               ; preds = %82
  %92 = load ptr, ptr %17, align 16, !tbaa !9
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  %94 = getelementptr inbounds i8, ptr %93, i64 28
  %95 = load i32, ptr %94, align 4, !tbaa !21
  %96 = icmp eq i32 %95, 1365
  %97 = zext i1 %96 to i32
  %98 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %97, ptr noundef nonnull @.str.36, i32 noundef 121, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.62)
  %.not23 = icmp eq i32 %98, 0
  br i1 %.not23, label %99, label %100

99:                                               ; preds = %91
  call void @acutest_abort_() #12
  unreachable

100:                                              ; preds = %91
  %101 = load ptr, ptr %17, align 16, !tbaa !9
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = getelementptr inbounds i8, ptr %102, i64 44
  %104 = load i32, ptr %103, align 4, !tbaa !21
  %105 = icmp eq i32 %104, 1431
  %106 = zext i1 %105 to i32
  %107 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %106, ptr noundef nonnull @.str.36, i32 noundef 122, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.63)
  %.not24 = icmp eq i32 %107, 0
  br i1 %.not24, label %108, label %109

108:                                              ; preds = %100
  call void @acutest_abort_() #12
  unreachable

109:                                              ; preds = %100
  %110 = getelementptr inbounds i8, ptr %17, i64 16
  %111 = load ptr, ptr %110, align 16, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %111, i64 8
  %113 = load i32, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds i8, ptr %9, i64 16
  %115 = load ptr, ptr %114, align 16, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = load i32, ptr %116, align 8, !tbaa !11
  %118 = icmp eq i32 %113, %117
  %119 = zext i1 %118 to i32
  %120 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %119, ptr noundef nonnull @.str.36, i32 noundef 125, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.64)
  %.not25 = icmp eq i32 %120, 0
  br i1 %.not25, label %121, label %122

121:                                              ; preds = %109
  call void @acutest_abort_() #12
  unreachable

122:                                              ; preds = %109
  %123 = getelementptr inbounds i8, ptr %17, i64 24
  %124 = load ptr, ptr %123, align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  %126 = load i32, ptr %125, align 8, !tbaa !11
  %127 = getelementptr inbounds i8, ptr %9, i64 24
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %128, i64 8
  %130 = load i32, ptr %129, align 8, !tbaa !11
  %131 = icmp eq i32 %126, %130
  %132 = zext i1 %131 to i32
  %133 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %132, ptr noundef nonnull @.str.36, i32 noundef 126, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.65)
  %.not26 = icmp eq i32 %133, 0
  br i1 %.not26, label %134, label %135

134:                                              ; preds = %122
  call void @acutest_abort_() #12
  unreachable

135:                                              ; preds = %122
  %136 = getelementptr inbounds i8, ptr %17, i64 8
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = load ptr, ptr %137, align 8, !tbaa !16
  %139 = getelementptr inbounds i8, ptr %138, i64 12
  %140 = load i32, ptr %139, align 4, !tbaa !21
  %141 = getelementptr inbounds i8, ptr %9, i64 8
  %142 = load ptr, ptr %141, align 8, !tbaa !9
  %143 = load ptr, ptr %142, align 8, !tbaa !16
  %144 = getelementptr inbounds i8, ptr %143, i64 12
  %145 = load i32, ptr %144, align 4, !tbaa !21
  %146 = icmp eq i32 %140, %145
  %147 = zext i1 %146 to i32
  %148 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %147, ptr noundef nonnull @.str.36, i32 noundef 127, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.66)
  %.not27 = icmp eq i32 %148, 0
  br i1 %.not27, label %149, label %150

149:                                              ; preds = %135
  call void @acutest_abort_() #12
  unreachable

150:                                              ; preds = %135
  %151 = getelementptr inbounds i8, ptr %17, i64 40
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  %153 = load ptr, ptr %152, align 8, !tbaa !16
  %154 = getelementptr inbounds i8, ptr %153, i64 20
  %155 = load i32, ptr %154, align 4, !tbaa !20
  %156 = getelementptr inbounds i8, ptr %9, i64 40
  %157 = load ptr, ptr %156, align 8, !tbaa !9
  %158 = load ptr, ptr %157, align 8, !tbaa !16
  %159 = getelementptr inbounds i8, ptr %158, i64 20
  %160 = load i32, ptr %159, align 4, !tbaa !20
  %161 = icmp eq i32 %155, %160
  %162 = zext i1 %161 to i32
  %163 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %162, ptr noundef nonnull @.str.36, i32 noundef 128, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.67)
  %.not28 = icmp eq i32 %163, 0
  br i1 %.not28, label %164, label %165

164:                                              ; preds = %150
  call void @acutest_abort_() #12
  unreachable

165:                                              ; preds = %150
  %166 = load ptr, ptr %151, align 8, !tbaa !9
  %167 = load ptr, ptr %166, align 8, !tbaa !16
  %168 = load i32, ptr %167, align 4, !tbaa !19
  %169 = load ptr, ptr %156, align 8, !tbaa !9
  %170 = load ptr, ptr %169, align 8, !tbaa !16
  %171 = load i32, ptr %170, align 4, !tbaa !19
  %172 = icmp eq i32 %168, %171
  %173 = zext i1 %172 to i32
  %174 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %173, ptr noundef nonnull @.str.36, i32 noundef 129, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.68)
  %.not29 = icmp eq i32 %174, 0
  br i1 %.not29, label %175, label %176

175:                                              ; preds = %165
  call void @acutest_abort_() #12
  unreachable

176:                                              ; preds = %165
  %177 = getelementptr inbounds i8, ptr %17, i64 80
  %178 = load ptr, ptr %177, align 16, !tbaa !9
  %179 = load ptr, ptr %178, align 8, !tbaa !16
  %180 = getelementptr inbounds i8, ptr %179, i64 24
  %181 = load i32, ptr %180, align 4, !tbaa !17
  %182 = getelementptr inbounds i8, ptr %9, i64 80
  %183 = load ptr, ptr %182, align 16, !tbaa !9
  %184 = load ptr, ptr %183, align 8, !tbaa !16
  %185 = getelementptr inbounds i8, ptr %184, i64 24
  %186 = load i32, ptr %185, align 4, !tbaa !17
  %187 = icmp eq i32 %181, %186
  %188 = zext i1 %187 to i32
  %189 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %188, ptr noundef nonnull @.str.36, i32 noundef 130, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.69)
  %.not30 = icmp eq i32 %189, 0
  br i1 %.not30, label %190, label %191

190:                                              ; preds = %176
  call void @acutest_abort_() #12
  unreachable

191:                                              ; preds = %176
  %192 = load i32, ptr @num_relations, align 4, !tbaa !5
  call void @destroyStats(ptr noundef nonnull %17, i32 noundef %192) #10
  %193 = load i32, ptr @num_relations, align 4, !tbaa !5
  call void @destroyStats(ptr noundef nonnull %9, i32 noundef %193) #10
  %194 = load i32, ptr @num_relations, align 4, !tbaa !5
  %.not39 = icmp eq i32 %194, 0
  br i1 %.not39, label %._crit_edge38, label %.lr.ph37

._crit_edge38:                                    ; preds = %200, %191
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %1) #10
  ret void

.lr.ph37:                                         ; preds = %191, %200
  %195 = phi i32 [ %201, %200 ], [ %194, %191 ]
  %.035 = phi i64 [ %202, %200 ], [ 0, %191 ]
  %196 = getelementptr inbounds ptr, ptr %8, i64 %.035
  %197 = load ptr, ptr %196, align 8, !tbaa !9
  %.not31 = icmp eq ptr %197, null
  br i1 %.not31, label %200, label %198

198:                                              ; preds = %.lr.ph37
  %199 = load ptr, ptr %197, align 8, !tbaa !22
  call void @free(ptr noundef %199) #10
  call void @free(ptr noundef nonnull %197) #10
  %.pre = load i32, ptr @num_relations, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %.lr.ph37, %198
  %201 = phi i32 [ %195, %.lr.ph37 ], [ %.pre, %198 ]
  %202 = add nuw nsw i64 %.035, 1
  %203 = zext i32 %201 to i64
  %204 = icmp ult i64 %202, %203
  br i1 %204, label %.lr.ph37, label %._crit_edge38, !llvm.loop !25
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

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

declare void @copyStats(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare void @destroyStats(ptr noundef, i32 noundef) local_unnamed_addr #5

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 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 #3 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "no-trapping-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 = { 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 #7 = { 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 #8 = { 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 #9 = { noreturn nounwind }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn }

!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 8}
!12 = !{!"relation_statistics", !10, i64 0, !6, i64 8}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 0}
!17 = !{!18, !6, i64 8}
!18 = !{!"column_statistics", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!19 = !{!18, !6, i64 0}
!20 = !{!18, !6, i64 4}
!21 = !{!18, !6, i64 12}
!22 = !{!23, !10, i64 0}
!23 = !{!"relation", !10, i64 0, !24, i64 8, !24, i64 16}
!24 = !{!"long", !7, i64 0}
!25 = distinct !{!25, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass